@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,1403 @@
1
+ {
2
+ "title": "[Dev2]模拟卷A",
3
+ "category": "Dev2-自由部落侠",
4
+ "questions": [
5
+ {
6
+ "describe": "Universal Containers implements a private sharing model for the Convention_Attendee__c custom object. As part of a new quality assurance\neffort, the company created an Event_Reviewer__c user lookup field on the object. Management wants the event reviewer to automatically\ngain Read/Write access to every record they are assigned to\n\nWhat is the best approach to ensure the assigned reviewer obtains Read/Write access to the record?",
7
+ "answerOptions": [
8
+ {
9
+ "describe": "Create a criteria-based sharing rule on the Convention Attendee custom object to share the records the a group of Event Reviewers.",
10
+ "isRight": false
11
+ },
12
+ {
13
+ "describe": "Create criteria-based sharing rules on the Convention Attendee custom object to share the records with the Event Reviewers.",
14
+ "isRight": false
15
+ },
16
+ {
17
+ "describe": "Create an After Insert trigger on the Convention Attendee custom object, and use Apex Sharing Reasons and Apex Managed Sharing.",
18
+ "isRight": true
19
+ },
20
+ {
21
+ "describe": "Create a Before Insert trigger on the Convention Attendee custom object, and use Apex Sharing Reasons and Apex Managed Sharing.",
22
+ "isRight": false
23
+ }
24
+ ],
25
+ "hashCode": "2019145673",
26
+ "analysis": ""
27
+ },
28
+ {
29
+ "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?",
30
+ "answerOptions": [
31
+ {
32
+ "describe": "The record can be shared using a sharing rule.",
33
+ "isRight": false
34
+ },
35
+ {
36
+ "describe": "The record can be shared using a permission set.",
37
+ "isRight": false
38
+ },
39
+ {
40
+ "describe": "The record cannot be shared with the current setup.",
41
+ "isRight": false
42
+ },
43
+ {
44
+ "describe": "The record can be shared using an Apex class.",
45
+ "isRight": true
46
+ }
47
+ ],
48
+ "hashCode": "2019146476",
49
+ "analysis": ""
50
+ },
51
+ {
52
+ "describe": "An org records customer order information in a custom object, Order__c, that has fields for the shipping address. A developer is tasked with adding code to calculate shipping changes on an order, based on a flat percentage rate associated with the region of the shipping address.\nWhat should the developer use to store the rates by region, so that when the changes are deployed to production no additional steps are needed for the calculation to work?",
53
+ "answerOptions": [
54
+ {
55
+ "describe": "Custom object",
56
+ "isRight": false
57
+ },
58
+ {
59
+ "describe": "Custom metadata type",
60
+ "isRight": true
61
+ },
62
+ {
63
+ "describe": "Custom list setting",
64
+ "isRight": false
65
+ },
66
+ {
67
+ "describe": "Custom hierarchy setting",
68
+ "isRight": false
69
+ }
70
+ ],
71
+ "hashCode": "2019147315",
72
+ "analysis": ""
73
+ },
74
+ {
75
+ "describe": "A managed package uses a list of country ISO codes and country names as reference data in many different places from within the\nmanaged package Apex code.\n\nWhat is the optimal way to store and retrieve the list?",
76
+ "answerOptions": [
77
+ {
78
+ "describe": "Store the information in a List Custom Setting and access it with the getAll() method.",
79
+ "isRight": false
80
+ },
81
+ {
82
+ "describe": "Store the information in Custom Metadata and query it with SOQL.",
83
+ "isRight": true
84
+ },
85
+ {
86
+ "describe": "Store the information in a List Custom Setting and query it with SOQL.",
87
+ "isRight": false
88
+ },
89
+ {
90
+ "describe": "Store the information in Custom Metadata and access it with the getAll() method.",
91
+ "isRight": false
92
+ }
93
+ ],
94
+ "hashCode": "2019145582",
95
+ "analysis": ""
96
+ },
97
+ {
98
+ "describe": "A software company uses a custom object, Defect__c, to track defects in their software. Defect__c has organization-wide defaults set to private. Each Defect__c has a related list of Reviewer__c records, each with a lookup field to User that is used to indicate that the User will review the Defect__c.\nWhat should be used to give the User on the Reviewer__c record read only access to the Defect__c record on the Reviewer__c record?",
99
+ "answerOptions": [
100
+ {
101
+ "describe": "Apex managed sharing",
102
+ "isRight": true
103
+ },
104
+ {
105
+ "describe": "View All on Defect__c",
106
+ "isRight": false
107
+ },
108
+ {
109
+ "describe": "Criteria-based sharing",
110
+ "isRight": false
111
+ },
112
+ {
113
+ "describe": "Lightning web component",
114
+ "isRight": false
115
+ }
116
+ ],
117
+ "hashCode": "2019147313",
118
+ "analysis": ""
119
+ },
120
+ {
121
+ "describe": "A developer is asked to find a way to store secret data with an ability to specify which profiles and users can access which secrets.\nWhat should be used to store this data?",
122
+ "answerOptions": [
123
+ {
124
+ "describe": "Static resources",
125
+ "isRight": false
126
+ },
127
+ {
128
+ "describe": "Custom settings",
129
+ "isRight": true
130
+ },
131
+ {
132
+ "describe": "Custom metadata",
133
+ "isRight": false
134
+ },
135
+ {
136
+ "describe": "System.Cookie class",
137
+ "isRight": false
138
+ }
139
+ ],
140
+ "hashCode": "2019146453",
141
+ "analysis": ""
142
+ },
143
+ {
144
+ "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?",
145
+ "answerOptions": [
146
+ {
147
+ "describe": "Set the setting type on the custom setting to Hierarchy.",
148
+ "isRight": false
149
+ },
150
+ {
151
+ "describe": "Set the setting type on the custom setting to List.",
152
+ "isRight": false
153
+ },
154
+ {
155
+ "describe": "Replace custom settings with static resources.",
156
+ "isRight": false
157
+ },
158
+ {
159
+ "describe": "Replace custom settings with custom metadata.",
160
+ "isRight": true
161
+ }
162
+ ],
163
+ "hashCode": "2019146604",
164
+ "analysis": ""
165
+ },
166
+ {
167
+ "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?",
168
+ "answerOptions": [
169
+ {
170
+ "describe": "Use Custom Metadata to translate custom picklist values.",
171
+ "isRight": false
172
+ },
173
+ {
174
+ "describe": "Use Custom Objects to translate custom picklist values.",
175
+ "isRight": false
176
+ },
177
+ {
178
+ "describe": "Use Custom Settings to ensure custom messages are translated properly. ",
179
+ "isRight": false
180
+ },
181
+ {
182
+ "describe": "Use Custom Labels to ensure custom messages are translated properly.",
183
+ "isRight": true
184
+ }
185
+ ],
186
+ "hashCode": "2019145642",
187
+ "analysis": ""
188
+ },
189
+ {
190
+ "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?",
191
+ "answerOptions": [
192
+ {
193
+ "describe": "Use a custom metadata type to store key/value pairs.",
194
+ "isRight": false
195
+ },
196
+ {
197
+ "describe": "Query the FirstDayofweek field from the Locale for the current user.",
198
+ "isRight": false
199
+ },
200
+ {
201
+ "describe": "Use UerInfo.getLocale() in the component.",
202
+ "isRight": true
203
+ },
204
+ {
205
+ "describe": "Import the firstDayofweek property in the component.",
206
+ "isRight": false
207
+ }
208
+ ],
209
+ "hashCode": "2019146541",
210
+ "analysis": ""
211
+ },
212
+ {
213
+ "describe": "A developer has a requirement to query three fields (Id, Name, Type) from an Account and First and Last names for all Contacts associated with the Account.\n Which option is the preferred optimized method to achieve this for the Account named 'Ozone Electronics'?",
214
+ "answerOptions": [
215
+ {
216
+ "describe": "Account a= [SELECT ID, Name, Type FROM Account WHERE name='Ozone Electronics'];\nList lcontacts = [SELECT firstname, lastname FROM Contact WHERE accountid=:a.ID];",
217
+ "isRight": false
218
+ },
219
+ {
220
+ "describe": "List lAccounts = [SELECT ID, Name, Type FROM Account JOIN(SELECT ID, firstname, lastname FROM Contact \nWHERE contact.account.name = 'ozone electronics)];",
221
+ "isRight": false
222
+ },
223
+ {
224
+ "describe": "List lcontacts = new list();\n for (Contact c :[SELEcT firstname, lastname, Account.Name,Account.ID,Account.Type FROM Contact WHERE Account.Name='ozone electronics']) { lContacts.add(c);}",
225
+ "isRight": false
226
+ },
227
+ {
228
+ "describe": "Account a= [SELECT ID, Name,Type,(SELECT FirstName, LastName FROM Contacts) FROM Account WHERE name='Ozone Electronics' LIMIT 1];",
229
+ "isRight": true
230
+ }
231
+ ],
232
+ "hashCode": "2019145583",
233
+ "analysis": ""
234
+ },
235
+ {
236
+ "describe": "Which scenario requires a developer to use an Apex callout instead of Outbound Messaging?",
237
+ "answerOptions": [
238
+ {
239
+ "describe": "The target system uses a SOAP API.",
240
+ "isRight": false
241
+ },
242
+ {
243
+ "describe": "The target system uses a REST API.",
244
+ "isRight": true
245
+ },
246
+ {
247
+ "describe": "The callout needs to be invoked from a Workflow Rule.",
248
+ "isRight": false
249
+ },
250
+ {
251
+ "describe": "The callout needs to be asynchronous.",
252
+ "isRight": false
253
+ }
254
+ ],
255
+ "hashCode": "2019145638",
256
+ "analysis": ""
257
+ },
258
+ {
259
+ "describe": "A company's support process dictates that any time a Case is closed with a Status of 'Could not fix ,' an Engineering Review custom object record should be created and populated with information from the Case, the Contact, and any of the Products associated with the Case.\nWhat is the correct way to automate this using an Apex trigger?",
260
+ "answerOptions": [
261
+ {
262
+ "describe": "A before upsert trigger that creates the Engineering Review record and inserts it",
263
+ "isRight": false
264
+ },
265
+ {
266
+ "describe": "An after update trigger that creates the Engineering Review record and inserts it.",
267
+ "isRight": true
268
+ },
269
+ {
270
+ "describe": "A before update trigger that creates the Engineering Review record and inserts it.",
271
+ "isRight": false
272
+ },
273
+ {
274
+ "describe": "An after upsert trigger that creates the Engineering Review record and inserts it.",
275
+ "isRight": false
276
+ }
277
+ ],
278
+ "hashCode": "2019146514",
279
+ "analysis": ""
280
+ },
281
+ {
282
+ "describe": "A developer is integrating with a legacy on-premise SQL database.\nWhat should the developer use to ensure the data being integrated is matched to the right records in Salesforce?",
283
+ "answerOptions": [
284
+ {
285
+ "describe": "Formula field",
286
+ "isRight": false
287
+ },
288
+ {
289
+ "describe": "External Id field",
290
+ "isRight": true
291
+ },
292
+ {
293
+ "describe": "Lookup field",
294
+ "isRight": false
295
+ },
296
+ {
297
+ "describe": "External Object",
298
+ "isRight": false
299
+ }
300
+ ],
301
+ "hashCode": "2019145577",
302
+ "analysis": ""
303
+ },
304
+ {
305
+ "describe": "A developer is inserting, updating, and deleting multiple lists of records in a single transaction and wants to ensure that any error prevents all execution.\nHow should the developer implement error exception handling in their code to handle this?",
306
+ "answerOptions": [
307
+ {
308
+ "describe": "Use Database methods to obtain lists of Database .saveResults.",
309
+ "isRight": false
310
+ },
311
+ {
312
+ "describe": "Use Database. setsavepoint() and Database. rollBack() with a try-catch statement.",
313
+ "isRight": true
314
+ },
315
+ {
316
+ "describe": "Use a try-catch statement and handle DML cleanup in the catch statement.",
317
+ "isRight": false
318
+ },
319
+ {
320
+ "describe": "Use a try-catch and use sobject. addError() on any failures.",
321
+ "isRight": false
322
+ }
323
+ ],
324
+ "hashCode": "2019146575",
325
+ "analysis": ""
326
+ },
327
+ {
328
+ "describe": "A company wants to incorporate a third-party web service to set the Address fields when an Account is inserted, if they have not already been set.\nWhat is the optimal way to achieve this?",
329
+ "answerOptions": [
330
+ {
331
+ "describe": "Create a Workflow Rule, execute a Queueable job from it, and make a callout from the Queueable job.",
332
+ "isRight": false
333
+ },
334
+ {
335
+ "describe": "Create an Apex trigger, execute a Queueable job from it, and make a callout from the Queueable job.",
336
+ "isRight": true
337
+ },
338
+ {
339
+ "describe": "Create a Before Save Flow, execute a Queueable job from it, and make a callout from the Queueable job.",
340
+ "isRight": false
341
+ },
342
+ {
343
+ "describe": "Create a Process, execute a Queueable job from it, and make a callout from the Queueable job.",
344
+ "isRight": false
345
+ }
346
+ ],
347
+ "hashCode": "2019146506",
348
+ "analysis": ""
349
+ },
350
+ {
351
+ "describe": "A developer is working with existing functionality that tracks how many times a stage has changed for an Opportunity. When the Opportunity's stage is changed,a workflow rule is fired to increase the valve of a field by one. The developer wrote an after trigger to create a child record when the field Changes from 4 to 5.\nA user changes the stage of an Opportunity and manually sets the count field to 4. The count field updates to 5, but the child record s not created.\nWhat is the reason this happening?",
352
+ "answerOptions": [
353
+ {
354
+ "describe": "After triggers fire before workflow rules.",
355
+ "isRight": false
356
+ },
357
+ {
358
+ "describe": "After triggers are not fired after field updates.",
359
+ "isRight": false
360
+ },
361
+ {
362
+ "describe": "Trigger .new does not change after a field update.",
363
+ "isRight": true
364
+ },
365
+ {
366
+ "describe": "Trigger.old does not contain the updated value of the count field.",
367
+ "isRight": false
368
+ }
369
+ ],
370
+ "hashCode": "2019146475",
371
+ "analysis": ""
372
+ },
373
+ {
374
+ "describe": "UC uses Big Objects to store almost a billion customer transactions called Customer_Transaction__b.\nThese are the fields on Customer_Transaction__b.\nAccount__c\nProgram__c\nPoints_Earned__c\nLocation__c\nTransaction_Date__c\nThe following fields have been identified as Index Fields for the Customer_Transaction__b object: Account__c, Program__c, and Transaction_Date__c.\nWhich SOQL query is valid on the Customer_Transaction__b Big object?",
375
+ "answerOptions": [
376
+ {
377
+ "describe": "SELECT Account__c, Program__c, Transaction_Date__c FROM Customer_Transaction__b WHERE Account__c = '001R000000302D3' AND Program__c = 'Shoppers' AND \nTransaction_Date__c = 2019-05-31T00:00Z",
378
+ "isRight": true
379
+ },
380
+ {
381
+ "describe": "SELECT Account__c, Program__c, Transaction_Date__c FROM Customer_Transaction__b WHERE Account__c = '001R000000302D3' AND Program__c LIKE 'Shop%' AND \nTransaction_Date__c = 2019-05-31T00:00Z",
382
+ "isRight": false
383
+ },
384
+ {
385
+ "describe": "SELECT Account__c, Program__c, Transaction_Date__c FROM Customer_Transaction__b WHERE Account__c = '001R000000302D3' AND Program__c INCLUDES ( 'Shoppers', 'Womens') AND Transaction_Date__c = 2019-05-31T00:00Z",
386
+ "isRight": false
387
+ },
388
+ {
389
+ "describe": "SELECT Account__c, Program__c, Transaction_Date__c FROM Customer_Transaction__b WHERE Account__c = '001R000000302D3' AND Program__c EXCLUDES ( 'Shoppers', 'Womens') AND Transaction_Date__c = 2019-05-31T00:00Z",
390
+ "isRight": false
391
+ }
392
+ ],
393
+ "hashCode": "2019146418",
394
+ "analysis": "https://developer.salesforce.com/docs/atlas.en-us.soql_sosl.meta/soql_sosl/big_object_querying.htm"
395
+ },
396
+ {
397
+ "describe": "A company represents their customers as Accounts in Salesforce. All customers have a unique Customer_Number__c that is unique across all of \nthe company's systems. They also have a custom Invoice__c object, with a Lookup to Account, to represent invoices that are sent out from\ntheir external system. This company wants to integrate invoice data back into Salesforce so Sales Reps can see when a customer is paying their bills on time.\n\nWhat is the optimal way to implement this?",
398
+ "answerOptions": [
399
+ {
400
+ "describe": "Use Salesforce Connect and external data objects to seamlessly import the invoice data into Salesforce without custom code.",
401
+ "isRight": false
402
+ },
403
+ {
404
+ "describe": "Ensure Customer_Number__c is an External ID and that a custom field Invoice_Number__c is an External ID and Upsert invoice data nightly.",
405
+ "isRight": true
406
+ },
407
+ {
408
+ "describe": "Create a cross-reference table in the custom invoicing system with the Salesforce Account ID of each Customer and insert invoice data nightly.",
409
+ "isRight": false
410
+ },
411
+ {
412
+ "describe": "Query the Account Object upon each call to insert invoice data to fetch the Salesforce ID corresponding to the Customer Number on the invoice.",
413
+ "isRight": false
414
+ }
415
+ ],
416
+ "hashCode": "2019146359",
417
+ "analysis": ""
418
+ },
419
+ {
420
+ "describe": "A developer wants to write a generic Apex method that will compare the Salesforce Name field between any two object records. For example, to compare the Name field of an Account and an Opportunity; or the Name of an Account and a Contact.\nHow should the developer do this?",
421
+ "answerOptions": [
422
+ {
423
+ "describe": "Use a String.replace( ) method to parse the contents of each Name field.",
424
+ "isRight": false
425
+ },
426
+ {
427
+ "describe": "Invoke a Schema.describe( ) function to compare the values of each Name field.",
428
+ "isRight": false
429
+ },
430
+ {
431
+ "describe": "Use the Salesforce Metadata API to extract the value of each object and compare the Name fields. ",
432
+ "isRight": false
433
+ },
434
+ {
435
+ "describe": "Cast each object into an sObject and use sObject.get(`Name`) to compare the Name fields.",
436
+ "isRight": true
437
+ }
438
+ ],
439
+ "hashCode": "2019146353",
440
+ "analysis": ""
441
+ },
442
+ {
443
+ "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?",
444
+ "answerOptions": [
445
+ {
446
+ "describe": "Create a custom date field on Opportunity for each field to track the previous date and execute a SOQL query for date fields.",
447
+ "isRight": false
448
+ },
449
+ {
450
+ "describe": "Execute a SOQL query for Amount, Probability, Stage, and Close Date on the OpportunityHistory object.",
451
+ "isRight": true
452
+ },
453
+ {
454
+ "describe": "Subscribe to the OpportunityHistory Change Data Capture event in the Lightning component.",
455
+ "isRight": false
456
+ },
457
+ {
458
+ "describe": "Subscribe to the Opportunity Change Data Capture event in the Lightning component.",
459
+ "isRight": false
460
+ }
461
+ ],
462
+ "hashCode": "2019146574",
463
+ "analysis": ""
464
+ },
465
+ {
466
+ "describe": "Universal Containers needs to integrate with their own, existing, internal custom web application. The web application accepts JSON payloads, resizes product images, and sends the resized images back to Salesforce.\nWhat should the developer use to implement this integration?",
467
+ "answerOptions": [
468
+ {
469
+ "describe": "An Apex trigger that calls an @future method that allows callouts.",
470
+ "isRight": false
471
+ },
472
+ {
473
+ "describe": "A flow that calls an @future method that allows callouts.",
474
+ "isRight": false
475
+ },
476
+ {
477
+ "describe": "A platform event that makes a callout to the web application.",
478
+ "isRight": true
479
+ },
480
+ {
481
+ "describe": "A workflow rule with an outbound message that contains a session ID.",
482
+ "isRight": false
483
+ }
484
+ ],
485
+ "hashCode": "2019146508",
486
+ "analysis": ""
487
+ },
488
+ {
489
+ "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",
490
+ "answerOptions": [
491
+ {
492
+ "describe": "Use Salesforce Connect to view real-time Order data in the ERP system.",
493
+ "isRight": true
494
+ },
495
+ {
496
+ "describe": "Write a cron job in Salesforce to poll the ERP system for order updates.",
497
+ "isRight": false
498
+ },
499
+ {
500
+ "describe": "Have the ERP system push the data into Salesforce using the SOAP API.",
501
+ "isRight": true
502
+ },
503
+ {
504
+ "describe": "Ensure real-time order data is in Salesforce using the Streaming API.",
505
+ "isRight": false
506
+ }
507
+ ],
508
+ "hashCode": "2019146421",
509
+ "analysis": ""
510
+ },
511
+ {
512
+ "describe": "UC needs to integrate with a Heroku service that resizes product images submitted by users.\nWhat are two alternatives to implement the integration and protect against maliclous calls to the Heroku app's endpoint? \nChoose 2 answers",
513
+ "answerOptions": [
514
+ {
515
+ "describe": "Create a Workflow Rule with an Outbound Message allowing the Heroku app to automatically store the resized images in Salesforce.",
516
+ "isRight": false
517
+ },
518
+ {
519
+ "describe": "Create a trigger that uses an @future Apex HTTP callout passing JSON serialized data; therefore the Heroku app can automatically reply back to the callout \nwith the resized images in Salesforce.",
520
+ "isRight": false
521
+ },
522
+ {
523
+ "describe": "Create a Workflow Rule with an Outbound Message and select Send Session ID so that the Heroku app can use it to send the resized images back to Salesforce.",
524
+ "isRight": true
525
+ },
526
+ {
527
+ "describe": "Create a trigger that uses an @future Apex HTTP callout passing JSON serialized data and some form of pre-shared secret key, so that the Heroku app can \nauhenticate requests and store the resized images in Salesforce.",
528
+ "isRight": true
529
+ }
530
+ ],
531
+ "hashCode": "2019146449",
532
+ "analysis": ""
533
+ },
534
+ {
535
+ "describe": "<p>Refer to the code snippet below:</p><p><br/></p><p>public static void updateCreditMemo(String customerId, Decimal newAmount) {</p><p>&nbsp; &nbsp; &nbsp;List&lt;Credit_Memo__c&gt; toUpdate = new List&lt;Credit_Memo__c&gt;( ) ;</p><p>&nbsp; &nbsp; &nbsp;for (Credit_Memo__c creditMemo : [Select Id, Name, Amount__c FROM Credit_Memo__c WHERE Customer_Id__c = : customerId LIMIT 50]) {</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;creditMemo.Amount__c = newAmount;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;toUpdate.add(creditMemo) ;</p><p>&nbsp; &nbsp; &nbsp; }</p><p>Database.update(toUpdate, false);</p><p>}</p><p><br/></p><p>A custom object called Credit_Memo__c exists in a Salesforce environment. As part of a new feature development that retrieves and manipulates this type of record, the developer needs to ensure race conditions are prevented when a set of records are modified within an Apex transaction.</p><p><br/></p><p>In the preceding Apex code, how can the developer alter the query statement to use SOQL features to prevent race conditions within a transaction?</p><p><br/></p>",
536
+ "answerOptions": [
537
+ {
538
+ "describe": "<p>[Select Id, Name, Amount__c FROM Credit_Memo__c WHERE Customer_Id__c = :customerId LIMIT 50 FOR UPDATE]</p>",
539
+ "isRight": true
540
+ },
541
+ {
542
+ "describe": "<p>[Select Id, Name, Amount__c FROM Credit_Memo__c WHERE Customer_Id__c = :customerId FOR REFERENCE LIMIT 50]</p>",
543
+ "isRight": false
544
+ },
545
+ {
546
+ "describe": "<p>[Select Id, Name, Amount__c FROM Credit_Memo__c WHERE Customer_Id__c = :customerId LIMIT 50 FOR PREFERENCE]</p>",
547
+ "isRight": false
548
+ },
549
+ {
550
+ "describe": "<p>The executeBatch must fall within test.startTest() and test.stopTest().</p>",
551
+ "isRight": false
552
+ }
553
+ ],
554
+ "hashCode": "2019145425",
555
+ "analysis": "<p>https://developer.salesforce.com/docs/atlas.en-us.soql_sosl.meta/soql_sosl/sforce_api_calls_soql_select_for_update.htm</p>"
556
+ },
557
+ {
558
+ "describe": "<p>trigger AssignOwnerByRegion on Account(before insert, before update)</p><p>{</p><p>&nbsp; &nbsp;List&lt;Account&gt; accountList = new List&lt;Account&gt;();</p><p>&nbsp; &nbsp;for(Account anAccount : trigger.new )</p><p>&nbsp; &nbsp;{</p><p>&nbsp; &nbsp; &nbsp; Region__c theRegion = [SELECT Id, Name, Region_Manager__c FROM Region__c WHERE Name= :anAccount.Region_Name__c];</p><p>&nbsp; &nbsp; &nbsp; anAccount.OwnerId = theRegion.Region_Manager__c;</p><p>&nbsp; &nbsp; &nbsp; accountList.add(anAccount);</p><p>&nbsp; &nbsp;}</p><p>&nbsp; &nbsp;update accountList;</p><p>}</p><p><br/></p><p>Consider the above trigger intended to assign the Account to the manager of the Account&#39;s region.</p><p>Which two changes should a developer make in this trigger to adhere to best practices? Choose 2 answers</p><p><br/></p>",
559
+ "answerOptions": [
560
+ {
561
+ "describe": "<p>Remove the last line updating accountList as it is not needed.</p>",
562
+ "isRight": true
563
+ },
564
+ {
565
+ "describe": "<p>Move the Region__c query to outside the loop.</p>",
566
+ "isRight": true
567
+ },
568
+ {
569
+ "describe": "<p>Use a Map accountMap instead of List accountList.</p>",
570
+ "isRight": false
571
+ },
572
+ {
573
+ "describe": "<p>Use a Map to cache the results of the Region__c query by Id.</p>",
574
+ "isRight": false
575
+ }
576
+ ],
577
+ "hashCode": "2019145392",
578
+ "analysis": ""
579
+ },
580
+ {
581
+ "describe": "An Aura component functions in preview mode and needs to be used inside a Lightning App Builder page, but itis not available.\nWhat change should be applied to the component?",
582
+ "answerOptions": [
583
+ {
584
+ "describe": "Refresh the sandbox and upgrade it to the latest API version.",
585
+ "isRight": false
586
+ },
587
+ {
588
+ "describe": "Delete the component, metadata, and Apex controller and recreate them.",
589
+ "isRight": false
590
+ },
591
+ {
592
+ "describe": "Look for errors in the logic in the JavaScript controller.",
593
+ "isRight": false
594
+ },
595
+ {
596
+ "describe": "Expose it in the markup using the implements and access attributes.",
597
+ "isRight": true
598
+ }
599
+ ],
600
+ "hashCode": "2019146356",
601
+ "analysis": ""
602
+ },
603
+ {
604
+ "describe": "A developer wrote an Apex method to update a list of Contacts and wants to make it available for use by Lightning web components.\nWhich annotation should the developer add to the Apex method to achieve this?",
605
+ "answerOptions": [
606
+ {
607
+ "describe": "@AuraEnabled",
608
+ "isRight": true
609
+ },
610
+ {
611
+ "describe": "@RemoteAction",
612
+ "isRight": false
613
+ },
614
+ {
615
+ "describe": "@RemoteAction(cacheable = true)",
616
+ "isRight": false
617
+ },
618
+ {
619
+ "describe": "@AuraEnabled(cacheable = true)",
620
+ "isRight": false
621
+ }
622
+ ],
623
+ "hashCode": "2019146513",
624
+ "analysis": ""
625
+ },
626
+ {
627
+ "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?",
628
+ "answerOptions": [
629
+ {
630
+ "describe": "Lightning Experience Builder",
631
+ "isRight": false
632
+ },
633
+ {
634
+ "describe": "Lightning Web Components",
635
+ "isRight": true
636
+ },
637
+ {
638
+ "describe": "Visualforce",
639
+ "isRight": false
640
+ },
641
+ {
642
+ "describe": "Salesforce SDK",
643
+ "isRight": false
644
+ }
645
+ ],
646
+ "hashCode": "2019145578",
647
+ "analysis": ""
648
+ },
649
+ {
650
+ "describe": "A lead developer is creating tests for a Lightning web component. The component re-renders when a property called bypassSelection changes its value.\n\nWhat should the developer use to test that the component re-renders successfully when the property changes?",
651
+ "answerOptions": [
652
+ {
653
+ "describe": "Promise.resolve()",
654
+ "isRight": true
655
+ },
656
+ {
657
+ "describe": "Window.setInterval()",
658
+ "isRight": false
659
+ },
660
+ {
661
+ "describe": "Window.setState()",
662
+ "isRight": false
663
+ },
664
+ {
665
+ "describe": "dispatchEvent (new CustomEvent ('bypassSelection'))",
666
+ "isRight": false
667
+ }
668
+ ],
669
+ "hashCode": "2019145675",
670
+ "analysis": ""
671
+ },
672
+ {
673
+ "describe": "A developer created and tested a Visualforce page in their developer sandbox, but now receives reports that user encounter ViewState errors when using it in Production.\nWhat should the developer ensure to correct these errors?",
674
+ "answerOptions": [
675
+ {
676
+ "describe": "Ensure queries do not exceed governor limits.",
677
+ "isRight": false
678
+ },
679
+ {
680
+ "describe": "Ensure profiles have access to the Visualforce page.",
681
+ "isRight": false
682
+ },
683
+ {
684
+ "describe": "Ensure properties are marked as private.",
685
+ "isRight": false
686
+ },
687
+ {
688
+ "describe": "Ensure variables are marked as Transient.",
689
+ "isRight": true
690
+ }
691
+ ],
692
+ "hashCode": "2019145640",
693
+ "analysis": "https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_keywords_transient.htm"
694
+ },
695
+ {
696
+ "describe": "A developer is tasked with creating a Lightning web component that is responsive on various devices.\nWhich two components should help accomplish this goal?\nChoose 2 answers",
697
+ "answerOptions": [
698
+ {
699
+ "describe": "Lightnig-Input-location",
700
+ "isRight": false
701
+ },
702
+ {
703
+ "describe": "Lightning-navigation",
704
+ "isRight": false
705
+ },
706
+ {
707
+ "describe": "Lightning-layout",
708
+ "isRight": true
709
+ },
710
+ {
711
+ "describe": "Lightning-layout-item",
712
+ "isRight": true
713
+ }
714
+ ],
715
+ "hashCode": "2019146484",
716
+ "analysis": ""
717
+ },
718
+ {
719
+ "describe": "<p>Which technique can run custom logic when a Lightning web component is loaded?</p>",
720
+ "answerOptions": [
721
+ {
722
+ "describe": "<p>Call enqueueAction and pass in the method to call.</p>",
723
+ "isRight": false
724
+ },
725
+ {
726
+ "describe": "<p>Use the connectedcallback() method.</p>",
727
+ "isRight": true
728
+ },
729
+ {
730
+ "describe": "<p>Use an &lt;aura : handler&gt; init event to call a function.</p>",
731
+ "isRight": false
732
+ },
733
+ {
734
+ "describe": "<p>Use the renderedcallback() method.</p>",
735
+ "isRight": false
736
+ }
737
+ ],
738
+ "hashCode": "2019145487",
739
+ "analysis": ""
740
+ },
741
+ {
742
+ "describe": "<p>A developer created a JavaScript library that simplifies the development of repetitive tasks and features and uploaded the library as a static resource called jsUtils in Salesforce. Another developer is coding a new Lightning web component(LWC) and wants to leverage the library.</p><p>Which statement properly loads the static resource within the LWC?</p><p><br/></p>",
743
+ "answerOptions": [
744
+ {
745
+ "describe": "<p>const jsUtility = $A.get(&#39;$Resource.jsUtils&#39;);</p>",
746
+ "isRight": false
747
+ },
748
+ {
749
+ "describe": "<p>import jsUtilities from &#39;@salesforce/resourceUrl/jsUtils&#39;;</p>",
750
+ "isRight": true
751
+ },
752
+ {
753
+ "describe": "<p>import {jsUtilities} from &#39;@salesforce/resourceUrl/jsUtils&#39;;</p>",
754
+ "isRight": false
755
+ },
756
+ {
757
+ "describe": "<p>&lt;lightning-require scripts=&quot;{!$Resource.jsUtils}&quot;/&gt;</p>",
758
+ "isRight": false
759
+ }
760
+ ],
761
+ "hashCode": "2019145554",
762
+ "analysis": ""
763
+ },
764
+ {
765
+ "describe": "<p>An Aura component has a section that displays some information about an Account and it works well on the desktop, but users have to scroll horizontally to see the description field output on their mobile devices and tablets.</p><p><br/></p><p>&lt;lightning: layout multipleRows=&quot;false&quot;&gt;</p><p>&nbsp; &nbsp; &nbsp; &nbsp;&lt;lightning: layoutItem size&quot;6&quot;&gt;{!v.rec.Name}</p><p>&nbsp; &nbsp; &nbsp; &nbsp;&lt;/lightning: layoutItem&gt;</p><p><br/></p><p>&nbsp; &nbsp; &nbsp; &lt;lightning: layoutItem size&quot;6&quot;&gt;{!v.rec.Description__c}</p><p>&nbsp; &nbsp; &nbsp; &lt;/lightning: layoutItem&gt;</p><p>&lt;/lightning: layout&gt;</p><p><br/></p><p>Which option has the changes to make the component responsive for mobile and tablet devices?</p><p><br/></p>",
766
+ "answerOptions": [
767
+ {
768
+ "describe": "<p>&lt;lightning: layout multipleRows=&quot;false&quot;&gt;</p><p>&nbsp; &nbsp; &nbsp; &nbsp;&lt;lightning: layoutItem smallDeviceSize =&quot;12&quot; largeDeviceSize=&quot;6&quot;&gt;{!v.rec.Name}</p><p>&nbsp; &nbsp; &nbsp; &nbsp;&lt;/lightning: layoutItem&gt;</p><p><br/></p><p>&nbsp; &nbsp; &nbsp; &nbsp;&lt;lightning: layoutItem smallDeviceSize =&quot;12&quot; largeDeviceSize=&quot;6&quot;&gt;{!v.rec.Description__c}</p><p>&nbsp; &nbsp; &nbsp; &nbsp;&lt;/lightning: layoutItem&gt;</p><p>&lt;/lig",
769
+ "isRight": false
770
+ },
771
+ {
772
+ "describe": "<p>&lt;lightning: layout multipleRows=&quot;false&quot;&gt;</p><p>&nbsp; &nbsp; &nbsp; &nbsp;&lt;lightning: layoutItem size=&quot;12&quot; largeDeviceSize=&quot;6&quot;&gt;{!v.rec.Name}</p><p>&nbsp; &nbsp; &nbsp; &nbsp;&lt;/lightning: layoutItem&gt;</p><p><br/></p><p>&nbsp; &nbsp; &nbsp; &nbsp;&lt;lightning: layoutItem size =&quot;12&quot; largeDeviceSize=&quot;6&quot;&gt;{!v.rec.Description__c}</p><p>&nbsp; &nbsp; &nbsp; &nbsp;&lt;/lightning: layoutItem&gt;</p><p>&lt;/lightning: layout&gt;&nbsp",
773
+ "isRight": false
774
+ },
775
+ {
776
+ "describe": "<p>&lt;lightning: layout multipleRows=&quot;true&quot;&gt;</p><p>&nbsp; &nbsp; &nbsp; &nbsp;&lt;lightning: layoutItem size=&quot;12&quot; largeDeviceSize=&quot;6&quot;&gt;{!v.rec.Name}</p><p>&nbsp; &nbsp; &nbsp; &nbsp;&lt;/lightning: layoutItem&gt;</p><p><br/></p><p>&nbsp; &nbsp; &nbsp; &nbsp;&lt;lightning: layoutItem size =&quot;12&quot; largeDeviceSize=&quot;6&quot;&gt;{!v.rec.Description__c}</p><p>&nbsp; &nbsp; &nbsp; &nbsp;&lt;/lightning: layoutItem&gt;</p><p>&lt;/lightning: layout&gt;&nbsp;",
777
+ "isRight": true
778
+ },
779
+ {
780
+ "describe": "<p>&lt;lightning: layout multipleRows=&quot;true&quot;&gt;</p><p>&nbsp; &nbsp; &nbsp; &nbsp;&lt;lightning: layoutItem smallDeviceSize =&quot;12&quot; largeDeviceSize=&quot;6&quot;&gt;{!v.rec.Name}</p><p>&nbsp; &nbsp; &nbsp; &nbsp;&lt;/lightning: layoutItem&gt;</p><p><br/></p><p>&nbsp; &nbsp; &nbsp; &nbsp;&lt;lightning: layoutItem smallDeviceSize =&quot;12&quot; largeDeviceSize=&quot;6&quot;&gt;{!v.rec.Description__c}</p><p>&nbsp; &nbsp; &nbsp; &nbsp;&lt;/lightning: layoutItem&gt;</p><p>&lt;/ligh",
781
+ "isRight": false
782
+ }
783
+ ],
784
+ "hashCode": "2019145395",
785
+ "analysis": ""
786
+ },
787
+ {
788
+ "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>",
789
+ "answerOptions": [
790
+ {
791
+ "describe": "<p>Ensure the action method search returns null.</p>",
792
+ "isRight": false
793
+ },
794
+ {
795
+ "describe": "<p>Implement the reRender attribute on the &lt;apex:commandButton&gt; tag.</p>",
796
+ "isRight": true
797
+ },
798
+ {
799
+ "describe": "<p>Enclose the DATA table within the &lt;apex:actionRegicn&gt; tag.</p>",
800
+ "isRight": false
801
+ },
802
+ {
803
+ "describe": "<p>Implement the &lt;apex:actionFunction&gt; tag with immediate= true.</p>",
804
+ "isRight": false
805
+ }
806
+ ],
807
+ "hashCode": "2019145458",
808
+ "analysis": ""
809
+ },
810
+ {
811
+ "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>",
812
+ "answerOptions": [
813
+ {
814
+ "describe": "<p>Add @AuraEnabled to line 09.</p>",
815
+ "isRight": false
816
+ },
817
+ {
818
+ "describe": "<p>Add @AuraEnabled to line 03.</p>",
819
+ "isRight": true
820
+ },
821
+ {
822
+ "describe": "<p>Add @AuraEnabled to lines 11 and l2.</p>",
823
+ "isRight": true
824
+ },
825
+ {
826
+ "describe": "<p>Add @AaraEnabled to line 01.</p>",
827
+ "isRight": false
828
+ }
829
+ ],
830
+ "hashCode": "2019145457",
831
+ "analysis": ""
832
+ },
833
+ {
834
+ "describe": "<p>Which three Visualforce components can be used to initiate Ajax behavior to perform partial page updates?Choose 3 answers</p>",
835
+ "answerOptions": [
836
+ {
837
+ "describe": "<p>&lt;apex:form&gt;</p>",
838
+ "isRight": false
839
+ },
840
+ {
841
+ "describe": "<p>&lt;apex:commandButton&gt;</p>",
842
+ "isRight": true
843
+ },
844
+ {
845
+ "describe": "<p>&lt;apex:actionSupport&gt;</p>",
846
+ "isRight": true
847
+ },
848
+ {
849
+ "describe": "<p>&lt;apex:actionStatus&gt;</p>",
850
+ "isRight": false
851
+ },
852
+ {
853
+ "describe": "<p>&lt;apex:commandLink&gt;</p>",
854
+ "isRight": true
855
+ }
856
+ ],
857
+ "hashCode": "2019145548",
858
+ "analysis": ""
859
+ },
860
+ {
861
+ "describe": "A developer is trying to access org data from within a test class.\nWhich sObject type requires the test class to have the (seeAllData=true) annotation?",
862
+ "answerOptions": [
863
+ {
864
+ "describe": "RecordType",
865
+ "isRight": false
866
+ },
867
+ {
868
+ "describe": "Report",
869
+ "isRight": true
870
+ },
871
+ {
872
+ "describe": "User",
873
+ "isRight": false
874
+ },
875
+ {
876
+ "describe": "Profile",
877
+ "isRight": false
878
+ }
879
+ ],
880
+ "hashCode": "2019145677",
881
+ "analysis": "https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_testing_data_access.htm"
882
+ },
883
+ {
884
+ "describe": "How should a developer assert that a trigger with an asynchronous process has successfully run?",
885
+ "answerOptions": [
886
+ {
887
+ "describe": "Create all test data, use @future in the test class, then perform assertions.",
888
+ "isRight": false
889
+ },
890
+ {
891
+ "describe": "Create all test data in the test class, invoke Test.startTest() and Test.stopTest() and then perform assertions,",
892
+ "isRight": true
893
+ },
894
+ {
895
+ "describe": "Insert records Into Salesforce, use seeAllData=true, then perform assertions.",
896
+ "isRight": false
897
+ },
898
+ {
899
+ "describe": "Create all test data in the test class, use system.runAs() to invoke the trigger, then perform assertions.",
900
+ "isRight": false
901
+ }
902
+ ],
903
+ "hashCode": "2019146633",
904
+ "analysis": ""
905
+ },
906
+ {
907
+ "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?",
908
+ "answerOptions": [
909
+ {
910
+ "describe": "Reset the DOM after each test with the afterEach{} method.",
911
+ "isRight": false
912
+ },
913
+ {
914
+ "describe": "Add a teardown block to reset the DOM after each test.",
915
+ "isRight": false
916
+ },
917
+ {
918
+ "describe": "Create a new describe block for each test.",
919
+ "isRight": true
920
+ },
921
+ {
922
+ "describe": "Create a new ladom instance for each test.",
923
+ "isRight": false
924
+ }
925
+ ],
926
+ "hashCode": "2019146477",
927
+ "analysis": ""
928
+ },
929
+ {
930
+ "describe": "A developer has working business logic code, but sees the following error in the test class:\nYou have uncommitted work pending. Please commit or rollback before calling out.\nWhat is a possible solution?",
931
+ "answerOptions": [
932
+ {
933
+ "describe": "Call support for help with the target endpoint, as it is likely an external code error.",
934
+ "isRight": false
935
+ },
936
+ {
937
+ "describe": "Use test.IsRunningTest( ) before making the callout to bypass it in test execution.",
938
+ "isRight": true
939
+ },
940
+ {
941
+ "describe": "Set seeAllData to \"true\" at the top of the test class, since the code does not fail in practice. ",
942
+ "isRight": false
943
+ },
944
+ {
945
+ "describe": "Rewrite the business logic and test classes with @TestVisible set on the callout.",
946
+ "isRight": false
947
+ }
948
+ ],
949
+ "hashCode": "2019145581",
950
+ "analysis": ""
951
+ },
952
+ {
953
+ "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?",
954
+ "answerOptions": [
955
+ {
956
+ "describe": "The test class does not retrieve the updated value from the database.",
957
+ "isRight": true
958
+ },
959
+ {
960
+ "describe": "The test class does not use the seeAllData=true annotation.",
961
+ "isRight": false
962
+ },
963
+ {
964
+ "describe": "The test class does not use the Bulk API for loading test data.",
965
+ "isRight": false
966
+ },
967
+ {
968
+ "describe": "The test class does not implement the Queueable interface.",
969
+ "isRight": false
970
+ }
971
+ ],
972
+ "hashCode": "2019146515",
973
+ "analysis": ""
974
+ },
975
+ {
976
+ "describe": "Just prior to a new deployment, the Salesforce Administrator who configured a new order fulfillment process in a developer sandbox\nsuddenly left the company. The users had fully tested all of the changes in the sandbox and signed off on them.\n\nUnfortunately, although a Change Set was started, it was not complete. A developer is brought in to help finish the deployment.\n\nWhat should the developer do to identify the configuration changes that need to be moved into production?",
977
+ "answerOptions": [
978
+ {
979
+ "describe": "In Salesforce setup, look at the last modified date for every object to determine which should be added to the Change Set.",
980
+ "isRight": false
981
+ },
982
+ {
983
+ "describe": "Use the Metadata API and a supported development IDE to push all of the configuration from the sandbox into production to ensure no changes are lost.",
984
+ "isRight": false
985
+ },
986
+ {
987
+ "describe": "Set up Continuous Integration and a Git repository to automatically merge all changes from the sandbox metadata with the production metadata.",
988
+ "isRight": false
989
+ },
990
+ {
991
+ "describe": "Leveage the Setup Audit Trail to review the changes made by the departed Administrator and identify which changes should be added to the Change Set.",
992
+ "isRight": true
993
+ }
994
+ ],
995
+ "hashCode": "2019145672",
996
+ "analysis": ""
997
+ },
998
+ {
999
+ "describe": "What are three reasons that a developer should write Jest tests for Lightning web components?\nChoose 3 answers",
1000
+ "answerOptions": [
1001
+ {
1002
+ "describe": "To verify that events fire when expected",
1003
+ "isRight": true
1004
+ },
1005
+ {
1006
+ "describe": "To test basic user interaction",
1007
+ "isRight": true
1008
+ },
1009
+ {
1010
+ "describe": "To verify the DOM output of a component",
1011
+ "isRight": true
1012
+ },
1013
+ {
1014
+ "describe": "To test how multiple components work together",
1015
+ "isRight": false
1016
+ },
1017
+ {
1018
+ "describe": "To test a component's non public properties",
1019
+ "isRight": false
1020
+ }
1021
+ ],
1022
+ "hashCode": "2019146573",
1023
+ "analysis": "https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.testing"
1024
+ },
1025
+ {
1026
+ "describe": "Universal Containers (UC) currently does all development in its full copy sandbox.\nRecently, UC has projects that require multiple developers to develop concurrently. UC is running into issues with developers making changes that cause errors in work done by other developers.\nAdditionally, when they are ready to deploy, many unit tests fail which prevents the deployment.\nWhich three types of orgs should be recommended to UC to eliminate these problems?\nChoose 3 answers",
1027
+ "answerOptions": [
1028
+ {
1029
+ "describe": "Data Migration org",
1030
+ "isRight": true
1031
+ },
1032
+ {
1033
+ "describe": "Development org",
1034
+ "isRight": true
1035
+ },
1036
+ {
1037
+ "describe": "Staging org",
1038
+ "isRight": true
1039
+ },
1040
+ {
1041
+ "describe": "Systems Integration org",
1042
+ "isRight": false
1043
+ },
1044
+ {
1045
+ "describe": "Continuous Integration (CI) Org",
1046
+ "isRight": false
1047
+ }
1048
+ ],
1049
+ "hashCode": "2019146507",
1050
+ "analysis": ""
1051
+ },
1052
+ {
1053
+ "describe": "<p>A developer wrote the following method to find all the test accounts in the org:</p><p><br/></p><p>public static Account[] searchTestAccounts() {</p><p>List&lt;List&lt;Sobject&gt;&gt; searchList = [ FIND &#39;test&#39; IN ALL FIELDS RETURNING Account (Name)];</p><p>return (Account[]) searchList[0];</p><p>}</p><p><br/></p><p>However, the test method below fails.</p><p><br/></p><p>@isTest .</p><p>public static void testSearchTestAccounts() {</p><p>Account a = new Account (name=&#39;test&#39;);</p><p>insert a;</p><p>Account [] accounts = TestAccountFinder.searchTestAccounts();</p><p>system.assert (accounts.size() == 1 );</p><p>&nbsp;}</p><p><br/></p><p>What should be used to fix this failing test?</p><p><br/></p>",
1054
+ "answerOptions": [
1055
+ {
1056
+ "describe": "<p>Test.loadData to set up expected data</p>",
1057
+ "isRight": false
1058
+ },
1059
+ {
1060
+ "describe": "<p>Test.fixedsearchResults() method to set up expected data</p>",
1061
+ "isRight": true
1062
+ },
1063
+ {
1064
+ "describe": "<p>@isTest (SeeAllData=true) to access org data for the test</p>",
1065
+ "isRight": false
1066
+ },
1067
+ {
1068
+ "describe": "<p>@testsetup method to set up expected data</p>",
1069
+ "isRight": false
1070
+ }
1071
+ ],
1072
+ "hashCode": "2019145517",
1073
+ "analysis": "<p>https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_testing_SOSL.htm</p>"
1074
+ },
1075
+ {
1076
+ "describe": "<p>&#39;@isTest</p><p>static void testAccountUpdate() {</p><p>&nbsp; &nbsp; &nbsp; Account acct = new Account (Name = &#39;Test&#39;);</p><p>&nbsp; &nbsp; &nbsp; acct.Integration_Updated_c = false;</p><p>&nbsp; &nbsp; &nbsp; insert acct;</p><p><br/></p><p>&nbsp; &nbsp; &nbsp;CalloutUtil.sendAccountUpdate(acct.Id);</p><p>&nbsp; &nbsp; &nbsp;Account acctAfter = [SELECT Id, Integration_Updated_c FROM Account WHERE Id = :acct.Id][0];</p><p>&nbsp; &nbsp; &nbsp;System.assert(true, acctAfter.Integration_Updated_c );</p><p>}</p><p><br/></p><p>The test method above calls a web service that updates an external system with Account Information and sets the Account&#39;s</p><p>Integration_Updated_c checkbox to True when It completes. The test falls to execute and exits with an error: &quot;Methods defined as TestMethod</p><p>do not support Web service callouts.&quot;</p><p><br/></p><p>What is the optimal way to fix this?</p><p><br/></p>",
1077
+ "answerOptions": [
1078
+ {
1079
+ "describe": "<p>Add Test.startTest() before and Test.stopTest() after CalloutUtil.sendAccountUpdate.</p>",
1080
+ "isRight": false
1081
+ },
1082
+ {
1083
+ "describe": "<p>Add Test.startTest() before and Test.setMock and Test.stopTest() after CalloutUtil.sendAccountUpdate.</p>",
1084
+ "isRight": false
1085
+ },
1086
+ {
1087
+ "describe": "<p>Add if (!Test.IsRunningTest()) around CalloutUtil.sendAccountUpdate.</p>",
1088
+ "isRight": false
1089
+ },
1090
+ {
1091
+ "describe": "<p>Add Test.startTest() and Test.setMock before and Test.stopTest() after CalloutUtil.sendAccountUpdate.</p>",
1092
+ "isRight": true
1093
+ }
1094
+ ],
1095
+ "hashCode": "2019145394",
1096
+ "analysis": ""
1097
+ },
1098
+ {
1099
+ "describe": "<p>A developer has a Batch Apex process, Batch_Account_Sales, that updates the sales amount for 10,000 Accounts on a nightly basis. The&nbsp;</p><p>Batch Apex works as designed in the sandbox. However, the developer cannot get code coverage on the Batch Apex class.</p><p>The test class is below:</p><p>@IsTest private Batch_Account_Update_Test() {</p><p>&nbsp; &nbsp; &nbsp; @IsTest static void UnitTest() {</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Account a = new Account(Name=&#39;test&#39;, Type=&#39;Customer&#39;,Sales_Amount__c=0);</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; insert a;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Batch_Account_Sales bas = new Batch_Account_Sales();</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ID jobid = database.executebatch(bas);</p><p>&nbsp; &nbsp; &nbsp; &nbsp;}</p><p>}</p><p>What is causing the code coverage problem?</p><p><br/></p>",
1100
+ "answerOptions": [
1101
+ {
1102
+ "describe": "<p>The &nbsp;batch process will not recognize new accounts created in the same session.</p>",
1103
+ "isRight": false
1104
+ },
1105
+ {
1106
+ "describe": "<p>The account creation a already sets the sales amount to 0.</p>",
1107
+ "isRight": false
1108
+ },
1109
+ {
1110
+ "describe": "<p>The executeBatch must fall within test.startTest() and test.stopTest().</p>",
1111
+ "isRight": true
1112
+ },
1113
+ {
1114
+ "describe": "<p>The batch needs more than one account record created.</p>",
1115
+ "isRight": false
1116
+ }
1117
+ ],
1118
+ "hashCode": "2019145452",
1119
+ "analysis": ""
1120
+ },
1121
+ {
1122
+ "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>",
1123
+ "answerOptions": [
1124
+ {
1125
+ "describe": "<p>Ensure the running user of the test class has, at least, the View All permission on the Order object.</p>",
1126
+ "isRight": false
1127
+ },
1128
+ {
1129
+ "describe": "<p>Enclose System. enqueueJob (new OrderQueueableJob()} within Test.startTest and Test. stopTest().</p>",
1130
+ "isRight": true
1131
+ },
1132
+ {
1133
+ "describe": "<p>Implement seeAllData=true to ensure the Queueable job is able to run in bulk mode.</p>",
1134
+ "isRight": false
1135
+ },
1136
+ {
1137
+ "describe": "<p>Implement Test.isRunningTest to prevent chaining jobs during test execution.</p>",
1138
+ "isRight": true
1139
+ }
1140
+ ],
1141
+ "hashCode": "2019145461",
1142
+ "analysis": ""
1143
+ },
1144
+ {
1145
+ "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?",
1146
+ "answerOptions": [
1147
+ {
1148
+ "describe": "An after insert trigger on Catalog that updates the Catalog Items if the Catalog's CurrencyIsoCode is different",
1149
+ "isRight": false
1150
+ },
1151
+ {
1152
+ "describe": "A Database.Schedulable and Database.Batchable class that queries the Catalog object and updates the Catalog Items if the Catalog CurrencyIsoCode is different.",
1153
+ "isRight": false
1154
+ },
1155
+ {
1156
+ "describe": "An after insert trigger on Catalog Item that updates the Catalog Items if the Catalog's CurrencyIsoCode is different",
1157
+ "isRight": false
1158
+ },
1159
+ {
1160
+ "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.",
1161
+ "isRight": true
1162
+ }
1163
+ ],
1164
+ "hashCode": "2019146637",
1165
+ "analysis": ""
1166
+ },
1167
+ {
1168
+ "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?",
1169
+ "answerOptions": [
1170
+ {
1171
+ "describe": "Decorate the server-side method with @AuraEnabled(storable=true).",
1172
+ "isRight": false
1173
+ },
1174
+ {
1175
+ "describe": "Decorate the server-side method with @AuraEnabled(cacheable=true).",
1176
+ "isRight": true
1177
+ },
1178
+ {
1179
+ "describe": "Call the setStorable( ) method on the action in the JavaScript client-side code.",
1180
+ "isRight": false
1181
+ },
1182
+ {
1183
+ "describe": "Set a cookie in the browser for use upon return to the page.",
1184
+ "isRight": false
1185
+ }
1186
+ ],
1187
+ "hashCode": "2019145641",
1188
+ "analysis": "https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/controllers_server_apex_auraenabled_annotation.htm"
1189
+ },
1190
+ {
1191
+ "describe": "As part of a new integration, a developer is asked to implement a new custom search Functionality that is capable of performing unrestricted queries and can account for all values within a custom picklist field, Type_c, on the Opportunity object. The search feature must also account for NULL values.\nThe organization-wide default for the Opportunity object is set to Public Read-Only, and a new custom index has been created for the Type_ c field. There are more than 5 million Opportunity records within the environment, and a considerable amount of the existing records have NULL values for the picklist.\nWhich technique should the developer implement to maximize performance when querying NULL values?",
1192
+ "answerOptions": [
1193
+ {
1194
+ "describe": "Create a formula field that substitutes NULL values for a string of text, create an index for the formula field, then use the formula within the HERE clause.",
1195
+ "isRight": false
1196
+ },
1197
+ {
1198
+ "describe": "Perform two SOQL queries; one to query Opportunities where Type_c !=NULL, and another to query where Type_c = NULL, then join the result set using Apex.",
1199
+ "isRight": true
1200
+ },
1201
+ {
1202
+ "describe": "Use a SOSL query to return ALL opportunities that have a value of NULL in any field.",
1203
+ "isRight": false
1204
+ },
1205
+ {
1206
+ "describe": "Use the OR operator to combine HERE clauses to strictly search for each value within the picklist, including Type_ c = NULL.",
1207
+ "isRight": false
1208
+ }
1209
+ ],
1210
+ "hashCode": "2019146511",
1211
+ "analysis": ""
1212
+ },
1213
+ {
1214
+ "describe": "A developer implemented a custom data table in a Lightning web component with filter functionality. However, users are submitting support tickets about long load times when the filters are changed. The component uses an Apex method that is called to query for records based on the selected filters.\nWhat should the developer do to improve performance of the component?",
1215
+ "answerOptions": [
1216
+ {
1217
+ "describe": "Use setStorable() in the Apex method to store the response in the client-side cache.",
1218
+ "isRight": true
1219
+ },
1220
+ {
1221
+ "describe": "Return all records into a list when the component is created and filter the array in JavaScript.",
1222
+ "isRight": false
1223
+ },
1224
+ {
1225
+ "describe": "Use SOSL to query the records on filter change.",
1226
+ "isRight": false
1227
+ },
1228
+ {
1229
+ "describe": "Use a selective SOQL query with a custom index.",
1230
+ "isRight": false
1231
+ }
1232
+ ],
1233
+ "hashCode": "2019146482",
1234
+ "analysis": ""
1235
+ },
1236
+ {
1237
+ "describe": "In an organization that has multi-currency enabled, a developer is tasked with building a Lightning component that displays the top ten Opportunities most recently accessed by the logged in user. The developer must ensure tha Amount and LastModifiedDate field values are displayed according to the user's locale.\nWhat is the most effective approach to ensure values displayed respect the user's locale settings?",
1238
+ "answerOptions": [
1239
+ {
1240
+ "describe": "Use the FORMAT() function in the SOQL query.",
1241
+ "isRight": true
1242
+ },
1243
+ {
1244
+ "describe": "Use REGEX expressions to format the values retrieved via SOQL.",
1245
+ "isRight": false
1246
+ },
1247
+ {
1248
+ "describe": "Use a wrapper class to format the values retrieved via SOQL.",
1249
+ "isRight": false
1250
+ },
1251
+ {
1252
+ "describe": "Use the FOR VIEN clause in the SOQL query.",
1253
+ "isRight": false
1254
+ }
1255
+ ],
1256
+ "hashCode": "2019147318",
1257
+ "analysis": ""
1258
+ },
1259
+ {
1260
+ "describe": "Users complain that a page is very slow to respond. Upon investigation, the query below is found to perform slowly.\nSELECT Id, Name FROM Contact WHERE CustomField__c = null;\nWhich two actions can a developer take to improve performance? Choose 2 answers",
1261
+ "answerOptions": [
1262
+ {
1263
+ "describe": "Add a LIMIT clause to the query to reduce the number of records returned.",
1264
+ "isRight": true
1265
+ },
1266
+ {
1267
+ "describe": "Contact Salesforce customer support to create a custom index to include null values.",
1268
+ "isRight": false
1269
+ },
1270
+ {
1271
+ "describe": "Make the CustomField__c field an External ID.",
1272
+ "isRight": false
1273
+ },
1274
+ {
1275
+ "describe": "Make the field CustomField__c required because Salesforce field indexes do not include nulls.",
1276
+ "isRight": true
1277
+ }
1278
+ ],
1279
+ "hashCode": "2019146444",
1280
+ "analysis": ""
1281
+ },
1282
+ {
1283
+ "describe": "A company recently deployed a Visualforce page with a custom controller that has a data grid of information about Opportunities in the org. \nUsers report that they receive a \"Maximum view state size limit\" error message under certain conditions.\n\nAccording to Visualforce best practice, which three actions should the developer take to reduce the view state?Choose 3 answers",
1284
+ "answerOptions": [
1285
+ {
1286
+ "describe": "Use the transient keyword in the Apex controller for variables that do not maintain state.",
1287
+ "isRight": true
1288
+ },
1289
+ {
1290
+ "describe": "Refine any SOQL queries to return only data relevant to the page.",
1291
+ "isRight": true
1292
+ },
1293
+ {
1294
+ "describe": "Use the final keyword in the controller for variables that will not change.",
1295
+ "isRight": false
1296
+ },
1297
+ {
1298
+ "describe": "Use the private keyword in the controller for variables.",
1299
+ "isRight": false
1300
+ },
1301
+ {
1302
+ "describe": "Use filters and pagination to reduce the amount of data.",
1303
+ "isRight": true
1304
+ }
1305
+ ],
1306
+ "hashCode": "2019145613",
1307
+ "analysis": ""
1308
+ },
1309
+ {
1310
+ "describe": "Which two queries are selective SOQL queries and can be used for a large data set of 200,000 Account records?\nChoose 2 answers",
1311
+ "answerOptions": [
1312
+ {
1313
+ "describe": "SELECT Id FROM Account WHERE Name LIKE 'Partner'",
1314
+ "isRight": false
1315
+ },
1316
+ {
1317
+ "describe": "SELECT Id FROM Account WHERE Name !=''",
1318
+ "isRight": false
1319
+ },
1320
+ {
1321
+ "describe": "SELECT Id FROM Account WHERE Id IN (List of Account Ids)",
1322
+ "isRight": true
1323
+ },
1324
+ {
1325
+ "describe": "SELECT Id FROM Account WHERE Name In (List of Name) AND Customer_Number_ c=",
1326
+ "isRight": true
1327
+ }
1328
+ ],
1329
+ "hashCode": "2019146509",
1330
+ "analysis": ""
1331
+ },
1332
+ {
1333
+ "describe": "<p>Refer to the markup below:</p><p>&lt;template&gt;</p><p>&nbsp; &nbsp; &lt;!-- …other code … --&gt;</p><p>&nbsp; &nbsp; &lt;lightning-record-form record-id={recordId} object-api-name=&quot;Account&quot; layout-type=&quot;Full&quot;&gt;</p><p>&nbsp; &nbsp; &lt;/lightning-record-form&gt;</p><p>&lt;/template&gt;</p><p><br/></p><p>A Lightning web component displays the Account name and two custom fields out of 275 that exist on the object. The custom fields are correctly declared and populated. However, the developer receives complaints that the component performs slowly.</p><p>What can the developer do to improve the performance?</p><p><br/></p>",
1334
+ "answerOptions": [
1335
+ {
1336
+ "describe": "<p>Replace layout-type=&quot;Full&quot; with layout-type=&quot;Partial&quot;.</p>",
1337
+ "isRight": false
1338
+ },
1339
+ {
1340
+ "describe": "<p>Add cache=&quot;true&quot; to the component.</p>",
1341
+ "isRight": false
1342
+ },
1343
+ {
1344
+ "describe": "<p>Add density=&quot;compact&quot; to the component.</p>",
1345
+ "isRight": false
1346
+ },
1347
+ {
1348
+ "describe": "<p>Replace layout-type=&quot;Full&quot; with fields-{fields}.</p>",
1349
+ "isRight": true
1350
+ }
1351
+ ],
1352
+ "hashCode": "2019145546",
1353
+ "analysis": ""
1354
+ },
1355
+ {
1356
+ "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>",
1357
+ "answerOptions": [
1358
+ {
1359
+ "describe": "<p>The method must be annotated with the @InvocableMethod annotation.</p>",
1360
+ "isRight": true
1361
+ },
1362
+ {
1363
+ "describe": "<p>Move the SOQL to fetch the account record outside of the tor loop.</p>",
1364
+ "isRight": true
1365
+ },
1366
+ {
1367
+ "describe": "<p>System.LimitException: Too many SOQL Queries on Account</p>",
1368
+ "isRight": false
1369
+ },
1370
+ {
1371
+ "describe": "<p>Use Trigger.old instead of Trigger .new.</p>",
1372
+ "isRight": false
1373
+ }
1374
+ ],
1375
+ "hashCode": "2019145460",
1376
+ "analysis": ""
1377
+ },
1378
+ {
1379
+ "describe": "<p>Consider the following Apex method that uses the opportunity object.</p><p><br/></p><p>public class opportunityController{|</p><p>@AuraEnabled</p><p>public static List&lt;opportunity&gt;&nbsp; searchoppByCaseId&lt;string caseId) {</p><p>List&lt;opportunity&gt; oppList = [select Id FROM opportunity where External_Case_ c = : caseId];</p><p>return oppList;</p><p>}</p><p>}</p><p><br/></p><p>In a previous data audit, it was determined that close to 5 million Opportunity records are stored within the Salesforce environment. The organization-wide defaults for the object are set to Public Read-Only and most opportunities are related to an external case.</p><p>The method is called from a Lightning web component. Some end users do not provide a caseId value and experience low performance while running the query.</p><p>Which two techniques should the developer implement to avoid low performance queries from executing?</p><p>Choose 2 answers</p><p><br/></p>",
1380
+ "answerOptions": [
1381
+ {
1382
+ "describe": "<p>Implement a LIMIT clause within the SOQL query to restrict the result set.</p>",
1383
+ "isRight": true
1384
+ },
1385
+ {
1386
+ "describe": "<p>Ensure the user provided input is not null before executing the SOQL query.</p>",
1387
+ "isRight": true
1388
+ },
1389
+ {
1390
+ "describe": "<p>Implement the with sharing keyword on the Apex class.</p>",
1391
+ "isRight": false
1392
+ },
1393
+ {
1394
+ "describe": "<p>Use SOSL instead of SOQL queries to perform text based searches.</p>",
1395
+ "isRight": false
1396
+ }
1397
+ ],
1398
+ "hashCode": "2019145484",
1399
+ "analysis": ""
1400
+ }
1401
+ ],
1402
+ "hashCode": "506696732"
1403
+ }