@palerock/exam-qa 1.0.6-patch19 → 1.0.6-patch20
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.
- package/dist/static/js/manifest.3ad1d5771e9b13dbdad2.js.map +1 -1
- package/lib-json/Dev1/346/250/241/346/213/237/345/215/267A.json +2 -2
- 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 +2 -2
- package/lib-json/[DEV2]Salesforce/345/237/272/347/241/200.json +375 -0
- package/lib-json/[DEV2]/346/200/247/350/203/275.json +728 -0
- package/lib-json/[DEV2]/346/250/241/346/213/237/345/215/267A.json +1403 -0
- package/lib-json/[DEV2]/346/250/241/346/213/237/345/215/267B.json +1387 -0
- package/lib-json/[DEV2]/346/265/213/350/257/225/344/270/216/351/203/250/347/275/262.json +828 -0
- package/lib-json/[DEV2]/347/224/250/346/210/267/347/225/214/351/235/2421.json +977 -0
- package/lib-json/[DEV2]/347/224/250/346/210/267/347/225/214/351/235/2422.json +667 -0
- 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
- 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
- package/lib-json/map.json +9 -0
- package/package.json +2 -1
- package/lib-json/Salesforce-Admin(302)-[Set-10].json +0 -321
- package/lib-json/Salesforce-Admin(302)-[Set-1].json +0 -301
- package/lib-json/Salesforce-Admin(302)-[Set-2].json +0 -325
- package/lib-json/Salesforce-Admin(302)-[Set-3].json +0 -305
- package/lib-json/Salesforce-Admin(302)-[Set-4].json +0 -325
- package/lib-json/Salesforce-Admin(302)-[Set-5].json +0 -329
- package/lib-json/Salesforce-Admin(302)-[Set-6].json +0 -322
- package/lib-json/Salesforce-Admin(302)-[Set-7].json +0 -321
- package/lib-json/Salesforce-Admin(302)-[Set-8].json +0 -321
- package/lib-json/Salesforce-Admin(302)-[Set-9].json +0 -325
- package/lib-json/Salesforce-Admin-201-[Set-10].json +0 -769
- package/lib-json/Salesforce-Admin-201-[Set-1].json +0 -604
- package/lib-json/Salesforce-Admin-201-[Set-2].json +0 -621
- package/lib-json/Salesforce-Admin-201-[Set-3].json +0 -650
- package/lib-json/Salesforce-Admin-201-[Set-4].json +0 -636
- package/lib-json/Salesforce-Admin-201-[Set-5].json +0 -640
- package/lib-json/Salesforce-Admin-201-[Set-6].json +0 -640
- package/lib-json/Salesforce-Admin-201-[Set-7].json +0 -592
- package/lib-json/Salesforce-Admin-201-[Set-8].json +0 -539
- package/lib-json/Salesforce-Admin-201-[Set-9].json +0 -539
- package/lib-json/Salesforce-Certified-Platform-Developer-1-[Set-1].json +0 -321
- package/lib-json/Salesforce-Certified-Platform-Developer-1-[Set-2].json +0 -325
- package/lib-json/Salesforce-Certified-Platform-Developer-1-[Set-3].json +0 -321
- package/lib-json/Salesforce-Certified-Platform-Developer-1-[Set-4].json +0 -337
- package/lib-json/Salesforce-Certified-Platform-Developer-1-[Set-5].json +0 -329
- package/lib-json/Salesforce-Certified-Platform-Developer-1-[Set-6].json +0 -325
- package/lib-json/Salesforce-Certified-Platform-Developer-1-[Set-7].json +0 -480
- package/lib-json/Salesforce-Sales-Cloud-Certification(81)-[Set-1].json +0 -305
- package/lib-json/Salesforce-Sales-Cloud-Certification(81)-[Set-2].json +0 -297
- package/lib-json/Salesforce-Sales-Cloud-Certification(81)-[Set-3].json +0 -269
- package/lib-json/Salesforce-Sales-Cloud-Certification(81)-[Set-4].json +0 -309
- package/lib-json/Salesforce-Sales-Cloud-Certification(81)-[Set-5].json +0 -515
- package/lib-json/app-builder-01.json +0 -1
- package/lib-json/app-builder-02.json +0 -1
- package/lib-json/app-builder-03.json +0 -1
- package/lib-json/app-builder-04.json +0 -1
- package/lib-json/app-builder-05.json +0 -1
- package/lib-json/app-builder-06.json +0 -1
- package/lib-json/app-builder-07.json +0 -1
- package/lib-json/app-builder-08.json +0 -1
- package/lib-json/app-builder-09.json +0 -1
- package/lib-json/app-builder-10.json +0 -1
- package/lib-json/app-builder-11.json +0 -311
@@ -0,0 +1,977 @@
|
|
1
|
+
{
|
2
|
+
"title": "用户界面1",
|
3
|
+
"category": "Dev2-自由部落侠",
|
4
|
+
"questions": [
|
5
|
+
{
|
6
|
+
"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: public class ContactFetcher {</p><p>03:</p><p>04: static List<Contact> getRecentContacts(Id accountId) {</p><p>05: List<Contact> contacts = getFiveMostRecent(accountId) ;</p><p>06: return contacts;</p><p>07: }</p><p>08:</p><p>09: private static List<Contact> getFiveMostRecent(Id accountId) {</p><p>10: // ...impletation...</p><p>11: }</p><p>12: }</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>",
|
7
|
+
"answerOptions": [
|
8
|
+
{
|
9
|
+
"describe": "<p>Add public to line 04.</p>",
|
10
|
+
"isRight": true
|
11
|
+
},
|
12
|
+
{
|
13
|
+
"describe": "<p>Add @AuraEnabled(cacheable=true) to line 03.</p>",
|
14
|
+
"isRight": true
|
15
|
+
},
|
16
|
+
{
|
17
|
+
"describe": "<p>Remove private from line 09.</p>",
|
18
|
+
"isRight": false
|
19
|
+
},
|
20
|
+
{
|
21
|
+
"describe": "<p>Add @AuraEnabled(cacheable=true) to line 08.</p>",
|
22
|
+
"isRight": false
|
23
|
+
}
|
24
|
+
],
|
25
|
+
"hashCode": "2019145547",
|
26
|
+
"analysis": ""
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"describe": "<p>The Account object has a field, Audit_Code__c, that is used to specify what type of auditing the Account needs and a Lookup to User, Auditor__c, that is the assigned auditor.</p><p>When an Account is initially created, the user specifies the Audit_Code__c. Each User in the org has a unique text field, Audit_Code__c, that is used to automatically assign the correct user to the Account's Auditor__c field.</p><p><br/></p><p>trigger AccountTrigger on Account(before insert) {</p><p> AuditAssigner.setAuditor(Trigger.new);</p><p>}</p><p><br/></p><p>public class AuditAssigner{</p><p> public static void setAuditor(List<Account> accounts) {</p><p> for(User u : [SELECT Id, Audit_Code__c FROM User]) {</p><p> for(Account a : accounts) {</p><p> if(u.Audit_Code__c == a.Audit_Code__c) {</p><p> a.Auditor__c = u.Id;</p><p> }</p><p> }</p><p> }</p><p> }</p><p>}</p><p>What should be changed to most optimize the code's efficiency? Choose 2 answers</p><p><br/></p>",
|
30
|
+
"answerOptions": [
|
31
|
+
{
|
32
|
+
"describe": "<p>Build a Map<String, List<Account>> of audit code to accounts.</p>",
|
33
|
+
"isRight": true
|
34
|
+
},
|
35
|
+
{
|
36
|
+
"describe": "<p>Add an initial SOQL query to get all distinct audit codes.</p>",
|
37
|
+
"isRight": false
|
38
|
+
},
|
39
|
+
{
|
40
|
+
"describe": "<p>Build a Map<Id, List<String>> of Account Id to audit codes.</p>",
|
41
|
+
"isRight": false
|
42
|
+
},
|
43
|
+
{
|
44
|
+
"describe": "<p>Add a WHERE clause to the SOQL query to filter on audit codes.</p>",
|
45
|
+
"isRight": true
|
46
|
+
}
|
47
|
+
],
|
48
|
+
"hashCode": "2019145545",
|
49
|
+
"analysis": ""
|
50
|
+
},
|
51
|
+
{
|
52
|
+
"describe": "<p>Given the following code:</p><p><br/></p><p>for ( Contact c : SELECT Id, LastNaze FROM Contact WHERE CreatedDate = TODAY] )</p><p>{</p><p>Account a = [SELECT Id,Name FROM Account WHERE CreatedDate = TODAY LIMIT 5];</p><p>c.AccountId = a.Id;</p><p>update c;</p><p>}</p><p><br/></p><p>Assuming there were 10 Contacts and five Accounts created today, what is the expected result?</p><p><br/></p>",
|
53
|
+
"answerOptions": [
|
54
|
+
{
|
55
|
+
"describe": "<p>System.QueryException: List has more than one row for Assignment on Account</p>",
|
56
|
+
"isRight": true
|
57
|
+
},
|
58
|
+
{
|
59
|
+
"describe": "<p>System.LimitException: Too many SOQL Queries on Contact</p>",
|
60
|
+
"isRight": false
|
61
|
+
},
|
62
|
+
{
|
63
|
+
"describe": "<p>System.QueryException: Too many DML Statement errors on Contact</p>",
|
64
|
+
"isRight": false
|
65
|
+
},
|
66
|
+
{
|
67
|
+
"describe": "<p>System.LimitException: Too many SOQL Queries on Account</p>",
|
68
|
+
"isRight": false
|
69
|
+
}
|
70
|
+
],
|
71
|
+
"hashCode": "2019145519",
|
72
|
+
"analysis": ""
|
73
|
+
},
|
74
|
+
{
|
75
|
+
"describe": "<p>A developer created an Apex class that updates an Account based on input from a Lightning web component that is used to register an Account.The update to the Account should only be made if it has not already been registered.</p><p><br/></p><p>Account = [SELECT Id,Is_Registered_c FROM Account WHERE Id= : accountId]:</p><p>if (!account.Is_Registered_c){</p><p>Account.Is_Registered_c = true</p><p>//...set other account fields... </p><p>update account;</p><p>}</p><p><br/></p><p>What should the developer do to ensure that users do not overwrite each other's updates to the same Account if they make updates at the same time?</p><p><br/></p>",
|
76
|
+
"answerOptions": [
|
77
|
+
{
|
78
|
+
"describe": "<p>Use Database. update (account, false)</p>",
|
79
|
+
"isRight": false
|
80
|
+
},
|
81
|
+
{
|
82
|
+
"describe": "<p>Add a try/catch block around the update.</p>",
|
83
|
+
"isRight": false
|
84
|
+
},
|
85
|
+
{
|
86
|
+
"describe": "<p>Use upsert instead of update.</p>",
|
87
|
+
"isRight": false
|
88
|
+
},
|
89
|
+
{
|
90
|
+
"describe": "<p>Use FOR UPDATE in a SOQL query.</p>",
|
91
|
+
"isRight": true
|
92
|
+
}
|
93
|
+
],
|
94
|
+
"hashCode": "2019145490",
|
95
|
+
"analysis": ""
|
96
|
+
},
|
97
|
+
{
|
98
|
+
"describe": "<p>Refer to the code below:</p><p><br/></p><p>List<opportunity> 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>",
|
99
|
+
"answerOptions": [
|
100
|
+
{
|
101
|
+
"describe": "<p>Use a SOQL for loop to process the data.</p>",
|
102
|
+
"isRight": true
|
103
|
+
},
|
104
|
+
{
|
105
|
+
"describe": "<p>Convert the List into a set.</p>",
|
106
|
+
"isRight": false
|
107
|
+
},
|
108
|
+
{
|
109
|
+
"describe": "<p>Use Limits.getLimitHeapSize().</p>",
|
110
|
+
"isRight": false
|
111
|
+
},
|
112
|
+
{
|
113
|
+
"describe": "<p>Use a try/catch block to catch the error.</p>",
|
114
|
+
"isRight": false
|
115
|
+
}
|
116
|
+
],
|
117
|
+
"hashCode": "2019145488",
|
118
|
+
"analysis": ""
|
119
|
+
},
|
120
|
+
{
|
121
|
+
"describe": "<p>A company wants to run different logic based on an Opportunity's record type.\nWhich code segment handles this request and follows best practices?</p>",
|
122
|
+
"answerOptions": [
|
123
|
+
{
|
124
|
+
"describe": "<p>RecordType recType_New = [SELECT Id, Name FROM RecordType WHERE SObjectType = 'Opportunity' AND IsActive = TRUE and Name = 'New' LIMIT 1];</p><p>RecordType recType_Renewal = [SELECT Id, Name FROM RecordType WHERE SObjectType = 'Opportunity' AND IsActive = TRUE and Name = 'Renewal' LIMIT 1];</p><p>for( Opportunity o: Trigger.new) {</p><p> if(o.RecordTypeId == recType_New) {</p><p> //do some logic Record Type 1",
|
125
|
+
"isRight": false
|
126
|
+
},
|
127
|
+
{
|
128
|
+
"describe": "<p>Id recType_New = Schema.SObjectType.Opportunity.getRecordTypeInfosByName().get('New').getRecordTypeId();</p><p>RecordType recType_Renewal = Schema.SObjectType.Opportunity.getRecordTypeInfosByName().get('Renewal').getRecordTypeId();</p><p>for( Opportunity o: Trigger.new) {</p><p> if(o.RecordTypeId == recType_New) {</p><p> //do some logic Record Type 1</p><p> }</p><p> else if(o.RecordTypeI",
|
129
|
+
"isRight": true
|
130
|
+
},
|
131
|
+
{
|
132
|
+
"describe": "<p>for( Opportunity o: Trigger.new) {</p><p> if(o.RecordTypeId == '012500000009WAr') {</p><p> //do some logic Record Type 1</p><p> }</p><p> else if(o.RecordTypeId == '012500000009WBe') {</p><p> //do some logic for Record Type 2</p><p> }</p><p>}</p><p><br/></p>",
|
133
|
+
"isRight": false
|
134
|
+
},
|
135
|
+
{
|
136
|
+
"describe": "<p>List<RecordType> recTypes = [SELECT Id, Name FROM RecordType WHERE SObjectType = 'Opportunity' AND IsActive = True];</p><p>Map<String, Id> recTypeMap = new Map<String, Id>();</p><p>for( RecordType rt: recTypes) {</p><p> recTypeMap.put(rt.Name, rt.Id);</p><p>}</p><p>for( Opportunity o: Trigger.new) {</p><p> if(o.RecordTypeId == recTypeMap.get('New')) {</p><p> //do some logic Record Type 1</p><p>",
|
137
|
+
"isRight": false
|
138
|
+
}
|
139
|
+
],
|
140
|
+
"hashCode": "2019145430",
|
141
|
+
"analysis": ""
|
142
|
+
},
|
143
|
+
{
|
144
|
+
"describe": "<p>Line 1 trigger ContactTrigger on Contact (before insert, before update) </p><p>Line 2 {</p><p>Line 3 Map<Id, Account> accountMap = new Map<Id, Account>();</p><p>Line 4 for(Contact c : Trigger.new)</p><p>Line 5 {</p><p>Line 6 Account a = [SELECT Id, Name, BillingCountry FROM Account WHERE Id := c.AccountId];</p><p>Line 7 accountMap.put(a.Id, a);</p><p>Line 8 }</p><p>line 9</p><p>Line 10 //Do stuff with accountMap</p><p>Line 11 for(Contact c : Trigger.new)</p><p>Line 12 {</p><p>Line 13 Account a = accountMap.get(c.AccountId);</p><p>Line 14 if(a != null) </p><p>Line 15 {</p><p>Line 16 c.BillingCountry = a.BillingCountry;</p><p>Line 17 }</p><p>Line 18 }</p><p>Line 19</p><p>Line 20 update Trigger.new;</p><p>Line 21 }</p><p>Refer to the code segment above</p><p>When following best practices for writing Apex triggers, which two lines are wrong or cause for concern?Choose 2 answers</p><p><br/></p>",
|
145
|
+
"answerOptions": [
|
146
|
+
{
|
147
|
+
"describe": "<p>Line 6</p>",
|
148
|
+
"isRight": true
|
149
|
+
},
|
150
|
+
{
|
151
|
+
"describe": "<p>Line 11</p>",
|
152
|
+
"isRight": false
|
153
|
+
},
|
154
|
+
{
|
155
|
+
"describe": "<p>Line 16</p>",
|
156
|
+
"isRight": false
|
157
|
+
},
|
158
|
+
{
|
159
|
+
"describe": "<p>Line 20</p>",
|
160
|
+
"isRight": true
|
161
|
+
}
|
162
|
+
],
|
163
|
+
"hashCode": "2019145428",
|
164
|
+
"analysis": ""
|
165
|
+
},
|
166
|
+
{
|
167
|
+
"describe": "<p>Refer to the code snippet below:</p><p><br/></p><p>public static void updateCreditMemo(String customerId, Decimal newAmount) {</p><p> List<Credit_Memo__c> toUpdate = new List<Credit_Memo__c>( ) ;</p><p> for (Credit_Memo__c creditMemo : [Select Id, Name, Amount__c FROM Credit_Memo__c WHERE Customer_Id__c = : customerId LIMIT 50]) {</p><p> creditMemo.Amount__c = newAmount;</p><p> toUpdate.add(creditMemo) ;</p><p> }</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>",
|
168
|
+
"answerOptions": [
|
169
|
+
{
|
170
|
+
"describe": "<p>[Select Id, Name, Amount__c FROM Credit_Memo__c WHERE Customer_Id__c = :customerId LIMIT 50 FOR UPDATE]</p>",
|
171
|
+
"isRight": true
|
172
|
+
},
|
173
|
+
{
|
174
|
+
"describe": "<p>[Select Id, Name, Amount__c FROM Credit_Memo__c WHERE Customer_Id__c = :customerId FOR REFERENCE LIMIT 50]</p>",
|
175
|
+
"isRight": false
|
176
|
+
},
|
177
|
+
{
|
178
|
+
"describe": "<p>[Select Id, Name, Amount__c FROM Credit_Memo__c WHERE Customer_Id__c = :customerId LIMIT 50 FOR PREFERENCE]</p>",
|
179
|
+
"isRight": false
|
180
|
+
},
|
181
|
+
{
|
182
|
+
"describe": "<p>The executeBatch must fall within test.startTest() and test.stopTest().</p>",
|
183
|
+
"isRight": false
|
184
|
+
}
|
185
|
+
],
|
186
|
+
"hashCode": "2019145425",
|
187
|
+
"analysis": "<p>https://developer.salesforce.com/docs/atlas.en-us.soql_sosl.meta/soql_sosl/sforce_api_calls_soql_select_for_update.htm</p>"
|
188
|
+
},
|
189
|
+
{
|
190
|
+
"describe": "<p>Refer to the code snippet below:</p><p>01 public void createChildRecord(String externalIdenifier) {</p><p>02 Account parentAccount;</p><p>03</p><p>04 Contact newContact = new contact();</p><p>05 newContact.Account = parentAccount;</p><p>06</p><p>07 insert(newContact);</p><p>08 }</p><p>As part of an integration development effort, a developer is tasked to create an Apex method that solely relies on the use of foreign </p><p>identifiers in order to relate new contact records to existing Accounts in Salesforce. The account object contains a field marked as </p><p>an external ID, the API Name of this field is Legacy_Id__c.</p><p>What is the most efficient way to instantiate the parentAccount variable on line 02 to ensure the newly created contact is properly </p><p>related to the Account?</p><p><br/></p>",
|
191
|
+
"answerOptions": [
|
192
|
+
{
|
193
|
+
"describe": "<p>Account parentAccount = [SELECT Id FROM Account WHERE Legacy_Id__c =:externalIdentifier].Id;</p>",
|
194
|
+
"isRight": false
|
195
|
+
},
|
196
|
+
{
|
197
|
+
"describe": "<p>Account parentAccount = new Account (Legacy_Id__c =externalIdentifier);</p>",
|
198
|
+
"isRight": false
|
199
|
+
},
|
200
|
+
{
|
201
|
+
"describe": "<p>Account parentAccount = [SELECT Id FROM Account WHERE Legacy_Id__c =:externalIdentifier];</p>",
|
202
|
+
"isRight": true
|
203
|
+
},
|
204
|
+
{
|
205
|
+
"describe": "<p>Account parentAccount = new Account();</p><p>parentAccount.Id =externalIdentifier;</p><p><br/></p>",
|
206
|
+
"isRight": false
|
207
|
+
}
|
208
|
+
],
|
209
|
+
"hashCode": "2019145424",
|
210
|
+
"analysis": ""
|
211
|
+
},
|
212
|
+
{
|
213
|
+
"describe": "<p>trigger AssignOwnerByRegion on Account(before insert, before update)</p><p>{</p><p> List<Account> accountList = new List<Account>();</p><p> for(Account anAccount : trigger.new )</p><p> {</p><p> Region__c theRegion = [SELECT Id, Name, Region_Manager__c FROM Region__c WHERE Name= :anAccount.Region_Name__c];</p><p> anAccount.OwnerId = theRegion.Region_Manager__c;</p><p> accountList.add(anAccount);</p><p> }</p><p> update accountList;</p><p>}</p><p><br/></p><p>Consider the above trigger intended to assign the Account to the manager of the Account'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>",
|
214
|
+
"answerOptions": [
|
215
|
+
{
|
216
|
+
"describe": "<p>Remove the last line updating accountList as it is not needed.</p>",
|
217
|
+
"isRight": true
|
218
|
+
},
|
219
|
+
{
|
220
|
+
"describe": "<p>Move the Region__c query to outside the loop.</p>",
|
221
|
+
"isRight": true
|
222
|
+
},
|
223
|
+
{
|
224
|
+
"describe": "<p>Use a Map accountMap instead of List accountList.</p>",
|
225
|
+
"isRight": false
|
226
|
+
},
|
227
|
+
{
|
228
|
+
"describe": "<p>Use a Map to cache the results of the Region__c query by Id.</p>",
|
229
|
+
"isRight": false
|
230
|
+
}
|
231
|
+
],
|
232
|
+
"hashCode": "2019145392",
|
233
|
+
"analysis": ""
|
234
|
+
},
|
235
|
+
{
|
236
|
+
"describe": "<p>A company has code to update a Request and Request Lines and make a callout to their external ERP system's REST endpoint with the updated records.</p><p><br/></p><p>public void updateAndMakeCallout(Map<Id, Request__c> reqs,</p><p>Map<Id, Request_Line__c> reqLines) {</p><p> Savepoint sp = Database.setSavepoint( );</p><p><br/></p><p> try {</p><p> insert reqs.values( );</p><p> insert reqLines.values( );</p><p> HttpResponse response = CalloutUtil.makeRestCallout(reqs.keySet( ), reqLines.keySet( ));</p><p> } catch (Exception e) {</p><p> Database.rollback (sp) ;</p><p> System.debug(e) ;</p><p> }</p><p>}</p><p><br/></p><p>The CalloutUtil.makeRestCallout fails with a 'You have uncommitted work pending. Please commit or rollback before calling out' error.</p><p><br/></p><p>What should be done to address the problem?</p><p><br/></p>",
|
237
|
+
"answerOptions": [
|
238
|
+
{
|
239
|
+
"describe": "<p>Remove the Database.setSavepoint and Database.rollback.</p>",
|
240
|
+
"isRight": false
|
241
|
+
},
|
242
|
+
{
|
243
|
+
"describe": "<p>Change the CalloutUtil.makeRestCallout to an @future method.</p>",
|
244
|
+
"isRight": true
|
245
|
+
},
|
246
|
+
{
|
247
|
+
"describe": "<p>Change the CalloutUtil.makeRestCallout to an @InvocableMethod method.</p>",
|
248
|
+
"isRight": false
|
249
|
+
},
|
250
|
+
{
|
251
|
+
"describe": "<p>Move the CalloutUtil.makeRestCallout method call below the catch block.</p>",
|
252
|
+
"isRight": false
|
253
|
+
}
|
254
|
+
],
|
255
|
+
"hashCode": "2019145391",
|
256
|
+
"analysis": ""
|
257
|
+
},
|
258
|
+
{
|
259
|
+
"describe": "How should a developer reference a third-party JavaScript library from a Lightning component?",
|
260
|
+
"answerOptions": [
|
261
|
+
{
|
262
|
+
"describe": "From an asset file",
|
263
|
+
"isRight": false
|
264
|
+
},
|
265
|
+
{
|
266
|
+
"describe": "From a document",
|
267
|
+
"isRight": false
|
268
|
+
},
|
269
|
+
{
|
270
|
+
"describe": "From a static resource",
|
271
|
+
"isRight": true
|
272
|
+
},
|
273
|
+
{
|
274
|
+
"describe": "From a third-party URL",
|
275
|
+
"isRight": false
|
276
|
+
}
|
277
|
+
],
|
278
|
+
"hashCode": "2019147317",
|
279
|
+
"analysis": ""
|
280
|
+
},
|
281
|
+
{
|
282
|
+
"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?",
|
283
|
+
"answerOptions": [
|
284
|
+
{
|
285
|
+
"describe": "Try/catch/finally block",
|
286
|
+
"isRight": false
|
287
|
+
},
|
288
|
+
{
|
289
|
+
"describe": "Apex trigger",
|
290
|
+
"isRight": false
|
291
|
+
},
|
292
|
+
{
|
293
|
+
"describe": "Validation rules",
|
294
|
+
"isRight": false
|
295
|
+
},
|
296
|
+
{
|
297
|
+
"describe": "External JavaScript library",
|
298
|
+
"isRight": true
|
299
|
+
}
|
300
|
+
],
|
301
|
+
"hashCode": "2019147316",
|
302
|
+
"analysis": ""
|
303
|
+
},
|
304
|
+
{
|
305
|
+
"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?",
|
306
|
+
"answerOptions": [
|
307
|
+
{
|
308
|
+
"describe": "An application event",
|
309
|
+
"isRight": false
|
310
|
+
},
|
311
|
+
{
|
312
|
+
"describe": "A refreshView event",
|
313
|
+
"isRight": false
|
314
|
+
},
|
315
|
+
{
|
316
|
+
"describe": "A publish event",
|
317
|
+
"isRight": false
|
318
|
+
},
|
319
|
+
{
|
320
|
+
"describe": "A component event",
|
321
|
+
"isRight": true
|
322
|
+
}
|
323
|
+
],
|
324
|
+
"hashCode": "2019147314",
|
325
|
+
"analysis": ""
|
326
|
+
},
|
327
|
+
{
|
328
|
+
"describe": "GetCloudy Consulting(GCC) has a multitude of servers that host its customers' websites. GCC wants to provide a servers status page that is always on display in its call center. It should update in real time with any changes made to any servers. To accommodate this on the server side, a developer created a Server Update platform event.\nThe developeer is working on a Lightning web component to display the information.\nWhat should be added to the Lightning web component to allow the developer to interact with the Server Update platform event?",
|
329
|
+
"answerOptions": [
|
330
|
+
{
|
331
|
+
"describe": "import { subscribe, unsubscribe, onError } from 'lightning/pubsub'",
|
332
|
+
"isRight": false
|
333
|
+
},
|
334
|
+
{
|
335
|
+
"describe": "import { subscribe, unsubscribe, onError } from 'lightning/empApi'",
|
336
|
+
"isRight": true
|
337
|
+
},
|
338
|
+
{
|
339
|
+
"describe": "import { subscribe, unsubscribe, onError } from 'lightning/ServerUpdate'",
|
340
|
+
"isRight": false
|
341
|
+
},
|
342
|
+
{
|
343
|
+
"describe": "import { subscribe, unsubscribe, onError } from 'lightning/MessageChannel'",
|
344
|
+
"isRight": false
|
345
|
+
}
|
346
|
+
],
|
347
|
+
"hashCode": "2019146638",
|
348
|
+
"analysis": "https://developer.salesforce.com/docs/component-library/bundle/lightning-emp-api/documentation"
|
349
|
+
},
|
350
|
+
{
|
351
|
+
"describe": "Which annotation should a developer use on an Apex method to make it available to be wired to a property in a Lightning web component?",
|
352
|
+
"answerOptions": [
|
353
|
+
{
|
354
|
+
"describe": "@RemoteAction",
|
355
|
+
"isRight": false
|
356
|
+
},
|
357
|
+
{
|
358
|
+
"describe": "@AuraEnabled(cacheable=true)",
|
359
|
+
"isRight": true
|
360
|
+
},
|
361
|
+
{
|
362
|
+
"describe": "@RemoteAction (cacheable=true)",
|
363
|
+
"isRight": false
|
364
|
+
},
|
365
|
+
{
|
366
|
+
"describe": "@AuraEnabled",
|
367
|
+
"isRight": false
|
368
|
+
}
|
369
|
+
],
|
370
|
+
"hashCode": "2019146576",
|
371
|
+
"analysis": ""
|
372
|
+
},
|
373
|
+
{
|
374
|
+
"describe": "A developer is tasked with creating a Lightning web component that allows users to create a Case for a selected product, directly from a custom Lightning page. The input fields in the component are displayed in a non-linear fashion on top of an image of the product to help the user better understand the meaning of the fields.\nWhich two components should a developer use to implement the creation of the Case from the Lightning web component?\nChoose 2 answers",
|
375
|
+
"answerOptions": [
|
376
|
+
{
|
377
|
+
"describe": "lightning-record-edit-form",
|
378
|
+
"isRight": true
|
379
|
+
},
|
380
|
+
{
|
381
|
+
"describe": "lightning-input",
|
382
|
+
"isRight": false
|
383
|
+
},
|
384
|
+
{
|
385
|
+
"describe": "lightning-record-form",
|
386
|
+
"isRight": true
|
387
|
+
},
|
388
|
+
{
|
389
|
+
"describe": "lightning-input-field",
|
390
|
+
"isRight": false
|
391
|
+
}
|
392
|
+
],
|
393
|
+
"hashCode": "2019146571",
|
394
|
+
"analysis": ""
|
395
|
+
},
|
396
|
+
{
|
397
|
+
"describe": "A developer is building a Lightning web component that searches for Contacts and must communicate the search results to other Lightning web components when the search completes.\nWhat should the developer do to implement the communication?",
|
398
|
+
"answerOptions": [
|
399
|
+
{
|
400
|
+
"describe": "Publish an event on an event channel.",
|
401
|
+
"isRight": false
|
402
|
+
},
|
403
|
+
{
|
404
|
+
"describe": "Fire an application event.",
|
405
|
+
"isRight": false
|
406
|
+
},
|
407
|
+
{
|
408
|
+
"describe": "Publish a message on a message channel",
|
409
|
+
"isRight": true
|
410
|
+
},
|
411
|
+
{
|
412
|
+
"describe": "Fire a custom component event.",
|
413
|
+
"isRight": false
|
414
|
+
}
|
415
|
+
],
|
416
|
+
"hashCode": "2019146568",
|
417
|
+
"analysis": ""
|
418
|
+
},
|
419
|
+
{
|
420
|
+
"describe": "A custom Aura component, AddressValidation.cmp,exists in the system. The Salesforce admin for the organization is unable to find and select the component while creating a quick action for the Account sObject.\nWhat should the developer do to ensure the AddressValidation.cmp can be selected when creating a quick action?",
|
421
|
+
"answerOptions": [
|
422
|
+
{
|
423
|
+
"describe": "Ensure the component implements the force:lightningQuickAction interface.",
|
424
|
+
"isRight": true
|
425
|
+
},
|
426
|
+
{
|
427
|
+
"describe": "Ensure the component implements the lightning:acticnoverride interface.",
|
428
|
+
"isRight": false
|
429
|
+
},
|
430
|
+
{
|
431
|
+
"describe": "Ensure the component implements the force:hasReoordId interface.",
|
432
|
+
"isRight": false
|
433
|
+
},
|
434
|
+
{
|
435
|
+
"describe": "Ensure the access attribute of the aura:component tag is set to Global.",
|
436
|
+
"isRight": false
|
437
|
+
}
|
438
|
+
],
|
439
|
+
"hashCode": "2019146546",
|
440
|
+
"analysis": ""
|
441
|
+
},
|
442
|
+
{
|
443
|
+
"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",
|
444
|
+
"answerOptions": [
|
445
|
+
{
|
446
|
+
"describe": "Create the application using Aura Components.",
|
447
|
+
"isRight": true
|
448
|
+
},
|
449
|
+
{
|
450
|
+
"describe": "Create the application using Lightning web Components wrapped in Aura Components.",
|
451
|
+
"isRight": true
|
452
|
+
},
|
453
|
+
{
|
454
|
+
"describe": "Create the application using Lightning Experience Builder.",
|
455
|
+
"isRight": false
|
456
|
+
},
|
457
|
+
{
|
458
|
+
"describe": "Create the application using Aura Components wrapped in Lightning web Components.",
|
459
|
+
"isRight": false
|
460
|
+
}
|
461
|
+
],
|
462
|
+
"hashCode": "2019146545",
|
463
|
+
"analysis": ""
|
464
|
+
},
|
465
|
+
{
|
466
|
+
"describe": "When the sales team views an individual customer record, they need to see recent interactions for the customer.\nThese interactions can be sales orders, phone calls, or Cases. The date range for recent interactions will be different for every customer record type.\nHow can this be accomplished?",
|
467
|
+
"answerOptions": [
|
468
|
+
{
|
469
|
+
"describe": "Use Lightning Flow to read the customer's record type, and then do a dynamic query for recent interactions and display on the View page.",
|
470
|
+
"isRight": true
|
471
|
+
},
|
472
|
+
{
|
473
|
+
"describe": "Use a Lightning component to query and display interactions based on record type that is passed in using a design : attribute from the Lightning page.",
|
474
|
+
"isRight": false
|
475
|
+
},
|
476
|
+
{
|
477
|
+
"describe": "Use batch Apex to query for the most recent interactions when the customer view screen is loaded.",
|
478
|
+
"isRight": false
|
479
|
+
},
|
480
|
+
{
|
481
|
+
"describe": "Use a dynamic form on the customer record page to display recent interactions.",
|
482
|
+
"isRight": false
|
483
|
+
}
|
484
|
+
],
|
485
|
+
"hashCode": "2019146539",
|
486
|
+
"analysis": ""
|
487
|
+
},
|
488
|
+
{
|
489
|
+
"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?",
|
490
|
+
"answerOptions": [
|
491
|
+
{
|
492
|
+
"describe": "@AuraEnabled",
|
493
|
+
"isRight": true
|
494
|
+
},
|
495
|
+
{
|
496
|
+
"describe": "@RemoteAction",
|
497
|
+
"isRight": false
|
498
|
+
},
|
499
|
+
{
|
500
|
+
"describe": "@RemoteAction(cacheable = true)",
|
501
|
+
"isRight": false
|
502
|
+
},
|
503
|
+
{
|
504
|
+
"describe": "@AuraEnabled(cacheable = true)",
|
505
|
+
"isRight": false
|
506
|
+
}
|
507
|
+
],
|
508
|
+
"hashCode": "2019146513",
|
509
|
+
"analysis": ""
|
510
|
+
},
|
511
|
+
{
|
512
|
+
"describe": "The Account edit button must be overridden in an org where a subset of users still use Salesforce Classic. The org already has a Lightning Component that will do the work necessary for the override, and the client wants to be able to reuse it.\nHow should a developer implement this?",
|
513
|
+
"answerOptions": [
|
514
|
+
{
|
515
|
+
"describe": "Override the edit button for Lightning with a Lightning Component; and for Classic, override the edit button with a Visualforce page that contains the Lightning Component.",
|
516
|
+
"isRight": true
|
517
|
+
},
|
518
|
+
{
|
519
|
+
"describe": "Override the edit button for both Lightning and Classic with a Lightning Component.",
|
520
|
+
"isRight": false
|
521
|
+
},
|
522
|
+
{
|
523
|
+
"describe": "Override the edit button for Lightning with a Lightning Page; and for Classic, override the edit button with a Visualforce page that contains the Lightning Component.",
|
524
|
+
"isRight": false
|
525
|
+
},
|
526
|
+
{
|
527
|
+
"describe": "Override the edit button for both Lightning and Classic with a new Visualforce page.",
|
528
|
+
"isRight": false
|
529
|
+
}
|
530
|
+
],
|
531
|
+
"hashCode": "2019146512",
|
532
|
+
"analysis": ""
|
533
|
+
},
|
534
|
+
{
|
535
|
+
"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",
|
536
|
+
"answerOptions": [
|
537
|
+
{
|
538
|
+
"describe": "Lightnig-Input-location",
|
539
|
+
"isRight": false
|
540
|
+
},
|
541
|
+
{
|
542
|
+
"describe": "Lightning-navigation",
|
543
|
+
"isRight": false
|
544
|
+
},
|
545
|
+
{
|
546
|
+
"describe": "Lightning-layout",
|
547
|
+
"isRight": true
|
548
|
+
},
|
549
|
+
{
|
550
|
+
"describe": "Lightning-layout-item",
|
551
|
+
"isRight": true
|
552
|
+
}
|
553
|
+
],
|
554
|
+
"hashCode": "2019146484",
|
555
|
+
"analysis": ""
|
556
|
+
},
|
557
|
+
{
|
558
|
+
"describe": "A developer is asked to create a Lightning web component that will be invoked via a button on a record page. The component must be displayed in a modal dialog.\nWhich three steps should the developer take to achieve this?\nChoose 3 answers",
|
559
|
+
"answerOptions": [
|
560
|
+
{
|
561
|
+
"describe": "Add a targetConfig and set targets to lightning_ RecordAction.",
|
562
|
+
"isRight": true
|
563
|
+
},
|
564
|
+
{
|
565
|
+
"describe": "In tagetConfigs, add lightning_ AppPage as a target.",
|
566
|
+
"isRight": false
|
567
|
+
},
|
568
|
+
{
|
569
|
+
"describe": "Set actionType to ScreenAction.",
|
570
|
+
"isRight": true
|
571
|
+
},
|
572
|
+
{
|
573
|
+
"describe": "In targets, add lightning RecordAction as a target.",
|
574
|
+
"isRight": true
|
575
|
+
},
|
576
|
+
{
|
577
|
+
"describe": "Set eventType to Action.",
|
578
|
+
"isRight": false
|
579
|
+
}
|
580
|
+
],
|
581
|
+
"hashCode": "2019146480",
|
582
|
+
"analysis": ""
|
583
|
+
},
|
584
|
+
{
|
585
|
+
"describe": "How can a developer efficiently incorporate multiple JavaScript libraries, such as JQuery and MomentJS, in a Lightning component?",
|
586
|
+
"answerOptions": [
|
587
|
+
{
|
588
|
+
"describe": "Use JavaScript remoting and script tags.",
|
589
|
+
"isRight": false
|
590
|
+
},
|
591
|
+
{
|
592
|
+
"describe": "Implement the libraries in separate helper files.",
|
593
|
+
"isRight": false
|
594
|
+
},
|
595
|
+
{
|
596
|
+
"describe": "Join multiple assets from a static resource.",
|
597
|
+
"isRight": true
|
598
|
+
},
|
599
|
+
{
|
600
|
+
"describe": "Do Use CDNs with script attributes.",
|
601
|
+
"isRight": false
|
602
|
+
}
|
603
|
+
],
|
604
|
+
"hashCode": "2019146450",
|
605
|
+
"analysis": ""
|
606
|
+
},
|
607
|
+
{
|
608
|
+
"describe": "A Lightning web component exists in the system and displays information about the record in context as a modal. Salesforce \nadministrators need to use this component within the Lightning App Builder.\nWhich two settings should the developer configure within the xml resource file? Choose 2 answers",
|
609
|
+
"answerOptions": [
|
610
|
+
{
|
611
|
+
"describe": "Set the IsVisible attribute to True.",
|
612
|
+
"isRight": false
|
613
|
+
},
|
614
|
+
{
|
615
|
+
"describe": "Set the IsExposed attribute to True.",
|
616
|
+
"isRight": true
|
617
|
+
},
|
618
|
+
{
|
619
|
+
"describe": "Sprcify the target to be lightning__AppPage.",
|
620
|
+
"isRight": false
|
621
|
+
},
|
622
|
+
{
|
623
|
+
"describe": "Specify the target to be lightning__RecordPage.",
|
624
|
+
"isRight": true
|
625
|
+
}
|
626
|
+
],
|
627
|
+
"hashCode": "2019146416",
|
628
|
+
"analysis": "https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.reference_configuration_tags"
|
629
|
+
},
|
630
|
+
{
|
631
|
+
"describe": "A company has a lightning Page with many Lightning Components, some that cache reference data. It Is reported that the page does not \nalways show the most current reference data.\n\nWhat can a developer use to analyze and diagnose the problem In the Lightning Page?",
|
632
|
+
"answerOptions": [
|
633
|
+
{
|
634
|
+
"describe": "Salesforce Lightning Inspector Event Log Tab",
|
635
|
+
"isRight": false
|
636
|
+
},
|
637
|
+
{
|
638
|
+
"describe": "Salesforce Lightning Inspector Transactions Tab",
|
639
|
+
"isRight": false
|
640
|
+
},
|
641
|
+
{
|
642
|
+
"describe": "Salesforce Lightning Inspector Storage Tab",
|
643
|
+
"isRight": true
|
644
|
+
},
|
645
|
+
{
|
646
|
+
"describe": "Salesforce Lightning Inspector Actions Tab",
|
647
|
+
"isRight": false
|
648
|
+
}
|
649
|
+
],
|
650
|
+
"hashCode": "2019146415",
|
651
|
+
"analysis": ""
|
652
|
+
},
|
653
|
+
{
|
654
|
+
"describe": "A developer is writing a Visualforce page that queries accounts in the system and presents a data table with the results. The users want to be \nable to filter the results based on up to five fields. However, the users want to pick the five fields to use as filter fields when they run the page. \n\nWhich Apex code feature is required to facilitate this solution?",
|
655
|
+
"answerOptions": [
|
656
|
+
{
|
657
|
+
"describe": "Streaming API",
|
658
|
+
"isRight": false
|
659
|
+
},
|
660
|
+
{
|
661
|
+
"describe": "Dynamic SOQL",
|
662
|
+
"isRight": true
|
663
|
+
},
|
664
|
+
{
|
665
|
+
"describe": "Report API",
|
666
|
+
"isRight": false
|
667
|
+
},
|
668
|
+
{
|
669
|
+
"describe": "Dynamic variable binding",
|
670
|
+
"isRight": false
|
671
|
+
}
|
672
|
+
],
|
673
|
+
"hashCode": "2019146391",
|
674
|
+
"analysis": ""
|
675
|
+
},
|
676
|
+
{
|
677
|
+
"describe": "Which code statement includes an Apex method named updateAccounts in the class AccountController for use in a Lightning web \ncomponent?",
|
678
|
+
"answerOptions": [
|
679
|
+
{
|
680
|
+
"describe": "import updateAccounts from '@salesforce/apex/AccountController';",
|
681
|
+
"isRight": false
|
682
|
+
},
|
683
|
+
{
|
684
|
+
"describe": "import updateAccounts from 'AccountController';",
|
685
|
+
"isRight": false
|
686
|
+
},
|
687
|
+
{
|
688
|
+
"describe": "import updateAccounts from 'AccountController.updateAccounts';",
|
689
|
+
"isRight": false
|
690
|
+
},
|
691
|
+
{
|
692
|
+
"describe": "import updateAccounts from '@salesforce/apex/AccountController.updateAccounts';",
|
693
|
+
"isRight": true
|
694
|
+
}
|
695
|
+
],
|
696
|
+
"hashCode": "2019146385",
|
697
|
+
"analysis": "https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.apex_import_method"
|
698
|
+
},
|
699
|
+
{
|
700
|
+
"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?",
|
701
|
+
"answerOptions": [
|
702
|
+
{
|
703
|
+
"describe": "Aura Components",
|
704
|
+
"isRight": true
|
705
|
+
},
|
706
|
+
{
|
707
|
+
"describe": "Lightning Web Components",
|
708
|
+
"isRight": false
|
709
|
+
},
|
710
|
+
{
|
711
|
+
"describe": "Visualforce",
|
712
|
+
"isRight": false
|
713
|
+
},
|
714
|
+
{
|
715
|
+
"describe": "Lightning Experience Builder",
|
716
|
+
"isRight": false
|
717
|
+
}
|
718
|
+
],
|
719
|
+
"hashCode": "2019146383",
|
720
|
+
"analysis": ""
|
721
|
+
},
|
722
|
+
{
|
723
|
+
"describe": "A Visualforce Page throws an 'Attempt to dereference a null object' error for a Contact, \nWhat change in the controller will fix the error?",
|
724
|
+
"answerOptions": [
|
725
|
+
{
|
726
|
+
"describe": "Declare a static final Contact at the top of the controller.",
|
727
|
+
"isRight": false
|
728
|
+
},
|
729
|
+
{
|
730
|
+
"describe": "Use a condition in the getter to return a new Contact if it is null.",
|
731
|
+
"isRight": true
|
732
|
+
},
|
733
|
+
{
|
734
|
+
"describe": "Change the getter's signature to be static Contact.",
|
735
|
+
"isRight": false
|
736
|
+
},
|
737
|
+
{
|
738
|
+
"describe": "Change the setter's signature to return a Contact",
|
739
|
+
"isRight": false
|
740
|
+
}
|
741
|
+
],
|
742
|
+
"hashCode": "2019146358",
|
743
|
+
"analysis": ""
|
744
|
+
},
|
745
|
+
{
|
746
|
+
"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?",
|
747
|
+
"answerOptions": [
|
748
|
+
{
|
749
|
+
"describe": "Refresh the sandbox and upgrade it to the latest API version.",
|
750
|
+
"isRight": false
|
751
|
+
},
|
752
|
+
{
|
753
|
+
"describe": "Delete the component, metadata, and Apex controller and recreate them.",
|
754
|
+
"isRight": false
|
755
|
+
},
|
756
|
+
{
|
757
|
+
"describe": "Look for errors in the logic in the JavaScript controller.",
|
758
|
+
"isRight": false
|
759
|
+
},
|
760
|
+
{
|
761
|
+
"describe": "Expose it in the markup using the implements and access attributes.",
|
762
|
+
"isRight": true
|
763
|
+
}
|
764
|
+
],
|
765
|
+
"hashCode": "2019146356",
|
766
|
+
"analysis": ""
|
767
|
+
},
|
768
|
+
{
|
769
|
+
"describe": "A developer wants to use an Aura component with a custom action.\nWhat should be considered in order to do this?",
|
770
|
+
"answerOptions": [
|
771
|
+
{
|
772
|
+
"describe": "The class \"slds-modal__container\" must be added to the top-level element of the component.",
|
773
|
+
"isRight": false
|
774
|
+
},
|
775
|
+
{
|
776
|
+
"describe": "The component's JavaScript controller must handle a method on initialization.",
|
777
|
+
"isRight": false
|
778
|
+
},
|
779
|
+
{
|
780
|
+
"describe": "A default value must be provided for each component attribute marked as required.",
|
781
|
+
"isRight": true
|
782
|
+
},
|
783
|
+
{
|
784
|
+
"describe": "The component must implement the flexipage: availableForRecordHome interface. ",
|
785
|
+
"isRight": false
|
786
|
+
}
|
787
|
+
],
|
788
|
+
"hashCode": "2019146355",
|
789
|
+
"analysis": "https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/components_using_lex_s1_config_action.htm"
|
790
|
+
},
|
791
|
+
{
|
792
|
+
"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?",
|
793
|
+
"answerOptions": [
|
794
|
+
{
|
795
|
+
"describe": "Process Builder",
|
796
|
+
"isRight": false
|
797
|
+
},
|
798
|
+
{
|
799
|
+
"describe": "Custom validation rules",
|
800
|
+
"isRight": false
|
801
|
+
},
|
802
|
+
{
|
803
|
+
"describe": "Client-side validation",
|
804
|
+
"isRight": true
|
805
|
+
},
|
806
|
+
{
|
807
|
+
"describe": "Apex REST",
|
808
|
+
"isRight": false
|
809
|
+
}
|
810
|
+
],
|
811
|
+
"hashCode": "2019146351",
|
812
|
+
"analysis": ""
|
813
|
+
},
|
814
|
+
{
|
815
|
+
"describe": "Which technique can run custom logic when an Aura Component is loaded?",
|
816
|
+
"answerOptions": [
|
817
|
+
{
|
818
|
+
"describe": "Use the standard doInit function in the controller.",
|
819
|
+
"isRight": false
|
820
|
+
},
|
821
|
+
{
|
822
|
+
"describe": "Use an aura:handler \"init\" event to call a function.",
|
823
|
+
"isRight": true
|
824
|
+
},
|
825
|
+
{
|
826
|
+
"describe": "Call $A.enqueueAction passing in the method to call.",
|
827
|
+
"isRight": false
|
828
|
+
},
|
829
|
+
{
|
830
|
+
"describe": "Use the connectedCallback() method.",
|
831
|
+
"isRight": false
|
832
|
+
}
|
833
|
+
],
|
834
|
+
"hashCode": "2019145676",
|
835
|
+
"analysis": ""
|
836
|
+
},
|
837
|
+
{
|
838
|
+
"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?",
|
839
|
+
"answerOptions": [
|
840
|
+
{
|
841
|
+
"describe": "Promise.resolve()",
|
842
|
+
"isRight": true
|
843
|
+
},
|
844
|
+
{
|
845
|
+
"describe": "Window.setInterval()",
|
846
|
+
"isRight": false
|
847
|
+
},
|
848
|
+
{
|
849
|
+
"describe": "Window.setState()",
|
850
|
+
"isRight": false
|
851
|
+
},
|
852
|
+
{
|
853
|
+
"describe": "dispatchEvent (new CustomEvent ('bypassSelection'))",
|
854
|
+
"isRight": false
|
855
|
+
}
|
856
|
+
],
|
857
|
+
"hashCode": "2019145675",
|
858
|
+
"analysis": ""
|
859
|
+
},
|
860
|
+
{
|
861
|
+
"describe": "What is a benefit of JavaScript remoting over Visualforce Remote Objects?",
|
862
|
+
"answerOptions": [
|
863
|
+
{
|
864
|
+
"describe": "Does not require any JavaScript code",
|
865
|
+
"isRight": false
|
866
|
+
},
|
867
|
+
{
|
868
|
+
"describe": "Supports complex server-side application logic",
|
869
|
+
"isRight": true
|
870
|
+
},
|
871
|
+
{
|
872
|
+
"describe": "Does not require any Apex code",
|
873
|
+
"isRight": false
|
874
|
+
},
|
875
|
+
{
|
876
|
+
"describe": "Allows for specified re-render targets",
|
877
|
+
"isRight": false
|
878
|
+
}
|
879
|
+
],
|
880
|
+
"hashCode": "2019145645",
|
881
|
+
"analysis": "https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_js_remoting_compare_remote_objects.htm"
|
882
|
+
},
|
883
|
+
{
|
884
|
+
"describe": "Part of a custom Lightning Component displays the total number of Opportunities in the org, which is in the millions. The Lightning\nComponent uses an Apex Controller to get the data it needs. \n\nWhat is the optimal way for a developer to get the total number of Opportunities for the Lightning Component? ",
|
885
|
+
"answerOptions": [
|
886
|
+
{
|
887
|
+
"describe": "SUM() SOQL aggregate query on the Opportunity object ",
|
888
|
+
"isRight": false
|
889
|
+
},
|
890
|
+
{
|
891
|
+
"describe": "SOQL for loop that counts the number of Opportunities records ",
|
892
|
+
"isRight": false
|
893
|
+
},
|
894
|
+
{
|
895
|
+
"describe": "COUNT() SOQL aggregate query on the Opportunity object ",
|
896
|
+
"isRight": true
|
897
|
+
},
|
898
|
+
{
|
899
|
+
"describe": "Apex Batch job that counts the number of Opportunity records ",
|
900
|
+
"isRight": false
|
901
|
+
}
|
902
|
+
],
|
903
|
+
"hashCode": "2019145644",
|
904
|
+
"analysis": ""
|
905
|
+
},
|
906
|
+
{
|
907
|
+
"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?",
|
908
|
+
"answerOptions": [
|
909
|
+
{
|
910
|
+
"describe": "Ensure queries do not exceed governor limits.",
|
911
|
+
"isRight": false
|
912
|
+
},
|
913
|
+
{
|
914
|
+
"describe": "Ensure profiles have access to the Visualforce page.",
|
915
|
+
"isRight": false
|
916
|
+
},
|
917
|
+
{
|
918
|
+
"describe": "Ensure properties are marked as private.",
|
919
|
+
"isRight": false
|
920
|
+
},
|
921
|
+
{
|
922
|
+
"describe": "Ensure variables are marked as Transient.",
|
923
|
+
"isRight": true
|
924
|
+
}
|
925
|
+
],
|
926
|
+
"hashCode": "2019145640",
|
927
|
+
"analysis": "https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_keywords_transient.htm"
|
928
|
+
},
|
929
|
+
{
|
930
|
+
"describe": "A developer must perform a complex SOQL query that joins two objects in a Lightning component.\nHow can the Lightning component execute the query?",
|
931
|
+
"answerOptions": [
|
932
|
+
{
|
933
|
+
"describe": "Write the query in a custom Lightning web component wrapper and invoke from the Lightning component.",
|
934
|
+
"isRight": false
|
935
|
+
},
|
936
|
+
{
|
937
|
+
"describe": "Invoke an Apex class with the method annotated as @AuraEnabled to perform the query.",
|
938
|
+
"isRight": true
|
939
|
+
},
|
940
|
+
{
|
941
|
+
"describe": "Create a Process Builder to execute the query and invoke from the Lightning component.",
|
942
|
+
"isRight": false
|
943
|
+
},
|
944
|
+
{
|
945
|
+
"describe": "Use the Salesforce Streaming API to perform the SOQL query.",
|
946
|
+
"isRight": false
|
947
|
+
}
|
948
|
+
],
|
949
|
+
"hashCode": "2019145584",
|
950
|
+
"analysis": ""
|
951
|
+
},
|
952
|
+
{
|
953
|
+
"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?",
|
954
|
+
"answerOptions": [
|
955
|
+
{
|
956
|
+
"describe": "Lightning Experience Builder",
|
957
|
+
"isRight": false
|
958
|
+
},
|
959
|
+
{
|
960
|
+
"describe": "Lightning Web Components",
|
961
|
+
"isRight": true
|
962
|
+
},
|
963
|
+
{
|
964
|
+
"describe": "Visualforce",
|
965
|
+
"isRight": false
|
966
|
+
},
|
967
|
+
{
|
968
|
+
"describe": "Salesforce SDK",
|
969
|
+
"isRight": false
|
970
|
+
}
|
971
|
+
],
|
972
|
+
"hashCode": "2019145578",
|
973
|
+
"analysis": ""
|
974
|
+
}
|
975
|
+
],
|
976
|
+
"hashCode": "-283339520"
|
977
|
+
}
|