@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,1191 @@
1
+ {
2
+ "title": "Dev1用户界面",
3
+ "category": "Dev1-自由部落侠",
4
+ "questions": [
5
+ {
6
+ "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?",
7
+ "answerOptions": [
8
+ {
9
+ "describe": "Lightning controller",
10
+ "isRight": false
11
+ },
12
+ {
13
+ "describe": "Standard list controller",
14
+ "isRight": false
15
+ },
16
+ {
17
+ "describe": "Standard controller",
18
+ "isRight": true
19
+ },
20
+ {
21
+ "describe": "Custom controller",
22
+ "isRight": false
23
+ }
24
+ ],
25
+ "hashCode": "1995171573"
26
+ },
27
+ {
28
+ "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?",
29
+ "answerOptions": [
30
+ {
31
+ "describe": "Implement pagination with a StandardSetController.",
32
+ "isRight": true
33
+ },
34
+ {
35
+ "describe": "Implement pagination with an OffsetController.",
36
+ "isRight": false
37
+ },
38
+ {
39
+ "describe": "Use JavaScript remoting with SOQL Offset.",
40
+ "isRight": false
41
+ },
42
+ {
43
+ "describe": "Use lazy loading and a transient List variable.",
44
+ "isRight": false
45
+ }
46
+ ],
47
+ "hashCode": "1988674189"
48
+ },
49
+ {
50
+ "describe": "A developer is creating an app that contains multiple Lightning web components.\nOne of the child components is used for navigation purposes.When a user clicks a button called component, the parent component must be alerted so it can navigate to the next page.\nHow should this be accomplished?",
51
+ "answerOptions": [
52
+ {
53
+ "describe": "Fire a notification.",
54
+ "isRight": false
55
+ },
56
+ {
57
+ "describe": "Update a property on the parent.",
58
+ "isRight": false
59
+ },
60
+ {
61
+ "describe": "Call a method in the Apex controller.",
62
+ "isRight": false
63
+ },
64
+ {
65
+ "describe": "Create a custom event.",
66
+ "isRight": true
67
+ }
68
+ ],
69
+ "hashCode": "1988674165"
70
+ },
71
+ {
72
+ "describe": "Which two statements are true about getter and setter methods as they relate to Visualforce?\nChoose 2 answers",
73
+ "answerOptions": [
74
+ {
75
+ "describe": "A corresponding setter method Is required for each getter method.",
76
+ "isRight": true
77
+ },
78
+ {
79
+ "describe": "Getter methods pass values from controller to a page.",
80
+ "isRight": true
81
+ },
82
+ {
83
+ "describe": "Setter methods always have to be declared global.",
84
+ "isRight": false
85
+ },
86
+ {
87
+ "describe": "Getter methods must be named getVariable and setter methods must be named setVariable.",
88
+ "isRight": false
89
+ }
90
+ ],
91
+ "hashCode": "1988674163"
92
+ },
93
+ {
94
+ "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?",
95
+ "answerOptions": [
96
+ {
97
+ "describe": "The Toggle component should call a method in the Temperature component.",
98
+ "isRight": false
99
+ },
100
+ {
101
+ "describe": "Create a custom event to handle the communication between components.",
102
+ "isRight": true
103
+ },
104
+ {
105
+ "describe": "Use an application event to communicate between the components.",
106
+ "isRight": false
107
+ },
108
+ {
109
+ "describe": "Use Lightning Message Service to communicate between the components.",
110
+ "isRight": false
111
+ }
112
+ ],
113
+ "hashCode": "1988674133"
114
+ },
115
+ {
116
+ "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?",
117
+ "answerOptions": [
118
+ {
119
+ "describe": "Flow Builder",
120
+ "isRight": false
121
+ },
122
+ {
123
+ "describe": "Lightning Component",
124
+ "isRight": true
125
+ },
126
+ {
127
+ "describe": "Approval Process",
128
+ "isRight": false
129
+ },
130
+ {
131
+ "describe": "Apex Trigger",
132
+ "isRight": false
133
+ }
134
+ ],
135
+ "hashCode": "1988674132"
136
+ },
137
+ {
138
+ "describe": "A third-party vendor created an unmanaged Lightning web component. The Salesforce Administrators expose the component only on Record Page Layouts.\nWhich two actions should the developer take to accomplish this business objective?\nChoose 2 answers",
139
+ "answerOptions": [
140
+ {
141
+ "describe": "Ensure isExposed Is set to true on the XML file.",
142
+ "isRight": true
143
+ },
144
+ {
145
+ "describe": "Specify lightningcommunity_ PageLayout as a target in the XML file.",
146
+ "isRight": false
147
+ },
148
+ {
149
+ "describe": "Specify lightningcommunity_Page as a target in the XML file.",
150
+ "isRight": true
151
+ },
152
+ {
153
+ "describe": "Specify lightning_ RecordPage as a target in the XML file.",
154
+ "isRight": false
155
+ }
156
+ ],
157
+ "hashCode": "1988674129"
158
+ },
159
+ {
160
+ "describe": "What are two best practices when it comes to Lightning Web Component events?\nChoose 2 answers",
161
+ "answerOptions": [
162
+ {
163
+ "describe": "Use event.target to communicate data to elements that aren't in the same shadow tree.",
164
+ "isRight": true
165
+ },
166
+ {
167
+ "describe": "Use events configured with bubbles: false and composed: false.",
168
+ "isRight": false
169
+ },
170
+ {
171
+ "describe": "Use CuatomEvent to pass data from a child to a parent component.",
172
+ "isRight": true
173
+ },
174
+ {
175
+ "describe": "Use event.detail to communicate data to elements in the same shadow tree.",
176
+ "isRight": false
177
+ }
178
+ ],
179
+ "hashCode": "1988674103"
180
+ },
181
+ {
182
+ "describe": "An org has two custom objects:\nPlan_c, that has a master-detail relationship to the Account object\nPlan_Item__c, that has a master-detail relationship to the Plan_c object\nWhat should a developer use to create a Visualforce section on the Account page layout that displays all of the Plan__c records related to the Account and all of the Plan_Item__c records related to those Plan_c records.",
183
+ "answerOptions": [
184
+ {
185
+ "describe": "A standard controller with a controller extension",
186
+ "isRight": true
187
+ },
188
+ {
189
+ "describe": "A standard controller with a custom controller",
190
+ "isRight": false
191
+ },
192
+ {
193
+ "describe": "A custom controller by itself",
194
+ "isRight": false
195
+ },
196
+ {
197
+ "describe": "A controller extension with a custom controller",
198
+ "isRight": false
199
+ }
200
+ ],
201
+ "hashCode": "1988674102"
202
+ },
203
+ {
204
+ "describe": "A developer is creating a Lightning web component to show a list of sales records.\nThe Sales Representative user should be able to see the commission field on each record. The Sales Assistant usershould be able to see all fields on the record except the commission field.\nHow should this be enforced so that the component works for both users without showing any errors?",
205
+ "answerOptions": [
206
+ {
207
+ "describe": "Use Lightning Data Service to get the collection of sales records.",
208
+ "isRight": false
209
+ },
210
+ {
211
+ "describe": "Use WITH SECURITY_ENFORCED in the SOQL that fetches the data for the component.",
212
+ "isRight": false
213
+ },
214
+ {
215
+ "describe": "Use Security.stripInaccessible to remove fields inaccessible to the current user.",
216
+ "isRight": true
217
+ },
218
+ {
219
+ "describe": "Use Lightning Locker Service to enforce sharing rules and field-level security.",
220
+ "isRight": false
221
+ }
222
+ ],
223
+ "hashCode": "1988674101"
224
+ },
225
+ {
226
+ "describe": "Which two are phases in the Aura application event propagation framework?\nChoose 2 answers",
227
+ "answerOptions": [
228
+ {
229
+ "describe": "Default",
230
+ "isRight": true
231
+ },
232
+ {
233
+ "describe": "Emit",
234
+ "isRight": false
235
+ },
236
+ {
237
+ "describe": "Control",
238
+ "isRight": false
239
+ },
240
+ {
241
+ "describe": "Bubble",
242
+ "isRight": true
243
+ }
244
+ ],
245
+ "hashCode": "1988674038"
246
+ },
247
+ {
248
+ "describe": "A developer created a child Lightning web component nested inside a parent Lightning web component. The parent component needs to pass a string value to the child component.\nIn which two ways can this be accomplished?\nChoose 2 answers",
249
+ "answerOptions": [
250
+ {
251
+ "describe": "The parent component can use the Apex controller class to send data to the child component.",
252
+ "isRight": false
253
+ },
254
+ {
255
+ "describe": "The parent component can invoke a method in the child component.",
256
+ "isRight": false
257
+ },
258
+ {
259
+ "describe": "The parent component can use a public property to pass the data to the child component.",
260
+ "isRight": true
261
+ },
262
+ {
263
+ "describe": "The parent component can use a custom event to pass the data to the child component.",
264
+ "isRight": true
265
+ }
266
+ ],
267
+ "hashCode": "1988674036"
268
+ },
269
+ {
270
+ "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?",
271
+ "answerOptions": [
272
+ {
273
+ "describe": "applyHtmlTag=\"true\"",
274
+ "isRight": false
275
+ },
276
+ {
277
+ "describe": "wizard=\"true\"",
278
+ "isRight": false
279
+ },
280
+ {
281
+ "describe": "setup=\"true\"",
282
+ "isRight": false
283
+ },
284
+ {
285
+ "describe": "lightningStylesheets=\"true\"",
286
+ "isRight": true
287
+ }
288
+ ],
289
+ "hashCode": "1988674011"
290
+ },
291
+ {
292
+ "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",
293
+ "answerOptions": [
294
+ {
295
+ "describe": "Add a dynamic action to the user's assigned page layouts.",
296
+ "isRight": false
297
+ },
298
+ {
299
+ "describe": "Create a Lightning web component.",
300
+ "isRight": false
301
+ },
302
+ {
303
+ "describe": "Create a dynamic form.",
304
+ "isRight": true
305
+ },
306
+ {
307
+ "describe": "Add a dynamic action to the Account record page.",
308
+ "isRight": true
309
+ },
310
+ {
311
+ "describe": "Create a custom permission for the users.",
312
+ "isRight": true
313
+ }
314
+ ],
315
+ "hashCode": "1988674010"
316
+ },
317
+ {
318
+ "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?",
319
+ "answerOptions": [
320
+ {
321
+ "describe": "lightning-flow",
322
+ "isRight": false
323
+ },
324
+ {
325
+ "describe": "aura:flow",
326
+ "isRight": false
327
+ },
328
+ {
329
+ "describe": "aura-flow",
330
+ "isRight": false
331
+ },
332
+ {
333
+ "describe": "lightning:flow",
334
+ "isRight": true
335
+ }
336
+ ],
337
+ "hashCode": "1988674008"
338
+ },
339
+ {
340
+ "describe": "What can be developed using the Lightning Component framework?",
341
+ "answerOptions": [
342
+ {
343
+ "describe": "Dynamic web sites",
344
+ "isRight": false
345
+ },
346
+ {
347
+ "describe": "Hosted web applications",
348
+ "isRight": false
349
+ },
350
+ {
351
+ "describe": "Salesforce integrations",
352
+ "isRight": false
353
+ },
354
+ {
355
+ "describe": "Single-page web apps",
356
+ "isRight": true
357
+ }
358
+ ],
359
+ "hashCode": "1988674005"
360
+ },
361
+ {
362
+ "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",
363
+ "answerOptions": [
364
+ {
365
+ "describe": "String nextPage = controller.save( ).getUrl( );",
366
+ "isRight": true
367
+ },
368
+ {
369
+ "describe": "Test.setCurrentPage(pageRef);",
370
+ "isRight": true
371
+ },
372
+ {
373
+ "describe": "insert pageRef;",
374
+ "isRight": false
375
+ },
376
+ {
377
+ "describe": "ApexPages.currentPage( ).getParameters( ).put('input', 'TestValue');",
378
+ "isRight": true
379
+ },
380
+ {
381
+ "describe": "public ExtendedController(ApexPages.StandardController cntrl) { }",
382
+ "isRight": false
383
+ }
384
+ ],
385
+ "hashCode": "1988674002"
386
+ },
387
+ {
388
+ "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?",
389
+ "answerOptions": [
390
+ {
391
+ "describe": "AppExchange",
392
+ "isRight": false
393
+ },
394
+ {
395
+ "describe": "Developer Console",
396
+ "isRight": true
397
+ },
398
+ {
399
+ "describe": "Visual Studio Code IDE",
400
+ "isRight": false
401
+ },
402
+ {
403
+ "describe": "Setup Menu",
404
+ "isRight": false
405
+ }
406
+ ],
407
+ "hashCode": "1988673325"
408
+ },
409
+ {
410
+ "describe": "Which two statements are true about Getter and Setter methods as they relate to Visualforce? Choose 2 answers",
411
+ "answerOptions": [
412
+ {
413
+ "describe": "Getter methods can pass a value from a controller to a page.",
414
+ "isRight": true
415
+ },
416
+ {
417
+ "describe": "There is no guarantee for the order in which Getter or Setter methods are executed.",
418
+ "isRight": true
419
+ },
420
+ {
421
+ "describe": "Setter methods always have to be declared global.",
422
+ "isRight": false
423
+ },
424
+ {
425
+ "describe": "Setter methods can pass a value from a controller to a page.",
426
+ "isRight": false
427
+ }
428
+ ],
429
+ "hashCode": "1988673291"
430
+ },
431
+ {
432
+ "describe": "Which two characteristics are true for Aura component events? Choose 2 answers",
433
+ "answerOptions": [
434
+ {
435
+ "describe": "The event propagates to every owner in the containment hierarchy.",
436
+ "isRight": true
437
+ },
438
+ {
439
+ "describe": "Only parent components that create subcomponents(either in their markup or programmatically) can handle events.",
440
+ "isRight": false
441
+ },
442
+ {
443
+ "describe": "lf a container component needs to handle a component event, add a handleFacets=\"true\" attribute to its handler.",
444
+ "isRight": true
445
+ },
446
+ {
447
+ "describe": "Depending on the current propagation phase, calling event.stopPropagation( ) may not propagation.",
448
+ "isRight": false
449
+ }
450
+ ],
451
+ "hashCode": "1988673289"
452
+ },
453
+ {
454
+ "describe": "What are two ways that a controller and extension can be specified for a custom object named Notice on a Visualforce page? Choose 2 answers",
455
+ "answerOptions": [
456
+ {
457
+ "describe": "apex:page controller = \"Notice__c\" extensions=\"myControllerExtension\"",
458
+ "isRight": true
459
+ },
460
+ {
461
+ "describe": "apex:page standardController = \"Notice__c\" extensions=\"myControllerExtension\"",
462
+ "isRight": true
463
+ },
464
+ {
465
+ "describe": "apex:page controllers = \"Notice__c, myControllerExtension\"",
466
+ "isRight": false
467
+ },
468
+ {
469
+ "describe": "apex:page = Notice extends = \"myControllerExtension\"",
470
+ "isRight": false
471
+ }
472
+ ],
473
+ "hashCode": "1988673265"
474
+ },
475
+ {
476
+ "describe": "Which three resources in an Aura Component can contain JavaScript functions? Choose 3 answers",
477
+ "answerOptions": [
478
+ {
479
+ "describe": "Helper",
480
+ "isRight": true
481
+ },
482
+ {
483
+ "describe": "Controller",
484
+ "isRight": true
485
+ },
486
+ {
487
+ "describe": "Style",
488
+ "isRight": false
489
+ },
490
+ {
491
+ "describe": "Design",
492
+ "isRight": false
493
+ },
494
+ {
495
+ "describe": "Renderer",
496
+ "isRight": true
497
+ }
498
+ ],
499
+ "hashCode": "1988673264"
500
+ },
501
+ {
502
+ "describe": "Which three Salesforce resources can be accessed from a Lighting web component? Choose 3 answers",
503
+ "answerOptions": [
504
+ {
505
+ "describe": "All external libraries",
506
+ "isRight": false
507
+ },
508
+ {
509
+ "describe": "Static resources",
510
+ "isRight": true
511
+ },
512
+ {
513
+ "describe": "Content asset files",
514
+ "isRight": true
515
+ },
516
+ {
517
+ "describe": "Third-party web components",
518
+ "isRight": false
519
+ },
520
+ {
521
+ "describe": "SVG resources",
522
+ "isRight": true
523
+ }
524
+ ],
525
+ "hashCode": "1988673173"
526
+ },
527
+ {
528
+ "describe": "What are two ways that a controller extension can be specified on a Visualforce page? Choose 2 answers",
529
+ "answerOptions": [
530
+ {
531
+ "describe": "apex:page controller=\"Account\" extensions=\"myControllerExtension\"",
532
+ "isRight": true
533
+ },
534
+ {
535
+ "describe": "apex:page extends=\"myControllerExtension\"",
536
+ "isRight": false
537
+ },
538
+ {
539
+ "describe": "apex:page controller=\"Accunt, myControllerExtension\"",
540
+ "isRight": false
541
+ },
542
+ {
543
+ "describe": "apex:page standardController=\"Account\" extensions=\"myControllerExtension\"",
544
+ "isRight": true
545
+ }
546
+ ],
547
+ "hashCode": "1988673172"
548
+ },
549
+ {
550
+ "describe": "How does the Lightning Component framework help developers implement solutions faster?",
551
+ "answerOptions": [
552
+ {
553
+ "describe": "By providing an Agile process with default steps",
554
+ "isRight": false
555
+ },
556
+ {
557
+ "describe": "By providing device-awarenedd for mobile and desktops",
558
+ "isRight": true
559
+ },
560
+ {
561
+ "describe": "By providing code review standards and processes",
562
+ "isRight": false
563
+ },
564
+ {
565
+ "describe": "By providing change history and version control",
566
+ "isRight": false
567
+ }
568
+ ],
569
+ "hashCode": "1988673168"
570
+ },
571
+ {
572
+ "describe": "which two are best practices when it comes to Aura component and application event handling? Choose 2 answers",
573
+ "answerOptions": [
574
+ {
575
+ "describe": "Reuse the event logic in a component bundle, by putting the logic in the helper.",
576
+ "isRight": true
577
+ },
578
+ {
579
+ "describe": "Handle low-level events in the event handler and re-fire them as higher-level events.",
580
+ "isRight": true
581
+ },
582
+ {
583
+ "describe": "Use component events to communicate actions that should be handled at the application level.",
584
+ "isRight": false
585
+ },
586
+ {
587
+ "describe": "Try to use application events as opposed to component events.",
588
+ "isRight": false
589
+ }
590
+ ],
591
+ "hashCode": "1988673143"
592
+ },
593
+ {
594
+ "describe": "How should a custom user interface be privided when a user edits an Account in Lightning Experience?",
595
+ "answerOptions": [
596
+ {
597
+ "describe": "Override the Account's Edit button with a Lightning component.",
598
+ "isRight": true
599
+ },
600
+ {
601
+ "describe": "Override the Account's Edit button with a Lightning Flow.",
602
+ "isRight": false
603
+ },
604
+ {
605
+ "describe": "Override the Account's Edit button with a Lightning Action.",
606
+ "isRight": false
607
+ },
608
+ {
609
+ "describe": "Override the Account's Edit button with a Lightning page.",
610
+ "isRight": false
611
+ }
612
+ ],
613
+ "hashCode": "1988673080"
614
+ },
615
+ {
616
+ "describe": "Which three web technologies can be integrated into a Visualforce page?",
617
+ "answerOptions": [
618
+ {
619
+ "describe": "JavaScript",
620
+ "isRight": true
621
+ },
622
+ {
623
+ "describe": "HTML",
624
+ "isRight": true
625
+ },
626
+ {
627
+ "describe": "Java",
628
+ "isRight": false
629
+ },
630
+ {
631
+ "describe": "CSS",
632
+ "isRight": true
633
+ },
634
+ {
635
+ "describe": "PHP",
636
+ "isRight": false
637
+ }
638
+ ],
639
+ "hashCode": "1988673078"
640
+ },
641
+ {
642
+ "describe": "Which three steps allow a custom SVG to be included in a Lightning web component?Choose 3 answers",
643
+ "answerOptions": [
644
+ {
645
+ "describe": "Reference the getter in the HTML template.",
646
+ "isRight": false
647
+ },
648
+ {
649
+ "describe": "Upload the SVG as a static resource.",
650
+ "isRight": true
651
+ },
652
+ {
653
+ "describe": "Import the SVG as a content asset file.",
654
+ "isRight": false
655
+ },
656
+ {
657
+ "describe": "Import the static resource and provide a getter for it in JavaScript.",
658
+ "isRight": true
659
+ },
660
+ {
661
+ "describe": "Reference the import in the HTML template.",
662
+ "isRight": true
663
+ }
664
+ ],
665
+ "hashCode": "1988673076"
666
+ },
667
+ {
668
+ "describe": "A developer must provide a custom user interface when users edit a Contact. Users must be able to use the interface in Salesforce Classic and Lightning Experience.\nWhat should the developer do to provide the custom user interface?",
669
+ "answerOptions": [
670
+ {
671
+ "describe": "Override the Contact's Edit button with a Lightning page in Salesforce Classic and a Visualforce page in Lightning Experience.",
672
+ "isRight": false
673
+ },
674
+ {
675
+ "describe": "Override the Contact's Edit button with a Visualforce page in Salesforce Classic and a Lightning component in Lightning Experience.",
676
+ "isRight": true
677
+ },
678
+ {
679
+ "describe": "Override the Contact's Edit button with a Visualforce page in Salesforce Classic and a Lightning page in Lightning Experience.",
680
+ "isRight": false
681
+ },
682
+ {
683
+ "describe": "Override the Contacts's Edit button with a Lightning component in Salesforce Classic and a Lightning component in Lightning Experience.",
684
+ "isRight": false
685
+ }
686
+ ],
687
+ "hashCode": "1988673050"
688
+ },
689
+ {
690
+ "describe": "A developer has an Apex controller for a Visualforce page that takes an ID as a URL parameter.\nHow should the developer prevent a cross site scripting vulnerability?",
691
+ "answerOptions": [
692
+ {
693
+ "describe": "String.escapeSingleQuotes(ApexPages.currentPage().getParameters().get('url_param'))",
694
+ "isRight": false
695
+ },
696
+ {
697
+ "describe": "ApexPage.currentPage().getParameters().get('url_param')",
698
+ "isRight": false
699
+ },
700
+ {
701
+ "describe": "String.ValueOf(ApexPages.currentPage().getParameters().get('url_param'))",
702
+ "isRight": false
703
+ },
704
+ {
705
+ "describe": "ApePages.currentPage().getParameters().get('url_param').escapeHtml4()",
706
+ "isRight": true
707
+ }
708
+ ],
709
+ "hashCode": "1988672364"
710
+ },
711
+ {
712
+ "describe": "Which two are phases in the Salesforce Application Event propagation framework? Choose 2 answers",
713
+ "answerOptions": [
714
+ {
715
+ "describe": "Control",
716
+ "isRight": false
717
+ },
718
+ {
719
+ "describe": "Default",
720
+ "isRight": true
721
+ },
722
+ {
723
+ "describe": "Bubble",
724
+ "isRight": true
725
+ },
726
+ {
727
+ "describe": "Emit",
728
+ "isRight": false
729
+ }
730
+ ],
731
+ "hashCode": "1988672360"
732
+ },
733
+ {
734
+ "describe": "Application Events follow the traditional publish-subscribe model\nWhich method is used to fire an event?",
735
+ "answerOptions": [
736
+ {
737
+ "describe": "fire()",
738
+ "isRight": true
739
+ },
740
+ {
741
+ "describe": "emit()",
742
+ "isRight": false
743
+ },
744
+ {
745
+ "describe": "fireEvent()",
746
+ "isRight": false
747
+ },
748
+ {
749
+ "describe": "registerEvent()",
750
+ "isRight": false
751
+ }
752
+ ],
753
+ "hashCode": "1988672336"
754
+ },
755
+ {
756
+ "describe": "Universal Containers has a large number of custom applications that were built using a third-party JavaScript framework and exposed using Visualforce pages. The company wants to update these applications to apply styling that resembles the look and feel of Lightning Experience.\nWhat should the developer do to fulfill the business request in the quickest and most effective manner?",
757
+ "answerOptions": [
758
+ {
759
+ "describe": "Set the attribute enableLightning to true in the definition.",
760
+ "isRight": false
761
+ },
762
+ {
763
+ "describe": "Incorporate the Salesforce Lightning Design System CSS stylesheet into the JavaScript applications. ",
764
+ "isRight": true
765
+ },
766
+ {
767
+ "describe": "Enable Available for Lightning Experience, Lightning Communities, and the mobile app on Visualforce pages used by the custom application. ",
768
+ "isRight": false
769
+ },
770
+ {
771
+ "describe": "Rewrite all Visualfocre pages as Lightning components. ",
772
+ "isRight": false
773
+ }
774
+ ],
775
+ "hashCode": "1988672303"
776
+ },
777
+ {
778
+ "describe": "What does the Lightning Component framework provide to developers?",
779
+ "answerOptions": [
780
+ {
781
+ "describe": "Extended governor limits for applications",
782
+ "isRight": false
783
+ },
784
+ {
785
+ "describe": "Templated to create custom components",
786
+ "isRight": false
787
+ },
788
+ {
789
+ "describe": "Prebuilt components that can be reused",
790
+ "isRight": true
791
+ },
792
+ {
793
+ "describe": "Support for Classic and Lightning UIs",
794
+ "isRight": false
795
+ }
796
+ ],
797
+ "hashCode": "1988672297"
798
+ },
799
+ {
800
+ "describe": "<p>A developer is asked to create a Visualforce page that displays some Account fields as well as fields configured on the page layout for related Contacts.\nHow should the developer implement this request?</p>",
801
+ "answerOptions": [
802
+ {
803
+ "describe": "<p>Use the &lt;apex:include&gt; tag.</p>",
804
+ "isRight": false
805
+ },
806
+ {
807
+ "describe": "<p>Add a method to the standard controller.</p>",
808
+ "isRight": false
809
+ },
810
+ {
811
+ "describe": "<p>Use the &lt;apex:relatedList&gt; tag.</p>",
812
+ "isRight": true
813
+ },
814
+ {
815
+ "describe": "<p>Create a controller extension.</p>",
816
+ "isRight": false
817
+ }
818
+ ],
819
+ "hashCode": "1988674190"
820
+ },
821
+ {
822
+ "describe": "<p>Refer to the code snippet below:</p><p>import fetchOpps from &#39;@salesforce/apex/OpportunitySearch.fetchOpportunities&#39;;</p><p>@wire(fetchOpps)</p><p>opportunities;</p><p>When a Lightning web component is rendered, a list of opportunities that match certain criteria should be retrieved from the database and displayed to the end-user.</p><p>Which three considerations must the developer implement to make the fetchOpportunities method available within the Lightning web component? Choose 3 answers</p><p style=\"line-height: 1.5em;\" dir=\"ltr\"><br/></p>",
823
+ "answerOptions": [
824
+ {
825
+ "describe": "<p style=\"line-height: 1.5em;\" dir=\"ltr\">The method cannot mutate the result set retrieved from the database.</p>",
826
+ "isRight": true
827
+ },
828
+ {
829
+ "describe": "<p style=\"line-height: 1.5em;\" dir=\"ltr\">The method must be annotated with the @InvocableMethod annotation</p>",
830
+ "isRight": false
831
+ },
832
+ {
833
+ "describe": "<p style=\"line-height: 1.5em;\" dir=\"ltr\">The method must specify the(continuation=true) attribute.</p>",
834
+ "isRight": false
835
+ },
836
+ {
837
+ "describe": "<p style=\"line-height: 1.5em;\" dir=\"ltr\">The method must be annotated with the @AuraEnabled annotation</p>",
838
+ "isRight": true
839
+ },
840
+ {
841
+ "describe": "<p style=\"line-height: 1.5em;\" dir=\"ltr\">The method must specify the(cacheable=true) attribute.</p>",
842
+ "isRight": true
843
+ }
844
+ ],
845
+ "hashCode": "1995171603"
846
+ },
847
+ {
848
+ "describe": "<p style=\"line-height: 1.5em;\" dir=\"ltr\">Which code statement includes an Apex method named updateAccounts in the class AccountController for use in a Lightning web component?</p>",
849
+ "answerOptions": [
850
+ {
851
+ "describe": "<p style=\"line-height: 1.5em;\" dir=\"ltr\">import updateAccounts from &#39;AccountController&#39;;</p>",
852
+ "isRight": false
853
+ },
854
+ {
855
+ "describe": "<p style=\"line-height: 1.5em;\" dir=\"ltr\">import updateAccounts from &#39;AccountController.updateAccounts&#39;;</p>",
856
+ "isRight": false
857
+ },
858
+ {
859
+ "describe": "<p style=\"line-height: 1.5em;\" dir=\"ltr\">import updateAccounts from &#39;@salesforce/apex/AccountController&#39;;</p>",
860
+ "isRight": false
861
+ },
862
+ {
863
+ "describe": "<p style=\"line-height: 1.5em;\" dir=\"ltr\">import updateAccounts from &#39;@salesforce/apex/AccountController.updateAccounts&#39;;</p>",
864
+ "isRight": true
865
+ }
866
+ ],
867
+ "hashCode": "1995171602"
868
+ },
869
+ {
870
+ "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>",
871
+ "answerOptions": [
872
+ {
873
+ "describe": "<p style=\"line-height: 1.5em;\" dir=\"ltr\">@AuraEnabled(cacheable=true)</p>",
874
+ "isRight": true
875
+ },
876
+ {
877
+ "describe": "<p style=\"line-height: 1.5em;\" dir=\"ltr\">@RemoteAction</p>",
878
+ "isRight": false
879
+ },
880
+ {
881
+ "describe": "<p style=\"line-height: 1.5em;\" dir=\"ltr\">@RemoteAction(cacheable=true)</p>",
882
+ "isRight": false
883
+ },
884
+ {
885
+ "describe": "<p style=\"line-height: 1.5em;\" dir=\"ltr\">@AuraEnabled</p>",
886
+ "isRight": false
887
+ }
888
+ ],
889
+ "hashCode": "1995171580"
890
+ },
891
+ {
892
+ "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>",
893
+ "answerOptions": [
894
+ {
895
+ "describe": "<p>Add &lt;isExposed&gt;true&lt;/isExposed&gt; to the statusComponent.js-meta.xml file.</p>",
896
+ "isRight": true
897
+ },
898
+ {
899
+ "describe": "<p>Add &lt;target&gt;lightning__RecordPage&lt;/target&gt; to the statusComponent.js-meta.xml file.</p>",
900
+ "isRight": true
901
+ },
902
+ {
903
+ "describe": "<p>Add &lt;masterLabel&gt;Account&lt;/masterLabel&gt; to the statusComponent.js-meta.xml file.</p>",
904
+ "isRight": false
905
+ },
906
+ {
907
+ "describe": "<p>Add &lt;target&gt;lightning__RecordPage&lt;/target&gt; to the statusComponent.js file.</p>",
908
+ "isRight": false
909
+ }
910
+ ],
911
+ "hashCode": "1988675025"
912
+ },
913
+ {
914
+ "describe": "<p>A custom Visualforce controller calls the ApexPages.addMessage( ) method, but no messages are rendering on the page.</p><p>Which component should be added to the Visualforce page to display the message?</p><p><br/></p>",
915
+ "answerOptions": [
916
+ {
917
+ "describe": "<p>&lt;apex:pageMessages /&gt;</p>",
918
+ "isRight": true
919
+ },
920
+ {
921
+ "describe": "<p>&lt;apex:pageMessages severity=&quot;info&quot; /&gt;</p>",
922
+ "isRight": false
923
+ },
924
+ {
925
+ "describe": "<p>&lt;apex:facet name=&quot;message&quot; /&gt;</p>",
926
+ "isRight": false
927
+ },
928
+ {
929
+ "describe": "<p>&lt;apex:message for=&quot;info&quot; /&gt;</p>",
930
+ "isRight": false
931
+ }
932
+ ],
933
+ "hashCode": "1988674971"
934
+ },
935
+ {
936
+ "describe": "<p>Which three code lines are required to create a Lightning component on a Visualforce page? Choose 3 answers</p>",
937
+ "answerOptions": [
938
+ {
939
+ "describe": "<p>$lightning.useComponent</p>",
940
+ "isRight": false
941
+ },
942
+ {
943
+ "describe": "<p>&lt;apex:slds/&gt;</p>",
944
+ "isRight": false
945
+ },
946
+ {
947
+ "describe": "<p>$lightning.use</p>",
948
+ "isRight": true
949
+ },
950
+ {
951
+ "describe": "<p>&lt;apex:includeLightning/&gt;</p>",
952
+ "isRight": true
953
+ },
954
+ {
955
+ "describe": "<p>$Lightning.createComponent</p>",
956
+ "isRight": true
957
+ }
958
+ ],
959
+ "hashCode": "1988674968"
960
+ },
961
+ {
962
+ "describe": "<p>What are three capabilities of the &lt;ltng:require&gt; tag when loading JavaScript resources in Aura components? Choose 3 answers</p>",
963
+ "answerOptions": [
964
+ {
965
+ "describe": "<p>Specifying loading order</p>",
966
+ "isRight": true
967
+ },
968
+ {
969
+ "describe": "<p>Loading scripts in parallel</p>",
970
+ "isRight": true
971
+ },
972
+ {
973
+ "describe": "<p>Loading files from Documents</p>",
974
+ "isRight": false
975
+ },
976
+ {
977
+ "describe": "<p>One-time loading for duplicate scripts</p>",
978
+ "isRight": true
979
+ },
980
+ {
981
+ "describe": "<p>Loading externally hosted scripts</p>",
982
+ "isRight": false
983
+ }
984
+ ],
985
+ "hashCode": "1988674965"
986
+ },
987
+ {
988
+ "describe": "<p>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.</p><p><br/></p><p>Which three attributes need to be defined with values in the &lt;apex:page&gt; tag to accomplish this? Choose 3 answers</p><p><br/></p>",
989
+ "answerOptions": [
990
+ {
991
+ "describe": "<p>extensions</p>",
992
+ "isRight": true
993
+ },
994
+ {
995
+ "describe": "<p>action</p>",
996
+ "isRight": true
997
+ },
998
+ {
999
+ "describe": "<p>standardController</p>",
1000
+ "isRight": true
1001
+ },
1002
+ {
1003
+ "describe": "<p>renderAs</p>",
1004
+ "isRight": false
1005
+ },
1006
+ {
1007
+ "describe": "<p>readOnly</p>",
1008
+ "isRight": false
1009
+ }
1010
+ ],
1011
+ "hashCode": "1988674289"
1012
+ },
1013
+ {
1014
+ "describe": "<p>Which code in a Visualforce page and/or cotroller might present a security vulnerability?</p>",
1015
+ "answerOptions": [
1016
+ {
1017
+ "describe": "<p>&lt;apex : outputText escape=&quot;false&quot; value= &quot;{ !$CurrentPage . parameters .userInput } &quot; /&gt;</p>",
1018
+ "isRight": true
1019
+ },
1020
+ {
1021
+ "describe": "<p>&lt;apex : outputField value=&quot;{ !ctrl . userInput }&quot; / &gt;</p>",
1022
+ "isRight": false
1023
+ },
1024
+ {
1025
+ "describe": "<p>&lt;apex : outputText value=&quot;{ !$CurrentPage . parameters . userInput } &quot; /&gt;</p>",
1026
+ "isRight": false
1027
+ },
1028
+ {
1029
+ "describe": "<p>&lt;apex : outputField escape=&quot;false&quot; value=&quot;{ !ctrl . userInput }&quot; /&gt;</p>",
1030
+ "isRight": false
1031
+ }
1032
+ ],
1033
+ "hashCode": "1988674283"
1034
+ },
1035
+ {
1036
+ "describe": "<p>An Apex method, getAccounts, that returns a List of Accounts given a searchTerm, is available for Lightning Web components to use.</p><p>What is the correct definition of a Lightning Web component property that uses the getAccounts method?</p><p><br/></p>",
1037
+ "answerOptions": [
1038
+ {
1039
+ "describe": "<p>&nbsp;@AuraEnabled (getAccounts, { searchTerm: &#39;$searchTerm&#39; } )</p><p>accountList;</p><p><br/></p>",
1040
+ "isRight": false
1041
+ },
1042
+ {
1043
+ "describe": "<p>&nbsp;@wire (getAccounts, &#39;$searchTerm&#39;)</p><p>accountList;</p><p><br/></p>",
1044
+ "isRight": false
1045
+ },
1046
+ {
1047
+ "describe": "<p>&nbsp;@wire (getAccounts, { searchTerm: &#39;$searchTerm&#39; })</p><p>accountList;</p><p><br/></p>",
1048
+ "isRight": true
1049
+ },
1050
+ {
1051
+ "describe": "<p>&nbsp;@AuraEnabled(getAccounts, &#39;$searchTerm&#39;)</p><p>accountList;</p><p><br/></p>",
1052
+ "isRight": false
1053
+ }
1054
+ ],
1055
+ "hashCode": "1988674257"
1056
+ },
1057
+ {
1058
+ "describe": "<p>A developer must crreate a Lightning component that allows users to input Contact record information to create a Contact record, including a Salary__c custom field.\nWhat should the developer use, along with a lightning-record-edit-form, so that Salary__c field functions as a currency input and is only viewable and editable by users that have the correct field level permissions on Salary__c ?</p>",
1059
+ "answerOptions": [
1060
+ {
1061
+ "describe": "<p>&lt;lightning-input-field field-name=&quot;Salary__c&quot;&gt;&lt;/lightning-input-field&gt;</p>",
1062
+ "isRight": true
1063
+ },
1064
+ {
1065
+ "describe": "<p>&lt;lightning-input-currency value=&quot;Salary__c&quot;&gt;&lt;/lightning-input-currency&gt;</p>",
1066
+ "isRight": false
1067
+ },
1068
+ {
1069
+ "describe": "<p>&lt;lightning-input type=&quot;number&quot; value=&quot;Salary__c&quot; formatter=&quot;currency&quot;&gt;&lt;/lightning-input&gt;</p>",
1070
+ "isRight": false
1071
+ },
1072
+ {
1073
+ "describe": "<p>&lt;lightning-formatted-number value=&quot;Salary__c&quot; format-style=&quot;currency&quot;&gt;&lt;/lightning-formatted-number&gt;</p>",
1074
+ "isRight": false
1075
+ }
1076
+ ],
1077
+ "hashCode": "1988674228"
1078
+ },
1079
+ {
1080
+ "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>",
1081
+ "answerOptions": [
1082
+ {
1083
+ "describe": "<p>recordSetVar page attribute</p>",
1084
+ "isRight": true
1085
+ },
1086
+ {
1087
+ "describe": "<p>&lt;apex:listButton&gt; tag</p>",
1088
+ "isRight": false
1089
+ },
1090
+ {
1091
+ "describe": "<p>custom controller</p>",
1092
+ "isRight": false
1093
+ },
1094
+ {
1095
+ "describe": "<p>controller extension</p>",
1096
+ "isRight": false
1097
+ }
1098
+ ],
1099
+ "hashCode": "1988674226"
1100
+ },
1101
+ {
1102
+ "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>",
1103
+ "answerOptions": [
1104
+ {
1105
+ "describe": "<p>@AuraEnabled(cacheable=false)</p><p>public List&lt;Opportunity&gt; search(String term){ /*implementation*/ }</p><p><br/></p>",
1106
+ "isRight": false
1107
+ },
1108
+ {
1109
+ "describe": "<p>@AuraEnabled(cacheable=true)</p><p>public List&lt;Opportunity&gt; search(String term){ /*implementation*/ }</p><p><br/></p>",
1110
+ "isRight": false
1111
+ },
1112
+ {
1113
+ "describe": "<p>@AuraEnabled(cacheable=false)</p><p>public static List&lt;Opportunity&gt; search(String term){ /*implementation*/ }</p><p><br/></p>",
1114
+ "isRight": false
1115
+ },
1116
+ {
1117
+ "describe": "<p>@AuraEnabled(cacheable=true)</p><p>public static List&lt;Opportunity&gt; search(String term){ /*implementation*/ }</p><p><br/></p>",
1118
+ "isRight": true
1119
+ }
1120
+ ],
1121
+ "hashCode": "1988674220"
1122
+ },
1123
+ {
1124
+ "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>",
1125
+ "answerOptions": [
1126
+ {
1127
+ "describe": "<p>Include &lt;apex:messages&gt; on the Visualforce page.</p>",
1128
+ "isRight": true
1129
+ },
1130
+ {
1131
+ "describe": "<p>Perform the DML using the Database.upsert( ) method.</p>",
1132
+ "isRight": false
1133
+ },
1134
+ {
1135
+ "describe": "<p>Add custom controller attributes to display the message.</p>",
1136
+ "isRight": false
1137
+ },
1138
+ {
1139
+ "describe": "<p>Use a try/catch with a custom exception class.</p>",
1140
+ "isRight": false
1141
+ }
1142
+ ],
1143
+ "hashCode": "1988674196"
1144
+ },
1145
+ {
1146
+ "describe": "<p>Which code displays the contents of a Visualforce page as a PDF?</p>",
1147
+ "answerOptions": [
1148
+ {
1149
+ "describe": "<p>&lt;apex:page renderAs=&quot;pdf&quot;&gt;</p>",
1150
+ "isRight": true
1151
+ },
1152
+ {
1153
+ "describe": "<p>&lt;apex:page contentType=&quot;pdf&quot;&gt;</p>",
1154
+ "isRight": false
1155
+ },
1156
+ {
1157
+ "describe": "<p>&lt;apex:page contentType=&quot;application/pdf&quot;&gt;</p>",
1158
+ "isRight": false
1159
+ },
1160
+ {
1161
+ "describe": "<p>&lt;apex:page renderAs=&quot;application/pdf&quot;&gt;</p>",
1162
+ "isRight": false
1163
+ }
1164
+ ],
1165
+ "hashCode": "1988674193"
1166
+ },
1167
+ {
1168
+ "describe": "<p>Which code should be used to update an existing Visualforce page that uses standard Visualforce components so that the page \nmatches the look and feel of Lightning Experience?</p>",
1169
+ "answerOptions": [
1170
+ {
1171
+ "describe": "<p>&lt;apex:page LightningStyleSheets=&quot;true&quot;&gt;</p>",
1172
+ "isRight": true
1173
+ },
1174
+ {
1175
+ "describe": "<p>&lt;apex:slds/&gt;</p>",
1176
+ "isRight": false
1177
+ },
1178
+ {
1179
+ "describe": "<p>&lt;apex:incluedLightning/&gt;</p>",
1180
+ "isRight": false
1181
+ },
1182
+ {
1183
+ "describe": "<p>&lt;apex:styleSheet value=&quot;{!$Resource.slds, &#39;assets/slds.css&#39;)}&quot;&gt;</p>",
1184
+ "isRight": false
1185
+ }
1186
+ ],
1187
+ "hashCode": "1988674191"
1188
+ }
1189
+ ],
1190
+ "hashCode": "-1307154604"
1191
+ }