@palerock/exam-qa 1.0.6-patch2 → 1.0.6-patch21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/dist/index.html +1 -1
  2. package/dist/static/css/app.4293d3540537974d843eca825dcda382.css +2 -0
  3. package/dist/static/css/app.4293d3540537974d843eca825dcda382.css.map +1 -0
  4. package/dist/static/js/app.e278f9557d317b4606b0.js +2 -0
  5. package/dist/static/js/app.e278f9557d317b4606b0.js.map +1 -0
  6. package/dist/static/js/manifest.3ad1d5771e9b13dbdad2.js.map +1 -1
  7. package/lib-json/Dev1/345/237/272/347/241/200/351/242/230.json +1407 -0
  8. package/lib-json/Dev1/346/250/241/346/213/237/345/215/267A.json +1538 -0
  9. package/lib-json/Dev1/346/250/241/346/213/237/345/215/267B.json +1534 -0
  10. package/lib-json/Dev1/346/265/201/347/250/213/350/207/252/345/212/250/345/214/226/344/270/216/351/200/273/350/276/2211.json +1587 -0
  11. package/lib-json/Dev1/346/265/201/347/250/213/350/207/252/345/212/250/345/214/226/344/270/216/351/200/273/350/276/2212.json +1042 -0
  12. package/lib-json/Dev1/346/265/213/350/257/225_/350/260/203/350/257/225_/351/203/250/347/275/262.json +928 -0
  13. package/lib-json/Dev1/347/224/250/346/210/267/347/225/214/351/235/242.json +1243 -0
  14. package/lib-json/[DEV2]Salesforce/345/237/272/347/241/200.json +375 -0
  15. package/lib-json/[DEV2]/346/200/247/350/203/275.json +728 -0
  16. package/lib-json/[DEV2]/346/250/241/346/213/237/345/215/267A.json +1403 -0
  17. package/lib-json/[DEV2]/346/250/241/346/213/237/345/215/267B.json +1387 -0
  18. package/lib-json/[DEV2]/346/265/213/350/257/225/344/270/216/351/203/250/347/275/262.json +828 -0
  19. package/lib-json/[DEV2]/347/224/250/346/210/267/347/225/214/351/235/2421.json +977 -0
  20. package/lib-json/[DEV2]/347/224/250/346/210/267/347/225/214/351/235/2422.json +667 -0
  21. package/lib-json/[DEV2]/351/200/273/350/276/221/343/200/201/346/265/201/347/250/213/350/207/252/345/212/250/345/214/226/345/222/214/351/233/206/346/210/2201.json +1387 -0
  22. package/lib-json/[DEV2]/351/200/273/350/276/221/343/200/201/346/265/201/347/250/213/350/207/252/345/212/250/345/214/226/345/222/214/351/233/206/346/210/2202.json +260 -0
  23. package/lib-json/[JS]/347/254/254/344/270/200/347/253/240 /345/217/230/351/207/217-/347/261/273/345/236/213-/351/233/206/345/220/210.json" +1048 -0
  24. package/lib-json/[JS]/347/254/254/344/270/203/347/253/240 /346/265/213/350/257/225.json" +356 -0
  25. package/lib-json/[JS]/347/254/254/344/270/211/347/253/240 /346/265/217/350/247/210/345/231/250/345/222/214/344/272/213/344/273/266.json" +851 -0
  26. package/lib-json/[JS]/347/254/254/344/272/214/347/253/240 /345/257/271/350/261/241-/345/207/275/346/225/260-/347/261/273.json" +1787 -0
  27. package/lib-json/[JS]/347/254/254/344/272/224/347/253/240 /345/274/202/346/255/245/347/274/226/347/250/213.json" +547 -0
  28. package/lib-json/[JS]/347/254/254/345/205/255/347/253/240 /346/234/215/345/212/241/345/231/250/347/253/257JavaScript.json" +613 -0
  29. package/lib-json/[JS]/347/254/254/345/233/233/347/253/240 /350/260/203/350/257/225/345/222/214/351/224/231/350/257/257/345/244/204/347/220/206.json" +525 -0
  30. package/lib-json/[/345/222/270/351/261/274]AppBuilder-1.json +977 -0
  31. package/lib-json/[/345/222/270/351/261/274]AppBuilder-2.json +941 -0
  32. package/lib-json/[/345/222/270/351/261/274]AppBuilder-3.json +973 -0
  33. package/lib-json/[/345/222/270/351/261/274]AppBuilder-4.json +981 -0
  34. package/lib-json/[/345/222/270/351/261/274]AppBuilder-5.json +771 -0
  35. package/lib-json/map.json +28 -43
  36. package/package.json +4 -2
  37. package/dist/static/css/app.d3e969a579969be885a3462a1e12e37f.css +0 -2
  38. package/dist/static/css/app.d3e969a579969be885a3462a1e12e37f.css.map +0 -1
  39. package/dist/static/js/app.53370ddfe5eba6a10565.js +0 -2
  40. package/dist/static/js/app.53370ddfe5eba6a10565.js.map +0 -1
  41. package/lib-json/Salesforce-Admin(302)-[Set-10].json +0 -321
  42. package/lib-json/Salesforce-Admin(302)-[Set-1].json +0 -301
  43. package/lib-json/Salesforce-Admin(302)-[Set-2].json +0 -325
  44. package/lib-json/Salesforce-Admin(302)-[Set-3].json +0 -305
  45. package/lib-json/Salesforce-Admin(302)-[Set-4].json +0 -325
  46. package/lib-json/Salesforce-Admin(302)-[Set-5].json +0 -329
  47. package/lib-json/Salesforce-Admin(302)-[Set-6].json +0 -322
  48. package/lib-json/Salesforce-Admin(302)-[Set-7].json +0 -321
  49. package/lib-json/Salesforce-Admin(302)-[Set-8].json +0 -321
  50. package/lib-json/Salesforce-Admin(302)-[Set-9].json +0 -325
  51. package/lib-json/Salesforce-Admin-201-[Set-10].json +0 -158
  52. package/lib-json/Salesforce-Admin-201-[Set-1].json +0 -604
  53. package/lib-json/Salesforce-Admin-201-[Set-2].json +0 -621
  54. package/lib-json/Salesforce-Admin-201-[Set-3].json +0 -650
  55. package/lib-json/Salesforce-Admin-201-[Set-4].json +0 -636
  56. package/lib-json/Salesforce-Admin-201-[Set-5].json +0 -640
  57. package/lib-json/Salesforce-Admin-201-[Set-6].json +0 -126
  58. package/lib-json/Salesforce-Admin-201-[Set-7].json +0 -126
  59. package/lib-json/Salesforce-Admin-201-[Set-8].json +0 -126
  60. package/lib-json/Salesforce-Admin-201-[Set-9].json +0 -126
  61. package/lib-json/Salesforce-Certified-Platform-Developer-1-[Set-1].json +0 -321
  62. package/lib-json/Salesforce-Certified-Platform-Developer-1-[Set-2].json +0 -325
  63. package/lib-json/Salesforce-Certified-Platform-Developer-1-[Set-3].json +0 -321
  64. package/lib-json/Salesforce-Certified-Platform-Developer-1-[Set-4].json +0 -337
  65. package/lib-json/Salesforce-Certified-Platform-Developer-1-[Set-5].json +0 -329
  66. package/lib-json/Salesforce-Certified-Platform-Developer-1-[Set-6].json +0 -325
  67. package/lib-json/Salesforce-Certified-Platform-Developer-1-[Set-7].json +0 -480
  68. package/lib-json/Salesforce-Sales-Cloud-Certification(81)-[Set-1].json +0 -305
  69. package/lib-json/Salesforce-Sales-Cloud-Certification(81)-[Set-2].json +0 -297
  70. package/lib-json/Salesforce-Sales-Cloud-Certification(81)-[Set-3].json +0 -269
  71. package/lib-json/Salesforce-Sales-Cloud-Certification(81)-[Set-4].json +0 -309
  72. package/lib-json/Salesforce-Sales-Cloud-Certification(81)-[Set-5].json +0 -515
  73. package/lib-json/app-builder-01.json +0 -1
  74. package/lib-json/app-builder-02.json +0 -1
  75. package/lib-json/app-builder-03.json +0 -1
  76. package/lib-json/app-builder-04.json +0 -1
  77. package/lib-json/app-builder-05.json +0 -1
  78. package/lib-json/app-builder-06.json +0 -1
  79. package/lib-json/app-builder-07.json +0 -1
  80. package/lib-json/app-builder-08.json +0 -1
  81. package/lib-json/app-builder-09.json +0 -1
  82. package/lib-json/app-builder-10.json +0 -1
  83. package/lib-json/app-builder-11.json +0 -311
