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

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,1469 @@
1
+ {
2
+ "title": "Dev1模拟卷B",
3
+ "category": "Dev1-自由部落侠",
4
+ "questions": [
5
+ {
6
+ "describe": "Which aspect of Apex programming is limited due to multitenancy?",
7
+ "answerOptions": [
8
+ {
9
+ "describe": "The number of methods in an Apex class",
10
+ "isRight": false
11
+ },
12
+ {
13
+ "describe": "The number of records returned from database queries",
14
+ "isRight": true
15
+ },
16
+ {
17
+ "describe": "The number of active Apex classes",
18
+ "isRight": false
19
+ },
20
+ {
21
+ "describe": "The number of records processed in a loop.",
22
+ "isRight": false
23
+ }
24
+ ],
25
+ "hashCode": "1988673041"
26
+ },
27
+ {
28
+ "describe": "What is a benefit of developing applications in a multi-tenant environment?",
29
+ "answerOptions": [
30
+ {
31
+ "describe": "Default out-of-the-box configuration",
32
+ "isRight": true
33
+ },
34
+ {
35
+ "describe": "Access to predefined computing resources",
36
+ "isRight": false
37
+ },
38
+ {
39
+ "describe": "Unlimited processing power and memory",
40
+ "isRight": false
41
+ },
42
+ {
43
+ "describe": "Enforced best practices for development",
44
+ "isRight": false
45
+ }
46
+ ],
47
+ "hashCode": "1988673199"
48
+ },
49
+ {
50
+ "describe": "In the Lightning UI, where should a developer look to find information about a Paused Flow Interview?",
51
+ "answerOptions": [
52
+ {
53
+ "describe": "In the system debug log by filtering on Paused Flow Interview",
54
+ "isRight": false
55
+ },
56
+ {
57
+ "describe": "On the Paused Flow Interviews related list for a given record",
58
+ "isRight": false
59
+ },
60
+ {
61
+ "describe": "On the Paused Flow Interviews component on the Home page",
62
+ "isRight": true
63
+ },
64
+ {
65
+ "describe": "In the Paused Interviews section of the Apex Flex Queue",
66
+ "isRight": false
67
+ }
68
+ ],
69
+ "hashCode": "1988673326"
70
+ },
71
+ {
72
+ "describe": "An org tracks customer orders on an Order object and the line items of an Order on the Line Item object. The Line Item object has a \nMaster/Detail relationship to the Order object. A developer has requirement to calculate the order amount on an Order and the line amount \non each Line Item based on quantity and price.\nWhat is the correct implementation?",
73
+ "answerOptions": [
74
+ {
75
+ "describe": "Write a process an the Line Item that calculated the item amount and order amount and updates the fields on the Line Item and the Order.",
76
+ "isRight": false
77
+ },
78
+ {
79
+ "describe": "Implement the line amount as a numeric formula field and the order amount as a roll-up summary field.",
80
+ "isRight": true
81
+ },
82
+ {
83
+ "describe": "Implement the line amount as a currency field and the order amount as SUM formula field.",
84
+ "isRight": false
85
+ },
86
+ {
87
+ "describe": "Write a single before trigger on the Line Item that calculates the item amount and updates the order amount on the Order.",
88
+ "isRight": false
89
+ }
90
+ ],
91
+ "hashCode": "1988673045"
92
+ },
93
+ {
94
+ "describe": "Which process automation should be used to send an outbound message without using Apex code?",
95
+ "answerOptions": [
96
+ {
97
+ "describe": "Flow Builder",
98
+ "isRight": false
99
+ },
100
+ {
101
+ "describe": "Process Builder",
102
+ "isRight": false
103
+ },
104
+ {
105
+ "describe": "Approval Process",
106
+ "isRight": false
107
+ },
108
+ {
109
+ "describe": "Workflow Rule",
110
+ "isRight": true
111
+ }
112
+ ],
113
+ "hashCode": "1988672329"
114
+ },
115
+ {
116
+ "describe": "A large corporation stores Orders and Line Items in Salesforce for different lines of business. Users are allowed see Orders across the entire organization,but,for security purposes, should only be able to see the Line Orders in their line of business.\nWhich type of relationship should be used between Line Items and Orders?",
117
+ "answerOptions": [
118
+ {
119
+ "describe": "Master-Detail",
120
+ "isRight": true
121
+ },
122
+ {
123
+ "describe": "Lookup",
124
+ "isRight": false
125
+ },
126
+ {
127
+ "describe": "Direct Lookup",
128
+ "isRight": false
129
+ },
130
+ {
131
+ "describe": "Indirect Lookup",
132
+ "isRight": false
133
+ }
134
+ ],
135
+ "hashCode": "1988674161"
136
+ },
137
+ {
138
+ "describe": "Universal Containers stores Orders and Line Items in Salesforce. For security reasons, financial representatives are allowed to see information\non the Order such as order amount, but they are not allowed to see the Line Item on the Order.\nWhich type of relationship should be user?",
139
+ "answerOptions": [
140
+ {
141
+ "describe": "Indirect Lookup",
142
+ "isRight": false
143
+ },
144
+ {
145
+ "describe": "Lookup",
146
+ "isRight": true
147
+ },
148
+ {
149
+ "describe": "Master-Detail",
150
+ "isRight": false
151
+ },
152
+ {
153
+ "describe": "Direct Lookup",
154
+ "isRight": false
155
+ }
156
+ ],
157
+ "hashCode": "1988672368"
158
+ },
159
+ {
160
+ "describe": "A developer wants to import 500 Opportunity records into a sandbox.\nWhy should the developer choose to use Data Loader instead of Data Import Wizard?",
161
+ "answerOptions": [
162
+ {
163
+ "describe": "Data Import Wizard does not support Opportunities.",
164
+ "isRight": true
165
+ },
166
+ {
167
+ "describe": "Data Import Wizard can not import all 500 records.",
168
+ "isRight": false
169
+ },
170
+ {
171
+ "describe": "Data Loader runs from the developer's browser.",
172
+ "isRight": false
173
+ },
174
+ {
175
+ "describe": "Data Loader automatically relates Opportunities to Accounts.",
176
+ "isRight": false
177
+ }
178
+ ],
179
+ "hashCode": "1988673138"
180
+ },
181
+ {
182
+ "describe": "A developer needs to join data received from an integration with an external system with parent records in Salesforce. The data set does not contain the Salesforce IDs of the parent records, but it does have a foreign key attribute that can be used to identify the parent.\n\nWhich action will allow the developer to relate records in the data model without knowing the salesforce ID?",
183
+ "answerOptions": [
184
+ {
185
+ "describe": "Create and populate a custom field on the parent object marked as an External ID.",
186
+ "isRight": true
187
+ },
188
+ {
189
+ "describe": "Create a custom field on the child object of type Lookup. ",
190
+ "isRight": false
191
+ },
192
+ {
193
+ "describe": "Create a custom field on the child object of type External Relationship.",
194
+ "isRight": false
195
+ },
196
+ {
197
+ "describe": "Create and populate a custom field on the parent object marked as Unique.",
198
+ "isRight": false
199
+ }
200
+ ],
201
+ "hashCode": "1988673292"
202
+ },
203
+ {
204
+ "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?",
205
+ "answerOptions": [
206
+ {
207
+ "describe": "Lookup field from Engineering_Support_c to Opportunity",
208
+ "isRight": false
209
+ },
210
+ {
211
+ "describe": "Master-detail field from EngineeringSupport_c to Opportunity",
212
+ "isRight": true
213
+ },
214
+ {
215
+ "describe": "Lookup field from Opportunity to Engineering Support_c",
216
+ "isRight": false
217
+ },
218
+ {
219
+ "describe": "Master-detail field from Opportunity to Engineering Support_c",
220
+ "isRight": false
221
+ }
222
+ ],
223
+ "hashCode": "1988674126"
224
+ },
225
+ {
226
+ "describe": "UC has implemented an order management application. Each Order can have one or more Order Line items. The order Line object is related to the Order via a master-detail relationship. For each Order Line item, the total price is calculated by multiplying the Order Line item price with the quantity ordered.\nWhat is the best practice to get the sum of all Order Line item totals on the Order record?",
227
+ "answerOptions": [
228
+ {
229
+ "describe": "Roll-up summary field",
230
+ "isRight": true
231
+ },
232
+ {
233
+ "describe": "Quick action",
234
+ "isRight": false
235
+ },
236
+ {
237
+ "describe": "Apex trigger",
238
+ "isRight": false
239
+ },
240
+ {
241
+ "describe": "Formula field",
242
+ "isRight": false
243
+ }
244
+ ],
245
+ "hashCode": "1988674071"
246
+ },
247
+ {
248
+ "describe": "Universal Containers decides to use exclusively declarative development to build out a new Salesforce application.\nWhich three options should be used to build out the database layer for the application? Choose 3 answers",
249
+ "answerOptions": [
250
+ {
251
+ "describe": "Relationships",
252
+ "isRight": true
253
+ },
254
+ {
255
+ "describe": "Flows",
256
+ "isRight": false
257
+ },
258
+ {
259
+ "describe": "Triggers",
260
+ "isRight": false
261
+ },
262
+ {
263
+ "describe": "Custom Objects and Fields",
264
+ "isRight": true
265
+ },
266
+ {
267
+ "describe": "Roll-up Summaries",
268
+ "isRight": true
269
+ }
270
+ ],
271
+ "hashCode": "1988673079"
272
+ },
273
+ {
274
+ "describe": "In terms of the MVC paradigm,what are two advantages of lmplementing the viewlayer of application using Lightning Web Component-based development over Visualforce?\nChoose 2 answers",
275
+ "answerOptions": [
276
+ {
277
+ "describe": "Built-in standard and custom set controllers",
278
+ "isRight": false
279
+ },
280
+ {
281
+ "describe": "Log capturing via the Debug Logs Setup page",
282
+ "isRight": false
283
+ },
284
+ {
285
+ "describe": "Self-contained and reusable units of an application",
286
+ "isRight": true
287
+ },
288
+ {
289
+ "describe": "Rich component ecosystem",
290
+ "isRight": true
291
+ }
292
+ ],
293
+ "hashCode": "1988674130"
294
+ },
295
+ {
296
+ "describe": "When importing and exporting data into Salesforce, Which two statement are true?\nChoose 2 answers",
297
+ "answerOptions": [
298
+ {
299
+ "describe": "Data import wizard is a client application provided by Salesforce.",
300
+ "isRight": false
301
+ },
302
+ {
303
+ "describe": "Developer and Developer Pro sandboxes have different storage limits.",
304
+ "isRight": true
305
+ },
306
+ {
307
+ "describe": "Bulk API can be used to import large data volumes in development environments without bypassing the storage limits.",
308
+ "isRight": true
309
+ },
310
+ {
311
+ "describe": "Bulk API can be used to bypass the storage limits when importing large data volumes in development environments.",
312
+ "isRight": false
313
+ }
314
+ ],
315
+ "hashCode": "1988673294"
316
+ },
317
+ {
318
+ "describe": "Which three process automations can immediately send an email notification to the owner of an Opportunity \nwhen its Amount is changed to be greater than $10.000? Choose 3 answers",
319
+ "answerOptions": [
320
+ {
321
+ "describe": "Escalation Rule",
322
+ "isRight": false
323
+ },
324
+ {
325
+ "describe": "Workflow Rule",
326
+ "isRight": true
327
+ },
328
+ {
329
+ "describe": "Process Builder",
330
+ "isRight": true
331
+ },
332
+ {
333
+ "describe": "Flow Builder",
334
+ "isRight": true
335
+ },
336
+ {
337
+ "describe": "Approval Process",
338
+ "isRight": false
339
+ }
340
+ ],
341
+ "hashCode": "1988672330"
342
+ },
343
+ {
344
+ "describe": "As part of a data cleanup strategy, AW Computing wants to proactively delete associated opportunity records when the related Account is deleted.\nWhich automation tool should be used to meet this business requirement?",
345
+ "answerOptions": [
346
+ {
347
+ "describe": "Outbound messaging",
348
+ "isRight": false
349
+ },
350
+ {
351
+ "describe": "Record-triggered flow",
352
+ "isRight": true
353
+ },
354
+ {
355
+ "describe": "Scheduled job",
356
+ "isRight": false
357
+ },
358
+ {
359
+ "describe": "Flow Orchestration",
360
+ "isRight": false
361
+ }
362
+ ],
363
+ "hashCode": "1995171549"
364
+ },
365
+ {
366
+ "describe": "Which process automation should be used to post a message to Chatter without using Apex code?",
367
+ "answerOptions": [
368
+ {
369
+ "describe": "Outbound Message",
370
+ "isRight": false
371
+ },
372
+ {
373
+ "describe": "Entitlement Process",
374
+ "isRight": false
375
+ },
376
+ {
377
+ "describe": "Strategy Builder",
378
+ "isRight": false
379
+ },
380
+ {
381
+ "describe": "Flow Builder",
382
+ "isRight": true
383
+ }
384
+ ],
385
+ "hashCode": "1988674009"
386
+ },
387
+ {
388
+ "describe": "A recursive transaction is initiated by a DML statement creating records for these two objects:\n1. Accounts\n2. Contacts\nThe Account trigger hits a stack depth of 16:\nWhich statement is true regarding the outcome of the transaction?",
389
+ "answerOptions": [
390
+ {
391
+ "describe": "The transaction fails and all the changes are rolled back.",
392
+ "isRight": true
393
+ },
394
+ {
395
+ "describe": "The transaction succeeds as long as the Contact trigger stack depth is less than 16.",
396
+ "isRight": false
397
+ },
398
+ {
399
+ "describe": "The transaction succeeds and all changes are committed to the database.",
400
+ "isRight": false
401
+ },
402
+ {
403
+ "describe": "The transaction fails only if the Contact trigger stack depth is greater or equal to 16.",
404
+ "isRight": false
405
+ }
406
+ ],
407
+ "hashCode": "1988673047"
408
+ },
409
+ {
410
+ "describe": "A developer has an integer variable called maxAttempts. The developer needs to ensure that once maxAttempts is initialized, it preserves its value for the length of the Apex transaction; while being able to share the variable's state between trigger executions.\n\nHow should the developer declare max attempts to meet these requirements?",
411
+ "answerOptions": [
412
+ {
413
+ "describe": "Declare maxAttempts as a variable on a helper class.",
414
+ "isRight": false
415
+ },
416
+ {
417
+ "describe": "Declare maxAttempts as constant using the static and final keywords.",
418
+ "isRight": true
419
+ },
420
+ {
421
+ "describe": "Declare maxAttempts as a private static variable on a helper class. ",
422
+ "isRight": false
423
+ },
424
+ {
425
+ "describe": "Declare maxAttempts as a member variable on the trigger definition.",
426
+ "isRight": false
427
+ }
428
+ ],
429
+ "hashCode": "1988672305"
430
+ },
431
+ {
432
+ "describe": "The Salesforce Administrator created a custom picklist field Account_ status_c, on the Account object. This picklist has possible values of \"Inactive\" and \"Active\". As part of a new business process, management wants to ensure an opportunity record is created only for Accounts marked as Active. A developer is asked to implement this business requirement.\nWhich automation tool should be used to fulfill the business need?",
433
+ "answerOptions": [
434
+ {
435
+ "describe": "Entitlement Process",
436
+ "isRight": false
437
+ },
438
+ {
439
+ "describe": "Salesforce Flow",
440
+ "isRight": true
441
+ },
442
+ {
443
+ "describe": "Outbound Messaing",
444
+ "isRight": false
445
+ },
446
+ {
447
+ "describe": "Approval Process",
448
+ "isRight": false
449
+ }
450
+ ],
451
+ "hashCode": "1988674066"
452
+ },
453
+ {
454
+ "describe": "A develper writes a trigger on the Account object on the before update event that increments a count field. A workflow rule also increments the count field every time that an Account is created or updated. The field update in the workflow rule is configured to not re-evaluate workflow rules.\nWhat is the value of the count field if an Account is inserted with an initial value of zero, assuming no other automation logic is implemented on theAccount?",
455
+ "answerOptions": [
456
+ {
457
+ "describe": "4",
458
+ "isRight": false
459
+ },
460
+ {
461
+ "describe": "2",
462
+ "isRight": true
463
+ },
464
+ {
465
+ "describe": "1",
466
+ "isRight": false
467
+ },
468
+ {
469
+ "describe": "3",
470
+ "isRight": false
471
+ }
472
+ ],
473
+ "hashCode": "1988672299"
474
+ },
475
+ {
476
+ "describe": "CK has a multi-screen flow that its call center agents use when handling inbound service desk calls.\nAt one of the steps in the flow, the agents should be presented with a list of order numbers and dates that are retrieved from an external order management system in real time and displayed on the screen.\nWhat should a developer use to satisfy this requirement?",
477
+ "answerOptions": [
478
+ {
479
+ "describe": "An Apex REST class",
480
+ "isRight": true
481
+ },
482
+ {
483
+ "describe": "An outbound message",
484
+ "isRight": false
485
+ },
486
+ {
487
+ "describe": "An Apex controller",
488
+ "isRight": false
489
+ },
490
+ {
491
+ "describe": "An invocable method",
492
+ "isRight": false
493
+ }
494
+ ],
495
+ "hashCode": "1988674033"
496
+ },
497
+ {
498
+ "describe": "UMS has a custom object, ServiceJob__c, with an optinal Lookup field to Account called Partner_Service_Provider__c.\nThe TotalJobs__c field on Account tracks the total number of ServiceJob__c records to which a partner service provider Account is related.\nWhat is the most efficient way to ensure that the TotalJobs__c field is kept up to date?",
499
+ "answerOptions": [
500
+ {
501
+ "describe": " Create a schedule-triggered flow on ServiceJob__c",
502
+ "isRight": false
503
+ },
504
+ {
505
+ "describe": "Create an Apex trigger on ServiceJob__c",
506
+ "isRight": false
507
+ },
508
+ {
509
+ "describe": "Change TotalJobs__c to a roll-up summary field.",
510
+ "isRight": false
511
+ },
512
+ {
513
+ "describe": "Create a record-triggered flow on ServiceJob__c",
514
+ "isRight": true
515
+ }
516
+ ],
517
+ "hashCode": "1995171575"
518
+ },
519
+ {
520
+ "describe": "If Apex code executes inside the execute() method of an Apex class when implementing the Batchable interface, which two statement are true regarding governor limits? Choose 2 answers",
521
+ "answerOptions": [
522
+ {
523
+ "describe": "The Apex governor limits are reset for each iteration of execute() method.",
524
+ "isRight": true
525
+ },
526
+ {
527
+ "describe": "The Apex governor limits cannot be exceeded due to the asynchronous nature of the transaction.",
528
+ "isRight": true
529
+ },
530
+ {
531
+ "describe": "The Apex governor limits might be higher due to the asynchronous nature of the transaction.",
532
+ "isRight": false
533
+ },
534
+ {
535
+ "describe": "The Apex governor limits are relaxed while calling the constructor of the Apex class.",
536
+ "isRight": false
537
+ }
538
+ ],
539
+ "hashCode": "1988673048"
540
+ },
541
+ {
542
+ "describe": "Which two process automations can be used on their own to send Salesforce Outbound Message?\nChoose 2 answers",
543
+ "answerOptions": [
544
+ {
545
+ "describe": "Process Builder",
546
+ "isRight": false
547
+ },
548
+ {
549
+ "describe": "Workfow Rule",
550
+ "isRight": true
551
+ },
552
+ {
553
+ "describe": "Flow Builder",
554
+ "isRight": true
555
+ },
556
+ {
557
+ "describe": "Strategy Builder",
558
+ "isRight": false
559
+ }
560
+ ],
561
+ "hashCode": "1988674134"
562
+ },
563
+ {
564
+ "describe": "<p>When a user edits the Postal Code on an Account, a custom Account text field named &quot;Timezone&quot; must be updated based on the values in a PostalCodeToTimezone__c custom object.\nWhich two automation tools can be used to implement this feature?\nChoose 2 answers</p>",
565
+ "answerOptions": [
566
+ {
567
+ "describe": "<p>Fast Field Updates record-triggered flow</p>",
568
+ "isRight": true
569
+ },
570
+ {
571
+ "describe": "<p>Approval process</p>",
572
+ "isRight": false
573
+ },
574
+ {
575
+ "describe": "<p>Quick actions</p>",
576
+ "isRight": false
577
+ },
578
+ {
579
+ "describe": "<p>Account trigger</p>",
580
+ "isRight": true
581
+ }
582
+ ],
583
+ "hashCode": "1988674095"
584
+ },
585
+ {
586
+ "describe": "A developer identifies the following triggers on the Expense__c object:\ndeleteExpense;\napplyDefaultsToExpense;\nvalidateExpenseUpdate;\n\nThe triggers process before delete, before insert, and before update event respectively.\nWhich two techniques should the developer implement to ensure reigger best practices are followed? Chooose 2 answers",
587
+ "answerOptions": [
588
+ {
589
+ "describe": "Unify all three triggers in a single trigger on the Expense__c object that includes all events.",
590
+ "isRight": true
591
+ },
592
+ {
593
+ "describe": "Create helper classes to execute the appropriate logic when a record is saved.",
594
+ "isRight": true
595
+ },
596
+ {
597
+ "describe": "Maintain all three triggers on the Expense__c object, but move the Apex logic out of the trigger definition.",
598
+ "isRight": false
599
+ },
600
+ {
601
+ "describe": "Unify the before insert and before update triggers and use Process Builder for the delete action.",
602
+ "isRight": false
603
+ }
604
+ ],
605
+ "hashCode": "1988673136"
606
+ },
607
+ {
608
+ "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?",
609
+ "answerOptions": [
610
+ {
611
+ "describe": "The Toggle component should call a method in the Temperature component.",
612
+ "isRight": false
613
+ },
614
+ {
615
+ "describe": "Create a custom event to handle the communication between components.",
616
+ "isRight": true
617
+ },
618
+ {
619
+ "describe": "Use an application event to communicate between the components.",
620
+ "isRight": false
621
+ },
622
+ {
623
+ "describe": "Use Lightning Message Service to communicate between the components.",
624
+ "isRight": false
625
+ }
626
+ ],
627
+ "hashCode": "1988674133"
628
+ },
629
+ {
630
+ "describe": "UC has a Visualforce page that displays a table of every Container__c being rented by a given Account. Recently this page is failing with a view state limit because some of the customers rent over 10,000 containers.\nWhat should a developer change about the Visualforce page to help with the page load errors?",
631
+ "answerOptions": [
632
+ {
633
+ "describe": "Implement pagination with a StandardSetController.",
634
+ "isRight": true
635
+ },
636
+ {
637
+ "describe": "Implement pagination with an OffsetController.",
638
+ "isRight": false
639
+ },
640
+ {
641
+ "describe": "Use JavaScript remoting with SOQL Offset.",
642
+ "isRight": false
643
+ },
644
+ {
645
+ "describe": "Use lazy loading and a transient List variable.",
646
+ "isRight": false
647
+ }
648
+ ],
649
+ "hashCode": "1988674189"
650
+ },
651
+ {
652
+ "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?",
653
+ "answerOptions": [
654
+ {
655
+ "describe": "Flow Builder",
656
+ "isRight": false
657
+ },
658
+ {
659
+ "describe": "Lightning Component",
660
+ "isRight": true
661
+ },
662
+ {
663
+ "describe": "Approval Process",
664
+ "isRight": false
665
+ },
666
+ {
667
+ "describe": "Apex Trigger",
668
+ "isRight": false
669
+ }
670
+ ],
671
+ "hashCode": "1988674132"
672
+ },
673
+ {
674
+ "describe": "A developer needs to create a custom button for the Account object that, when clicked, will perform a series of calculations and redirect the user to a custom Visualforce page. The developer wants to ensure the Visualforce page matches the Lightning Experience user interface.\nWhat attribute needs to be defined within the <apex:page> tag to meet the requirement?",
675
+ "answerOptions": [
676
+ {
677
+ "describe": "applyHtmlTag=\"true\"",
678
+ "isRight": false
679
+ },
680
+ {
681
+ "describe": "wizard=\"true\"",
682
+ "isRight": false
683
+ },
684
+ {
685
+ "describe": "setup=\"true\"",
686
+ "isRight": false
687
+ },
688
+ {
689
+ "describe": "lightningStylesheets=\"true\"",
690
+ "isRight": true
691
+ }
692
+ ],
693
+ "hashCode": "1988674011"
694
+ },
695
+ {
696
+ "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",
697
+ "answerOptions": [
698
+ {
699
+ "describe": "String nextPage = controller.save( ).getUrl( );",
700
+ "isRight": true
701
+ },
702
+ {
703
+ "describe": "Test.setCurrentPage(pageRef);",
704
+ "isRight": true
705
+ },
706
+ {
707
+ "describe": "insert pageRef;",
708
+ "isRight": false
709
+ },
710
+ {
711
+ "describe": "ApexPages.currentPage( ).getParameters( ).put('input', 'TestValue');",
712
+ "isRight": true
713
+ },
714
+ {
715
+ "describe": "public ExtendedController(ApexPages.StandardController cntrl) { }",
716
+ "isRight": false
717
+ }
718
+ ],
719
+ "hashCode": "1988674002"
720
+ },
721
+ {
722
+ "describe": "A Salesforce Administrator used Flow Builder to create a flow named \"accountOnboarding\". The flow must be used inside an Aura component.\nWhich tag should a developer use to display the flow in the component?",
723
+ "answerOptions": [
724
+ {
725
+ "describe": "lightning-flow",
726
+ "isRight": false
727
+ },
728
+ {
729
+ "describe": "aura:flow",
730
+ "isRight": false
731
+ },
732
+ {
733
+ "describe": "aura-flow",
734
+ "isRight": false
735
+ },
736
+ {
737
+ "describe": "lightning:flow",
738
+ "isRight": true
739
+ }
740
+ ],
741
+ "hashCode": "1988674008"
742
+ },
743
+ {
744
+ "describe": "Which three web technologies can be integrated into a Visualforce page?",
745
+ "answerOptions": [
746
+ {
747
+ "describe": "JavaScript",
748
+ "isRight": true
749
+ },
750
+ {
751
+ "describe": "HTML",
752
+ "isRight": true
753
+ },
754
+ {
755
+ "describe": "Java",
756
+ "isRight": false
757
+ },
758
+ {
759
+ "describe": "CSS",
760
+ "isRight": true
761
+ },
762
+ {
763
+ "describe": "PHP",
764
+ "isRight": false
765
+ }
766
+ ],
767
+ "hashCode": "1988673078"
768
+ },
769
+ {
770
+ "describe": "A developer needs to allow users to complete a form on an Account record that will create a record for a custom object. The form needs to display different fields depending on the user's job role. The functionality should only be available to a small group of users.\nWhich three things should the developer do to satisfy these requirements?\nChoose 3 answers",
771
+ "answerOptions": [
772
+ {
773
+ "describe": "Add a dynamic action to the user's assigned page layouts.",
774
+ "isRight": false
775
+ },
776
+ {
777
+ "describe": "Create a Lightning web component.",
778
+ "isRight": false
779
+ },
780
+ {
781
+ "describe": "Create a dynamic form.",
782
+ "isRight": true
783
+ },
784
+ {
785
+ "describe": "Add a dynamic action to the Account record page.",
786
+ "isRight": true
787
+ },
788
+ {
789
+ "describe": "Create a custom permission for the users.",
790
+ "isRight": true
791
+ }
792
+ ],
793
+ "hashCode": "1988674010"
794
+ },
795
+ {
796
+ "describe": "Which two statements are true about Getter and Setter methods as they relate to Visualforce? Choose 2 answers",
797
+ "answerOptions": [
798
+ {
799
+ "describe": "Getter methods can pass a value from a controller to a page.",
800
+ "isRight": true
801
+ },
802
+ {
803
+ "describe": "There is no guarantee for the order in which Getter or Setter methods are executed.",
804
+ "isRight": true
805
+ },
806
+ {
807
+ "describe": "Setter methods always have to be declared global.",
808
+ "isRight": false
809
+ },
810
+ {
811
+ "describe": "Setter methods can pass a value from a controller to a page.",
812
+ "isRight": false
813
+ }
814
+ ],
815
+ "hashCode": "1988673291"
816
+ },
817
+ {
818
+ "describe": "Which three Salesforce resources can be accessed from a Lighting web component? Choose 3 answers",
819
+ "answerOptions": [
820
+ {
821
+ "describe": "All external libraries",
822
+ "isRight": false
823
+ },
824
+ {
825
+ "describe": "Static resources",
826
+ "isRight": true
827
+ },
828
+ {
829
+ "describe": "Content asset files",
830
+ "isRight": true
831
+ },
832
+ {
833
+ "describe": "Third-party web components",
834
+ "isRight": false
835
+ },
836
+ {
837
+ "describe": "SVG resources",
838
+ "isRight": true
839
+ }
840
+ ],
841
+ "hashCode": "1988673173"
842
+ },
843
+ {
844
+ "describe": "A developer created a new Apex trigger with a helper class, and writes a test class that only exercises 95% coverage of the new Apex helper class.\nChange set deployment to production fails with the test coverage warning:\n\"Test coverage of selected Apex Trigger is 0%, at least 1% test coverage is required.\"\nWhat should the developer do to successfully deploy the new Apex trigger and helper class?",
845
+ "answerOptions": [
846
+ {
847
+ "describe": "Increase the test class coverage on the helper class.",
848
+ "isRight": false
849
+ },
850
+ {
851
+ "describe": "Run the tests using the 'Run All Tests' method.",
852
+ "isRight": false
853
+ },
854
+ {
855
+ "describe": "Create a test class and methods to cover the Apex trigger.",
856
+ "isRight": true
857
+ },
858
+ {
859
+ "describe": "Remove the failing test methods from the test class.",
860
+ "isRight": false
861
+ }
862
+ ],
863
+ "hashCode": "1988672366"
864
+ },
865
+ {
866
+ "describe": "How should a developer write unit tests for a private method in an Apex class?",
867
+ "answerOptions": [
868
+ {
869
+ "describe": "Add a test method in the Apex class.",
870
+ "isRight": false
871
+ },
872
+ {
873
+ "describe": "Use the TestVisible annotation.",
874
+ "isRight": true
875
+ },
876
+ {
877
+ "describe": "Use the SeeAllData annotation.",
878
+ "isRight": false
879
+ },
880
+ {
881
+ "describe": "Mark the Apex class as global.",
882
+ "isRight": false
883
+ }
884
+ ],
885
+ "hashCode": "1988673137"
886
+ },
887
+ {
888
+ "describe": "When using SalesforceDX, what does a developer need to enable to create and manage scratch orgs?",
889
+ "answerOptions": [
890
+ {
891
+ "describe": "Sandbox",
892
+ "isRight": false
893
+ },
894
+ {
895
+ "describe": "Dev Hub",
896
+ "isRight": true
897
+ },
898
+ {
899
+ "describe": "Environment Hub",
900
+ "isRight": false
901
+ },
902
+ {
903
+ "describe": "Production",
904
+ "isRight": false
905
+ }
906
+ ],
907
+ "hashCode": "1988673230"
908
+ },
909
+ {
910
+ "describe": "While writing an Apex class that creates Accounts, a developer wants to make sure that all required fields are handled properly.\nWhich approach should the developer use to be sure that the Apex classworks correctly?",
911
+ "answerOptions": [
912
+ {
913
+ "describe": "Add the business logic to a test class.",
914
+ "isRight": true
915
+ },
916
+ {
917
+ "describe": "Include a try/catch block to the Apex class. ",
918
+ "isRight": false
919
+ },
920
+ {
921
+ "describe": "Perform a code review with another developer.",
922
+ "isRight": false
923
+ },
924
+ {
925
+ "describe": "Run the code in an Execute Anonymous block.",
926
+ "isRight": false
927
+ }
928
+ ],
929
+ "hashCode": "1988673198"
930
+ },
931
+ {
932
+ "describe": "A team of developers is working on a source-driven project that allows them to work independently, with many different org configurations.\nWhich type of Salesforce orgs should they use for their development?",
933
+ "answerOptions": [
934
+ {
935
+ "describe": "Full Copy sandboxes",
936
+ "isRight": false
937
+ },
938
+ {
939
+ "describe": "Developer orgs",
940
+ "isRight": false
941
+ },
942
+ {
943
+ "describe": "Developer sandboxes",
944
+ "isRight": false
945
+ },
946
+ {
947
+ "describe": "Scratch orgs.",
948
+ "isRight": true
949
+ }
950
+ ],
951
+ "hashCode": "1988672300"
952
+ },
953
+ {
954
+ "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?",
955
+ "answerOptions": [
956
+ {
957
+ "describe": "The test method does not use System.runAs to execute as a specific user. ",
958
+ "isRight": false
959
+ },
960
+ {
961
+ "describe": "The test method is calling an @future method.",
962
+ "isRight": false
963
+ },
964
+ {
965
+ "describe": "The test method has a syntax error in the code. ",
966
+ "isRight": false
967
+ },
968
+ {
969
+ "describe": "The test method relies on exiting data in the sandbox.",
970
+ "isRight": true
971
+ }
972
+ ],
973
+ "hashCode": "1988673232"
974
+ },
975
+ {
976
+ "describe": "A developer is writing tests for a class and needs to insert records to validate functionality.\nWhich annotation method should be used to create records for every method in the test class?",
977
+ "answerOptions": [
978
+ {
979
+ "describe": "@PreTest",
980
+ "isRight": false
981
+ },
982
+ {
983
+ "describe": "@StartTest",
984
+ "isRight": false
985
+ },
986
+ {
987
+ "describe": "@isTest(SeeAllData=true)",
988
+ "isRight": false
989
+ },
990
+ {
991
+ "describe": "@TestSetup",
992
+ "isRight": true
993
+ }
994
+ ],
995
+ "hashCode": "1988672333"
996
+ },
997
+ {
998
+ "describe": "Which scenario is valid for execution by unit tests?",
999
+ "answerOptions": [
1000
+ {
1001
+ "describe": "Execute anonymous Apex as a different user.",
1002
+ "isRight": false
1003
+ },
1004
+ {
1005
+ "describe": "Generate a Visualforce PDF with getContentAsPDF( )·",
1006
+ "isRight": false
1007
+ },
1008
+ {
1009
+ "describe": "Load data from a remote site with a callout.",
1010
+ "isRight": true
1011
+ },
1012
+ {
1013
+ "describe": "Set the created date of a record using a system method.",
1014
+ "isRight": false
1015
+ }
1016
+ ],
1017
+ "hashCode": "1988673227"
1018
+ },
1019
+ {
1020
+ "describe": "A developer completed modifications to a customized feature that is comprised of two elements:\n●Apex trigger\n●Trigger handler Apex class\nWhat are two factors that the developer must take into account to properly deploy the modification to the production environment?\nChoose 2 answers",
1021
+ "answerOptions": [
1022
+ {
1023
+ "describe": "Apex classes must have at least 75% code coverage org-wide.",
1024
+ "isRight": true
1025
+ },
1026
+ {
1027
+ "describe": "Test methods must be declared with the testMethod keyword.",
1028
+ "isRight": false
1029
+ },
1030
+ {
1031
+ "describe": "At least one line of code must be executed for the Apex trigger.",
1032
+ "isRight": true
1033
+ },
1034
+ {
1035
+ "describe": "All methods in the test classes must use @isTest.",
1036
+ "isRight": false
1037
+ }
1038
+ ],
1039
+ "hashCode": "1988674042"
1040
+ },
1041
+ {
1042
+ "describe": "A developer created a trigger on the Account object and wants to test if the trigger is properly bulkified.The developer team decided that the trigger should be tested with 200 account records with unique names.\nWhat two things should be done to create the test data within the unit test with the least amount of code?Choose 2 answers",
1043
+ "answerOptions": [
1044
+ {
1045
+ "describe": "Use the @isTest(seeAllData=true)annotation in the test class.",
1046
+ "isRight": false
1047
+ },
1048
+ {
1049
+ "describe": "Create a static resource containing test data.",
1050
+ "isRight": true
1051
+ },
1052
+ {
1053
+ "describe": "Use Test.loadData to populate data in your test methods.",
1054
+ "isRight": true
1055
+ },
1056
+ {
1057
+ "describe": "Use the @isTest(isParallel=true) annotation in the test class.",
1058
+ "isRight": false
1059
+ }
1060
+ ],
1061
+ "hashCode": "1988674070"
1062
+ },
1063
+ {
1064
+ "describe": "Which two events need to happen when deploying to a production org?Choose 2 answers",
1065
+ "answerOptions": [
1066
+ {
1067
+ "describe": "All Apex code must have at least 75% test coverage.",
1068
+ "isRight": true
1069
+ },
1070
+ {
1071
+ "describe": "All Process Builder Processes must have at least 1% test coverage.",
1072
+ "isRight": false
1073
+ },
1074
+ {
1075
+ "describe": "All Visual Flows must have at least 1% test coverage.",
1076
+ "isRight": false
1077
+ },
1078
+ {
1079
+ "describe": "All Triggers must have at least 1% test coverage.",
1080
+ "isRight": true
1081
+ }
1082
+ ],
1083
+ "hashCode": "1988673073"
1084
+ },
1085
+ {
1086
+ "describe": "Which three statements are true regarding custom exceptions in Apex? Choose 3 answers",
1087
+ "answerOptions": [
1088
+ {
1089
+ "describe": "A custom exception class cannot contain member variables or methods.",
1090
+ "isRight": false
1091
+ },
1092
+ {
1093
+ "describe": "A custom exception class can implement one or many interfaces.",
1094
+ "isRight": true
1095
+ },
1096
+ {
1097
+ "describe": "A custom exception class name must be end with \"Exception\".",
1098
+ "isRight": true
1099
+ },
1100
+ {
1101
+ "describe": "A custom exception class must extend the system Exception class.",
1102
+ "isRight": true
1103
+ },
1104
+ {
1105
+ "describe": "A custom exception class can extend other classes besides the Exception class.",
1106
+ "isRight": false
1107
+ }
1108
+ ],
1109
+ "hashCode": "1988672301"
1110
+ },
1111
+ {
1112
+ "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",
1113
+ "answerOptions": [
1114
+ {
1115
+ "describe": "Rollup summary fields can cause the parent record to go through Save.",
1116
+ "isRight": true
1117
+ },
1118
+ {
1119
+ "describe": "The trigger may fire multiple times during a transaction.",
1120
+ "isRight": true
1121
+ },
1122
+ {
1123
+ "describe": "Duplicate rules are executed once all DML operations commit to the database.",
1124
+ "isRight": false
1125
+ },
1126
+ {
1127
+ "describe": "The validation rules will cause the trigger to fire again.",
1128
+ "isRight": false
1129
+ }
1130
+ ],
1131
+ "hashCode": "1988674104"
1132
+ },
1133
+ {
1134
+ "describe": "Which two sfdx commands can be used to add testing data to a Developer sandbox?\nChoose 2 answers",
1135
+ "answerOptions": [
1136
+ {
1137
+ "describe": "force:data:tree:import",
1138
+ "isRight": true
1139
+ },
1140
+ {
1141
+ "describe": "force: data:object:create",
1142
+ "isRight": false
1143
+ },
1144
+ {
1145
+ "describe": "force:data:bulk: upsert",
1146
+ "isRight": true
1147
+ },
1148
+ {
1149
+ "describe": "force:data:async:apsert",
1150
+ "isRight": false
1151
+ }
1152
+ ],
1153
+ "hashCode": "1988674100"
1154
+ },
1155
+ {
1156
+ "describe": "<p>Refer to the following code snippet for an environment has more than 200 Accounts belonging to the &#39;Technology&#39; industry:</p><p>for(Account thisAccount : [Select Id, Industry FROM Account LIMIT 150]){</p><p>&nbsp; &nbsp; &nbsp;if(thisAccount.Industry == &#39;Technology&#39; ){</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;thisAccount.Is_Tech__c = true;</p><p>&nbsp; &nbsp; &nbsp; }</p><p>update thisAccount;</p><p>}</p><p><br/></p><p>When the code executes, what happens as a result of the Apex transaction?</p><p><br/></p>",
1157
+ "answerOptions": [
1158
+ {
1159
+ "describe": "<p>If executed in an asynchronous context, the Apex transaction is likely to fail by exceeding the DML governor limit.</p>",
1160
+ "isRight": false
1161
+ },
1162
+ {
1163
+ "describe": "<p>If executed in a synchronous context, the Apex transaction is likely to fail by exceeding the DML governor limit.</p>",
1164
+ "isRight": false
1165
+ },
1166
+ {
1167
+ "describe": "<p>The Apex transaction succeeds regardless of any uncaught exception and all processed accounts are updated.</p>",
1168
+ "isRight": false
1169
+ },
1170
+ {
1171
+ "describe": "<p>The Apex transaction fails with the following message: Sobject row was retrieved via SOQL without querying the requested field: Account.Is_Tech__c.</p>",
1172
+ "isRight": true
1173
+ }
1174
+ ],
1175
+ "hashCode": "1988675002"
1176
+ },
1177
+ {
1178
+ "describe": "<p>The following Apex method is part of the ContactSertvice class that is called from a trigger:</p><p>public static void setBusinessUnitToEMEA(Contact thisContact){</p><p>&nbsp; &nbsp; &nbsp; &nbsp; thisContact . Business_Unit__c = &#39;EMEA&#39;;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; update thisContact;</p><p>}</p><p><br/></p><p>How should the developer modify the code to ensure best practices are met?</p><p><br/></p>",
1179
+ "answerOptions": [
1180
+ {
1181
+ "describe": "<p>public static void setBusinessUnitToEMEA(List&lt;Contact&gt; contacts){</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for(Contact thisContact : contacts){</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;thisContact . Business_Unit__ c = &#39;EMEA&#39;;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;update contacts[0];</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}&nbsp; &nbsp;</p><p>}</p><p><br/></p>",
1182
+ "isRight": false
1183
+ },
1184
+ {
1185
+ "describe": "<p>public static void setBusinessUnitToEMEA(List&lt;Contact&gt; contacts){</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for(Contact thisContact : contacts){</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;thisContact . Business_Unit__ c = &#39;EMEA&#39;;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;update contacts;</p><p>}</p><p><br/></p>",
1186
+ "isRight": true
1187
+ },
1188
+ {
1189
+ "describe": "<p>public static void setBusinessUnitToEMEA(Contact thisContact){</p><p>&nbsp; &nbsp; &nbsp; &nbsp; List&lt;Contact&gt; contacts = new list&lt;Contacts&gt;( );</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;contacts. add(thisContact. Business_Unit__c = &#39;EMEA&#39;);</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; update contacts;</p><p>}</p><p><br/></p>",
1190
+ "isRight": false
1191
+ },
1192
+ {
1193
+ "describe": "<p>public void setBusinessUnitToEMEA(List&lt;Contact&gt; contacts){</p><p>&nbsp; &nbsp; &nbsp; &nbsp; contact[0]. Business_Unit__ c = &#39;EMEA&#39;;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;update contacts[0];</p><p>}</p><p><br/></p>",
1194
+ "isRight": false
1195
+ }
1196
+ ],
1197
+ "hashCode": "1988674285"
1198
+ },
1199
+ {
1200
+ "describe": "<p>A developer wrote the following two classes:</p><p><br/></p><p>public with sharing class statusFetcher{</p><p>private Boolean active = true;</p><p>private Boolean isActive(){</p><p>return active;</p><p>}</p><p>}</p><p>public with sharing class Calculator{</p><p>public void doCalculations()</p><p>StatusFetcher sFetcher = new StatusFetcher();</p><p>if(sFetcher.isActive())</p><p>//do calculatlons here</p><p>}</p><p>&nbsp; }</p><p>}</p><p><br/></p><p>The StatusFetcher class successfully complled and saved.However, the calculator class has a compile time error.</p><p>How should the developer fix this code?</p><p><br/></p>",
1201
+ "answerOptions": [
1202
+ {
1203
+ "describe": "<p>Make the docalculations method in the calculator class private.</p>",
1204
+ "isRight": false
1205
+ },
1206
+ {
1207
+ "describe": "<p>Change the class declaration for the calculator class to public with inherited sharing.</p>",
1208
+ "isRight": false
1209
+ },
1210
+ {
1211
+ "describe": "<p>Change the class declaration for the statusFetcher class to public with inherited sharing.</p>",
1212
+ "isRight": false
1213
+ },
1214
+ {
1215
+ "describe": "<p>Make the isActive method in the statusFetcher class public.</p>",
1216
+ "isRight": true
1217
+ }
1218
+ ],
1219
+ "hashCode": "1988674999"
1220
+ },
1221
+ {
1222
+ "describe": "<p>A developer needs to implement a custom SOAP Web Service that is used by an external Web Application. The developer chooses to include helper methods that are not used by the Web Application in the implementation of the Web Service Class.\nWhich code segment shows the correct declaration of the class and methods?</p>",
1223
+ "answerOptions": [
1224
+ {
1225
+ "describe": "<p>webservice class WebserviceClass {\nprivate Boolean helperMethod() { /* implementation ... */ } \nwebservice static string updateRecords() { /* implementation ... */}\n}</p>",
1226
+ "isRight": false
1227
+ },
1228
+ {
1229
+ "describe": "<p>global class WebServiceClass{\nprivate Boolean helperMethod() { /* implementation ... */ }\nglobal string updateRecords() ( /* implementation ... */ }\n}</p>",
1230
+ "isRight": false
1231
+ },
1232
+ {
1233
+ "describe": "<p>global class WebServiceClass {\nprivate Boolean helperMethod() { 1* implementation ... &quot;/ }\nwebservice static string updateRecords() { 1* implementation ... */ }\n}</p>",
1234
+ "isRight": true
1235
+ },
1236
+ {
1237
+ "describe": "<p>webservice class WebServiceClass {\nprivate Boolean helperMethod() { /* implementation ... */ }\nglobal static string updateRecords() { 1* implementation ... */}\n}</p>",
1238
+ "isRight": false
1239
+ }
1240
+ ],
1241
+ "hashCode": "1988674994"
1242
+ },
1243
+ {
1244
+ "describe": "<p>Refer to the following code that runs in an Execute Anonymous block:</p><p>for( List&lt;Lead&gt; theseLeads : [SELECT LastName, Company, Email FROM Lead LIMIT 20000]) {</p><p>&nbsp; &nbsp; for(Lead thisLead : theseLeads) {</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(thisLead.Email == null)</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; thisLead.Email = assignGenericEmail(thisLead.LastName, thisLead.Company);</p><p>&nbsp; &nbsp; &nbsp;}</p><p>&nbsp; &nbsp; &nbsp;Database.Update(theseLeads, false);</p><p>}</p><p>In an environment where the full result set is returned, what is a possible outcome of this code?</p><p><br/></p>",
1245
+ "answerOptions": [
1246
+ {
1247
+ "describe": "<p>The transaction will succeed and the first ten thousand records will be committed to the database.</p>",
1248
+ "isRight": false
1249
+ },
1250
+ {
1251
+ "describe": "<p>The total number of DML statements issued will be exceeded.</p>",
1252
+ "isRight": false
1253
+ },
1254
+ {
1255
+ "describe": "<p>The total number of records processed as a result of DML statements will be exceeded.</p>",
1256
+ "isRight": true
1257
+ },
1258
+ {
1259
+ "describe": "<p>The transaction will succeed and the full result set changes will be committed to the database.</p>",
1260
+ "isRight": false
1261
+ }
1262
+ ],
1263
+ "hashCode": "1988674966"
1264
+ },
1265
+ {
1266
+ "describe": "<p>A developer must modify the following code snippet to prevent the number of SOQL queries issued from exceeding the platform governor limit.</p><p>public without sharing class OpportunityService{</p><p><br/></p><p>&nbsp; &nbsp; &nbsp; public static List&lt;OpportunityLineItem&gt; getOpportunityProducts(Set&lt;Id&gt; opportunityIds){</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; List&lt;OpportunityLineItem&gt; oppLineItems = new List&lt;OpportunityLineItem&gt;();</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for(Id thisOppId : opportunityIds){</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oppLineItems. addAll([Select Id FROM OppLineItem WHERE OpportunityId = :thisOppId]);</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</p><p>&nbsp; &nbsp; &nbsp; &nbsp; return oppLineItems;</p><p>&nbsp; &nbsp; &nbsp;}</p><p>&nbsp;}</p><p><br/></p><p>The above method might be called during a trigger execution via a Lightning component.</p><p>Which technique should be implemented to avoid reaching the governor limit?</p><p><br/></p>",
1267
+ "answerOptions": [
1268
+ {
1269
+ "describe": "<p>Refactor the code above to perform the SOQL query only if the Set of opportunityIds contains less 100 Ids.</p>",
1270
+ "isRight": false
1271
+ },
1272
+ {
1273
+ "describe": "<p>Refactor the code above to perform only one SOQL query, filtering by the Set of opportunityIds.</p>",
1274
+ "isRight": true
1275
+ },
1276
+ {
1277
+ "describe": "<p>Use the System. Limits. getQueries( ) method to ensure the number of queries is less than 100.</p>",
1278
+ "isRight": false
1279
+ },
1280
+ {
1281
+ "describe": "<p>Use the System. Limits. getLimitQueries( ) method to ensure the number of queries is less than 100.</p>",
1282
+ "isRight": false
1283
+ }
1284
+ ],
1285
+ "hashCode": "1988674194"
1286
+ },
1287
+ {
1288
+ "describe": "<p>Given the following code snippet, that is part of a custom controller for a Visualforce page:</p><p>public void updateContact(Contact thisContact) {</p><p>&nbsp; &nbsp; &nbsp;thisContact.Is_Active__c = false;</p><p>&nbsp; &nbsp; &nbsp;try{</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; update thisContact;</p><p>&nbsp; &nbsp; &nbsp;}catch(Exception e) {</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; String errorMessage = &#39;An error occurred while updating the Contact. &#39; + e.getMessage());</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ApexPages.addmessage(new ApexPages.message(ApexPages.severity.FATAL.errorMessage));</p><p>&nbsp; &nbsp; &nbsp;}</p><p>}</p><p>In which two ways can the try/catch be enclosed to enforce object and field-level permissions and prevent the DML statement from being executed if the&nbsp;</p><p>current logged-in user does not have the appropriate level of access?&nbsp;</p><p>Choose 2 answers</p><p><br/></p>",
1289
+ "answerOptions": [
1290
+ {
1291
+ "describe": "<p>Use if (thisContact.OwnerId == UserInfo.getUserId())</p>",
1292
+ "isRight": false
1293
+ },
1294
+ {
1295
+ "describe": "<p>Use if (Schema.sObjectType.Contact.isUpdatable())</p>",
1296
+ "isRight": true
1297
+ },
1298
+ {
1299
+ "describe": "<p>Use if (Schema.sObjectType.Contact.isAccessible())</p>",
1300
+ "isRight": false
1301
+ },
1302
+ {
1303
+ "describe": "<p>Use if (Schema.sObjectType.Contact.fields.Is_Active__c.isUpdateable())</p>",
1304
+ "isRight": true
1305
+ }
1306
+ ],
1307
+ "hashCode": "1988674970"
1308
+ },
1309
+ {
1310
+ "describe": "<p>What will be the output in the debug log in the event of a QueryException duing a call to the aQuery method in the following example?</p><p><br/></p><p>class myClass {</p><p>&nbsp; &nbsp;class CustomException extends QueryException&nbsp; { }</p><p>&nbsp; &nbsp;public static Account aQuery( ) {</p><p>&nbsp; &nbsp; &nbsp; &nbsp;Account theAccount;</p><p>&nbsp; &nbsp; &nbsp; &nbsp;try {</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;system. debug( &#39; Querying Accounts. &#39;);</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;theAccount = [SELECT Id FROM Account WHERE CreatedDate &gt; TODAY] ;</p><p>&nbsp; &nbsp; &nbsp; &nbsp;}</p><p>&nbsp; &nbsp; &nbsp; catch (CustomException eX) {</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; system.debug(&#39; Custom Exception. &#39;);</p><p>&nbsp; &nbsp; &nbsp; &nbsp;}</p><p>&nbsp; &nbsp; &nbsp; catch (QueryException eX) {</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; system.debug(&#39;Query Exception. &#39;);</p><p>&nbsp; &nbsp; &nbsp; }&nbsp;</p><p>&nbsp; &nbsp; &nbsp;finally {</p><p>&nbsp; &nbsp; &nbsp; &nbsp;system.debug(&#39;Done. &#39;);</p><p>&nbsp; &nbsp; &nbsp;}</p><p>&nbsp; &nbsp; return theAccount ;</p><p>&nbsp; }</p><p>}</p><p><br/></p>",
1311
+ "answerOptions": [
1312
+ {
1313
+ "describe": "<p>Querying Accounts. Query Exception.</p>",
1314
+ "isRight": false
1315
+ },
1316
+ {
1317
+ "describe": "<p>Querying Accounts. Custom Exception. Done.</p>",
1318
+ "isRight": false
1319
+ },
1320
+ {
1321
+ "describe": "<p>Querying Accounts. Query Exeption. Done.</p>",
1322
+ "isRight": true
1323
+ },
1324
+ {
1325
+ "describe": "<p>Querying Accounts. Custom Exeption.</p>",
1326
+ "isRight": false
1327
+ }
1328
+ ],
1329
+ "hashCode": "1988674284"
1330
+ },
1331
+ {
1332
+ "describe": "<p>Which code displays the contents of a Visualforce page as a PDF?</p>",
1333
+ "answerOptions": [
1334
+ {
1335
+ "describe": "<p>&lt;apex:page renderAs=&quot;pdf&quot;&gt;</p>",
1336
+ "isRight": true
1337
+ },
1338
+ {
1339
+ "describe": "<p>&lt;apex:page contentType=&quot;pdf&quot;&gt;</p>",
1340
+ "isRight": false
1341
+ },
1342
+ {
1343
+ "describe": "<p>&lt;apex:page contentType=&quot;application/pdf&quot;&gt;</p>",
1344
+ "isRight": false
1345
+ },
1346
+ {
1347
+ "describe": "<p>&lt;apex:page renderAs=&quot;application/pdf&quot;&gt;</p>",
1348
+ "isRight": false
1349
+ }
1350
+ ],
1351
+ "hashCode": "1988674193"
1352
+ },
1353
+ {
1354
+ "describe": "<p>A developer wrote an Apex method to update a list of Contacts and wants to make it available for use by Lightning web components.</p><p>Which annotation should the developer add to the Apex method to achieve this?</p><p style=\"line-height: 1.5em;\" dir=\"ltr\"><br/></p>",
1355
+ "answerOptions": [
1356
+ {
1357
+ "describe": "<p style=\"line-height: 1.5em;\" dir=\"ltr\">@AuraEnabled(cacheable=true)</p>",
1358
+ "isRight": true
1359
+ },
1360
+ {
1361
+ "describe": "<p style=\"line-height: 1.5em;\" dir=\"ltr\">@RemoteAction</p>",
1362
+ "isRight": false
1363
+ },
1364
+ {
1365
+ "describe": "<p style=\"line-height: 1.5em;\" dir=\"ltr\">@RemoteAction(cacheable=true)</p>",
1366
+ "isRight": false
1367
+ },
1368
+ {
1369
+ "describe": "<p style=\"line-height: 1.5em;\" dir=\"ltr\">@AuraEnabled</p>",
1370
+ "isRight": false
1371
+ }
1372
+ ],
1373
+ "hashCode": "1995171580"
1374
+ },
1375
+ {
1376
+ "describe": "<p>A Lightning component has a wired property, searchResults, that stores a list of Opportunities.\nWhich definition of the Apex method, to which the searchResults property is wired, should be used?</p>",
1377
+ "answerOptions": [
1378
+ {
1379
+ "describe": "<p>@AuraEnabled(cacheable=false)</p><p>public List&lt;Opportunity&gt; search(String term){ /*implementation*/ }</p><p><br/></p>",
1380
+ "isRight": false
1381
+ },
1382
+ {
1383
+ "describe": "<p>@AuraEnabled(cacheable=true)</p><p>public List&lt;Opportunity&gt; search(String term){ /*implementation*/ }</p><p><br/></p>",
1384
+ "isRight": false
1385
+ },
1386
+ {
1387
+ "describe": "<p>@AuraEnabled(cacheable=false)</p><p>public static List&lt;Opportunity&gt; search(String term){ /*implementation*/ }</p><p><br/></p>",
1388
+ "isRight": false
1389
+ },
1390
+ {
1391
+ "describe": "<p>@AuraEnabled(cacheable=true)</p><p>public static List&lt;Opportunity&gt; search(String term){ /*implementation*/ }</p><p><br/></p>",
1392
+ "isRight": true
1393
+ }
1394
+ ],
1395
+ "hashCode": "1988674220"
1396
+ },
1397
+ {
1398
+ "describe": "<p>Which code in a Visualforce page and/or cotroller might present a security vulnerability?</p>",
1399
+ "answerOptions": [
1400
+ {
1401
+ "describe": "<p>&lt;apex : outputText escape=&quot;false&quot; value= &quot;{ !$CurrentPage . parameters .userInput } &quot; /&gt;</p>",
1402
+ "isRight": true
1403
+ },
1404
+ {
1405
+ "describe": "<p>&lt;apex : outputField value=&quot;{ !ctrl . userInput }&quot; / &gt;</p>",
1406
+ "isRight": false
1407
+ },
1408
+ {
1409
+ "describe": "<p>&lt;apex : outputText value=&quot;{ !$CurrentPage . parameters . userInput } &quot; /&gt;</p>",
1410
+ "isRight": false
1411
+ },
1412
+ {
1413
+ "describe": "<p>&lt;apex : outputField escape=&quot;false&quot; value=&quot;{ !ctrl . userInput }&quot; /&gt;</p>",
1414
+ "isRight": false
1415
+ }
1416
+ ],
1417
+ "hashCode": "1988674283"
1418
+ },
1419
+ {
1420
+ "describe": "<p>What are three capabilities of the &lt;ltng:require&gt; tag when loading JavaScript resources in Aura components? Choose 3 answers</p>",
1421
+ "answerOptions": [
1422
+ {
1423
+ "describe": "<p>Specifying loading order</p>",
1424
+ "isRight": true
1425
+ },
1426
+ {
1427
+ "describe": "<p>Loading scripts in parallel</p>",
1428
+ "isRight": true
1429
+ },
1430
+ {
1431
+ "describe": "<p>Loading files from Documents</p>",
1432
+ "isRight": false
1433
+ },
1434
+ {
1435
+ "describe": "<p>One-time loading for duplicate scripts</p>",
1436
+ "isRight": true
1437
+ },
1438
+ {
1439
+ "describe": "<p>Loading externally hosted scripts</p>",
1440
+ "isRight": false
1441
+ }
1442
+ ],
1443
+ "hashCode": "1988674965"
1444
+ },
1445
+ {
1446
+ "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>",
1447
+ "answerOptions": [
1448
+ {
1449
+ "describe": "<p>Add &lt;isExposed&gt;true&lt;/isExposed&gt; to the statusComponent.js-meta.xml file.</p>",
1450
+ "isRight": true
1451
+ },
1452
+ {
1453
+ "describe": "<p>Add &lt;target&gt;lightning__RecordPage&lt;/target&gt; to the statusComponent.js-meta.xml file.</p>",
1454
+ "isRight": true
1455
+ },
1456
+ {
1457
+ "describe": "<p>Add &lt;masterLabel&gt;Account&lt;/masterLabel&gt; to the statusComponent.js-meta.xml file.</p>",
1458
+ "isRight": false
1459
+ },
1460
+ {
1461
+ "describe": "<p>Add &lt;target&gt;lightning__RecordPage&lt;/target&gt; to the statusComponent.js file.</p>",
1462
+ "isRight": false
1463
+ }
1464
+ ],
1465
+ "hashCode": "1988675025"
1466
+ }
1467
+ ],
1468
+ "hashCode": "-1271771784"
1469
+ }