@palerock/exam-qa 1.0.1 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (22) hide show
  1. package/dist/index.html +1 -1
  2. package/dist/static/css/{app.0c7cc42c532bebf55535a3ddea264e29.css → app.ca55413bb84f381cb1c76ff82cf63b2d.css} +2 -2
  3. package/dist/static/css/{app.0c7cc42c532bebf55535a3ddea264e29.css.map → app.ca55413bb84f381cb1c76ff82cf63b2d.css.map} +1 -1
  4. package/dist/static/js/app.bb356da473121a6a22a4.js +2 -0
  5. package/dist/static/js/app.bb356da473121a6a22a4.js.map +1 -0
  6. package/dist/static/js/manifest.3ad1d5771e9b13dbdad2.js.map +1 -1
  7. package/lib-json/Salesforce-Certified-Platform-Developer-1-[Set-1].json +318 -0
  8. package/lib-json/Salesforce-Certified-Platform-Developer-1-[Set-2].json +325 -0
  9. package/lib-json/Salesforce-Certified-Platform-Developer-1-[Set-3].json +321 -0
  10. package/lib-json/Salesforce-Certified-Platform-Developer-1-[Set-4].json +337 -0
  11. package/lib-json/Salesforce-Certified-Platform-Developer-1-[Set-5].json +329 -0
  12. package/lib-json/Salesforce-Certified-Platform-Developer-1-[Set-6].json +325 -0
  13. package/lib-json/Salesforce-Certified-Platform-Developer-1-[Set-7].json +480 -0
  14. package/lib-json/Salesforce-Sales-Cloud-Certification(81)-[Set-1].json +305 -0
  15. package/lib-json/Salesforce-Sales-Cloud-Certification(81)-[Set-2].json +297 -0
  16. package/lib-json/Salesforce-Sales-Cloud-Certification(81)-[Set-3].json +269 -0
  17. package/lib-json/Salesforce-Sales-Cloud-Certification(81)-[Set-4].json +309 -0
  18. package/lib-json/Salesforce-Sales-Cloud-Certification(81)-[Set-5].json +515 -0
  19. package/lib-json/map.json +12 -0
  20. package/package.json +1 -1
  21. package/dist/static/js/app.aa316de9f645d6851507.js +0 -2
  22. package/dist/static/js/app.aa316de9f645d6851507.js.map +0 -1