@@ -0,0 +1,1387 @@
1
+ {
2
+ "title": "[Dev2]模拟卷B",
3
+ "category": "Dev2-自由部落侠",
4
+ "questions": [
5
+ {
6
+ "describe": "A developer is creating a Lightning web component to display a calendar. The component will be used in multiple countries. In some locales, the first day of the week is a Monday, or a Saturday, or a Sunday.\nWhat should the developer do to ensure the calendar displays accurately for users in every locale?",
7
+ "answerOptions": [
8
+ {
9
+ "describe": "Use a custom metadata type to store key/value pairs.",
10
+ "isRight": false
11
+ },
12
+ {
13
+ "describe": "Query the FirstDayofweek field from the Locale for the current user.",
14
+ "isRight": false
15
+ },
16
+ {
17
+ "describe": "Use UerInfo.getLocale() in the component.",
18
+ "isRight": true
19
+ },
20
+ {
21
+ "describe": "Import the firstDayofweek property in the component.",
22
+ "isRight": false
23
+ }
24
+ ],
25
+ "hashCode": "2019146541",
26
+ "analysis": ""
27
+ },
28
+ {
29
+ "describe": "A developer used custom settings to store some configuration data that changes occasionally. However, tests are now failing in some of the sandboxes that were recently refreshed.\nWhat should be done to eliminate this issue going forward?",
30
+ "answerOptions": [
31
+ {
32
+ "describe": "Set the setting type on the custom setting to Hierarchy.",
33
+ "isRight": false
34
+ },
35
+ {
36
+ "describe": "Set the setting type on the custom setting to List.",
37
+ "isRight": false
38
+ },
39
+ {
40
+ "describe": "Replace custom settings with static resources.",
41
+ "isRight": false
42
+ },
43
+ {
44
+ "describe": "Replace custom settings with custom metadata.",
45
+ "isRight": true
46
+ }
47
+ ],
48
+ "hashCode": "2019146604",
49
+ "analysis": ""
50
+ },
51
+ {
52
+ "describe": "UC wants to develop a customer community to help their customers log issues with their containers. The community needs to function for their German- and Spanish-speaking customers also. UC heard that it's easy to create an international community using Salesforce, and hired a developer to build out the site.\n\nWhat should the developer use to ensure the site is multilingual?",
53
+ "answerOptions": [
54
+ {
55
+ "describe": "Use Custom Metadata to translate custom picklist values.",
56
+ "isRight": false
57
+ },
58
+ {
59
+ "describe": "Use Custom Objects to translate custom picklist values.",
60
+ "isRight": false
61
+ },
62
+ {
63
+ "describe": "Use Custom Settings to ensure custom messages are translated properly. ",
64
+ "isRight": false
65
+ },
66
+ {
67
+ "describe": "Use Custom Labels to ensure custom messages are translated properly.",
68
+ "isRight": true
69
+ }
70
+ ],
71
+ "hashCode": "2019145642",
72
+ "analysis": ""
73
+ },
74
+ {
75
+ "describe": "A developer needs to store variables to control the style and behavior of a Lightning Web Component.\nWhich feature should be used to ensure that the variables are testable in both Production and all Sandboxes?",
76
+ "answerOptions": [
77
+ {
78
+ "describe": "Custom variable",
79
+ "isRight": false
80
+ },
81
+ {
82
+ "describe": "Custom object",
83
+ "isRight": false
84
+ },
85
+ {
86
+ "describe": "Custom metadata",
87
+ "isRight": true
88
+ },
89
+ {
90
+ "describe": "Custom setting",
91
+ "isRight": false
92
+ }
93
+ ],
94
+ "hashCode": "2019146601",
95
+ "analysis": ""
96
+ },
97
+ {
98
+ "describe": "For compliance purposes, a company is required to track long-term product usage in their org. The information that they need to log will be collected from more than one object and, over time, they predict they will have hundreds of millions of records.\n\nWhat should a developer use to implement this?",
99
+ "answerOptions": [
100
+ {
101
+ "describe": "Big Objects",
102
+ "isRight": true
103
+ },
104
+ {
105
+ "describe": "Field History Tracking",
106
+ "isRight": false
107
+ },
108
+ {
109
+ "describe": "Setup Audit Trail",
110
+ "isRight": false
111
+ },
112
+ {
113
+ "describe": "Field Audit Trail",
114
+ "isRight": false
115
+ }
116
+ ],
117
+ "hashCode": "2019145616",
118
+ "analysis": "https://developer.salesforce.com/docs/atlas.en-us.bigobjects.meta/bigobjects/big_object.htm"
119
+ },
120
+ {
121
+ "describe": "UC has enabled the translation workbench and has translated picklist values. UC has a custom multi-select picklist field, Products__c. on the Account object that allows sales reps to specify which of UC's products an Account already has. A developer is tasked with writing an Apex method that retrieves Account records, including the Products__c field.\nWhat should the developer do to ensure the value of Products__c is in the current user's language?",
122
+ "answerOptions": [
123
+ {
124
+ "describe": "Set the locale on each record in the SOQL result list.",
125
+ "isRight": false
126
+ },
127
+ {
128
+ "describe": "Use the locale clause in the SOQL query.",
129
+ "isRight": false
130
+ },
131
+ {
132
+ "describe": "Use toLabel(Products__c) in the fields list of the SOQL query.",
133
+ "isRight": true
134
+ },
135
+ {
136
+ "describe": "Call the translate() method on each record in the SOQL result list.",
137
+ "isRight": false
138
+ }
139
+ ],
140
+ "hashCode": "2019147345",
141
+ "analysis": ""
142
+ },
143
+ {
144
+ "describe": "An Apex Trigger creates a Contract record every time an Opportunity record is marked as Closed and Won. This trigger is working great, except (due to a recent acquisition) historical Opportunity records need to be loaded into the Salesforce instance.\n\nWhen a test batch of records are loaded, the Apex Trigger creates Contract records. A developer is tasked with preventing Contract records from being created when mass loading the Opportunities, but the daily users still need to have the Contract records created.\n\nWhat is the most extendable way to update the Apex Trigger to accomplish this?",
145
+ "answerOptions": [
146
+ {
147
+ "describe": "Add the Profile Id of the user who does the data loading to the Trigger so the Trigger won't fire for this user. ",
148
+ "isRight": false
149
+ },
150
+ {
151
+ "describe": "Use a List Custom Setting to disable the Trigger for the user who does the data loading.",
152
+ "isRight": false
153
+ },
154
+ {
155
+ "describe": "Use a Hierarchy Custom Setting to disable the Trigger for the user who does the data loading.",
156
+ "isRight": true
157
+ },
158
+ {
159
+ "describe": "Add a Validation Rule to the Contract to prevent Contract creation by the user who does the data loading.",
160
+ "isRight": false
161
+ }
162
+ ],
163
+ "hashCode": "2019145615",
164
+ "analysis": ""
165
+ },
166
+ {
167
+ "describe": "Universal Containers decided to use Salesforce to manage a new hire interview process. A custom object called Candidate was created with organization-wide defaults set to Private A lookup on the Candidate object sets an employee as an Interviewer.\nWhat should be used to automatically give Read access to the record when the lookup field is set to the Interviewer user?",
168
+ "answerOptions": [
169
+ {
170
+ "describe": "The record can be shared using a sharing rule.",
171
+ "isRight": false
172
+ },
173
+ {
174
+ "describe": "The record can be shared using a permission set.",
175
+ "isRight": false
176
+ },
177
+ {
178
+ "describe": "The record cannot be shared with the current setup.",
179
+ "isRight": false
180
+ },
181
+ {
182
+ "describe": "The record can be shared using an Apex class.",
183
+ "isRight": true
184
+ }
185
+ ],
186
+ "hashCode": "2019146476",
187
+ "analysis": ""
188
+ },
189
+ {
190
+ "describe": "UC wants to use a Cutomer Community with Customer Community Plus licenses so their customers can track how many containers they are renting and when they are due back. Many of their customers are global companies with complex Account hierarchies, representing various departments within the same organization. One of the requirements is that certain community users within the same Account hierarchy be able to see several departments' containers, based on a junction object that relates the Contact to the various Account records that represent the departments.\n\nWhich solution solves these requirements?",
191
+ "answerOptions": [
192
+ {
193
+ "describe": "A Custom Report Type and a report Lightning Component on the Community Home Page",
194
+ "isRight": false
195
+ },
196
+ {
197
+ "describe": "A Visualforce page that uses a Custom Controller that specifies without sharing to expose the records",
198
+ "isRight": false
199
+ },
200
+ {
201
+ "describe": "A Custom List View on the junction object with filters that will show the proper records based on owner",
202
+ "isRight": false
203
+ },
204
+ {
205
+ "describe": "An Apex Trigger that Creates Apex Managed Sharing records based on the junction object's relatonships",
206
+ "isRight": true
207
+ }
208
+ ],
209
+ "hashCode": "2019146390",
210
+ "analysis": ""
211
+ },
212
+ {
213
+ "describe": "A company represents their customers as Accounts that have an External ID field called Customer_Number__c. They have a custom object, Order__c, with a Lookup to Account to represent Orders that are placed in their external order management system(OMS).\nWhen an order is fulfilled in the OMS, a REST call to Salesforce should be made that creates an Order record in Salesforce and relates it to the proper Account.\nWhat is the optimal way to implement this?",
214
+ "answerOptions": [
215
+ {
216
+ "describe": "Perform a REST PATCH to upsert the Order__c and specify the Account's Customer_Number__c in it.",
217
+ "isRight": true
218
+ },
219
+ {
220
+ "describe": "Perform a REST GET on the Account and a REST POST to update the Order__c with the Account's record ID.",
221
+ "isRight": false
222
+ },
223
+ {
224
+ "describe": "Perform a REST POST to update the Order__c and specify the Account's Customer_Number__c in it.",
225
+ "isRight": false
226
+ },
227
+ {
228
+ "describe": "Perform a REST GET on the Account and a REST PATCH to upsert the Order__c with the Account's record ID.",
229
+ "isRight": false
230
+ }
231
+ ],
232
+ "hashCode": "2019147343",
233
+ "analysis": "https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_upsert.htm\nIf you have an object that references another object using a relationship, you can use REST API to both insert or update a record and reference another object using an external ID."
234
+ },
235
+ {
236
+ "describe": "An org has a requirement that an Account must always have one and only one Contact listed as Primary. So selecting one Contact will de-select any others. The client wants a checkbox on the Contact called 'Is Primary' to control this feature. The client also wants to ensure that the last name of every Contact is stored entirely in uppercase characters.\n\n What is the optimal way to implement these requirements?",
237
+ "answerOptions": [
238
+ {
239
+ "describe": "Write an after update trigger on Contact for the Is Prlmary logic and a separate before update trigger on Contact for the last name logic.",
240
+ "isRight": false
241
+ },
242
+ {
243
+ "describe": "Write an after update trigger on Account for the Is Primary logic and a before update trigger on Contact for the last name logic.",
244
+ "isRight": false
245
+ },
246
+ {
247
+ "describe": "Write a Validation Rule on the Contact for the Is Primary logic and a before update trigger on Contact for the last name logic.",
248
+ "isRight": false
249
+ },
250
+ {
251
+ "describe": "Write a single trigger on Contact for both after update and before update and callout to helper classes to handle each set of logic.",
252
+ "isRight": true
253
+ }
254
+ ],
255
+ "hashCode": "2019145607",
256
+ "analysis": ""
257
+ },
258
+ {
259
+ "describe": "As part of a custom development, a developer creates a Lightning component to show how a particular opportunity progresses over time. The component must display the date stamp when any of the following fields change:\n Amount, Probability, Stage, or Close Date\nHow should the developer access the data that must be displayed?",
260
+ "answerOptions": [
261
+ {
262
+ "describe": "Create a custom date field on Opportunity for each field to track the previous date and execute a SOQL query for date fields.",
263
+ "isRight": false
264
+ },
265
+ {
266
+ "describe": "Execute a SOQL query for Amount, Probability, Stage, and Close Date on the OpportunityHistory object.",
267
+ "isRight": true
268
+ },
269
+ {
270
+ "describe": "Subscribe to the OpportunityHistory Change Data Capture event in the Lightning component.",
271
+ "isRight": false
272
+ },
273
+ {
274
+ "describe": "Subscribe to the Opportunity Change Data Capture event in the Lightning component.",
275
+ "isRight": false
276
+ }
277
+ ],
278
+ "hashCode": "2019146574",
279
+ "analysis": ""
280
+ },
281
+ {
282
+ "describe": "UC stores user preferences in a Hierarchy Custom Setting, User_Prefs__c, with a Checkbox field, Show_Help__c. Company-level defaults are stored at the organizational level, but may be overridden at the user level. If a user has not overridden preferences, then the defaults should be used.\n\nHow should the Show_Help__c preference be retrieved for the current user?",
283
+ "answerOptions": [
284
+ {
285
+ "describe": "Boolean show = User_Prefs__c.Show_Help__c;",
286
+ "isRight": false
287
+ },
288
+ {
289
+ "describe": "Boolean show = User_Prefs__c.getValues(UserInfo.getUserId( )).Show_Help__c;",
290
+ "isRight": false
291
+ },
292
+ {
293
+ "describe": "Boolean show = User_Prefs__c.getInstance( ).Show_Help__c;",
294
+ "isRight": true
295
+ },
296
+ {
297
+ "describe": "Boolean show = User_Prefs__c.getValues( ).Show_Help__c;",
298
+ "isRight": false
299
+ }
300
+ ],
301
+ "hashCode": "2019146422",
302
+ "analysis": ""
303
+ },
304
+ {
305
+ "describe": "UC uses Salesforce to manage its product offerings to customers.\nA developer is building a custom mobile app that must allow app users to view product information, in real time, that is stored in Salesforce.\nWhat should the developer use to get the product information from Salesforce?",
306
+ "answerOptions": [
307
+ {
308
+ "describe": "SOAP API",
309
+ "isRight": false
310
+ },
311
+ {
312
+ "describe": "User Interface API",
313
+ "isRight": false
314
+ },
315
+ {
316
+ "describe": "Streaming API",
317
+ "isRight": false
318
+ },
319
+ {
320
+ "describe": "REST API",
321
+ "isRight": true
322
+ }
323
+ ],
324
+ "hashCode": "2019147319",
325
+ "analysis": ""
326
+ },
327
+ {
328
+ "describe": "Business rules require a Contact to always be create when a new Account is created.\nWhat can be used when developing a custom screen to ensure an Account is not created if the creation of the Contact fails?",
329
+ "answerOptions": [
330
+ {
331
+ "describe": "Use setSavePoint( ) and rollback( ) with a try/catch block.",
332
+ "isRight": true
333
+ },
334
+ {
335
+ "describe": "Use the Database.Delete method if the Contact insertion fails.",
336
+ "isRight": false
337
+ },
338
+ {
339
+ "describe": "Use the Database.Insert method with allOrNone set to False.",
340
+ "isRight": false
341
+ },
342
+ {
343
+ "describe": "Disable Validation rules on Contacts and set default values witha Trigger.",
344
+ "isRight": false
345
+ }
346
+ ],
347
+ "hashCode": "2019145670",
348
+ "analysis": "https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/langCon_apex_transaction_control.htm"
349
+ },
350
+ {
351
+ "describe": "An org has an existing process, built using Process Builder, on Opportunity that sets a custom field, CommissionBaseAmount__c, when an Opportunity is edited and the Opportunity's Amount changes.\nA developer recently deployed an Opportunity before update trigger that uses the CommissionBaseAmount__c and complex logic to calculate a value for a custom field, CommissionAmount__c, when an Opportunity stage changes to Closed/Won.\nUsers report that when they change the Opportunity to Closed/Won and also change the Amount during the same save, the CommissionAmount__c is incorrect.\nWhich action should the developer take to correct this problem?",
352
+ "answerOptions": [
353
+ {
354
+ "describe": "Call the trigger from the process.",
355
+ "isRight": false
356
+ },
357
+ {
358
+ "describe": "Replace the process with a Fast Field Update record-trigger flow.",
359
+ "isRight": true
360
+ },
361
+ {
362
+ "describe": "Call the process from the trigger.",
363
+ "isRight": false
364
+ }
365
+ ],
366
+ "hashCode": "2019146636",
367
+ "analysis": ""
368
+ },
369
+ {
370
+ "describe": "Which statement is considered a best practice for writing bulk safe Apex Triggers?",
371
+ "answerOptions": [
372
+ {
373
+ "describe": "Add records to collections and perform DML operations against these collections.",
374
+ "isRight": true
375
+ },
376
+ {
377
+ "describe": "Perform all DML operations from within a Future Method.",
378
+ "isRight": false
379
+ },
380
+ {
381
+ "describe": "Instead of DML statements, use the Database methods with allOrNone set to False.",
382
+ "isRight": false
383
+ },
384
+ {
385
+ "describe": "Add LIMIT 50000 to every SOQL statement.",
386
+ "isRight": false
387
+ }
388
+ ],
389
+ "hashCode": "2019146386",
390
+ "analysis": ""
391
+ },
392
+ {
393
+ "describe": "Salesforce users consistently receive a \"Maximum trigger depth exceeded\" error when saving an Account.\nHow can a developer fix this error?",
394
+ "answerOptions": [
395
+ {
396
+ "describe": "Split the trigger logic into two separate triggers.",
397
+ "isRight": false
398
+ },
399
+ {
400
+ "describe": "Use a helper class to set a Boolean to TRUE the first time a trigger Is fired, and then modify the trigger to only fire when the Boolean is FALSE.",
401
+ "isRight": true
402
+ },
403
+ {
404
+ "describe": "Convert the trigger to use the @future annotation, and chain any subsequent trigger invocations to the Account object.",
405
+ "isRight": false
406
+ },
407
+ {
408
+ "describe": "Modify the trigger to use the isMultiThread=true annotation.",
409
+ "isRight": false
410
+ }
411
+ ],
412
+ "hashCode": "2019146599",
413
+ "analysis": ""
414
+ },
415
+ {
416
+ "describe": "A corporation has many different Salesforce orgs, with some different objects and some common objects, and wants to build a single Java application that can create, retrieve, and update common object records in all of the different orgs.\n\nWhich method of integration should the application use?",
417
+ "answerOptions": [
418
+ {
419
+ "describe": "Metadata API",
420
+ "isRight": false
421
+ },
422
+ {
423
+ "describe": "Apex REST Web Service",
424
+ "isRight": false
425
+ },
426
+ {
427
+ "describe": "SOAP API with the Partner WSDL",
428
+ "isRight": true
429
+ },
430
+ {
431
+ "describe": "SOAP API with the Enterprise WSDL",
432
+ "isRight": false
433
+ }
434
+ ],
435
+ "hashCode": "2019145610",
436
+ "analysis": ""
437
+ },
438
+ {
439
+ "describe": "A developer needs to send Account records to an external system for backup purposes. The process must take a snapshot of Accounts as they\nare saved and then make a callout to a RESTful web service. The web service can only receive, at most, one record per call.\n\nWhich feature should be used to implememt these requirements?",
440
+ "answerOptions": [
441
+ {
442
+ "describe": "Queueable",
443
+ "isRight": false
444
+ },
445
+ {
446
+ "describe": "Workflow",
447
+ "isRight": false
448
+ },
449
+ {
450
+ "describe": "@future",
451
+ "isRight": false
452
+ },
453
+ {
454
+ "describe": "Process Builder",
455
+ "isRight": true
456
+ }
457
+ ],
458
+ "hashCode": "2019145674",
459
+ "analysis": ""
460
+ },
461
+ {
462
+ "describe": "Which use case can be performed only by using asynchronous Apex?",
463
+ "answerOptions": [
464
+ {
465
+ "describe": "Updating a record after the completion of an insert",
466
+ "isRight": false
467
+ },
468
+ {
469
+ "describe": "Querying tens of thousands of records",
470
+ "isRight": false
471
+ },
472
+ {
473
+ "describe": "Calling a web service from an Apex trigger",
474
+ "isRight": true
475
+ },
476
+ {
477
+ "describe": "Making a call to schedule a batch process to complete in the future",
478
+ "isRight": false
479
+ }
480
+ ],
481
+ "hashCode": "2019146635",
482
+ "analysis": ""
483
+ },
484
+ {
485
+ "describe": "A company uses a custom-built enterprise resource planning (ERP) system to handle order management. The company wants Sales Reps to \nknow the status of orders so that if a customer calls to ask about their shipment, the Sales Rep can advise the customer about the order's \nstatus and tracking number if it is already shipped.\n\nWhich two methods can make this ERP order data visible in Salesforce? Choose 2 answers",
486
+ "answerOptions": [
487
+ {
488
+ "describe": "Use Salesforce Connect to view real-time Order data in the ERP system.",
489
+ "isRight": true
490
+ },
491
+ {
492
+ "describe": "Write a cron job in Salesforce to poll the ERP system for order updates.",
493
+ "isRight": false
494
+ },
495
+ {
496
+ "describe": "Have the ERP system push the data into Salesforce using the SOAP API.",
497
+ "isRight": true
498
+ },
499
+ {
500
+ "describe": "Ensure real-time order data is in Salesforce using the Streaming API.",
501
+ "isRight": false
502
+ }
503
+ ],
504
+ "hashCode": "2019146421",
505
+ "analysis": ""
506
+ },
507
+ {
508
+ "describe": "An org has a process Builder process on Opportunity that sets a custom field,commnissionBaseAccount_c, when an Opportunity is edited and the Opportunity's Amount changes.\nA developer recently deployed an Opportunity before update trigger that uses the commnissionBaseAccount_c and complex logic to calculate a value for a custom field,commnissionBaseAccount_c when an Opportunity stage changes to Closed/Won.\nUsers report that when they change the Opportunity to Closed/Won and also change the Amount during the same save,the commnissionBaseAccount_c is incorrect.\nWhich two actions should the developer take to correct this problem?\nChoose 2 answers",
509
+ "answerOptions": [
510
+ {
511
+ "describe": "Call the trigger from the process.",
512
+ "isRight": true
513
+ },
514
+ {
515
+ "describe": "Uncheck the recursion checkbox on the process.",
516
+ "isRight": false
517
+ },
518
+ {
519
+ "describe": "Use a static Boolean variable in the trigger.",
520
+ "isRight": true
521
+ },
522
+ {
523
+ "describe": "Call the process from the trigger.",
524
+ "isRight": false
525
+ }
526
+ ],
527
+ "hashCode": "2019146538",
528
+ "analysis": ""
529
+ },
530
+ {
531
+ "describe": "<p>Refer to the code below:</p><p><br/></p><p>List&lt;opportunity&gt; opportunities = [ELECT Id, Amount from opportunity ];</p><p>tor (opportunity opp: opportunities) {</p><p>// perform operation here</p><p>}</p><p><br/></p><p>When the code runs, it results in a System Limit Exception with the error message: Apex heap size too large.</p><p>What should be done to fox this error?</p><p><br/></p>",
532
+ "answerOptions": [
533
+ {
534
+ "describe": "<p>Use a SOQL for loop to process the data.</p>",
535
+ "isRight": true
536
+ },
537
+ {
538
+ "describe": "<p>Convert the List into a set.</p>",
539
+ "isRight": false
540
+ },
541
+ {
542
+ "describe": "<p>Use Limits.getLimitHeapSize().</p>",
543
+ "isRight": false
544
+ },
545
+ {
546
+ "describe": "<p>Use a try/catch block to catch the error.</p>",
547
+ "isRight": false
548
+ }
549
+ ],
550
+ "hashCode": "2019145488",
551
+ "analysis": ""
552
+ },
553
+ {
554
+ "describe": "<p>A developer created a Lightning web component for the Account record page that displays the five recently contacted Contacts for an Account. The Apex method, getRecentContacts, returns a list of Contacts and will be wired to a property in the component.</p><p><br/></p><p>01:</p><p>02:&nbsp; &nbsp; public class ContactFetcher&nbsp; {</p><p>03:</p><p>04:&nbsp; &nbsp; &nbsp; &nbsp; static List&lt;Contact&gt; getRecentContacts(Id accountId) {</p><p>05:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; List&lt;Contact&gt; contacts = getFiveMostRecent(accountId) ;</p><p>06:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return contacts;</p><p>07:&nbsp; &nbsp; &nbsp; &nbsp; }</p><p>08:</p><p>09:&nbsp; &nbsp; &nbsp; &nbsp; private static List&lt;Contact&gt; getFiveMostRecent(Id accountId) {</p><p>10:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // ...impletation...</p><p>11:&nbsp; &nbsp; &nbsp; &nbsp;}</p><p>12:&nbsp; &nbsp; }</p><p><br/></p><p>Which two lines must change in the above code to make the Apex method able to be wired? Choose 2 answers</p><p><br/></p>",
555
+ "answerOptions": [
556
+ {
557
+ "describe": "<p>Add public to line 04.</p>",
558
+ "isRight": true
559
+ },
560
+ {
561
+ "describe": "<p>Add @AuraEnabled(cacheable=true) to line 03.</p>",
562
+ "isRight": true
563
+ },
564
+ {
565
+ "describe": "<p>Remove private from line 09.</p>",
566
+ "isRight": false
567
+ },
568
+ {
569
+ "describe": "<p>Add @AuraEnabled(cacheable=true) to line 08.</p>",
570
+ "isRight": false
571
+ }
572
+ ],
573
+ "hashCode": "2019145547",
574
+ "analysis": ""
575
+ },
576
+ {
577
+ "describe": "A developer created a Lightning web component that uses a lightning-record-edit-form to collect information about Leads. Users complain that they only see one error message at a time when they save a Lead record.\n\n Which best practice should the developer use to perform the validations, and allow more than one error message to be displayed simultaneously?",
578
+ "answerOptions": [
579
+ {
580
+ "describe": "Try/catch/finally block",
581
+ "isRight": false
582
+ },
583
+ {
584
+ "describe": "Apex trigger",
585
+ "isRight": false
586
+ },
587
+ {
588
+ "describe": "Validation rules",
589
+ "isRight": false
590
+ },
591
+ {
592
+ "describe": "External JavaScript library",
593
+ "isRight": true
594
+ }
595
+ ],
596
+ "hashCode": "2019147316",
597
+ "analysis": ""
598
+ },
599
+ {
600
+ "describe": "A developer is working on a set of custom Aura components that can be individually added to a home page. One of the components, c:searchAccounts, allows users to search for an Account and then select a specific found Account. Once selected, the other components should get other information related to the selected Account and display it.\nWhich event should the c:searchAccounts component fire to make it known that an Account is selected?",
601
+ "answerOptions": [
602
+ {
603
+ "describe": "An application event",
604
+ "isRight": false
605
+ },
606
+ {
607
+ "describe": "A refreshView event",
608
+ "isRight": false
609
+ },
610
+ {
611
+ "describe": "A publish event",
612
+ "isRight": false
613
+ },
614
+ {
615
+ "describe": "A component event",
616
+ "isRight": true
617
+ }
618
+ ],
619
+ "hashCode": "2019147314",
620
+ "analysis": ""
621
+ },
622
+ {
623
+ "describe": "A lead developer for a Salesforce organization needs to develop a page-centric application that allows the user to interact with multiple objects related to a Contact. The application needs to implement a third-party JavaScript framework such as Angular, and must be made available in both Classic and Lightning Experience.\nGiven these requirements, what is the recommended solution to develop the application?",
624
+ "answerOptions": [
625
+ {
626
+ "describe": "Aura Components",
627
+ "isRight": true
628
+ },
629
+ {
630
+ "describe": "Lightning Web Components",
631
+ "isRight": false
632
+ },
633
+ {
634
+ "describe": "Visualforce",
635
+ "isRight": false
636
+ },
637
+ {
638
+ "describe": "Lightning Experience Builder",
639
+ "isRight": false
640
+ }
641
+ ],
642
+ "hashCode": "2019146383",
643
+ "analysis": ""
644
+ },
645
+ {
646
+ "describe": "The head of recruiting at UC wants to provide all internal users the ability to search for open positions by role, department, and location via a new recruiting app. In addition to search, users of the app should be able to refer a friend, apply for a position, and review the status of their crrert submissions. The app should be made available in Salesforce Mobile, but offline access is not required.\n\nGiven these requirements, what is the recommended approach to develop the app?",
647
+ "answerOptions": [
648
+ {
649
+ "describe": "Lightning Experience Builder",
650
+ "isRight": false
651
+ },
652
+ {
653
+ "describe": "Lightning Web Components",
654
+ "isRight": true
655
+ },
656
+ {
657
+ "describe": "Visualforce",
658
+ "isRight": false
659
+ },
660
+ {
661
+ "describe": "Salesforce SDK",
662
+ "isRight": false
663
+ }
664
+ ],
665
+ "hashCode": "2019145578",
666
+ "analysis": ""
667
+ },
668
+ {
669
+ "describe": "A developer created a Lightning web component that uses a lightning-record-edit-form to collect information about Leads. Users complain that they only see one error message at a time when they save a Lead record.\n\n Which best practice should the developer use to perform the validations, and allow more than one error message to be displayed simultaneously?",
670
+ "answerOptions": [
671
+ {
672
+ "describe": "Process Builder",
673
+ "isRight": false
674
+ },
675
+ {
676
+ "describe": "Custom validation rules",
677
+ "isRight": false
678
+ },
679
+ {
680
+ "describe": "Client-side validation",
681
+ "isRight": true
682
+ },
683
+ {
684
+ "describe": "Apex REST",
685
+ "isRight": false
686
+ }
687
+ ],
688
+ "hashCode": "2019146351",
689
+ "analysis": ""
690
+ },
691
+ {
692
+ "describe": "A developer is tasked with creating an application-centric feature on which end-users can access and update information. This feature must be available in Lightning Experience while working seamlessly in multiple device form factors, such as desktops, phones, and tablets. Additionally, the feature must support Addressable URL Tabsand interact with the Salesforce Console APIs.\nWhat are two approaches a developer can take to build the application and support the business requirements?\nChoose 2 answers",
693
+ "answerOptions": [
694
+ {
695
+ "describe": "Create the application using Aura Components.",
696
+ "isRight": true
697
+ },
698
+ {
699
+ "describe": "Create the application using Lightning web Components wrapped in Aura Components.",
700
+ "isRight": true
701
+ },
702
+ {
703
+ "describe": "Create the application using Lightning Experience Builder.",
704
+ "isRight": false
705
+ },
706
+ {
707
+ "describe": "Create the application using Aura Components wrapped in Lightning web Components.",
708
+ "isRight": false
709
+ }
710
+ ],
711
+ "hashCode": "2019146545",
712
+ "analysis": ""
713
+ },
714
+ {
715
+ "describe": "<p>Consider the Apex class below that defines a RemoteAction used on a Visualforce search page.</p><p>Global with sharing class MyRemoter {</p><p>&nbsp; &nbsp; public String accountName {get; set;}</p><p>&nbsp; &nbsp; public static Account account {get; set;}</p><p>&nbsp; &nbsp; public MyRemoter() {}</p><p>&nbsp; &nbsp;&nbsp;</p><p>&nbsp; &nbsp; @RemoteAction</p><p>&nbsp; &nbsp; global static Account getAccount(String accountName) {</p><p>&nbsp; &nbsp; &nbsp; &nbsp; account = [SELECT Id, Name, NumberOfEmployees FROM Account WHERE Name = :accountName];</p><p>&nbsp; &nbsp; &nbsp; &nbsp; return account;</p><p>&nbsp; &nbsp; }</p><p>}</p><p>Which code snippet will assert that the remote action returned the correct Account?</p><p><br/></p>",
716
+ "answerOptions": [
717
+ {
718
+ "describe": "<p>Account a = MyRemoter.getAccount(&#39;TestAccount&#39;);</p><p>System.assertEquals( &#39;TestAccount&#39;, a.Name);</p><p><br/></p>",
719
+ "isRight": true
720
+ },
721
+ {
722
+ "describe": "<p>Account A = controller.getAccount(&#39;TestAccount&#39;);</p><p>System.assertEquals(&#39;TestAccount&#39;, a.Name);</p><p><br/></p>",
723
+ "isRight": false
724
+ },
725
+ {
726
+ "describe": "<p>MyRemoter remote = new MyRemoter();</p><p>Account a = remote.getAccount(&#39;TestAccount&#39;);</p><p>System.assertEquals(&#39;TestAccount&#39;, a.Name);</p><p><br/></p>",
727
+ "isRight": false
728
+ },
729
+ {
730
+ "describe": "<p>MyRemoter remote = new MyRemoter(&#39;TestAccount&#39;);</p><p>Account a = remote.getAccount();</p><p><br/></p>",
731
+ "isRight": false
732
+ }
733
+ ],
734
+ "hashCode": "2019145550",
735
+ "analysis": ""
736
+ },
737
+ {
738
+ "describe": "<p>A developer creates a Lightning web component to allow a Contact to be quickly entered. However, error messages are not displayed.</p><p>&lt;template&gt;</p><p>&lt;lightning-record-edit-form</p><p>object-api-name=&quot;Contact&quot;&gt;</p><p>&lt;lightning-Input-field field-name=&quot;FirstName&quot;&gt;&lt;/lightning-input-field&gt;</p><p>&lt;lightning-input-field field-name=&quot;LastName&quot;&gt;&lt;/lightning-input-field&gt;</p><p>&lt;lightning-input-field field-name=&quot;Email&quot;&gt;&lt;/lightning-input-field&gt;</p><p>&lt;lightning-button type=&quot;submit&quot;</p><p>name=&quot;submit&quot;</p><p>label=&quot;Create Contact&quot;&gt;</p><p>&lt;/lightning-button&gt;</p><p>&lt;/lightning-record-edit-form)</p><p>&lt;/template&gt;</p><p><br/></p><p>Which component should the developer add to the form to display error messages?</p><p><br/></p>",
739
+ "answerOptions": [
740
+ {
741
+ "describe": "<p>apex:messages</p>",
742
+ "isRight": false
743
+ },
744
+ {
745
+ "describe": "aura:messages",
746
+ "isRight": false
747
+ },
748
+ {
749
+ "describe": "<p>Lightning-messages</p>",
750
+ "isRight": true
751
+ },
752
+ {
753
+ "describe": "<p>lightning-error</p>",
754
+ "isRight": false
755
+ }
756
+ ],
757
+ "hashCode": "2019145456",
758
+ "analysis": ""
759
+ },
760
+ {
761
+ "describe": "<p>A Visualforce page contains an industry select list and displays a table of Accounts that have a matching value in their Industry field.</p><p><br/></p><p>&lt;apex:selectList value=&quot; {!selectedIndustry}&quot;&gt;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &lt;apex:selectOptions values=&quot;{!industries}&quot;/&gt;</p><p>&lt;/apex:selectList&gt;</p><p><br/></p><p>When a user changes the value in the industry select list, the table of Accounts should be automatically updated to show the Accounts associated with the selected industry.</p><p><br/></p><p>What is the optimal way to implement this?</p><p><br/></p>",
762
+ "answerOptions": [
763
+ {
764
+ "describe": "<p>Add an &lt;apex:actionSupport&gt; within the &lt;apex:selectList&gt;.</p>",
765
+ "isRight": false
766
+ },
767
+ {
768
+ "describe": "<p>Add an &lt;apex:actionSupport&gt; within the &lt;apex:selectOptions&gt;.</p>",
769
+ "isRight": false
770
+ },
771
+ {
772
+ "describe": "<p>Add an &lt;apex:actionFunction&gt; within the &lt;apex:selectList&gt;.</p>",
773
+ "isRight": true
774
+ },
775
+ {
776
+ "describe": "<p>Add an &lt;apex:actionFunction&gt; within the &lt;apex:selectOptions&gt;.</p>",
777
+ "isRight": false
778
+ }
779
+ ],
780
+ "hashCode": "2019145426",
781
+ "analysis": ""
782
+ },
783
+ {
784
+ "describe": "<p>Consider the following code snippet:</p><p><br/></p><p>&lt;apex:page docType=&quot;html-5.0&quot; controller=&quot;FindOpportunities”&gt;</p><p>&lt;apex:form &gt;</p><p>&lt;apex:pageBlock &gt;</p><p>&lt;apex:pageBlockSection title=&quot;find opportunity&quot;&gt;</p><p>&lt;apex:input label=&quot;opportunity name”/&gt;</p><p>&lt;apex:commandButton value=&quot;search&quot; action={ !search}&quot;/&gt;</p><p>&lt;apex:pageBlockSection&gt;</p><p>&lt;apex:pageBlockSection title=&quot;Opportunity List&quot; id=&quot;OpportunityList&quot;&gt;</p><p>&lt;!--DATA Table --&gt;</p><p>&lt;apex:pageBlockSection&gt;</p><p>&lt;apex:pageBlock &gt;</p><p>&lt;/apex:form&gt;</p><p>&lt;/apex:page&gt;</p><p><br/></p><p>Users of this Visualforce page complain that the page does a full refresh every time the Search button is pressed.</p><p>What should the developer do to ensure that a partial refresh is made so that only the section identified with opportunityList is re-drawn on the screen?</p><p><br/></p>",
785
+ "answerOptions": [
786
+ {
787
+ "describe": "<p>Ensure the action method search returns null.</p>",
788
+ "isRight": false
789
+ },
790
+ {
791
+ "describe": "<p>Implement the reRender attribute on the &lt;apex:commandButton&gt; tag.</p>",
792
+ "isRight": true
793
+ },
794
+ {
795
+ "describe": "<p>Enclose the DATA table within the &lt;apex:actionRegicn&gt; tag.</p>",
796
+ "isRight": false
797
+ },
798
+ {
799
+ "describe": "<p>Implement the &lt;apex:actionFunction&gt; tag with immediate= true.</p>",
800
+ "isRight": false
801
+ }
802
+ ],
803
+ "hashCode": "2019145458",
804
+ "analysis": ""
805
+ },
806
+ {
807
+ "describe": "<p>A developer created a Lightning web component that allows users to input a text value that is used to search for Accounts by calling&nbsp; an Apex method.The Apex method returns a list of Accountwrappers and is called imperatively from a Javascript event handler.</p><p><br/></p><p>public class AccountSearcher{</p><p>public static List&lt;Accountwrapper&gt; search (String term){</p><p>List&lt;Accountwrapper&gt; wrappers = getMatchingaccountWrappers(term);</p><p>return wrappers;</p><p>&nbsp; &nbsp; }</p><p><br/></p><p>public class Accountwrapper {</p><p>public account(get; set;)</p><p>public Decimal matchProbability(get;set;)</p><p>}</p><p>// ...other methods,including getMatchingAccountWrappers implementation...</p><p>}&nbsp;</p><p><br/></p><p>Which two changes should the developer make so the Apex method functions correctly?</p><p>Choose 2 answers</p><p><br/></p>",
808
+ "answerOptions": [
809
+ {
810
+ "describe": "<p>Add @AuraEnabled to line 09.</p>",
811
+ "isRight": false
812
+ },
813
+ {
814
+ "describe": "<p>Add @AuraEnabled to line 03.</p>",
815
+ "isRight": true
816
+ },
817
+ {
818
+ "describe": "<p>Add @AuraEnabled to lines 11 and l2.</p>",
819
+ "isRight": true
820
+ },
821
+ {
822
+ "describe": "<p>Add @AaraEnabled to line 01.</p>",
823
+ "isRight": false
824
+ }
825
+ ],
826
+ "hashCode": "2019145457",
827
+ "analysis": ""
828
+ },
829
+ {
830
+ "describe": "<p>Which three actions must be completed in a Lightning web component for a JavaScript file in a static resource to be loaded? Choose 3 answers</p>",
831
+ "answerOptions": [
832
+ {
833
+ "describe": "<p>Import the static resource.</p>",
834
+ "isRight": true
835
+ },
836
+ {
837
+ "describe": "<p>Reference the Static resource in a &lt;script&gt; tag.</p>",
838
+ "isRight": false
839
+ },
840
+ {
841
+ "describe": "<p>Use the getSobjectType() method in an Apex class.</p>",
842
+ "isRight": false
843
+ },
844
+ {
845
+ "describe": "<p>Import a method from the platformResourceLoader.</p>",
846
+ "isRight": true
847
+ },
848
+ {
849
+ "describe": "<p>Call loadScript.</p>",
850
+ "isRight": true
851
+ }
852
+ ],
853
+ "hashCode": "2019145422",
854
+ "analysis": "<p>https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.js_third_party_library</p>"
855
+ },
856
+ {
857
+ "describe": "A developer has a Visualforce page that automatically assigns ownership of an Account to a queue upon save.The page appears to correctly assign ownership, but an assertion validating the correct ownership fails.\nWhat can cause this problem?",
858
+ "answerOptions": [
859
+ {
860
+ "describe": "The test class does not retrieve the updated value from the database.",
861
+ "isRight": true
862
+ },
863
+ {
864
+ "describe": "The test class does not use the seeAllData=true annotation.",
865
+ "isRight": false
866
+ },
867
+ {
868
+ "describe": "The test class does not use the Bulk API for loading test data.",
869
+ "isRight": false
870
+ },
871
+ {
872
+ "describe": "The test class does not implement the Queueable interface.",
873
+ "isRight": false
874
+ }
875
+ ],
876
+ "hashCode": "2019146515",
877
+ "analysis": ""
878
+ },
879
+ {
880
+ "describe": "A developer wrote a trigger on Opportunity that will update a custom Last Sold Date field on the Opportunity's Account whenever an \nOpportunity is closed. In the test class for the trigger, the assertion to validate the Last Sold Date field fails.\n\nWhat might be causing the failed assertion?",
881
+ "answerOptions": [
882
+ {
883
+ "describe": "The test dass has not defined an Account owner when inserting the test data.",
884
+ "isRight": false
885
+ },
886
+ {
887
+ "describe": "The test class has not re-queried the Account record after updating the Opportunity.",
888
+ "isRight": true
889
+ },
890
+ {
891
+ "describe": "The test class has not implemented seeAllData=true in the test method.",
892
+ "isRight": false
893
+ },
894
+ {
895
+ "describe": "The test class is not using System.runAs() to run tests as a Salesforce administrator.",
896
+ "isRight": false
897
+ }
898
+ ],
899
+ "hashCode": "2019146451",
900
+ "analysis": ""
901
+ },
902
+ {
903
+ "describe": "A developer is debugging an Apex-based order creation process that has a requirement to have three savepoints, SP1, SP2, and SP3 (created in order, before the final execution of the process.\nDuring the final execution process, the developer has a routine to roll back to SP1 for a given condition. Once the condition is fixed, the code then calls a roll back to SP3 to continue with final execution. However, when the roll back to SP3 is called, a runtime error occurs.\nWhy does the developer receive a runtime error?",
904
+ "answerOptions": [
905
+ {
906
+ "describe": "The developer used too many savepoints in one trigger session.",
907
+ "isRight": false
908
+ },
909
+ {
910
+ "describe": "The developer has too many DML statements between the savepoints.",
911
+ "isRight": false
912
+ },
913
+ {
914
+ "describe": "SP3 became invalid when SP1 was rolled back.",
915
+ "isRight": true
916
+ },
917
+ {
918
+ "describe": "The developer should have called SP2 before calling SP3.",
919
+ "isRight": false
920
+ }
921
+ ],
922
+ "hashCode": "2019146483",
923
+ "analysis": ""
924
+ },
925
+ {
926
+ "describe": "A developer is writing a lest test for a Lightning web component that conditionally displays child components based on a user's checkbox selections.\nWhat should the developer do to properly test that the correct components display and hide for each scenario?",
927
+ "answerOptions": [
928
+ {
929
+ "describe": "Reset the DOM after each test with the afterEach{} method.",
930
+ "isRight": false
931
+ },
932
+ {
933
+ "describe": "Add a teardown block to reset the DOM after each test.",
934
+ "isRight": false
935
+ },
936
+ {
937
+ "describe": "Create a new describe block for each test.",
938
+ "isRight": true
939
+ },
940
+ {
941
+ "describe": "Create a new ladom instance for each test.",
942
+ "isRight": false
943
+ }
944
+ ],
945
+ "hashCode": "2019146477",
946
+ "analysis": ""
947
+ },
948
+ {
949
+ "describe": "A company notices that their unit tests in a test class with many methods to create many records for prerequisite reference data are slow. \nWhat can a developer to do address the issue?",
950
+ "answerOptions": [
951
+ {
952
+ "describe": "Move the prerequisite reference data setup to a TestDataFactory and call that from each test method.",
953
+ "isRight": false
954
+ },
955
+ {
956
+ "describe": "Move the prerequisite reference data setup to a @testSetup method in the test class.",
957
+ "isRight": true
958
+ },
959
+ {
960
+ "describe": "Move the prerequisite reference data setup to a static method in the test class and call that from each test method.",
961
+ "isRight": false
962
+ },
963
+ {
964
+ "describe": "Move the prerequisite reference data setup to the constructor for the test class.",
965
+ "isRight": false
966
+ }
967
+ ],
968
+ "hashCode": "2019145612",
969
+ "analysis": ""
970
+ },
971
+ {
972
+ "describe": "How should a developer assert that a trigger with an asynchronous process has successfully run?",
973
+ "answerOptions": [
974
+ {
975
+ "describe": "Create all test data, use @future in the test class, then perform assertions.",
976
+ "isRight": false
977
+ },
978
+ {
979
+ "describe": "Create all test data in the test class, invoke Test.startTest() and Test.stopTest() and then perform assertions,",
980
+ "isRight": true
981
+ },
982
+ {
983
+ "describe": "Insert records Into Salesforce, use seeAllData=true, then perform assertions.",
984
+ "isRight": false
985
+ },
986
+ {
987
+ "describe": "Create all test data in the test class, use system.runAs() to invoke the trigger, then perform assertions.",
988
+ "isRight": false
989
+ }
990
+ ],
991
+ "hashCode": "2019146633",
992
+ "analysis": ""
993
+ },
994
+ {
995
+ "describe": "An end user reports that a Lightning component is performing poorly.\nWhich two steps should be taken in production to investigate? Choose 2 answers",
996
+ "answerOptions": [
997
+ {
998
+ "describe": "Enable Debug Mode for Lightning components.",
999
+ "isRight": false
1000
+ },
1001
+ {
1002
+ "describe": "Print console.log() statements to identify where actions are deplayed.",
1003
+ "isRight": true
1004
+ },
1005
+ {
1006
+ "describe": "Use the Salesforce Lightning Inspector Chrome extension.",
1007
+ "isRight": true
1008
+ },
1009
+ {
1010
+ "describe": "Add a trace flag to the user who reported the issue.",
1011
+ "isRight": false
1012
+ }
1013
+ ],
1014
+ "hashCode": "2019147344",
1015
+ "analysis": ""
1016
+ },
1017
+ {
1018
+ "describe": "A large company uses Salesforce across several departments. Each department has its own Salesforce Administrator. It was agreed that each \nAdministrator would have their own sandbox in which to test changes.\n\nRecently, users notice that fields that were recently added for one department suddenly disappear without warning. Also, Workflows that \nonce sent emails and created tasks no longer do so.\n\nWhich two statements are true regarding these issues and resolution?Choose 2 answers",
1019
+ "answerOptions": [
1020
+ {
1021
+ "describe": "The administrators are deploying their own Change Sets, thus deleting each other's fields from the objects in production.",
1022
+ "isRight": false
1023
+ },
1024
+ {
1025
+ "describe": "A sandbox should be created to use as a unified testing environment instead of deploying Change Sets directly to production.",
1026
+ "isRight": true
1027
+ },
1028
+ {
1029
+ "describe": "The administrators are deploying their own Change Sets over each other, thus replacing entire Page Layouts and Workflows in Production.",
1030
+ "isRight": true
1031
+ },
1032
+ {
1033
+ "describe": "Page Layouts should never be deployed via Change Sets, as this causes Workflows and Field-level Security to be reset and fields to disappear.",
1034
+ "isRight": false
1035
+ }
1036
+ ],
1037
+ "hashCode": "2019146420",
1038
+ "analysis": ""
1039
+ },
1040
+ {
1041
+ "describe": "<p>A developer created an Apex class that makes an outbound RESTful callout. The following class was created to send a fake response in Apex test methods.</p><p><br/></p><p>@isTest</p><p>public class TestHttpCalloutMock implements</p><p>HttpCalloutMock {</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; public HTTPResponse respond (HTTPRequest request) {</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; HttpResponse response = new HttpResponse( ) ;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; response.setHeader (&#39;Content-Type &#39; ,</p><p>&#39;application/json&#39;);</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; response.setBody(&#39; {&quot;colors&quot;: [&quot;red&quot;, &quot;blue&quot;, &quot;yellow&quot;, &quot;green&quot;, &quot;pink&quot;]}&#39;);</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; response.setStatusCode (200);</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return response;</p><p><br/></p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</p><p><br/></p><p>}</p><p><br/></p><p>Which method can be called to return this fake response in the test methods?</p><p><br/></p>",
1042
+ "answerOptions": [
1043
+ {
1044
+ "describe": "Test.setTestData",
1045
+ "isRight": false
1046
+ },
1047
+ {
1048
+ "describe": "<p>Test.setMock</p>",
1049
+ "isRight": true
1050
+ },
1051
+ {
1052
+ "describe": "<p>Test.createStub</p>",
1053
+ "isRight": false
1054
+ },
1055
+ {
1056
+ "describe": "<p>testSetup</p>",
1057
+ "isRight": false
1058
+ }
1059
+ ],
1060
+ "hashCode": "2019145429",
1061
+ "analysis": "<p>https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_restful_http_testing_httpcalloutmock.htm</p>"
1062
+ },
1063
+ {
1064
+ "describe": "<p>A developer wrote a class named AccounthistoryManager that relies on field history tracking. The class has a static method called getAccountHistory that takes in an Account as a parameter and returns a list of associated AccountHistory object records.</p><p>The following test fails:</p><p><br/></p><p>@isTest</p><p>public static void testAccountHistory() {&nbsp;</p><p>Account a= new Account (Name = &quot;test&quot;);</p><p>insert a;</p><p>a.name =&nbsp; a.name = *1</p><p>Update a;</p><p>List&lt;AccountHistory&gt; ahList = AccounthistoryManager. GetAccounthistory(a);</p><p>System.assert ( ahList.size() &gt; 0 )</p><p><br/></p><p>What should be done to make this test pass?</p><p><br/></p>",
1065
+ "answerOptions": [
1066
+ {
1067
+ "describe": "<p>Use Test.isRunningTest() in getAccountHistory() to conditionally return fake AccountHistory records.</p>",
1068
+ "isRight": true
1069
+ },
1070
+ {
1071
+ "describe": "<p>Use @isTest(SeeAllData=true) to see historical data from the org and query for AccountHistory records.</p>",
1072
+ "isRight": false
1073
+ },
1074
+ {
1075
+ "describe": "<p>Create AccountHistory records manually in the test setup and write a query to get them.</p>",
1076
+ "isRight": false
1077
+ },
1078
+ {
1079
+ "describe": "<p>The test method should be deleted since this code cannot be tested.</p>",
1080
+ "isRight": false
1081
+ }
1082
+ ],
1083
+ "hashCode": "2019145485",
1084
+ "analysis": ""
1085
+ },
1086
+ {
1087
+ "describe": "<p>A developer created the following test method:</p><p><br/></p><p>@isTest (SeeAllData= true)</p><p>public static void testDeleteTrigger(){</p><p><br/></p><p>Account testAccount = new Account (name = &#39; Test1&#39;);</p><p>Insert testAccount;</p><p><br/></p><p>List&lt;Account&gt; testAccounts = [SELECT Id, Name from Account WHERE Name like &#39; Test &#39;];</p><p>System.assert (testAccounts.size() &gt; 0);&nbsp;</p><p><br/></p><p>delece testAccounts;</p><p>testAccounts = [SELECT Id, Name from Account WHERE Name like &#39; Test &#39;];</p><p>System.assert (testAccounts.size() == 0);</p><p>}</p><p><br/></p><p>The developer org has five accounts where the name starts with &quot;Test&quot;. The developer executes this test in the Developer Console.</p><p>After the test code runs, which statement is true?</p><p><br/></p>",
1088
+ "answerOptions": [
1089
+ {
1090
+ "describe": "<p>The test will fail.</p>",
1091
+ "isRight": false
1092
+ },
1093
+ {
1094
+ "describe": "<p>There will be no accounts where the name starts with &quot;Test&quot;.</p>",
1095
+ "isRight": false
1096
+ },
1097
+ {
1098
+ "describe": "<p>There will be five accounts where the name starts with &quot;Test&quot;.</p>",
1099
+ "isRight": true
1100
+ },
1101
+ {
1102
+ "describe": "<p>There will be six accounts where the name starts with &quot;Test&quot;.</p>",
1103
+ "isRight": false
1104
+ }
1105
+ ],
1106
+ "hashCode": "2019145486",
1107
+ "analysis": ""
1108
+ },
1109
+ {
1110
+ "describe": "<p>A developer created a class that implements the Queueable Interface, as follows:&nbsp;&nbsp;</p><p><br/></p><p>Public class without sharing OrderQueueableJob implements Queueable {</p><p>Public void execute (QueueableContext context) {</p><p>//implementation logic</p><p>System. enqueueJob {new FollowUpJob()};</p><p>}</p><p>}</p><p><br/></p><p>As part of the deployment process, the developer is asked to create a corresponding test class.</p><p>Which two actions should the developer take to successfully execute the test class?</p><p>Choose 2 answers</p><p><br/></p>",
1111
+ "answerOptions": [
1112
+ {
1113
+ "describe": "<p>Ensure the running user of the test class has, at least, the View All permission on the Order object.</p>",
1114
+ "isRight": false
1115
+ },
1116
+ {
1117
+ "describe": "<p>Enclose System. enqueueJob (new OrderQueueableJob()} within Test.startTest and Test. stopTest().</p>",
1118
+ "isRight": true
1119
+ },
1120
+ {
1121
+ "describe": "<p>Implement seeAllData=true to ensure the Queueable job is able to run in bulk mode.</p>",
1122
+ "isRight": false
1123
+ },
1124
+ {
1125
+ "describe": "<p>Implement Test.isRunningTest to prevent chaining jobs during test execution.</p>",
1126
+ "isRight": true
1127
+ }
1128
+ ],
1129
+ "hashCode": "2019145461",
1130
+ "analysis": ""
1131
+ },
1132
+ {
1133
+ "describe": "A company manages information about their product offerings in custom objects named Catalog and Catalog Item. Catalog Item has a master-detail field to Catalog, and each Catalog may have as many as 100,000 Catalog Items.\nBoth custom objects have a CurrencyIsoCode text field that contains the currency code they should use. If a Catalog's CurrencyIsoCode changes, all of its Catalog Items' CurrencyIsoCodes should be changes as well.\nWhat should a developer use to update the CurrencyIsoCodes on the Catalog Items when the Catalog's CurrencyIsoCode changes?",
1134
+ "answerOptions": [
1135
+ {
1136
+ "describe": "An after insert trigger on Catalog that updates the Catalog Items if the Catalog's CurrencyIsoCode is different",
1137
+ "isRight": false
1138
+ },
1139
+ {
1140
+ "describe": "A Database.Schedulable and Database.Batchable class that queries the Catalog object and updates the Catalog Items if the Catalog CurrencyIsoCode is different.",
1141
+ "isRight": false
1142
+ },
1143
+ {
1144
+ "describe": "An after insert trigger on Catalog Item that updates the Catalog Items if the Catalog's CurrencyIsoCode is different",
1145
+ "isRight": false
1146
+ },
1147
+ {
1148
+ "describe": "A Database.Schedulable and Database.Batchable class that queries the Catalog Item object and updates the Catalog Items if the Catalog CurrencyIsoCode is different.",
1149
+ "isRight": true
1150
+ }
1151
+ ],
1152
+ "hashCode": "2019146637",
1153
+ "analysis": ""
1154
+ },
1155
+ {
1156
+ "describe": "Universal Containers (UC) calculates commissions on their Opportunities in different ways based on complex rules that vary depending on the line of business of the Opportunity.\nWhenever a new line of business is added to Salesforce at UC, it is likely that a different calculation will need to be added too. When an Opportunity's stage is changed to Closed/Won, its commission should be calculated in real time.\nWhat should a developer use so that different implementations of the commission calculation can be invoked on the stage change?",
1157
+ "answerOptions": [
1158
+ {
1159
+ "describe": "A final class with multiple methods",
1160
+ "isRight": false
1161
+ },
1162
+ {
1163
+ "describe": "Apex Describe Schema methods",
1164
+ "isRight": false
1165
+ },
1166
+ {
1167
+ "describe": "An Apex class with a custom enum",
1168
+ "isRight": true
1169
+ },
1170
+ {
1171
+ "describe": "An Interface and implementing classes.",
1172
+ "isRight": false
1173
+ }
1174
+ ],
1175
+ "hashCode": "2019147321",
1176
+ "analysis": ""
1177
+ },
1178
+ {
1179
+ "describe": "A developer wishes to improve runtime performance of Apex calls by caching results on the client.\nWhat is the best way to implement this?",
1180
+ "answerOptions": [
1181
+ {
1182
+ "describe": "Decorate the server-side method with @AuraEnabled(storable=true).",
1183
+ "isRight": false
1184
+ },
1185
+ {
1186
+ "describe": "Decorate the server-side method with @AuraEnabled(cacheable=true).",
1187
+ "isRight": true
1188
+ },
1189
+ {
1190
+ "describe": "Call the setStorable( ) method on the action in the JavaScript client-side code.",
1191
+ "isRight": false
1192
+ },
1193
+ {
1194
+ "describe": "Set a cookie in the browser for use upon return to the page.",
1195
+ "isRight": false
1196
+ }
1197
+ ],
1198
+ "hashCode": "2019145641",
1199
+ "analysis": "https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/controllers_server_apex_auraenabled_annotation.htm"
1200
+ },
1201
+ {
1202
+ "describe": "There is an Apex controller and a Visualforce page in an org that displays records with a custom filter consisting of a combination of picklist values selected by the user.\nThe page takes too long to display results for some of the input combinations, while for other input choices it throws the exception, \"Maximum view state size limit exceeded\".\nWhat step should the developer take to resolve this issue?",
1203
+ "answerOptions": [
1204
+ {
1205
+ "describe": "Adjust any code that filters by picklist values since they are not indexed.",
1206
+ "isRight": false
1207
+ },
1208
+ {
1209
+ "describe": "Split the layout to filter records in one Visualforce page and display the list of records in a second page using the same Apex controller.",
1210
+ "isRight": false
1211
+ },
1212
+ {
1213
+ "describe": "Remove instances of the transient keyword from the Apex controller to avoid the view state error.",
1214
+ "isRight": false
1215
+ },
1216
+ {
1217
+ "describe": "Use a StandardSetController or SOQL LIMIT In the Apex controller to limit the number of records displayed at a time.",
1218
+ "isRight": true
1219
+ }
1220
+ ],
1221
+ "hashCode": "2019146631",
1222
+ "analysis": ""
1223
+ },
1224
+ {
1225
+ "describe": "As part of a custom development, a developer creates a Lightning Component to show how a particular opportunity progresses over time. The component must display the date stamp when any of the following fields change:\n\n• Amount, Probability, Stage, or Close Date\n\nWhat is the most efficient way to query such information?",
1226
+ "answerOptions": [
1227
+ {
1228
+ "describe": "[Select Amont, CloseDate, StageName, Probability FROM Opportunity__History WHERE OpportunityId = : oppId];",
1229
+ "isRight": false
1230
+ },
1231
+ {
1232
+ "describe": "[Select Amount, CloseDate, StageName, Probability FROM OpportunityHistory WHERE OpportunityId = : oppId] ;",
1233
+ "isRight": true
1234
+ },
1235
+ {
1236
+ "describe": "[Select NewWalue, OldValue FROM OpportunityField__History WHERE OpportunityId = : oppId AND Field IN ('StageName', 'Probability', 'Amount', 'CloseDate')];",
1237
+ "isRight": false
1238
+ },
1239
+ {
1240
+ "describe": "[Select NewWalue, OldValue FROM OpportunityField__History WHERE OpportunityId = : oppId AND Field IN ('StageName', 'Probability', 'Amount', 'CloseDate')];",
1241
+ "isRight": false
1242
+ }
1243
+ ],
1244
+ "hashCode": "2019146419",
1245
+ "analysis": "https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_opportunityfieldhistory.htm"
1246
+ },
1247
+ {
1248
+ "describe": "A developer created an Opportunity trigger that updates the account rating when an associated opportunity is considered high value. Current criteria for an opportunity to be considered high value is an amount greater than or equal to $1,000,000. However, this criteria value can change over time.\nThere is a new requirement to also display high value opportunities In a Lightning web component.\nWhich two actions should the developer take to prevent the business logic that obtains the high value opportunities from being repeated In more than one place?\nChoose 2 answers",
1249
+ "answerOptions": [
1250
+ {
1251
+ "describe": "Use custom metadata to hold the high value amount.",
1252
+ "isRight": true
1253
+ },
1254
+ {
1255
+ "describe": "Call the trigger from the Lightning web component.",
1256
+ "isRight": false
1257
+ },
1258
+ {
1259
+ "describe": "Leave the business logic code inside the trigger for efficiency.",
1260
+ "isRight": false
1261
+ },
1262
+ {
1263
+ "describe": "Create a helper class that fetches the high value opportunities.",
1264
+ "isRight": true
1265
+ }
1266
+ ],
1267
+ "hashCode": "2019146607",
1268
+ "analysis": ""
1269
+ },
1270
+ {
1271
+ "describe": "A developer is creating a page in App Builder that will be used in the Salesforce mobile app.\nWhich two practices should the developer follow to ensure the page operates with optimal performance?\nChoose 2 answers",
1272
+ "answerOptions": [
1273
+ {
1274
+ "describe": "Limit five visible components on the page.",
1275
+ "isRight": false
1276
+ },
1277
+ {
1278
+ "describe": "Limit 25 fields on the record detail page.",
1279
+ "isRight": true
1280
+ },
1281
+ {
1282
+ "describe": "Limit the number of Tabs and Accordion components.",
1283
+ "isRight": false
1284
+ },
1285
+ {
1286
+ "describe": "Analyze the page with Performance Analysis for App Builder.",
1287
+ "isRight": true
1288
+ }
1289
+ ],
1290
+ "hashCode": "2019146632",
1291
+ "analysis": "https://help.salesforce.com/s/articleView?id=sf.lightning_page_performance.htm&type=5"
1292
+ },
1293
+ {
1294
+ "describe": "A business currently has a process to manually upload orders from its external Order Management System (OMS) into Salesforce.\nThis is a labor intensive process since accounts must be exported out of Salesforce to get the IDs. The upload file must be updated with the correct account IDs to relate the orders to the corresponding accounts.\nWhich two recommendations should make this process more efficient?\nChoose 2 answers",
1295
+ "answerOptions": [
1296
+ {
1297
+ "describe": "Ensure the data in the file is sorted by the order ID.",
1298
+ "isRight": false
1299
+ },
1300
+ {
1301
+ "describe": "Use the upsert wizard in the Data Loader to import the data.",
1302
+ "isRight": true
1303
+ },
1304
+ {
1305
+ "describe": "Identify unique fields on Order and Account and set them as External IDs.",
1306
+ "isRight": true
1307
+ },
1308
+ {
1309
+ "describe": "Use the insert wizard in the Data Loader to import the data.",
1310
+ "isRight": false
1311
+ }
1312
+ ],
1313
+ "hashCode": "2019146602",
1314
+ "analysis": ""
1315
+ },
1316
+ {
1317
+ "describe": "<p>Consider the following code snippet:</p><p><br/></p><p>public static List&lt;Account&gt; getAccounts (Date thisDate, Id goldenRT) {</p><p>List&lt;Account&gt; accountList = [select Id,Name, Industry FROM Account WHERE CreatedDate = :thisDate OR RecordTypeId = :goldenRT];&nbsp;</p><p>return accountList;</p><p>}</p><p><br/></p><p>The Apex method is executed in an environment with a large data volume count for Accounts, and the query Is performing poorly.</p><p>Which technique should the developer implement to ensure the query performs optimally, while preserving the entire result set?</p><p><br/></p>",
1318
+ "answerOptions": [
1319
+ {
1320
+ "describe": "<p>Annotate the method with the @Future annotation.</p>",
1321
+ "isRight": false
1322
+ },
1323
+ {
1324
+ "describe": "<p>Create a formula field to combine the createdDate and RecordType value, then filter based on the formula.</p>",
1325
+ "isRight": false
1326
+ },
1327
+ {
1328
+ "describe": "<p>Use the Database. queryLocator method to retrieve the accounts.</p>",
1329
+ "isRight": false
1330
+ },
1331
+ {
1332
+ "describe": "<p>Break down the query into two individual queries and join the two result sets.</p>",
1333
+ "isRight": true
1334
+ }
1335
+ ],
1336
+ "hashCode": "2019145521",
1337
+ "analysis": ""
1338
+ },
1339
+ {
1340
+ "describe": "<p>Given a list of Opportunity records named opportunityList, which code snippet is best for querying all Contacts of the Opportunity&#39;s Account?</p>",
1341
+ "answerOptions": [
1342
+ {
1343
+ "describe": "<p>List &lt;Contact&gt; contactList = new List &lt;Contact&gt;();</p><p>Set &lt;Id&gt; accountIds = new Set &lt;Id&gt; ();</p><p>for (opportunity o : opportunityList){</p><p>&nbsp; &nbsp; &nbsp; accountIds.add(o.AccountId);</p><p>}</p><p><br/></p><p>for(Account a : [SELECT Id, (SELECT Id FROM Contacts) FROM Account WHERE Id&nbsp; &nbsp;IN :accountIds]) {</p><p>&nbsp; &nbsp; &nbsp; contactList.addAll (a.Contacts) ;</p><p>}</p><p><br/></p>",
1344
+ "isRight": true
1345
+ },
1346
+ {
1347
+ "describe": "<p>List &lt;Contact&gt; contactList = new List &lt;Contact&gt;();</p><p>for ( Contact c : [SELECT Id FROM Contact WHERE AccountId IN : opportunityList.Accountld]){</p><p>&nbsp; &nbsp; &nbsp; contactList.add (c) ;</p><p>}</p><p><br/></p>",
1348
+ "isRight": false
1349
+ },
1350
+ {
1351
+ "describe": "<p>List&lt;Contact&gt; contactList = new List&lt;Contact&gt;();</p><p>for (opportunity o : opportunityList){</p><p>&nbsp; &nbsp; &nbsp; Account a = [SELECT Id, (SELECT Id FROM Contacts) FROM Account WHERE Id = : o.AccountId];</p><p>&nbsp; &nbsp; &nbsp; contactList.addAll (a.Contacts) ;</p><p>}</p><p><br/></p>",
1352
+ "isRight": false
1353
+ },
1354
+ {
1355
+ "describe": "<p>List&lt;Contact&gt; contactList = new List&lt;Contact&gt;();</p><p>Set&lt;Id&gt; accountIds = new Set&lt;Id&gt;() ;</p><p>for (Opportunity o : opportunityList){</p><p>&nbsp; &nbsp; &nbsp; contactIds.add (o.Contacts) ;</p><p>}</p><p><br/></p><p>for (Contact c : [SELECT Id FROM Contact WHERE Id IN :contactIds]){</p><p>&nbsp; &nbsp; &nbsp; &nbsp; contactList.add (c) ;</p><p>}</p><p><br/></p>",
1356
+ "isRight": false
1357
+ }
1358
+ ],
1359
+ "hashCode": "2019145421",
1360
+ "analysis": ""
1361
+ },
1362
+ {
1363
+ "describe": "<p>The following code segment is called from a trigger handler class from the Opportunity trigger:</p><p><br/></p><p>for (opportunity opp: Trigger.new){</p><p>if (opp . amount &gt;= 1000000)</p><p>Account acct = [SELECT Id, status FROM Account WHERE id = :opp .accountId LIMIT 1);</p><p>acct.status. = &#39;High Potential&#39;;</p><p>Update. Act;</p><p>}</p><p>}</p><p><br/></p><p>Which two changes should improve this code and make it more efficient?</p><p>Choose 2 answers</p><p><br/></p>",
1364
+ "answerOptions": [
1365
+ {
1366
+ "describe": "<p>The method must be annotated with the @InvocableMethod annotation.</p>",
1367
+ "isRight": true
1368
+ },
1369
+ {
1370
+ "describe": "<p>Move the SOQL to fetch the account record outside of the tor loop.</p>",
1371
+ "isRight": true
1372
+ },
1373
+ {
1374
+ "describe": "<p>System.LimitException: Too many SOQL Queries on Account</p>",
1375
+ "isRight": false
1376
+ },
1377
+ {
1378
+ "describe": "<p>Use Trigger.old instead of Trigger .new.</p>",
1379
+ "isRight": false
1380
+ }
1381
+ ],
1382
+ "hashCode": "2019145460",
1383
+ "analysis": ""
1384
+ }
1385
+ ],
1386
+ "hashCode": "-1290254627"
1387
+ }