@palerock/exam-qa 1.0.6-patch7 → 1.0.6-patch8

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,1473 @@
1
+ {
2
+ "title": "Dev1模拟卷A",
3
+ "category": "Dev1-自由部落侠",
4
+ "questions": [
5
+ {
6
+ "describe": "A custom picklist field Food_Preference__c, exists an a custom object. The picklist contains the following options:\n'Vegan'. 'Kosher', 'No Preference'. The developer must ensure a value is populated every time a record is created or updated.",
7
+ "answerOptions": [
8
+ {
9
+ "describe": "Mark the field as Required on the object's page Layout.",
10
+ "isRight": false
11
+ },
12
+ {
13
+ "describe": "Mark the field as Required on the field definition.",
14
+ "isRight": true
15
+ },
16
+ {
17
+ "describe": "Set \"Use the first value in the list as default value\" as True.",
18
+ "isRight": false
19
+ },
20
+ {
21
+ "describe": "Set a validation rule to enforce a value is selected.",
22
+ "isRight": false
23
+ }
24
+ ],
25
+ "hashCode": "1988673081"
26
+ },
27
+ {
28
+ "describe": "A SSN__c custom field exists on the Candidate __c custom object. The field is used to store each candidate's social security number and is marked as Unique in the schema definition.\n\nAs part of a data enrichment process, Universal Containers has a CSV file that contains updated data for all candidates in the system. The file contains each Candidate's social security number as a data point. Universal Containers wants to upload this information into Salesforce, while ensuring all data rows are correctly mapped to a candidate in the system. Which technique should the developer implement to streamline the data upload?",
29
+ "answerOptions": [
30
+ {
31
+ "describe": "Upload the CSV into a custom object related to Candidate__c. ",
32
+ "isRight": false
33
+ },
34
+ {
35
+ "describe": "Update the SSN__c field definition to mark it as an External Id.",
36
+ "isRight": true
37
+ },
38
+ {
39
+ "describe": "Create a before insert trigger to correctly map the records. ",
40
+ "isRight": false
41
+ },
42
+ {
43
+ "describe": "Create a process Builder on the Candidate__c object to map the records.",
44
+ "isRight": false
45
+ }
46
+ ],
47
+ "hashCode": "1988673197"
48
+ },
49
+ {
50
+ "describe": "A developer created a custom order management app that uses an Apex class. The order is represented by an Order object and an OrderItem object that has a master-detail relationship to Order. During order processing, an order may be split into multiple orders.\nWhat should a developer do to allow their code to move some existing OrderItem records to a new Order record?",
51
+ "answerOptions": [
52
+ {
53
+ "describe": "Select the Allow reparenting option on the master-detail relationship.",
54
+ "isRight": false
55
+ },
56
+ {
57
+ "describe": "Change the master-detail relationship to an external lookup relationship.",
58
+ "isRight": false
59
+ },
60
+ {
61
+ "describe": "Add without sharing to the Apex class declaration.",
62
+ "isRight": false
63
+ },
64
+ {
65
+ "describe": "Create a junction object between OrderItem and Order.",
66
+ "isRight": true
67
+ }
68
+ ],
69
+ "hashCode": "1988674041"
70
+ },
71
+ {
72
+ "describe": "A developer has a requirement to create an Order when an Opportunity reaches a 'Closed-Won' status.\nWhich tool should be used to implement this requirement?",
73
+ "answerOptions": [
74
+ {
75
+ "describe": "Lightning Flow",
76
+ "isRight": false
77
+ },
78
+ {
79
+ "describe": "Process Builder",
80
+ "isRight": true
81
+ },
82
+ {
83
+ "describe": "Apex Trigger",
84
+ "isRight": false
85
+ },
86
+ {
87
+ "describe": "Lightning Component",
88
+ "isRight": false
89
+ }
90
+ ],
91
+ "hashCode": "1988672361"
92
+ },
93
+ {
94
+ "describe": "In the Lightning UI, where should a developer look to find information about a Paused Flow Interview?",
95
+ "answerOptions": [
96
+ {
97
+ "describe": "In the system debug log by filtering on Paused Flow Interview",
98
+ "isRight": false
99
+ },
100
+ {
101
+ "describe": "On the Paused Flow Interviews related list for a given record",
102
+ "isRight": false
103
+ },
104
+ {
105
+ "describe": "On the Paused Flow Interviews component on the Home page",
106
+ "isRight": true
107
+ },
108
+ {
109
+ "describe": "In the Paused Interviews section of the Apex Flex Queue",
110
+ "isRight": false
111
+ }
112
+ ],
113
+ "hashCode": "1988673326"
114
+ },
115
+ {
116
+ "describe": "UC uses a Master-Detail relationship and stores the availability date on each Line Item of an Order and Orders are only shipped when all of the Line Items \nare available.\nWhich method should be used to calculate the estimated ship date for an Order?",
117
+ "answerOptions": [
118
+ {
119
+ "describe": "Use a LATEST formula on each of the latest availability date fields.",
120
+ "isRight": false
121
+ },
122
+ {
123
+ "describe": "Use a CEILING formula on each of the latest availability date fields.",
124
+ "isRight": false
125
+ },
126
+ {
127
+ "describe": "Use a MAX Roll-Up Summary field on the latest availability date fields.",
128
+ "isRight": true
129
+ },
130
+ {
131
+ "describe": "Use a DAYS formula on each of the availability date fields and a COUNT Roll-Up Summary field on the Order.",
132
+ "isRight": false
133
+ }
134
+ ],
135
+ "hashCode": "1988674006"
136
+ },
137
+ {
138
+ "describe": "UH is using Salesforce to capture job applications. A salesforce administrator created two custom objects; Job__c acting as the master object, Job_Application__c acting as the detail.\nWithin the Job__c object, a custom multi-select picklist, Preferred_Locations__c, contains a list of approved status for the position. Each Job_Application__c record relates to a Contact within the system through a master-detail relationship.\nRecruiters have requested the ability to view whether the Contact's Mailing State value matches a value selected on the Preferred_Locations__c field, within the Job_Application__c record. Recruiters would like this value to be kept in sync, if changes occur to the Contact's Mailing State or if the Job's Preferred_Locations__c field is updated.\nWhat is the recommended tool a developer should use to meet the business requirement?",
139
+ "answerOptions": [
140
+ {
141
+ "describe": "Apex trigger",
142
+ "isRight": true
143
+ },
144
+ {
145
+ "describe": "Record-triggered flow",
146
+ "isRight": false
147
+ },
148
+ {
149
+ "describe": "Formula field",
150
+ "isRight": false
151
+ },
152
+ {
153
+ "describe": "Process Builder",
154
+ "isRight": false
155
+ }
156
+ ],
157
+ "hashCode": "1988674162"
158
+ },
159
+ {
160
+ "describe": "A developer has the following requirements:\n1. Calculate the total amount on an Order.\n2. Calculate the line amount for each Line Item based on quantity selected and price.\n3. Move Line Items to a different Order if a Line Item is not in stock.\nWhich relationship implementation supports these requirements?",
161
+ "answerOptions": [
162
+ {
163
+ "describe": "Line Item has a Master-Detail field to Order and the Master can be re-parented.",
164
+ "isRight": true
165
+ },
166
+ {
167
+ "describe": "Order has a Lookup field to Line Item and there can be many Line Item per Order.",
168
+ "isRight": false
169
+ },
170
+ {
171
+ "describe": "Line Item has a Lookup field to Order and there can be many Line Item per Order.",
172
+ "isRight": false
173
+ },
174
+ {
175
+ "describe": "Order has a Master-Detail field to Line Item and there can be many Line Item per Order.",
176
+ "isRight": false
177
+ }
178
+ ],
179
+ "hashCode": "1988672306"
180
+ },
181
+ {
182
+ "describe": "Universal Containers wants to back up all of the data and attachments in Salesforce org once a month.\nWhich approach should a developer use to meet this requirement?",
183
+ "answerOptions": [
184
+ {
185
+ "describe": "Schedule a report",
186
+ "isRight": false
187
+ },
188
+ {
189
+ "describe": "Create a Schedulable Apex Class",
190
+ "isRight": false
191
+ },
192
+ {
193
+ "describe": "Define a Data Export scheduled job.",
194
+ "isRight": true
195
+ },
196
+ {
197
+ "describe": "Use the data loader command line.",
198
+ "isRight": false
199
+ }
200
+ ],
201
+ "hashCode": "1988672365"
202
+ },
203
+ {
204
+ "describe": "When a user edits the Postal Code on an Account,a custom Account text field named \"Tim updated based on the values in another custom object called PostalCodeToTimezone_c.\nWhat is the optimal way to implement this feature?",
205
+ "answerOptions": [
206
+ {
207
+ "describe": "Create an account approval proce",
208
+ "isRight": false
209
+ },
210
+ {
211
+ "describe": "Build a flow with Flow Builder.",
212
+ "isRight": true
213
+ },
214
+ {
215
+ "describe": "Create a formula field.",
216
+ "isRight": false
217
+ },
218
+ {
219
+ "describe": "Build an account assignment rule,",
220
+ "isRight": false
221
+ }
222
+ ],
223
+ "hashCode": "1988674131"
224
+ },
225
+ {
226
+ "describe": "Universal Containers has a support process that allows users to request support from its engineering team using custom object, Engineering_Support_c.\nUsers should be able to associate multiple Engineering Support_c records to a single Opportunty record.Addltionally, aggregate information about the Engineering Support _c records should be shown on the Opportunity record.\nWhat should a developer implement to support these requirements?",
227
+ "answerOptions": [
228
+ {
229
+ "describe": "Lookup field from Engineering_Support_c to Opportunity",
230
+ "isRight": false
231
+ },
232
+ {
233
+ "describe": "Master-detail field from EngineeringSupport_c to Opportunity",
234
+ "isRight": true
235
+ },
236
+ {
237
+ "describe": "Lookup field from Opportunity to Engineering Support_c",
238
+ "isRight": false
239
+ },
240
+ {
241
+ "describe": "Master-detail field from Opportunity to Engineering Support_c",
242
+ "isRight": false
243
+ }
244
+ ],
245
+ "hashCode": "1988674126"
246
+ },
247
+ {
248
+ "describe": "A business has a proprietary Order Management System (OMS) that creates orders from their website and the orders.When the order Is created in the OMS,an integration also creates an order record In Salesforce relates it to the contact as identified by the email on the order As the order goes through different stages inOMS, the integration also updates it in Salesforce.\nIt is noticed that each update from the OMS creates new order record in Salesforce.\nWhich two actions will prevent the duplicate order records from being created in Salesforce?\nChoose 2 answers",
249
+ "answerOptions": [
250
+ {
251
+ "describe": "Ensure that the order number in the OMS is unique",
252
+ "isRight": true
253
+ },
254
+ {
255
+ "describe": "Use the order number from the OMS as an external ID.",
256
+ "isRight": true
257
+ },
258
+ {
259
+ "describe": "Use the email on the contact record as an external ID.",
260
+ "isRight": false
261
+ },
262
+ {
263
+ "describe": "Write a before trigger on the order object to delete any duplicates",
264
+ "isRight": false
265
+ }
266
+ ],
267
+ "hashCode": "1988674164"
268
+ },
269
+ {
270
+ "describe": "A developer at Universal Containers is tasked with implementing a new Salesforce application that must built by their company's Salesforce administrator.\nWhich three options should be considered for building out the business logic layer of the application? Choose 3 answers",
271
+ "answerOptions": [
272
+ {
273
+ "describe": "Scheduled Jobs",
274
+ "isRight": false
275
+ },
276
+ {
277
+ "describe": "Validation Rules",
278
+ "isRight": true
279
+ },
280
+ {
281
+ "describe": "Invocable Actions",
282
+ "isRight": false
283
+ },
284
+ {
285
+ "describe": "Workflows",
286
+ "isRight": true
287
+ },
288
+ {
289
+ "describe": "Process Builder",
290
+ "isRight": true
291
+ }
292
+ ],
293
+ "hashCode": "1988672328"
294
+ },
295
+ {
296
+ "describe": "What are two benefits of using declarative customizations over code? Choose 2 answers",
297
+ "answerOptions": [
298
+ {
299
+ "describe": "Declarative customizations automatically update with each Salesforce release.",
300
+ "isRight": true
301
+ },
302
+ {
303
+ "describe": "Declarative customizations cannot generate run time errors.",
304
+ "isRight": false
305
+ },
306
+ {
307
+ "describe": "Declarative customizations automatically generate test classes.",
308
+ "isRight": false
309
+ },
310
+ {
311
+ "describe": "Declarative customizations generally require less maintenance.",
312
+ "isRight": true
313
+ }
314
+ ],
315
+ "hashCode": "1988673323"
316
+ },
317
+ {
318
+ "describe": "When importing and exporting data into Salesforce, Which two statement are true?\nChoose 2 answers",
319
+ "answerOptions": [
320
+ {
321
+ "describe": "Data import wizard is a client application provided by Salesforce.",
322
+ "isRight": false
323
+ },
324
+ {
325
+ "describe": "Developer and Developer Pro sandboxes have different storage limits.",
326
+ "isRight": true
327
+ },
328
+ {
329
+ "describe": "Bulk API can be used to import large data volumes in development environments without bypassing the storage limits.",
330
+ "isRight": true
331
+ },
332
+ {
333
+ "describe": "Bulk API can be used to bypass the storage limits when importing large data volumes in development environments.",
334
+ "isRight": false
335
+ }
336
+ ],
337
+ "hashCode": "1988673294"
338
+ },
339
+ {
340
+ "describe": "Which action may cause triggers to fire?",
341
+ "answerOptions": [
342
+ {
343
+ "describe": "Updates to Feed Items",
344
+ "isRight": true
345
+ },
346
+ {
347
+ "describe": "Cascading delete operations",
348
+ "isRight": false
349
+ },
350
+ {
351
+ "describe": "Renaming or replacing a picklist entry",
352
+ "isRight": false
353
+ },
354
+ {
355
+ "describe": "Changing a user's default division when the transfer division option is checked",
356
+ "isRight": false
357
+ }
358
+ ],
359
+ "hashCode": "1988673258"
360
+ },
361
+ {
362
+ "describe": "A developer is creating a page that allows users to create multiple Opportunities. The deceloper is asked to verify the current user's default Opportunity record type, and set certain default values based on the record type before inserting the record.\nHow can the developer find the current user's default record type?",
363
+ "answerOptions": [
364
+ {
365
+ "describe": "Use the Schema.userInfo.Opportunity.getDefaultRecordType( ) method.",
366
+ "isRight": false
367
+ },
368
+ {
369
+ "describe": "Query the Profile where the ID equals userInfo.getProfileID( ) and then use the profile.Opportunity.getDefaultRecordType( ) method.",
370
+ "isRight": false
371
+ },
372
+ {
373
+ "describe": "Use Opportunity.SObjectType.getDescribe( ).getRecordTypeInfos( ) to get a list of record types, and iterate through them until isDefaultRecordTypeMapping( ) is true.",
374
+ "isRight": true
375
+ },
376
+ {
377
+ "describe": "Create the opportunity and check the opportunity.recordType before inserting, which will have the record ID of the current user's default record type.",
378
+ "isRight": false
379
+ }
380
+ ],
381
+ "hashCode": "1988673171"
382
+ },
383
+ {
384
+ "describe": "A developer receives an error when trying to call a global server-side method using the @remoteAction decorator.\nHow can the developer resolve the error?",
385
+ "answerOptions": [
386
+ {
387
+ "describe": "Change the function signature to be private static.",
388
+ "isRight": false
389
+ },
390
+ {
391
+ "describe": "Add static to the server-side method signature.",
392
+ "isRight": false
393
+ },
394
+ {
395
+ "describe": "Decorate the server-side method with (static=true).",
396
+ "isRight": true
397
+ },
398
+ {
399
+ "describe": "Decorate the server-side method with (static=false).",
400
+ "isRight": false
401
+ }
402
+ ],
403
+ "hashCode": "1988673296"
404
+ },
405
+ {
406
+ "describe": "UC wants Opportunities to no longer be editable when reaching the Closed/Won stage.\nHow should a developer accomplish this?",
407
+ "answerOptions": [
408
+ {
409
+ "describe": "Use a validation rule.",
410
+ "isRight": true
411
+ },
412
+ {
413
+ "describe": "Use the Process Automation settings.",
414
+ "isRight": false
415
+ },
416
+ {
417
+ "describe": "Use Flow Builder.",
418
+ "isRight": false
419
+ },
420
+ {
421
+ "describe": "Mark fields as read-only on the page layout.",
422
+ "isRight": false
423
+ }
424
+ ],
425
+ "hashCode": "1988673329"
426
+ },
427
+ {
428
+ "describe": "A business implemented a gamification plan to encourage its customers to watch some educational videos.\nCustomers can watch videos over several days, and their progress is recorded.Award points are grantedcustomers for all completed videos. When the video is marked as completed in Salesforce, an external webservice must be called so that points can be awarded to the user.\nA developer implemented these requirements in the after update trigger by making a call to an external webservice.However, a Syetem,Cal1outException is occurring.\nWhat should the developer do to fix this error?",
429
+ "answerOptions": [
430
+ {
431
+ "describe": "Move the callout to an asynchronous method with @future(callout=true) annotation.",
432
+ "isRight": true
433
+ },
434
+ {
435
+ "describe": "Replace the after update trigger with a before insert trigger.",
436
+ "isRight": false
437
+ },
438
+ {
439
+ "describe": "Surround the external call with a try-catch block to handle the exception.",
440
+ "isRight": false
441
+ },
442
+ {
443
+ "describe": "Write a REST service to integrate with the external web service.",
444
+ "isRight": false
445
+ }
446
+ ],
447
+ "hashCode": "1988674097"
448
+ },
449
+ {
450
+ "describe": "A Salesforce Administrator is creating a record-triggered flow. When certain criteria are met, the flow must call an Apex method to execute a complex validation involving several types of objects.\nWhen creating the Apex method, which annotation should a developer use to ensure the method can be used within the flow?",
451
+ "answerOptions": [
452
+ {
453
+ "describe": "@future",
454
+ "isRight": false
455
+ },
456
+ {
457
+ "describe": "@AuraEnabled",
458
+ "isRight": false
459
+ },
460
+ {
461
+ "describe": "@InvocableMethod",
462
+ "isRight": true
463
+ },
464
+ {
465
+ "describe": "@RemoteAction",
466
+ "isRight": false
467
+ }
468
+ ],
469
+ "hashCode": "1988674034"
470
+ },
471
+ {
472
+ "describe": "A developer is asked to prevent anyone other than a user with Sales Manager profile from changing the Opportunity Status to Closed Lost If the lost reason is blank.\nWhich automation allows the developer to satisfy this requirement in the most efficient manner?",
473
+ "answerOptions": [
474
+ {
475
+ "describe": "An error condition formula on a validation rule on Opportunity",
476
+ "isRight": true
477
+ },
478
+ {
479
+ "describe": "A record trigger flow on the Opportunity object",
480
+ "isRight": false
481
+ },
482
+ {
483
+ "describe": "An approval process on the Opportunity object",
484
+ "isRight": false
485
+ },
486
+ {
487
+ "describe": "An Apex trigger on the Opportunity object",
488
+ "isRight": false
489
+ }
490
+ ],
491
+ "hashCode": "1988674065"
492
+ },
493
+ {
494
+ "describe": "A developer is tasked with performing a complex validation using Apex as part of advanced business logic. When certain criteria are met for a PurchaseOrder, the developer must throw a custom exception.\nWhat is the correct way for the developer to declare a class that can be used as an exception?",
495
+ "answerOptions": [
496
+ {
497
+ "describe": "public class PurchaseOrderException implements Exception{}",
498
+ "isRight": false
499
+ },
500
+ {
501
+ "describe": "public class PurchaseOrder extends Exception{}",
502
+ "isRight": false
503
+ },
504
+ {
505
+ "describe": "public class PurchaseOrderException extends Exception{)",
506
+ "isRight": true
507
+ },
508
+ {
509
+ "describe": "public class PurchaseOrder implements Exception{}",
510
+ "isRight": false
511
+ }
512
+ ],
513
+ "hashCode": "1988674037"
514
+ },
515
+ {
516
+ "describe": "Universal Containers has created a unique process for tracking container repairs. A custom Field,Status_c has been created within the container_c custom object. A developer is tasked with sending notifications to multiple external systems every time the value of the status_c picklist changes.\nWhich two tools should the developer use to meet the business requirement and ensure low maintenance of the solution?\nChoose 2 answers",
517
+ "answerOptions": [
518
+ {
519
+ "describe": "Record-Triggered flow",
520
+ "isRight": false
521
+ },
522
+ {
523
+ "describe": "Apex trigger",
524
+ "isRight": true
525
+ },
526
+ {
527
+ "describe": "Apex callouts",
528
+ "isRight": false
529
+ },
530
+ {
531
+ "describe": "Platform event",
532
+ "isRight": true
533
+ }
534
+ ],
535
+ "hashCode": "1988674166"
536
+ },
537
+ {
538
+ "describe": "Which three data types can a SOQL query return? Choose 3 answers",
539
+ "answerOptions": [
540
+ {
541
+ "describe": "Long",
542
+ "isRight": false
543
+ },
544
+ {
545
+ "describe": "sObject",
546
+ "isRight": true
547
+ },
548
+ {
549
+ "describe": "List",
550
+ "isRight": true
551
+ },
552
+ {
553
+ "describe": "Integer",
554
+ "isRight": true
555
+ },
556
+ {
557
+ "describe": "Double",
558
+ "isRight": false
559
+ }
560
+ ],
561
+ "hashCode": "1988673109"
562
+ },
563
+ {
564
+ "describe": "What are two use cases for executing Anonymous Apex code?\nChoose 2 answers",
565
+ "answerOptions": [
566
+ {
567
+ "describe": "To add unit test code coverage to an org",
568
+ "isRight": false
569
+ },
570
+ {
571
+ "describe": "To run a batch Apex cass to update all Contacts",
572
+ "isRight": true
573
+ },
574
+ {
575
+ "describe": "To delete 15,000 inactive Accounts in a single transaction after a deployment",
576
+ "isRight": false
577
+ },
578
+ {
579
+ "describe": "To schedule an Apex class to run periodically",
580
+ "isRight": true
581
+ }
582
+ ],
583
+ "hashCode": "1988674072"
584
+ },
585
+ {
586
+ "describe": "A developer creates a custom exception as shown below:\n\npublic class ParityException extends Exception {}\n\nWhat are two ways the developer can fire the exception in Apex?\nChoose 2 answers",
587
+ "answerOptions": [
588
+ {
589
+ "describe": "new ParityException('parity does not match');",
590
+ "isRight": false
591
+ },
592
+ {
593
+ "describe": "throw new ParityException('parity does not match');",
594
+ "isRight": true
595
+ },
596
+ {
597
+ "describe": "throw new ParityException ();",
598
+ "isRight": true
599
+ },
600
+ {
601
+ "describe": "new ParityException();",
602
+ "isRight": false
603
+ }
604
+ ],
605
+ "hashCode": "1988674159"
606
+ },
607
+ {
608
+ "describe": "A developer is asked to create a Visualforce page that lists the contacts owned by the current user. This component will be embedded in a Lightning page.\nWithout writing unnecessary code, which controller should be used for this purpose?",
609
+ "answerOptions": [
610
+ {
611
+ "describe": "Lightning controller",
612
+ "isRight": false
613
+ },
614
+ {
615
+ "describe": "Standard list controller",
616
+ "isRight": false
617
+ },
618
+ {
619
+ "describe": "Standard controller",
620
+ "isRight": true
621
+ },
622
+ {
623
+ "describe": "Custom controller",
624
+ "isRight": false
625
+ }
626
+ ],
627
+ "hashCode": "1995171573"
628
+ },
629
+ {
630
+ "describe": "A credit card company needs to implement the functionality for a service agent to process credit cards. When the customers call in, the service agent must gather many places of information tasked to implement this functionality.\nWhat should the developer use to satisfy this requirement in the most efficient manner?",
631
+ "answerOptions": [
632
+ {
633
+ "describe": "Flow Builder",
634
+ "isRight": false
635
+ },
636
+ {
637
+ "describe": "Lightning Component",
638
+ "isRight": true
639
+ },
640
+ {
641
+ "describe": "Approval Process",
642
+ "isRight": false
643
+ },
644
+ {
645
+ "describe": "Apex Trigger",
646
+ "isRight": false
647
+ }
648
+ ],
649
+ "hashCode": "1988674132"
650
+ },
651
+ {
652
+ "describe": "A developer created a weather app that contains multiple Lightning web components.\nOne of the components, called Toggle, has a toggle for Fahrenheit or Celsius units,Another Temperature, displays the current temperature in the unit selected in the Toggle component,.When a user toggles from Fahrenheit to Celsius or vice versa in the Toggle component, sent to the Temperature component so the temperature can be converted and displayed.\nWhat is the recommended way to accomplish this?",
653
+ "answerOptions": [
654
+ {
655
+ "describe": "The Toggle component should call a method in the Temperature component.",
656
+ "isRight": false
657
+ },
658
+ {
659
+ "describe": "Create a custom event to handle the communication between components.",
660
+ "isRight": true
661
+ },
662
+ {
663
+ "describe": "Use an application event to communicate between the components.",
664
+ "isRight": false
665
+ },
666
+ {
667
+ "describe": "Use Lightning Message Service to communicate between the components.",
668
+ "isRight": false
669
+ }
670
+ ],
671
+ "hashCode": "1988674133"
672
+ },
673
+ {
674
+ "describe": "How does the Lightning Component framework help developers implement solutions faster?",
675
+ "answerOptions": [
676
+ {
677
+ "describe": "By providing an Agile process with default steps",
678
+ "isRight": false
679
+ },
680
+ {
681
+ "describe": "By providing device-awarenedd for mobile and desktops",
682
+ "isRight": true
683
+ },
684
+ {
685
+ "describe": "By providing code review standards and processes",
686
+ "isRight": false
687
+ },
688
+ {
689
+ "describe": "By providing change history and version control",
690
+ "isRight": false
691
+ }
692
+ ],
693
+ "hashCode": "1988673168"
694
+ },
695
+ {
696
+ "describe": "A developer must troubleshoot to pinpoint the causes of performance issues when a custom page loads in their org.\nWhich tool should the developer use to troubleshoot?",
697
+ "answerOptions": [
698
+ {
699
+ "describe": "AppExchange",
700
+ "isRight": false
701
+ },
702
+ {
703
+ "describe": "Developer Console",
704
+ "isRight": true
705
+ },
706
+ {
707
+ "describe": "Visual Studio Code IDE",
708
+ "isRight": false
709
+ },
710
+ {
711
+ "describe": "Setup Menu",
712
+ "isRight": false
713
+ }
714
+ ],
715
+ "hashCode": "1988673325"
716
+ },
717
+ {
718
+ "describe": "Which three web technologies can be integrated into a Visualforce page?",
719
+ "answerOptions": [
720
+ {
721
+ "describe": "JavaScript",
722
+ "isRight": true
723
+ },
724
+ {
725
+ "describe": "HTML",
726
+ "isRight": true
727
+ },
728
+ {
729
+ "describe": "Java",
730
+ "isRight": false
731
+ },
732
+ {
733
+ "describe": "CSS",
734
+ "isRight": true
735
+ },
736
+ {
737
+ "describe": "PHP",
738
+ "isRight": false
739
+ }
740
+ ],
741
+ "hashCode": "1988673078"
742
+ },
743
+ {
744
+ "describe": "A developer has a single custom controller class that works with a Visualforce Wizard to support creating and editing multiple sObjects. The wizard accepts \ndata from user inputs across multiple Visualforce pages and from a parameter on the initial URL.\nWhich three statements are useful inside the unit test to effectively test the custom controller? Choose 3 answers",
745
+ "answerOptions": [
746
+ {
747
+ "describe": "String nextPage = controller.save( ).getUrl( );",
748
+ "isRight": true
749
+ },
750
+ {
751
+ "describe": "Test.setCurrentPage(pageRef);",
752
+ "isRight": true
753
+ },
754
+ {
755
+ "describe": "insert pageRef;",
756
+ "isRight": false
757
+ },
758
+ {
759
+ "describe": "ApexPages.currentPage( ).getParameters( ).put('input', 'TestValue');",
760
+ "isRight": true
761
+ },
762
+ {
763
+ "describe": "public ExtendedController(ApexPages.StandardController cntrl) { }",
764
+ "isRight": false
765
+ }
766
+ ],
767
+ "hashCode": "1988674002"
768
+ },
769
+ {
770
+ "describe": "What are two best practices when it comes to Lightning Web Component events?\nChoose 2 answers",
771
+ "answerOptions": [
772
+ {
773
+ "describe": "Use event.target to communicate data to elements that aren't in the same shadow tree.",
774
+ "isRight": true
775
+ },
776
+ {
777
+ "describe": "Use events configured with bubbles: false and composed: false.",
778
+ "isRight": false
779
+ },
780
+ {
781
+ "describe": "Use CuatomEvent to pass data from a child to a parent component.",
782
+ "isRight": true
783
+ },
784
+ {
785
+ "describe": "Use event.detail to communicate data to elements in the same shadow tree.",
786
+ "isRight": false
787
+ }
788
+ ],
789
+ "hashCode": "1988674103"
790
+ },
791
+ {
792
+ "describe": "Which two characteristics are true for Aura component events? Choose 2 answers",
793
+ "answerOptions": [
794
+ {
795
+ "describe": "The event propagates to every owner in the containment hierarchy.",
796
+ "isRight": true
797
+ },
798
+ {
799
+ "describe": "Only parent components that create subcomponents(either in their markup or programmatically) can handle events.",
800
+ "isRight": false
801
+ },
802
+ {
803
+ "describe": "lf a container component needs to handle a component event, add a handleFacets=\"true\" attribute to its handler.",
804
+ "isRight": true
805
+ },
806
+ {
807
+ "describe": "Depending on the current propagation phase, calling event.stopPropagation( ) may not propagation.",
808
+ "isRight": false
809
+ }
810
+ ],
811
+ "hashCode": "1988673289"
812
+ },
813
+ {
814
+ "describe": "Which three steps allow a custom SVG to be included in a Lightning web component?Choose 3 answers",
815
+ "answerOptions": [
816
+ {
817
+ "describe": "Reference the getter in the HTML template.",
818
+ "isRight": false
819
+ },
820
+ {
821
+ "describe": "Upload the SVG as a static resource.",
822
+ "isRight": true
823
+ },
824
+ {
825
+ "describe": "Import the SVG as a content asset file.",
826
+ "isRight": false
827
+ },
828
+ {
829
+ "describe": "Import the static resource and provide a getter for it in JavaScript.",
830
+ "isRight": true
831
+ },
832
+ {
833
+ "describe": "Reference the import in the HTML template.",
834
+ "isRight": true
835
+ }
836
+ ],
837
+ "hashCode": "1988673076"
838
+ },
839
+ {
840
+ "describe": "Which Salesforce org has a complete duplicate copy of the production org including data and configuration?",
841
+ "answerOptions": [
842
+ {
843
+ "describe": "Full Sandbox",
844
+ "isRight": true
845
+ },
846
+ {
847
+ "describe": "Developer Pro Sandbox",
848
+ "isRight": false
849
+ },
850
+ {
851
+ "describe": "Production",
852
+ "isRight": false
853
+ },
854
+ {
855
+ "describe": "Partial Copy Sandbox",
856
+ "isRight": false
857
+ }
858
+ ],
859
+ "hashCode": "1988673203"
860
+ },
861
+ {
862
+ "describe": "A developer wants to get access to the standard price book in the org while writing a test class that covers an OpportunityLineItem trigger.\nWhich method allows access to the price book?",
863
+ "answerOptions": [
864
+ {
865
+ "describe": "Use Test.getStandardPricebookId() to get the standard price book ID.",
866
+ "isRight": true
867
+ },
868
+ {
869
+ "describe": "Use @TestVisible to allow the test method to see the standard price book.",
870
+ "isRight": false
871
+ },
872
+ {
873
+ "describe": "Use @IsTest(SeeAllData=true) and delete the existing standard price book.",
874
+ "isRight": false
875
+ },
876
+ {
877
+ "describe": "Use Test.loadData() and a static resource to load a standard price book.",
878
+ "isRight": false
879
+ }
880
+ ],
881
+ "hashCode": "1988672302"
882
+ },
883
+ {
884
+ "describe": "Which Salesforce org has a complete duplicate copy of the production org including data and configuration?",
885
+ "answerOptions": [
886
+ {
887
+ "describe": "Developer Pro Sandbox",
888
+ "isRight": false
889
+ },
890
+ {
891
+ "describe": "Production",
892
+ "isRight": false
893
+ },
894
+ {
895
+ "describe": "Partial Copy Sandbox",
896
+ "isRight": false
897
+ },
898
+ {
899
+ "describe": "Full Sandbox",
900
+ "isRight": true
901
+ }
902
+ ],
903
+ "hashCode": "1988673112"
904
+ },
905
+ {
906
+ "describe": "A development team wants to use a deployment script to automatically deploy to a sandbox during their deployment cycles.\nWhich tool should they use to deploy to the sandbox?",
907
+ "answerOptions": [
908
+ {
909
+ "describe": "Ant Migration Tool",
910
+ "isRight": true
911
+ },
912
+ {
913
+ "describe": "Developer Console",
914
+ "isRight": false
915
+ },
916
+ {
917
+ "describe": "VSCode",
918
+ "isRight": false
919
+ },
920
+ {
921
+ "describe": "Change Sets",
922
+ "isRight": false
923
+ }
924
+ ],
925
+ "hashCode": "1988673135"
926
+ },
927
+ {
928
+ "describe": "What should a developer use to script the deployment and unit test execution as part of continuous Integration?",
929
+ "answerOptions": [
930
+ {
931
+ "describe": "Execute Anonymous",
932
+ "isRight": false
933
+ },
934
+ {
935
+ "describe": "VS Code",
936
+ "isRight": false
937
+ },
938
+ {
939
+ "describe": "Developer Console",
940
+ "isRight": false
941
+ },
942
+ {
943
+ "describe": "Salesforce CLI",
944
+ "isRight": true
945
+ }
946
+ ],
947
+ "hashCode": "1988674160"
948
+ },
949
+ {
950
+ "describe": "What should a developer do to check the code coverage of a class after running all tests?",
951
+ "answerOptions": [
952
+ {
953
+ "describe": "Select and run the class on the Apex Test Execution page in the Developer Console.",
954
+ "isRight": false
955
+ },
956
+ {
957
+ "describe": "View the Code Coverage column in the list view on the Apex Classes page.",
958
+ "isRight": false
959
+ },
960
+ {
961
+ "describe": "View the Code Coverage percentage for the class using the Overall Code Coverage panel in the Developer Console Tests tab.",
962
+ "isRight": true
963
+ },
964
+ {
965
+ "describe": "View the Class Test Percentage tab on the Apex Class list view in Salesforce Setup.",
966
+ "isRight": false
967
+ }
968
+ ],
969
+ "hashCode": "1988673327"
970
+ },
971
+ {
972
+ "describe": "While working in a sandbox an Apex test fails when run in the Test Framework, but the Apex test logic succeeds with no exceptions or errors when run in the Developer Console.\n\nWhy did the method fail in the sandbox test framework but succeed in the Developer Console?",
973
+ "answerOptions": [
974
+ {
975
+ "describe": "The test method does not use System.runAs to execute as a specific user. ",
976
+ "isRight": false
977
+ },
978
+ {
979
+ "describe": "The test method is calling an @future method.",
980
+ "isRight": false
981
+ },
982
+ {
983
+ "describe": "The test method has a syntax error in the code. ",
984
+ "isRight": false
985
+ },
986
+ {
987
+ "describe": "The test method relies on exiting data in the sandbox.",
988
+ "isRight": true
989
+ }
990
+ ],
991
+ "hashCode": "1988673232"
992
+ },
993
+ {
994
+ "describe": "A developer observes that an Apex test method fails in the Sandbox. To identify the issue, the developer copies the code inside the test method and execute it \nvia the Execute Anonymous tool in the Developer Console. The code then executes with no exceptions or errors.\nWhy did the test method fail in the sandbox and pass in the Developer Console?",
995
+ "answerOptions": [
996
+ {
997
+ "describe": "The test method does not use System.runAs to execute as a specific user.",
998
+ "isRight": false
999
+ },
1000
+ {
1001
+ "describe": "A developer needs to provide way to mass edit, update and delete records from list view, which two ways can this be achieved? Choose 2",
1002
+ "isRight": false
1003
+ },
1004
+ {
1005
+ "describe": "The test method relies on existing data in the sandbox.",
1006
+ "isRight": true
1007
+ },
1008
+ {
1009
+ "describe": "The test method has syntax error in the code.",
1010
+ "isRight": false
1011
+ }
1012
+ ],
1013
+ "hashCode": "1988673074"
1014
+ },
1015
+ {
1016
+ "describe": "The Account object in an organization has a master detail relationship to a child object called Branch. The following automations exist:\nRollup summary fields.\nCustom validation rules\nDuplicate rules\nA developer created a trigger on the Account object.\nWhat two things should the developer consider while testing the trigger code?\nChoose 2 answers",
1017
+ "answerOptions": [
1018
+ {
1019
+ "describe": "Rollup summary fields can cause the parent record to go through Save.",
1020
+ "isRight": true
1021
+ },
1022
+ {
1023
+ "describe": "The trigger may fire multiple times during a transaction.",
1024
+ "isRight": true
1025
+ },
1026
+ {
1027
+ "describe": "Duplicate rules are executed once all DML operations commit to the database.",
1028
+ "isRight": false
1029
+ },
1030
+ {
1031
+ "describe": "The validation rules will cause the trigger to fire again.",
1032
+ "isRight": false
1033
+ }
1034
+ ],
1035
+ "hashCode": "1988674104"
1036
+ },
1037
+ {
1038
+ "describe": "Where are two locations a developer can look to find information about the status of asynchronous or future calls? Choose 2 answers",
1039
+ "answerOptions": [
1040
+ {
1041
+ "describe": "Time-Based Workflow Monitor",
1042
+ "isRight": false
1043
+ },
1044
+ {
1045
+ "describe": "Apex Flex Queue",
1046
+ "isRight": true
1047
+ },
1048
+ {
1049
+ "describe": "Apex Jobs",
1050
+ "isRight": true
1051
+ },
1052
+ {
1053
+ "describe": "Paused Flow Interviews component",
1054
+ "isRight": false
1055
+ }
1056
+ ],
1057
+ "hashCode": "1988672363"
1058
+ },
1059
+ {
1060
+ "describe": "Which three statements are true regarding custom exceptions in Apex? Choose 3 answers",
1061
+ "answerOptions": [
1062
+ {
1063
+ "describe": "A custom exception class cannot contain member variables or methods.",
1064
+ "isRight": false
1065
+ },
1066
+ {
1067
+ "describe": "A custom exception class can implement one or many interfaces.",
1068
+ "isRight": true
1069
+ },
1070
+ {
1071
+ "describe": "A custom exception class name must be end with \"Exception\".",
1072
+ "isRight": true
1073
+ },
1074
+ {
1075
+ "describe": "A custom exception class must extend the system Exception class.",
1076
+ "isRight": true
1077
+ },
1078
+ {
1079
+ "describe": "A custom exception class can extend other classes besides the Exception class.",
1080
+ "isRight": false
1081
+ }
1082
+ ],
1083
+ "hashCode": "1988672301"
1084
+ },
1085
+ {
1086
+ "describe": "Which three statements are accurate about debug logs?\nChoose 3 answers",
1087
+ "answerOptions": [
1088
+ {
1089
+ "describe": "Debug log levels are cumulative; where FINE log level includes all events logged at the DEBUG, INFO,WARN,and ERROR levels.",
1090
+ "isRight": false
1091
+ },
1092
+ {
1093
+ "describe": "The maximum size of a debug log is 5 MB.",
1094
+ "isRight": false
1095
+ },
1096
+ {
1097
+ "describe": "Only the 20 most recent debug logs for a user are kept.",
1098
+ "isRight": true
1099
+ },
1100
+ {
1101
+ "describe": "Debug logs can be set for specific users, classes, and triggers.",
1102
+ "isRight": true
1103
+ },
1104
+ {
1105
+ "describe": "System debug logs are retained for 24 hours.",
1106
+ "isRight": true
1107
+ }
1108
+ ],
1109
+ "hashCode": "1988674098"
1110
+ },
1111
+ {
1112
+ "describe": "For which three items can a trace flag be configured? Choose 3 answers",
1113
+ "answerOptions": [
1114
+ {
1115
+ "describe": "Flow",
1116
+ "isRight": false
1117
+ },
1118
+ {
1119
+ "describe": "Visualforce",
1120
+ "isRight": false
1121
+ },
1122
+ {
1123
+ "describe": "Apex Class",
1124
+ "isRight": true
1125
+ },
1126
+ {
1127
+ "describe": "User",
1128
+ "isRight": true
1129
+ },
1130
+ {
1131
+ "describe": "Apex Trigger",
1132
+ "isRight": true
1133
+ }
1134
+ ],
1135
+ "hashCode": "1988673196"
1136
+ },
1137
+ {
1138
+ "describe": "A development team wants to use a deployment script to automatically deploy to a sandbox during their development cycles.\n\nWhich two tools can they use to run a script that deploys to a sandbox? Choose 2 answers",
1139
+ "answerOptions": [
1140
+ {
1141
+ "describe": "Change Sets",
1142
+ "isRight": false
1143
+ },
1144
+ {
1145
+ "describe": "SFDX CLI",
1146
+ "isRight": true
1147
+ },
1148
+ {
1149
+ "describe": "Developer Console",
1150
+ "isRight": false
1151
+ },
1152
+ {
1153
+ "describe": "Ant Migration Tool",
1154
+ "isRight": true
1155
+ }
1156
+ ],
1157
+ "hashCode": "1988673229"
1158
+ },
1159
+ {
1160
+ "describe": "A developer must create a CreditCardPayment class that provides an implementation of an existing Payment class.\npublic virtual class Payment{\n public virtual void makePayment(Decimal amount) { /*implementation*/}\n}\nWhich is the correct implementation?",
1161
+ "answerOptions": [
1162
+ {
1163
+ "describe": "public class CreditCardPayment extends Payment{\n public virtual void makePayment(Decimal amount){/*implementation*/}\n}",
1164
+ "isRight": false
1165
+ },
1166
+ {
1167
+ "describe": "public class CreditCardPayment extends Payment{\n public override void makePayment(Decimal amount){/*implementation*/}\n}",
1168
+ "isRight": true
1169
+ },
1170
+ {
1171
+ "describe": "public class CreditCardPayment implements Payment{\n public override void makePayment(Decimal amount){/*implementation*/}\n}",
1172
+ "isRight": false
1173
+ },
1174
+ {
1175
+ "describe": "public class CreditCardPayment implements Payment{\n public virtual void makePayment(Decimal amount){/*implementation*/}\n}",
1176
+ "isRight": false
1177
+ }
1178
+ ],
1179
+ "hashCode": "1988674197"
1180
+ },
1181
+ {
1182
+ "describe": "<p>What is the result of the following code snippet?</p><p><br/></p><p>public void doWork(Account acct){</p><p>&nbsp; &nbsp; &nbsp; for (Integer i = 0; i &lt;= 200; i++){</p><p>&nbsp; &nbsp; &nbsp; &nbsp; insert acct;</p><p>&nbsp; &nbsp; &nbsp; }</p><p>&nbsp;}</p><p><br/></p>",
1183
+ "answerOptions": [
1184
+ {
1185
+ "describe": "<p>0 Accounts are inserted.</p>",
1186
+ "isRight": true
1187
+ },
1188
+ {
1189
+ "describe": "<p>1 Account is inserted.</p>",
1190
+ "isRight": false
1191
+ },
1192
+ {
1193
+ "describe": "<p>200 Accounts are inserted.</p>",
1194
+ "isRight": false
1195
+ },
1196
+ {
1197
+ "describe": "<p>201 Acconts are inerted.</p>",
1198
+ "isRight": false
1199
+ }
1200
+ ],
1201
+ "hashCode": "1988674282"
1202
+ },
1203
+ {
1204
+ "describe": "<p>The orderHelper class is a utility class that contains business logic for processing orders. Consider the code snippet:</p><p><br/></p><p>public class without sharing OrderHelper{</p><p>//code implementation.</p><p>}</p><p><br/></p><p>A developer needs to create a constant named DELIVERY_MULTIPLIER with a value of 4.15, The valua of instant should not change at any time in the code.</p><p>How should the developer declare the DELIVERY_MULTIPLIER Constant to meet the business objectives?</p><p><br/></p>",
1205
+ "answerOptions": [
1206
+ {
1207
+ "describe": "<p>static decimal DELIVERY MULTIPLIER =4.15;</p>",
1208
+ "isRight": false
1209
+ },
1210
+ {
1211
+ "describe": "<p>static final decimal DELIVERY MULTIPLIER =4.15;</p>",
1212
+ "isRight": true
1213
+ },
1214
+ {
1215
+ "describe": "<p>decimal DELIVERY MULTIPLIER =4.15;</p>",
1216
+ "isRight": false
1217
+ },
1218
+ {
1219
+ "describe": "<p>constant decimal DELIVERY MULTIPLIER =4.15;</p>",
1220
+ "isRight": false
1221
+ }
1222
+ ],
1223
+ "hashCode": "1988675000"
1224
+ },
1225
+ {
1226
+ "describe": "A developer must create a DrawList class that provides capabilities defined in the Sortable and Drawable interfaces.\nPublic interface Sortable{\nvoid sort();\n}\nPublic interface Drawable{\nvoid draw();\n}\nWhich is the correct implementation?",
1227
+ "answerOptions": [
1228
+ {
1229
+ "describe": "public class DrawList implements Sortable, implements Drawable{\n\n public void sort() { /*implementation*/ }\n\n public void draw(){ /*implementation*/ }\n\n}",
1230
+ "isRight": false
1231
+ },
1232
+ {
1233
+ "describe": "public class DrawList extends Sortable, Drawable{\n public void sort() { /*implementation*/ }\n public void draw(){ /*implementation*/ }\n}",
1234
+ "isRight": false
1235
+ },
1236
+ {
1237
+ "describe": "public class DrawList extends Sortable, extends Drawable{\n public void sort() { /*implementation*/ }\n public void draw(){ /*implementation*/ }\n}",
1238
+ "isRight": false
1239
+ },
1240
+ {
1241
+ "describe": "public class DrawList implements Sortable, Drawable{\n public void sort() { /*implementation*/ }\n public void draw(){ /*implementation*/ }\n}",
1242
+ "isRight": true
1243
+ }
1244
+ ],
1245
+ "hashCode": "1988674219"
1246
+ },
1247
+ {
1248
+ "describe": "A developer needs to prevent the creation of Request records when certain exist in the system. A RequestLogic class exists that checks the conditions.\nWhat is the correct implementation?",
1249
+ "answerOptions": [
1250
+ {
1251
+ "describe": "trigger RequestTrigger on Request (before insert){\nRequestLogic.validateRecords(trigger.new);\n}",
1252
+ "isRight": true
1253
+ },
1254
+ {
1255
+ "describe": "trigger RequestTrigger on Request (after insert){\nRequestLogic.validateRecords(trigger.new);\n}",
1256
+ "isRight": false
1257
+ },
1258
+ {
1259
+ "describe": "trigger RequestTrigger on Request (after insert){\nif(RequestLogic.isValid(Request))\nrequest.addError('Your request cannot be created at this time.');\n}",
1260
+ "isRight": false
1261
+ },
1262
+ {
1263
+ "describe": "trigger RequestTrigger on Request (before insert){\nif(RequestLogic.isValid(Request))\nrequest.addError('Your request cannot be created at this time.');\n}",
1264
+ "isRight": false
1265
+ }
1266
+ ],
1267
+ "hashCode": "1988674222"
1268
+ },
1269
+ {
1270
+ "describe": "<p>A Next Best Action strategy uses an Enhance Element that invokes an Apex method to determine a discount level for a Contact, based on a number of factors.\nWhat is the correct definition of the Apex method?</p>",
1271
+ "answerOptions": [
1272
+ {
1273
+ "describe": "<p>&nbsp;@InvocableMethod</p><p>&nbsp;global static List&lt;List&lt;Recommendation&gt;&gt;</p><p>&nbsp;getLevel (List&lt;ContactWrapper&gt; input)</p><p>&nbsp;{ /*implementation*/ }</p><p><br/></p>",
1274
+ "isRight": true
1275
+ },
1276
+ {
1277
+ "describe": "<p>&nbsp;@InvocableMethod</p><p>&nbsp;global List&lt;List&lt;Recommendation&gt;&gt;</p><p>&nbsp;getLevel (List&lt;ContactWrapper&gt; input)</p><p>&nbsp;{ /*implementation*/ }</p><p><br/></p>",
1278
+ "isRight": false
1279
+ },
1280
+ {
1281
+ "describe": "<p>&nbsp;@InvocableMethod</p><p>&nbsp;global Recommendation getLevel (ContactWrapper input)</p><p>&nbsp;{ /*implementation*/ }</p><p><br/></p>",
1282
+ "isRight": false
1283
+ },
1284
+ {
1285
+ "describe": "<p>&nbsp;@InvocableMethod</p><p>&nbsp;global static ListRecommendation</p><p>&nbsp;getLevel (List&lt;ContactWrapper&gt; input)</p><p>&nbsp;{ /*implementation*/ }</p><p><br/></p>",
1286
+ "isRight": false
1287
+ }
1288
+ ],
1289
+ "hashCode": "1988674290"
1290
+ },
1291
+ {
1292
+ "describe": "<p>What should a developer use to obtain the Id and Name of all the Leads, Accounts, and Contacts that have the company name &quot;UC&quot;?</p>",
1293
+ "answerOptions": [
1294
+ {
1295
+ "describe": "<p>SELECT lead(id, name), account(id, name), contact(id, name) FROM Lead, Account, Contact WHERE Name = &#39;UC&#39;</p>",
1296
+ "isRight": false
1297
+ },
1298
+ {
1299
+ "describe": "<p>FIND &#39;UC&#39; IN Name Fields RETURNING lead (id, name), account (id, name), contact (id, name)</p>",
1300
+ "isRight": true
1301
+ },
1302
+ {
1303
+ "describe": "<p>SELECT Lead.id, Lead.Name, Account.Id, Account.Name, Contact.Id, Contact.Name FROM Lead, Account, Contact WHERE CompanyName = &#39;UC&#39;</p>",
1304
+ "isRight": false
1305
+ },
1306
+ {
1307
+ "describe": "<p>FIND &#39;UC&#39; IN CompanyName Fields RETURNING lead(id, name), account(id, name), contact(id, name)</p>",
1308
+ "isRight": false
1309
+ }
1310
+ ],
1311
+ "hashCode": "1988674969"
1312
+ },
1313
+ {
1314
+ "describe": "<p>Management asked for opportunities to be automatically created for accounts with annual revenue greater then $1000000. A developer created the following trigger on the Account object to satisfy this requirement.</p><p>For(Account a : Trigger.new) {</p><p>&nbsp; &nbsp; &nbsp; if(a.AnnualRevenue &gt; 1000000) {</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; List&lt;Opportunity&gt; oppList = [SELECT Id FROM Opportunity WHERE accountId = :a.Id];</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(oppList.size() ==0) {</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Opportunity oppty = new Opportunity(Name = a.Name, StageName = &#39;Prospecting&#39;, CloseDate = system.today().addDays(30);</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; insert oppty;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</p><p>&nbsp; &nbsp; }</p><p>}</p><p>Users are able to update the account records via the UI and can see an opportunity created for high annual revenue accounts. However, when the administrator tries to upload a list of 179 accounts using Data Loader, if fails with System.Exception errors.</p><p>Which two actions should the developer take to fix the code segment shown above? Choose 2 answers</p><p><br/></p>",
1315
+ "answerOptions": [
1316
+ {
1317
+ "describe": "<p>Move the DML that saves opportunities outside the for loop.</p>",
1318
+ "isRight": true
1319
+ },
1320
+ {
1321
+ "describe": "<p>Use Database.query to query the opportunities.</p>",
1322
+ "isRight": false
1323
+ },
1324
+ {
1325
+ "describe": "<p>Check if all the required fields for Opportunity are being added on creation.</p>",
1326
+ "isRight": false
1327
+ },
1328
+ {
1329
+ "describe": "<p>Query for existing opportunities outside the for loop.</p>",
1330
+ "isRight": true
1331
+ }
1332
+ ],
1333
+ "hashCode": "1988674996"
1334
+ },
1335
+ {
1336
+ "describe": "<p>Which code in a Visualforce page and/or cotroller might present a security vulnerability?</p>",
1337
+ "answerOptions": [
1338
+ {
1339
+ "describe": "<p>&lt;apex : outputText escape=&quot;false&quot; value= &quot;{ !$CurrentPage . parameters .userInput } &quot; /&gt;</p>",
1340
+ "isRight": true
1341
+ },
1342
+ {
1343
+ "describe": "<p>&lt;apex : outputField value=&quot;{ !ctrl . userInput }&quot; / &gt;</p>",
1344
+ "isRight": false
1345
+ },
1346
+ {
1347
+ "describe": "<p>&lt;apex : outputText value=&quot;{ !$CurrentPage . parameters . userInput } &quot; /&gt;</p>",
1348
+ "isRight": false
1349
+ },
1350
+ {
1351
+ "describe": "<p>&lt;apex : outputField escape=&quot;false&quot; value=&quot;{ !ctrl . userInput }&quot; /&gt;</p>",
1352
+ "isRight": false
1353
+ }
1354
+ ],
1355
+ "hashCode": "1988674283"
1356
+ },
1357
+ {
1358
+ "describe": "<p>Which code displays the contents of a Visualforce page as a PDF?</p>",
1359
+ "answerOptions": [
1360
+ {
1361
+ "describe": "<p>&lt;apex:page renderAs=&quot;pdf&quot;&gt;</p>",
1362
+ "isRight": true
1363
+ },
1364
+ {
1365
+ "describe": "<p>&lt;apex:page contentType=&quot;pdf&quot;&gt;</p>",
1366
+ "isRight": false
1367
+ },
1368
+ {
1369
+ "describe": "<p>&lt;apex:page contentType=&quot;application/pdf&quot;&gt;</p>",
1370
+ "isRight": false
1371
+ },
1372
+ {
1373
+ "describe": "<p>&lt;apex:page renderAs=&quot;application/pdf&quot;&gt;</p>",
1374
+ "isRight": false
1375
+ }
1376
+ ],
1377
+ "hashCode": "1988674193"
1378
+ },
1379
+ {
1380
+ "describe": "<p>A developer has a Visualforce page and custom controller to save Account records. The developer wants to display any validation rule violations to the user.\n\nHow can the developer make sure that validation rule violations are displayed?</p>",
1381
+ "answerOptions": [
1382
+ {
1383
+ "describe": "<p>Include &lt;apex:messages&gt; on the Visualforce page.</p>",
1384
+ "isRight": true
1385
+ },
1386
+ {
1387
+ "describe": "<p>Perform the DML using the Database.upsert( ) method.</p>",
1388
+ "isRight": false
1389
+ },
1390
+ {
1391
+ "describe": "<p>Add custom controller attributes to display the message.</p>",
1392
+ "isRight": false
1393
+ },
1394
+ {
1395
+ "describe": "<p>Use a try/catch with a custom exception class.</p>",
1396
+ "isRight": false
1397
+ }
1398
+ ],
1399
+ "hashCode": "1988674196"
1400
+ },
1401
+ {
1402
+ "describe": "<p>Universal Containers wants a list button to display a Visualforce page that allows users to edit multiple records.\nWhich Visualforce feature supports this requirement?</p>",
1403
+ "answerOptions": [
1404
+ {
1405
+ "describe": "<p>recordSetVar page attribute</p>",
1406
+ "isRight": true
1407
+ },
1408
+ {
1409
+ "describe": "<p>&lt;apex:listButton&gt; tag</p>",
1410
+ "isRight": false
1411
+ },
1412
+ {
1413
+ "describe": "<p>custom controller</p>",
1414
+ "isRight": false
1415
+ },
1416
+ {
1417
+ "describe": "<p>controller extension</p>",
1418
+ "isRight": false
1419
+ }
1420
+ ],
1421
+ "hashCode": "1988674226"
1422
+ },
1423
+ {
1424
+ "describe": "<p>Which three code lines are required to create a Lightning component on a Visualforce page? Choose 3 answers</p>",
1425
+ "answerOptions": [
1426
+ {
1427
+ "describe": "<p>$lightning.useComponent</p>",
1428
+ "isRight": false
1429
+ },
1430
+ {
1431
+ "describe": "<p>&lt;apex:slds/&gt;</p>",
1432
+ "isRight": false
1433
+ },
1434
+ {
1435
+ "describe": "<p>$lightning.use</p>",
1436
+ "isRight": true
1437
+ },
1438
+ {
1439
+ "describe": "<p>&lt;apex:includeLightning/&gt;</p>",
1440
+ "isRight": true
1441
+ },
1442
+ {
1443
+ "describe": "<p>$Lightning.createComponent</p>",
1444
+ "isRight": true
1445
+ }
1446
+ ],
1447
+ "hashCode": "1988674968"
1448
+ },
1449
+ {
1450
+ "describe": "<p>A developer created a Lightning web component called statusComponent to be inserted into the Account record page.\nWhich two things should the developer do to make this component available? Choose 2 answers</p>",
1451
+ "answerOptions": [
1452
+ {
1453
+ "describe": "<p>Add &lt;isExposed&gt;true&lt;/isExposed&gt; to the statusComponent.js-meta.xml file.</p>",
1454
+ "isRight": true
1455
+ },
1456
+ {
1457
+ "describe": "<p>Add &lt;target&gt;lightning__RecordPage&lt;/target&gt; to the statusComponent.js-meta.xml file.</p>",
1458
+ "isRight": true
1459
+ },
1460
+ {
1461
+ "describe": "<p>Add &lt;masterLabel&gt;Account&lt;/masterLabel&gt; to the statusComponent.js-meta.xml file.</p>",
1462
+ "isRight": false
1463
+ },
1464
+ {
1465
+ "describe": "<p>Add &lt;target&gt;lightning__RecordPage&lt;/target&gt; to the statusComponent.js file.</p>",
1466
+ "isRight": false
1467
+ }
1468
+ ],
1469
+ "hashCode": "1988675025"
1470
+ }
1471
+ ],
1472
+ "hashCode": "525179575"
1473
+ }