@@ -0,0 +1,325 @@
1
+ {
2
+ "title": "Salesforce-Certified-Platform-Developer-1-[Set-2]",
3
+ "category": "Salesforce Dev 1",
4
+ "questions": [
5
+ {
6
+ "describe": "What is printed from the following code?\nInteger a = 0;\nInteger b;\na = a++;\na++;\nInteger c = a * 5;\nString s = String.valueof(c) + a;\nSystem.debug(s + ';' + a + ';' + b);",
7
+ "answerOptions": [
8
+ {
9
+ "isRight": false,
10
+ "describe": "6;1;0"
11
+ },
12
+ {
13
+ "isRight": false,
14
+ "describe": "51;1;0"
15
+ },
16
+ {
17
+ "isRight": true,
18
+ "describe": "51;1;null"
19
+ },
20
+ {
21
+ "isRight": false,
22
+ "describe": "6;1;null"
23
+ }
24
+ ]
25
+ },
26
+ {
27
+ "describe": "How can a developer set up a debug log on a specific user?",
28
+ "answerOptions": [
29
+ {
30
+ "isRight": false,
31
+ "describe": "Ask the user for access to their account credentials, log in as the user and debug the issue."
32
+ },
33
+ {
34
+ "isRight": false,
35
+ "describe": "Create Apex code that logs code actions into a custom object."
36
+ },
37
+ {
38
+ "isRight": false,
39
+ "describe": "It is not possible to setup debug logs for users other than yourself."
40
+ },
41
+ {
42
+ "isRight": true,
43
+ "describe": "Set up a trace flag for the user, and define a logging level and time period for the trace."
44
+ }
45
+ ]
46
+ },
47
+ {
48
+ "describe": "A developer created a Lightning Component named accountList.cmp that displays a list of Accounts. Client side logic that is executed when a user hovers over an Account in the list should be stored in which bundle member?",
49
+ "answerOptions": [
50
+ {
51
+ "isRight": false,
52
+ "describe": "accountList.helper"
53
+ },
54
+ {
55
+ "isRight": true,
56
+ "describe": "accountListHelper.js"
57
+ },
58
+ {
59
+ "isRight": false,
60
+ "describe": "accountListRenderer.js"
61
+ },
62
+ {
63
+ "isRight": false,
64
+ "describe": "accountList.renderer"
65
+ }
66
+ ]
67
+ },
68
+ {
69
+ "describe": "A developer is tasked with creating a schema to track Movies, Actors, and Contracts. A single Movie can have many Contracts and a single Actor can have many Contracts. Each Contract is owned and actively managed by a single user.\nWhich schema should be created to enable users to easily manage the Contracts they own; without requiring access to the movie or the actor records?",
70
+ "answerOptions": [
71
+ {
72
+ "isRight": false,
73
+ "describe": "A Lookup Relationship to the Movie object and a Lookup Relationship to the Actor object"
74
+ },
75
+ {
76
+ "isRight": false,
77
+ "describe": "A Master-Detail Relationship to the Movie object and Master-Detail Relationship to the Actor object"
78
+ },
79
+ {
80
+ "isRight": false,
81
+ "describe": "A Lookup Relationship to the Movie object and a Master-Detail Relationship to the Actor object"
82
+ },
83
+ {
84
+ "isRight": false,
85
+ "describe": "A Master-Detail Relationship to the Movie object and a Lookup Relationship to the Actor object"
86
+ }
87
+ ]
88
+ },
89
+ {
90
+ "describe": "What are three ways for a developer to execute tests in an org? Choose 3 answers",
91
+ "answerOptions": [
92
+ {
93
+ "isRight": false,
94
+ "describe": "Metadata API"
95
+ },
96
+ {
97
+ "isRight": true,
98
+ "describe": "Developer Console"
99
+ },
100
+ {
101
+ "isRight": true,
102
+ "describe": "Setup Menu"
103
+ },
104
+ {
105
+ "isRight": true,
106
+ "describe": "Tooling API"
107
+ },
108
+ {
109
+ "isRight": false,
110
+ "describe": "Bulk API"
111
+ }
112
+ ]
113
+ },
114
+ {
115
+ "describe": "What can a developer use to determine if the core Apex code exceeds any governor limits in a test class during bulk execution?",
116
+ "answerOptions": [
117
+ {
118
+ "isRight": false,
119
+ "describe": "@TestSetup"
120
+ },
121
+ {
122
+ "isRight": true,
123
+ "describe": "Limits, startTest, stopTest"
124
+ },
125
+ {
126
+ "isRight": false,
127
+ "describe": "Test.getDMLStatements()"
128
+ },
129
+ {
130
+ "isRight": false,
131
+ "describe": "@TestVisible"
132
+ }
133
+ ]
134
+ },
135
+ {
136
+ "describe": "What are two uses for External IDs?\nChoose 2 answers",
137
+ "answerOptions": [
138
+ {
139
+ "isRight": true,
140
+ "describe": "To prevent an import from creating duplicate records using Upsert"
141
+ },
142
+ {
143
+ "isRight": true,
144
+ "describe": "To create relationships between records imported from an external system"
145
+ },
146
+ {
147
+ "isRight": false,
148
+ "describe": "To identify the sObject type in Salesforce"
149
+ },
150
+ {
151
+ "isRight": false,
152
+ "describe": "To create a record in a development environment with the same Salesforce ID as in another environment"
153
+ }
154
+ ]
155
+ },
156
+ {
157
+ "describe": "A developer created a helper class with a method that can be called from Visualforce pages, web services, triggers, and even anonymous code. When the method is called from a trigger, the developer needs to execute logic that should not be executed if the method is called from anywhere else.\nHow can the developer determine if the code is executed in a trigger context?",
158
+ "answerOptions": [
159
+ {
160
+ "isRight": false,
161
+ "describe": "Check if Trigger.newMap != null."
162
+ },
163
+ {
164
+ "isRight": true,
165
+ "describe": "Check if Trigger.isExecuting == true."
166
+ },
167
+ {
168
+ "isRight": false,
169
+ "describe": "Check if System.executionContext == 'Trigger'."
170
+ },
171
+ {
172
+ "isRight": false,
173
+ "describe": "Use the executeOnTrigger annotation on the method definition."
174
+ }
175
+ ]
176
+ },
177
+ {
178
+ "describe": "How can a custom type be identified as unique when added to a Set?",
179
+ "answerOptions": [
180
+ {
181
+ "isRight": false,
182
+ "describe": "Methods in the class must be static."
183
+ },
184
+ {
185
+ "isRight": false,
186
+ "describe": "The class must have a method with the @InvocableMethod annotation."
187
+ },
188
+ {
189
+ "isRight": false,
190
+ "describe": "Methods in the class must be global."
191
+ },
192
+ {
193
+ "isRight": true,
194
+ "describe": "The class must implement the Equals and Hashcode methods."
195
+ }
196
+ ]
197
+ },
198
+ {
199
+ "describe": "A Visualforce page is written with the following controller and extensions:\n<apex:page standardController=\"Account\" extensions=\"myExtension\"›\n<apex:inputField value=\"{!account.name}\"/> <p1/>\n<apex:commandButton value=\"Save\" action=\"{!save}\"/>\n</apex:page>\nThe extension class myExtension has a public save() method.\nWhich save method or methods will be used by the Visualforce page?",
200
+ "answerOptions": [
201
+ {
202
+ "isRight": false,
203
+ "describe": "both - the standardController first, then myExtension"
204
+ },
205
+ {
206
+ "isRight": false,
207
+ "describe": "the save method from the standardController"
208
+ },
209
+ {
210
+ "isRight": false,
211
+ "describe": "both - myExtension first, then the standardController"
212
+ },
213
+ {
214
+ "isRight": true,
215
+ "describe": "the save method from the controller extension"
216
+ }
217
+ ]
218
+ },
219
+ {
220
+ "describe": "What should a developer use to post a message on chatter when a picklist field called Status _c on a custom object Application _c is set to \"Approved\"?",
221
+ "answerOptions": [
222
+ {
223
+ "isRight": true,
224
+ "describe": "Use Process Builder to post to Chatter based on meeting the required criteria."
225
+ },
226
+ {
227
+ "isRight": false,
228
+ "describe": "Use a Workflow Rule and use the \"Post to Chatter\" action when the record meets the criteria."
229
+ },
230
+ {
231
+ "isRight": false,
232
+ "describe": "Use the streaming API to post to Chatter."
233
+ },
234
+ {
235
+ "isRight": false,
236
+ "describe": "Use ConnectApi from Scheduled Apex."
237
+ }
238
+ ]
239
+ },
240
+ {
241
+ "describe": "A developer needs to avoid potential system problems that can arise in a multi-tenant architecture.\nWhich requirement helps prevent poorly written applications from being deployed to a production environment?",
242
+ "answerOptions": [
243
+ {
244
+ "isRight": false,
245
+ "describe": "All Apex code must be annotated with the with sharing keyword."
246
+ },
247
+ {
248
+ "isRight": false,
249
+ "describe": "SOQL queries must reference sObjects with their appropriate namespace."
250
+ },
251
+ {
252
+ "isRight": false,
253
+ "describe": "Unit tests must cover at least 75% of the application's Apex code."
254
+ },
255
+ {
256
+ "isRight": true,
257
+ "describe": "All validation rules must be active before they can be deployed."
258
+ }
259
+ ]
260
+ },
261
+ {
262
+ "describe": "What are two testing considerations when deploying code from a sandbox to production? Choose 2 answers",
263
+ "answerOptions": [
264
+ {
265
+ "isRight": false,
266
+ "describe": "Apex Code requires 100% coverage."
267
+ },
268
+ {
269
+ "isRight": true,
270
+ "describe": "Apex Code requires 75% coverage."
271
+ },
272
+ {
273
+ "isRight": false,
274
+ "describe": "75% of tests must execute without failure."
275
+ },
276
+ {
277
+ "isRight": true,
278
+ "describe": "100% of tests must execute without failure"
279
+ }
280
+ ]
281
+ },
282
+ {
283
+ "describe": "A developer has created a Visualforce Page and Apex Controller that uses the With Sharing keyword. The page will be used by Sales Managers and should only display Accounts owned by Sales Representatives who report to the running Sales Manager. The organization-wide sharing for Accounts is set to Private.\nWhich additional set of steps should the developer take?",
284
+ "answerOptions": [
285
+ {
286
+ "isRight": false,
287
+ "describe": "Create one Profile, one Permission Set, and two Roles."
288
+ },
289
+ {
290
+ "isRight": false,
291
+ "describe": "Create two Profiles, one Permission Set, and one Role."
292
+ },
293
+ {
294
+ "isRight": false,
295
+ "describe": "Create one Profile, two Permission Sets, and one Role."
296
+ },
297
+ {
298
+ "isRight": true,
299
+ "describe": "Create one Profile, one Permission Set, and one Role."
300
+ }
301
+ ]
302
+ },
303
+ {
304
+ "describe": "What are two features of Heroku Connect?\nChoose 2 answers",
305
+ "answerOptions": [
306
+ {
307
+ "isRight": false,
308
+ "describe": "Displaying data from an external data store via External Objects"
309
+ },
310
+ {
311
+ "isRight": false,
312
+ "describe": "Real Time Sync between Salesforce and Postgres"
313
+ },
314
+ {
315
+ "isRight": true,
316
+ "describe": "Bidirectional syncs, allowing data to be written into SFDC"
317
+ },
318
+ {
319
+ "isRight": true,
320
+ "describe": "Near Real Time Sync between Heroku Postgres and Salesforce"
321
+ }
322
+ ]
323
+ }
324
+ ]
325
+ }
@@ -0,0 +1,321 @@
1
+ {
2
+ "title": "Salesforce-Certified-Platform-Developer-1-[Set-3]",
3
+ "category": "Salesforce Dev 1",
4
+ "questions": [
5
+ {
6
+ "describe": "A sales manager wants to make sure that whenever an opportunity stage is changed to \"Closed Won,\" a new case will be created for the support team to collect necessary information from the customer.\nHow should a developer accomplish this?",
7
+ "answerOptions": [
8
+ {
9
+ "isRight": false,
10
+ "describe": "Create a lookup field to the Case object on the opportunity object."
11
+ },
12
+ {
13
+ "isRight": false,
14
+ "describe": "Set up a validation rule on the Opportunity.Stage."
15
+ },
16
+ {
17
+ "isRight": false,
18
+ "describe": "Create a workflow rule to create the new case."
19
+ },
20
+ {
21
+ "isRight": true,
22
+ "describe": "Create a Process Builder to create the new case."
23
+ }
24
+ ]
25
+ },
26
+ {
27
+ "describe": "A developer wants to override a button using Visualforce on an object.\nWhat is the requirement?",
28
+ "answerOptions": [
29
+ {
30
+ "isRight": false,
31
+ "describe": "The controller or extension must have a PageReference method."
32
+ },
33
+ {
34
+ "isRight": false,
35
+ "describe": "The object record must be instantiated in a controller or extension."
36
+ },
37
+ {
38
+ "isRight": true,
39
+ "describe": "The standardController attribute must be set to the object."
40
+ },
41
+ {
42
+ "isRight": false,
43
+ "describe": "The action attribute must be set to a controller method."
44
+ }
45
+ ]
46
+ },
47
+ {
48
+ "describe": "Which collection type provides unique key/value pairings of data?",
49
+ "answerOptions": [
50
+ {
51
+ "isRight": true,
52
+ "describe": "Map"
53
+ },
54
+ {
55
+ "isRight": false,
56
+ "describe": "Array"
57
+ },
58
+ {
59
+ "isRight": false,
60
+ "describe": "List"
61
+ },
62
+ {
63
+ "isRight": false,
64
+ "describe": "Set"
65
+ }
66
+ ]
67
+ },
68
+ {
69
+ "describe": "A method is passed a list of generic sObjects as a parameter.\nWhat should the developer do to determine which object type (Account, Lead, or Contact, for example) to cast each sObject?",
70
+ "answerOptions": [
71
+ {
72
+ "isRight": false,
73
+ "describe": "Use the first three characters of the sObject ID to determine the sObject type."
74
+ },
75
+ {
76
+ "isRight": true,
77
+ "describe": "Use the getSObjectType method on each generic sObject to retrieve the sObject token."
78
+ },
79
+ {
80
+ "isRight": false,
81
+ "describe": "Use a try-catch construct to cast the sObject into one of the three sObject types."
82
+ },
83
+ {
84
+ "isRight": false,
85
+ "describe": "Use the getSObjectName method on the sObject class to get the sObject name."
86
+ }
87
+ ]
88
+ },
89
+ {
90
+ "describe": "What are two considerations for custom Apex Exception classes?\nChoose 2 answers",
91
+ "answerOptions": [
92
+ {
93
+ "isRight": true,
94
+ "describe": "Custom Exception class names must end with the word 'Exception'."
95
+ },
96
+ {
97
+ "isRight": true,
98
+ "describe": "Custom Exception classes must extend the base Exception class."
99
+ },
100
+ {
101
+ "isRight": false,
102
+ "describe": "Custom Exceptions cannot be extended by other Exception classes."
103
+ },
104
+ {
105
+ "isRight": false,
106
+ "describe": "Constructor for custom Exceptions can only accept string values as arguments."
107
+ }
108
+ ]
109
+ },
110
+ {
111
+ "describe": "In which two org types can a developer create new Apex classes?\nChoose 2 answers",
112
+ "answerOptions": [
113
+ {
114
+ "isRight": true,
115
+ "describe": "Sandbox"
116
+ },
117
+ {
118
+ "isRight": true,
119
+ "describe": "Developer Edition"
120
+ },
121
+ {
122
+ "isRight": false,
123
+ "describe": "Enterprise Edition"
124
+ },
125
+ {
126
+ "isRight": false,
127
+ "describe": "Unlimited Edition"
128
+ }
129
+ ]
130
+ },
131
+ {
132
+ "describe": "When viewing a Quote, the sales representative wants to easily see how many discounted items are included in the Quote Line Items.\nWhat should a developer do to meet this requirement?",
133
+ "answerOptions": [
134
+ {
135
+ "isRight": false,
136
+ "describe": "Create a trigger on the Quote object that queries the Quantity field on discounted Quote Line Items."
137
+ },
138
+ {
139
+ "isRight": false,
140
+ "describe": "Create a formula field on the Quote object that performs a SUM on the Quote Line Item Quantity field, filtered for only discounted Quote Line Items."
141
+ },
142
+ {
143
+ "isRight": false,
144
+ "describe": "Create a Workflow Rule on the Quote Line Item object that updates a field on the parent Quote when the item is discounted."
145
+ },
146
+ {
147
+ "isRight": true,
148
+ "describe": "Create a roll-up summary field on the Quote object that performs a SUM on the Quote Line Item Quantity field, filtered for only discounted Quote Line Items."
149
+ }
150
+ ]
151
+ },
152
+ {
153
+ "describe": "When are code coverage calculations updated?",
154
+ "answerOptions": [
155
+ {
156
+ "isRight": true,
157
+ "describe": "When unit tests are run on an organization."
158
+ },
159
+ {
160
+ "isRight": false,
161
+ "describe": "When Apex code is saved."
162
+ },
163
+ {
164
+ "isRight": false,
165
+ "describe": "When a deployment is validated."
166
+ },
167
+ {
168
+ "isRight": false,
169
+ "describe": "When changes are made to an organization's configuration."
170
+ }
171
+ ]
172
+ },
173
+ {
174
+ "describe": "A developer is creating test coverage for a class and needs to insert records to validate functionality.\nWhich method annotation should be used to create records for every method in the test class?",
175
+ "answerOptions": [
176
+ {
177
+ "isRight": false,
178
+ "describe": "@isTest(SeeAllData=true)"
179
+ },
180
+ {
181
+ "isRight": false,
182
+ "describe": "@BeforeTest"
183
+ },
184
+ {
185
+ "isRight": false,
186
+ "describe": "@PreTest"
187
+ },
188
+ {
189
+ "isRight": true,
190
+ "describe": "@TestSetup"
191
+ }
192
+ ]
193
+ },
194
+ {
195
+ "describe": "Which two are true regarding Apache Kafka on Heroku?\nChoose 2 answers",
196
+ "answerOptions": [
197
+ {
198
+ "isRight": true,
199
+ "describe": "Is a messaging backbone for building distributed applications?"
200
+ },
201
+ {
202
+ "isRight": true,
203
+ "describe": "Is a distributed commit log for communication between services"
204
+ },
205
+ {
206
+ "isRight": false,
207
+ "describe": "Is designed to move small volumes of ephemeral data"
208
+ },
209
+ {
210
+ "isRight": false,
211
+ "describe": "Is an add-on that creates a long term data store"
212
+ }
213
+ ]
214
+ },
215
+ {
216
+ "describe": "Universal Containers requires Service Representatives to update all Cases at least once every three days. To make sure this policy is obeyed, a developer has been asked to implement a field that displays the number of days since the last Case update.\nWhat should the developer use to configure the solution?",
217
+ "answerOptions": [
218
+ {
219
+ "isRight": false,
220
+ "describe": "Process Builder"
221
+ },
222
+ {
223
+ "isRight": false,
224
+ "describe": "Workflow rule"
225
+ },
226
+ {
227
+ "isRight": true,
228
+ "describe": "Formula field"
229
+ },
230
+ {
231
+ "isRight": false,
232
+ "describe": "Scheduled Apex Class"
233
+ }
234
+ ]
235
+ },
236
+ {
237
+ "describe": "A developer executes the following query in Apex to retrieve a list of contacts for each account:\nList<Account> accounts = [Select ID, Name, (Select ID, Name from Contacts) from Account];\nWhich two exceptions may occur when it executes?\nChoose 2 answers",
238
+ "answerOptions": [
239
+ {
240
+ "isRight": false,
241
+ "describe": "SOQL query limit exception due to the number of queries"
242
+ },
243
+ {
244
+ "isRight": true,
245
+ "describe": "SOQL query row limit exception due to the number of accounts"
246
+ },
247
+ {
248
+ "isRight": true,
249
+ "describe": "SOQL query row limit exception due to the number of contacts"
250
+ },
251
+ {
252
+ "isRight": false,
253
+ "describe": "CPU limit exception due to the complexity of the query"
254
+ }
255
+ ]
256
+ },
257
+ {
258
+ "describe": "A lead record that has a single related CampaignMember object is converted into a new account, contact, and opportunity.\nWhich object will the CampaignMember reference using a lookup field after conversion?",
259
+ "answerOptions": [
260
+ {
261
+ "isRight": false,
262
+ "describe": "The Product2"
263
+ },
264
+ {
265
+ "isRight": false,
266
+ "describe": "The Opportunity"
267
+ },
268
+ {
269
+ "isRight": true,
270
+ "describe": "The Contact"
271
+ },
272
+ {
273
+ "isRight": false,
274
+ "describe": "The Account"
275
+ }
276
+ ]
277
+ },
278
+ {
279
+ "describe": "Which two describe Heroku Redis?\nChoose 2 answers",
280
+ "answerOptions": [
281
+ {
282
+ "isRight": true,
283
+ "describe": "Is an in-memory key-value data store, run by Heroku."
284
+ },
285
+ {
286
+ "isRight": false,
287
+ "describe": "Is a repository for storing large images"
288
+ },
289
+ {
290
+ "isRight": false,
291
+ "describe": "Is an option for long term data storage"
292
+ },
293
+ {
294
+ "isRight": true,
295
+ "describe": "Is provisioned and managed as an add-on."
296
+ }
297
+ ]
298
+ },
299
+ {
300
+ "describe": "What are two considerations for deciding to use a roll-up summary field?\nChoose 2 answers",
301
+ "answerOptions": [
302
+ {
303
+ "isRight": true,
304
+ "describe": "Roll-up summary can be performed on formula fields, but if their formula contains an #Error result, it may affect the summary value."
305
+ },
306
+ {
307
+ "isRight": true,
308
+ "describe": "Roll-up summary fields do not cause validation rules on the parent object unless that object is edited separately."
309
+ },
310
+ {
311
+ "isRight": false,
312
+ "describe": "Roll-up cannot be performed on formula fields that use cross-object references or on-the-fly calculations such as NOW()."
313
+ },
314
+ {
315
+ "isRight": false,
316
+ "describe": "Roll-up cannot be performed on formula fields."
317
+ }
318
+ ]
319
+ }
320
+ ]
321
+ }