@palerock/exam-qa 1.0.6-patch7 → 1.0.6-patch8

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,889 @@
1
+ {
2
+ "title": "Dev1测试/调试/部署",
3
+ "category": "Dev1-自由部落侠",
4
+ "questions": [
5
+ {
6
+ "describe": "What should a developer use to script the deployment and unit test execution as part of continuous Integration?",
7
+ "answerOptions": [
8
+ {
9
+ "describe": "Execute Anonymous",
10
+ "isRight": false
11
+ },
12
+ {
13
+ "describe": "VS Code",
14
+ "isRight": false
15
+ },
16
+ {
17
+ "describe": "Developer Console",
18
+ "isRight": false
19
+ },
20
+ {
21
+ "describe": "Salesforce CLI",
22
+ "isRight": true
23
+ }
24
+ ],
25
+ "hashCode": "1988674160"
26
+ },
27
+ {
28
+ "describe": "The Account object in an organization has a master detail relationship to a child object called Branch. The following automations exist:\nRollup summary fields.\nCustom validation rules\nDuplicate rules\nA developer created a trigger on the Account object.\nWhat two things should the developer consider while testing the trigger code?\nChoose 2 answers",
29
+ "answerOptions": [
30
+ {
31
+ "describe": "Rollup summary fields can cause the parent record to go through Save.",
32
+ "isRight": true
33
+ },
34
+ {
35
+ "describe": "The trigger may fire multiple times during a transaction.",
36
+ "isRight": true
37
+ },
38
+ {
39
+ "describe": "Duplicate rules are executed once all DML operations commit to the database.",
40
+ "isRight": false
41
+ },
42
+ {
43
+ "describe": "The validation rules will cause the trigger to fire again.",
44
+ "isRight": false
45
+ }
46
+ ],
47
+ "hashCode": "1988674104"
48
+ },
49
+ {
50
+ "describe": "Which two sfdx commands can be used to add testing data to a Developer sandbox?\nChoose 2 answers",
51
+ "answerOptions": [
52
+ {
53
+ "describe": "force:data:tree:import",
54
+ "isRight": true
55
+ },
56
+ {
57
+ "describe": "force: data:object:create",
58
+ "isRight": false
59
+ },
60
+ {
61
+ "describe": "force:data:bulk: upsert",
62
+ "isRight": true
63
+ },
64
+ {
65
+ "describe": "force:data:async:apsert",
66
+ "isRight": false
67
+ }
68
+ ],
69
+ "hashCode": "1988674100"
70
+ },
71
+ {
72
+ "describe": "Which three statements are accurate about debug logs?\nChoose 3 answers",
73
+ "answerOptions": [
74
+ {
75
+ "describe": "Debug log levels are cumulative; where FINE log level includes all events logged at the DEBUG, INFO,WARN,and ERROR levels.",
76
+ "isRight": false
77
+ },
78
+ {
79
+ "describe": "The maximum size of a debug log is 5 MB.",
80
+ "isRight": false
81
+ },
82
+ {
83
+ "describe": "Only the 20 most recent debug logs for a user are kept.",
84
+ "isRight": true
85
+ },
86
+ {
87
+ "describe": "Debug logs can be set for specific users, classes, and triggers.",
88
+ "isRight": true
89
+ },
90
+ {
91
+ "describe": "System debug logs are retained for 24 hours.",
92
+ "isRight": true
93
+ }
94
+ ],
95
+ "hashCode": "1988674098"
96
+ },
97
+ {
98
+ "describe": "A developer created a trigger on the Account object and wants to test if the trigger is properly bulkified.The developer team decided that the trigger should be tested with 200 account records with unique names.\nWhat two things should be done to create the test data within the unit test with the least amount of code?Choose 2 answers",
99
+ "answerOptions": [
100
+ {
101
+ "describe": "Use the @isTest(seeAllData=true)annotation in the test class.",
102
+ "isRight": false
103
+ },
104
+ {
105
+ "describe": "Create a static resource containing test data.",
106
+ "isRight": true
107
+ },
108
+ {
109
+ "describe": "Use Test.loadData to populate data in your test methods.",
110
+ "isRight": true
111
+ },
112
+ {
113
+ "describe": "Use the @isTest(isParallel=true) annotation in the test class.",
114
+ "isRight": false
115
+ }
116
+ ],
117
+ "hashCode": "1988674070"
118
+ },
119
+ {
120
+ "describe": "A developer completed modifications to a customized feature that is comprised of two elements:\n●Apex trigger\n●Trigger handler Apex class\nWhat are two factors that the developer must take into account to properly deploy the modification to the production environment?\nChoose 2 answers",
121
+ "answerOptions": [
122
+ {
123
+ "describe": "Apex classes must have at least 75% code coverage org-wide.",
124
+ "isRight": true
125
+ },
126
+ {
127
+ "describe": "Test methods must be declared with the testMethod keyword.",
128
+ "isRight": false
129
+ },
130
+ {
131
+ "describe": "At least one line of code must be executed for the Apex trigger.",
132
+ "isRight": true
133
+ },
134
+ {
135
+ "describe": "All methods in the test classes must use @isTest.",
136
+ "isRight": false
137
+ }
138
+ ],
139
+ "hashCode": "1988674042"
140
+ },
141
+ {
142
+ "describe": "What should a developer do to check the code coverage of a class after running all tests?",
143
+ "answerOptions": [
144
+ {
145
+ "describe": "Select and run the class on the Apex Test Execution page in the Developer Console.",
146
+ "isRight": false
147
+ },
148
+ {
149
+ "describe": "View the Code Coverage column in the list view on the Apex Classes page.",
150
+ "isRight": false
151
+ },
152
+ {
153
+ "describe": "View the Code Coverage percentage for the class using the Overall Code Coverage panel in the Developer Console Tests tab.",
154
+ "isRight": true
155
+ },
156
+ {
157
+ "describe": "View the Class Test Percentage tab on the Apex Class list view in Salesforce Setup.",
158
+ "isRight": false
159
+ }
160
+ ],
161
+ "hashCode": "1988673327"
162
+ },
163
+ {
164
+ "describe": "What are three characteristics of change set deployments? Choose 3 answers",
165
+ "answerOptions": [
166
+ {
167
+ "describe": "Deployment is done in a one-way, single transaction.",
168
+ "isRight": true
169
+ },
170
+ {
171
+ "describe": "Change sets can deploy custom settings data.",
172
+ "isRight": false
173
+ },
174
+ {
175
+ "describe": "Change sets can only be used between related organizations.",
176
+ "isRight": true
177
+ },
178
+ {
179
+ "describe": "Change sets can be used to transfer records.",
180
+ "isRight": false
181
+ },
182
+ {
183
+ "describe": "Sending a change set between two orgs requires a deployment connection.",
184
+ "isRight": true
185
+ }
186
+ ],
187
+ "hashCode": "1988673267"
188
+ },
189
+ {
190
+ "describe": "Which three statements are accurate about debug logs? Choose 3 answers",
191
+ "answerOptions": [
192
+ {
193
+ "describe": "Amount of information logged in the debug log can be controlled by the log levels.",
194
+ "isRight": true
195
+ },
196
+ {
197
+ "describe": "To View Debug Logs, \"Manager Users or \"View AI Data\" permission is needed.",
198
+ "isRight": true
199
+ },
200
+ {
201
+ "describe": "Debug Log levels are cumulative, where FINE log level includes all events logged at the DEBUG, INFO, WARN, and ERROR levels.",
202
+ "isRight": true
203
+ },
204
+ {
205
+ "describe": "Amount of information logged in the debug log can be controlled programmatically.",
206
+ "isRight": false
207
+ },
208
+ {
209
+ "describe": "To View Debug Logs, \"Manager users\" or \"Modify All Data\" permission is needed. ",
210
+ "isRight": false
211
+ }
212
+ ],
213
+ "hashCode": "1988673266"
214
+ },
215
+ {
216
+ "describe": "A developer needs to create a baseline set of data(Accounts, Contacts, Products, Assets) for an entire suite of tests allowing them to test independent requirements various types of Salesforce Cases.\nWhich approach can efficiently generate the required data for each unit test?",
217
+ "answerOptions": [
218
+ {
219
+ "describe": "Create a mock using the Stub API.",
220
+ "isRight": false
221
+ },
222
+ {
223
+ "describe": "Add @IsTest(seeAllData=true) at the start of the unit test class. ",
224
+ "isRight": false
225
+ },
226
+ {
227
+ "describe": "Create test data before Test.startTest( ) in the unit test. ",
228
+ "isRight": false
229
+ },
230
+ {
231
+ "describe": "Use @TestSetup with a void method.",
232
+ "isRight": true
233
+ }
234
+ ],
235
+ "hashCode": "1988673261"
236
+ },
237
+ {
238
+ "describe": "Which two statements are true about using the @testSetup annotation in an Apex test class?Choose 2 answers",
239
+ "answerOptions": [
240
+ {
241
+ "describe": "Test data is inserted once for all test methods in a class.",
242
+ "isRight": true
243
+ },
244
+ {
245
+ "describe": "The @testSetup annotation is not supported when the @isTest(SeeAllData=True) annotation is used.",
246
+ "isRight": true
247
+ },
248
+ {
249
+ "describe": "A method defined with the @testSetup annotation automatically executes before each test method in the test class is executes.",
250
+ "isRight": false
251
+ },
252
+ {
253
+ "describe": "Records created in the test setup method cannot be updated in individual test methods.",
254
+ "isRight": false
255
+ }
256
+ ],
257
+ "hashCode": "1988673234"
258
+ },
259
+ {
260
+ "describe": "A developer needs to have records with specific field values in order to test a new Apex class.\nWhat should the developer do to ensure the data is available to the test?",
261
+ "answerOptions": [
262
+ {
263
+ "describe": "Use SOQL to query the org for the required data.",
264
+ "isRight": false
265
+ },
266
+ {
267
+ "describe": "Use Anonymous Apex to create the required data.",
268
+ "isRight": false
269
+ },
270
+ {
271
+ "describe": "Use Test.loadData( ) and reference a CSV file.",
272
+ "isRight": false
273
+ },
274
+ {
275
+ "describe": "Use Test.loadData( ) and reference a static resource.",
276
+ "isRight": true
277
+ }
278
+ ],
279
+ "hashCode": "1988673233"
280
+ },
281
+ {
282
+ "describe": "While working in a sandbox an Apex test fails when run in the Test Framework, but the Apex test logic succeeds with no exceptions or errors when run in the Developer Console.\n\nWhy did the method fail in the sandbox test framework but succeed in the Developer Console?",
283
+ "answerOptions": [
284
+ {
285
+ "describe": "The test method does not use System.runAs to execute as a specific user. ",
286
+ "isRight": false
287
+ },
288
+ {
289
+ "describe": "The test method is calling an @future method.",
290
+ "isRight": false
291
+ },
292
+ {
293
+ "describe": "The test method has a syntax error in the code. ",
294
+ "isRight": false
295
+ },
296
+ {
297
+ "describe": "The test method relies on exiting data in the sandbox.",
298
+ "isRight": true
299
+ }
300
+ ],
301
+ "hashCode": "1988673232"
302
+ },
303
+ {
304
+ "describe": "When using SalesforceDX, what does a developer need to enable to create and manage scratch orgs?",
305
+ "answerOptions": [
306
+ {
307
+ "describe": "Sandbox",
308
+ "isRight": false
309
+ },
310
+ {
311
+ "describe": "Dev Hub",
312
+ "isRight": true
313
+ },
314
+ {
315
+ "describe": "Environment Hub",
316
+ "isRight": false
317
+ },
318
+ {
319
+ "describe": "Production",
320
+ "isRight": false
321
+ }
322
+ ],
323
+ "hashCode": "1988673230"
324
+ },
325
+ {
326
+ "describe": "A development team wants to use a deployment script to automatically deploy to a sandbox during their development cycles.\n\nWhich two tools can they use to run a script that deploys to a sandbox? Choose 2 answers",
327
+ "answerOptions": [
328
+ {
329
+ "describe": "Change Sets",
330
+ "isRight": false
331
+ },
332
+ {
333
+ "describe": "SFDX CLI",
334
+ "isRight": true
335
+ },
336
+ {
337
+ "describe": "Developer Console",
338
+ "isRight": false
339
+ },
340
+ {
341
+ "describe": "Ant Migration Tool",
342
+ "isRight": true
343
+ }
344
+ ],
345
+ "hashCode": "1988673229"
346
+ },
347
+ {
348
+ "describe": "Which scenario is valid for execution by unit tests?",
349
+ "answerOptions": [
350
+ {
351
+ "describe": "Execute anonymous Apex as a different user.",
352
+ "isRight": false
353
+ },
354
+ {
355
+ "describe": "Generate a Visualforce PDF with getContentAsPDF( )·",
356
+ "isRight": false
357
+ },
358
+ {
359
+ "describe": "Load data from a remote site with a callout.",
360
+ "isRight": true
361
+ },
362
+ {
363
+ "describe": "Set the created date of a record using a system method.",
364
+ "isRight": false
365
+ }
366
+ ],
367
+ "hashCode": "1988673227"
368
+ },
369
+ {
370
+ "describe": "Which Salesforce org has a complete duplicate copy of the production org including data and configuration?",
371
+ "answerOptions": [
372
+ {
373
+ "describe": "Full Sandbox",
374
+ "isRight": true
375
+ },
376
+ {
377
+ "describe": "Developer Pro Sandbox",
378
+ "isRight": false
379
+ },
380
+ {
381
+ "describe": "Production",
382
+ "isRight": false
383
+ },
384
+ {
385
+ "describe": "Partial Copy Sandbox",
386
+ "isRight": false
387
+ }
388
+ ],
389
+ "hashCode": "1988673203"
390
+ },
391
+ {
392
+ "describe": "How can a developer check the test coverage of active Process Builders and Flows before deploying them in a Change Set?",
393
+ "answerOptions": [
394
+ {
395
+ "describe": "Use the Flow Properties page.",
396
+ "isRight": false
397
+ },
398
+ {
399
+ "describe": "Use SOQL and the Tooling API.",
400
+ "isRight": true
401
+ },
402
+ {
403
+ "describe": "Use the ApexTestResult class.",
404
+ "isRight": false
405
+ },
406
+ {
407
+ "describe": "Use the Code Coverage Setup page.",
408
+ "isRight": false
409
+ }
410
+ ],
411
+ "hashCode": "1988673202"
412
+ },
413
+ {
414
+ "describe": "While writing an Apex class that creates Accounts, a developer wants to make sure that all required fields are handled properly.\nWhich approach should the developer use to be sure that the Apex classworks correctly?",
415
+ "answerOptions": [
416
+ {
417
+ "describe": "Add the business logic to a test class.",
418
+ "isRight": true
419
+ },
420
+ {
421
+ "describe": "Include a try/catch block to the Apex class. ",
422
+ "isRight": false
423
+ },
424
+ {
425
+ "describe": "Perform a code review with another developer.",
426
+ "isRight": false
427
+ },
428
+ {
429
+ "describe": "Run the code in an Execute Anonymous block.",
430
+ "isRight": false
431
+ }
432
+ ],
433
+ "hashCode": "1988673198"
434
+ },
435
+ {
436
+ "describe": "For which three items can a trace flag be configured? Choose 3 answers",
437
+ "answerOptions": [
438
+ {
439
+ "describe": "Flow",
440
+ "isRight": false
441
+ },
442
+ {
443
+ "describe": "Visualforce",
444
+ "isRight": false
445
+ },
446
+ {
447
+ "describe": "Apex Class",
448
+ "isRight": true
449
+ },
450
+ {
451
+ "describe": "User",
452
+ "isRight": true
453
+ },
454
+ {
455
+ "describe": "Apex Trigger",
456
+ "isRight": true
457
+ }
458
+ ],
459
+ "hashCode": "1988673196"
460
+ },
461
+ {
462
+ "describe": "A developer wrote Apex code that calls out to an external system.\nHow should a developer write the test to provide test coverage?",
463
+ "answerOptions": [
464
+ {
465
+ "describe": "Write a class that extends HTTPCalloutMock. ",
466
+ "isRight": false
467
+ },
468
+ {
469
+ "describe": "Write a class that extends WebserviceMock.",
470
+ "isRight": false
471
+ },
472
+ {
473
+ "describe": "Write a class that implements the HTTPCalloutMock interface.",
474
+ "isRight": true
475
+ },
476
+ {
477
+ "describe": "Write a class that implements WebserviceMock.",
478
+ "isRight": false
479
+ }
480
+ ],
481
+ "hashCode": "1988673170"
482
+ },
483
+ {
484
+ "describe": "A developer needs to confirm that a Contact works correctly without changing the organization's data. \nWhat should the developer do to test the Contact trigger?",
485
+ "answerOptions": [
486
+ {
487
+ "describe": "Use Deploy from the VSCode IDE to deploy an 'insert Contact' Apex class.",
488
+ "isRight": false
489
+ },
490
+ {
491
+ "describe": "Use the Test menu on the Developer Console to run all tests classes for the Contact trigger.",
492
+ "isRight": true
493
+ },
494
+ {
495
+ "describe": "Use the Open Execute Anonymous feature on the Developer Console to run an 'insert Contact' DML statement.",
496
+ "isRight": false
497
+ },
498
+ {
499
+ "describe": "Use the New button on the Salesforce Contacts Tab to create a new Contact record.",
500
+ "isRight": false
501
+ }
502
+ ],
503
+ "hashCode": "1988673142"
504
+ },
505
+ {
506
+ "describe": "How should a developer write unit tests for a private method in an Apex class?",
507
+ "answerOptions": [
508
+ {
509
+ "describe": "Add a test method in the Apex class.",
510
+ "isRight": false
511
+ },
512
+ {
513
+ "describe": "Use the TestVisible annotation.",
514
+ "isRight": true
515
+ },
516
+ {
517
+ "describe": "Use the SeeAllData annotation.",
518
+ "isRight": false
519
+ },
520
+ {
521
+ "describe": "Mark the Apex class as global.",
522
+ "isRight": false
523
+ }
524
+ ],
525
+ "hashCode": "1988673137"
526
+ },
527
+ {
528
+ "describe": "A development team wants to use a deployment script to automatically deploy to a sandbox during their deployment cycles.\nWhich tool should they use to deploy to the sandbox?",
529
+ "answerOptions": [
530
+ {
531
+ "describe": "Ant Migration Tool",
532
+ "isRight": true
533
+ },
534
+ {
535
+ "describe": "Developer Console",
536
+ "isRight": false
537
+ },
538
+ {
539
+ "describe": "VSCode",
540
+ "isRight": false
541
+ },
542
+ {
543
+ "describe": "Change Sets",
544
+ "isRight": false
545
+ }
546
+ ],
547
+ "hashCode": "1988673135"
548
+ },
549
+ {
550
+ "describe": "Which Salesforce org has a complete duplicate copy of the production org including data and configuration?",
551
+ "answerOptions": [
552
+ {
553
+ "describe": "Developer Pro Sandbox",
554
+ "isRight": false
555
+ },
556
+ {
557
+ "describe": "Production",
558
+ "isRight": false
559
+ },
560
+ {
561
+ "describe": "Partial Copy Sandbox",
562
+ "isRight": false
563
+ },
564
+ {
565
+ "describe": "Full Sandbox",
566
+ "isRight": true
567
+ }
568
+ ],
569
+ "hashCode": "1988673112"
570
+ },
571
+ {
572
+ "describe": "What are two ways a developer can get the status of an enqueued job for a class that implements the queuable interface? \nChoose 2 answers",
573
+ "answerOptions": [
574
+ {
575
+ "describe": "Query the AsyncApex Job object",
576
+ "isRight": true
577
+ },
578
+ {
579
+ "describe": "View the Apex Jobs Page",
580
+ "isRight": true
581
+ },
582
+ {
583
+ "describe": "View the Apex Status Page",
584
+ "isRight": false
585
+ },
586
+ {
587
+ "describe": "View the Apex Flex Queue",
588
+ "isRight": false
589
+ }
590
+ ],
591
+ "hashCode": "1988673107"
592
+ },
593
+ {
594
+ "describe": "What are three ways for a developer to execute tests in an org? Choose 3 answers",
595
+ "answerOptions": [
596
+ {
597
+ "describe": "Metadata API",
598
+ "isRight": false
599
+ },
600
+ {
601
+ "describe": "Bulk API",
602
+ "isRight": false
603
+ },
604
+ {
605
+ "describe": "SalesforceDX",
606
+ "isRight": true
607
+ },
608
+ {
609
+ "describe": "Tooling API",
610
+ "isRight": true
611
+ },
612
+ {
613
+ "describe": "Developer Console",
614
+ "isRight": true
615
+ }
616
+ ],
617
+ "hashCode": "1988673106"
618
+ },
619
+ {
620
+ "describe": "A team of many developers work in their own individual orgs that have the same configuration as the production org. \nWhich type of org is best suited for this scenario?",
621
+ "answerOptions": [
622
+ {
623
+ "describe": "Developer Edition",
624
+ "isRight": false
625
+ },
626
+ {
627
+ "describe": "Partner Developer Edition",
628
+ "isRight": false
629
+ },
630
+ {
631
+ "describe": "Full Sandbox",
632
+ "isRight": false
633
+ },
634
+ {
635
+ "describe": "Developer Sandbox",
636
+ "isRight": true
637
+ }
638
+ ],
639
+ "hashCode": "1988673104"
640
+ },
641
+ {
642
+ "describe": "A developer observes that an Apex test method fails in the Sandbox. To identify the issue, the developer copies the code inside the test method and execute it \nvia the Execute Anonymous tool in the Developer Console. The code then executes with no exceptions or errors.\nWhy did the test method fail in the sandbox and pass in the Developer Console?",
643
+ "answerOptions": [
644
+ {
645
+ "describe": "The test method does not use System.runAs to execute as a specific user.",
646
+ "isRight": false
647
+ },
648
+ {
649
+ "describe": "A developer needs to provide way to mass edit, update and delete records from list view, which two ways can this be achieved? Choose 2",
650
+ "isRight": false
651
+ },
652
+ {
653
+ "describe": "The test method relies on existing data in the sandbox.",
654
+ "isRight": true
655
+ },
656
+ {
657
+ "describe": "The test method has syntax error in the code.",
658
+ "isRight": false
659
+ }
660
+ ],
661
+ "hashCode": "1988673074"
662
+ },
663
+ {
664
+ "describe": "Which two events need to happen when deploying to a production org?Choose 2 answers",
665
+ "answerOptions": [
666
+ {
667
+ "describe": "All Apex code must have at least 75% test coverage.",
668
+ "isRight": true
669
+ },
670
+ {
671
+ "describe": "All Process Builder Processes must have at least 1% test coverage.",
672
+ "isRight": false
673
+ },
674
+ {
675
+ "describe": "All Visual Flows must have at least 1% test coverage.",
676
+ "isRight": false
677
+ },
678
+ {
679
+ "describe": "All Triggers must have at least 1% test coverage.",
680
+ "isRight": true
681
+ }
682
+ ],
683
+ "hashCode": "1988673073"
684
+ },
685
+ {
686
+ "describe": "A developer created this Apex trigger that calls MyClass.myStaticMethod;\ntrigger myTrigger on Contact(before insert){\nMyClass.myStaticMethod(trigger.new, trigger.oldMap);}\nThe developer creates a test class with a test method that calls MyClass.myStaticMethod, resulting in 81% overall code coverage.\nWhat happens when the developer tries to deploy the trigger and two classes to production, assuming no other code exists?",
687
+ "answerOptions": [
688
+ {
689
+ "describe": "The deployment fails because no assertions were made in the test method.",
690
+ "isRight": false
691
+ },
692
+ {
693
+ "describe": "The deployment passes because the Apex code has required(>75%) code coverage.",
694
+ "isRight": false
695
+ },
696
+ {
697
+ "describe": "The deployment passes because both classes and the trigger were included in the deployment.",
698
+ "isRight": false
699
+ },
700
+ {
701
+ "describe": "The deployment fails because the Apex trigger has no code coverage.",
702
+ "isRight": true
703
+ }
704
+ ],
705
+ "hashCode": "1988673072"
706
+ },
707
+ {
708
+ "describe": "A developer created a new Apex trigger with a helper class, and writes a test class that only exercises 95% coverage of the new Apex helper class.\nChange set deployment to production fails with the test coverage warning:\n\"Test coverage of selected Apex Trigger is 0%, at least 1% test coverage is required.\"\nWhat should the developer do to successfully deploy the new Apex trigger and helper class?",
709
+ "answerOptions": [
710
+ {
711
+ "describe": "Increase the test class coverage on the helper class.",
712
+ "isRight": false
713
+ },
714
+ {
715
+ "describe": "Run the tests using the 'Run All Tests' method.",
716
+ "isRight": false
717
+ },
718
+ {
719
+ "describe": "Create a test class and methods to cover the Apex trigger.",
720
+ "isRight": true
721
+ },
722
+ {
723
+ "describe": "Remove the failing test methods from the test class.",
724
+ "isRight": false
725
+ }
726
+ ],
727
+ "hashCode": "1988672366"
728
+ },
729
+ {
730
+ "describe": "Where are two locations a developer can look to find information about the status of asynchronous or future calls? Choose 2 answers",
731
+ "answerOptions": [
732
+ {
733
+ "describe": "Time-Based Workflow Monitor",
734
+ "isRight": false
735
+ },
736
+ {
737
+ "describe": "Apex Flex Queue",
738
+ "isRight": true
739
+ },
740
+ {
741
+ "describe": "Apex Jobs",
742
+ "isRight": true
743
+ },
744
+ {
745
+ "describe": "Paused Flow Interviews component",
746
+ "isRight": false
747
+ }
748
+ ],
749
+ "hashCode": "1988672363"
750
+ },
751
+ {
752
+ "describe": "A developer is writing tests for a class and needs to insert records to validate functionality.\nWhich annotation method should be used to create records for every method in the test class?",
753
+ "answerOptions": [
754
+ {
755
+ "describe": "@PreTest",
756
+ "isRight": false
757
+ },
758
+ {
759
+ "describe": "@StartTest",
760
+ "isRight": false
761
+ },
762
+ {
763
+ "describe": "@isTest(SeeAllData=true)",
764
+ "isRight": false
765
+ },
766
+ {
767
+ "describe": "@TestSetup",
768
+ "isRight": true
769
+ }
770
+ ],
771
+ "hashCode": "1988672333"
772
+ },
773
+ {
774
+ "describe": "What are two way for a developer to execute tests in an org? Choose 2 answers",
775
+ "answerOptions": [
776
+ {
777
+ "describe": "Bulk API",
778
+ "isRight": false
779
+ },
780
+ {
781
+ "describe": "Tooling API",
782
+ "isRight": true
783
+ },
784
+ {
785
+ "describe": "Metadata API",
786
+ "isRight": false
787
+ },
788
+ {
789
+ "describe": "Developer Console",
790
+ "isRight": true
791
+ }
792
+ ],
793
+ "hashCode": "1988672331"
794
+ },
795
+ {
796
+ "describe": "A developer wants to get access to the standard price book in the org while writing a test class that covers an OpportunityLineItem trigger.\nWhich method allows access to the price book?",
797
+ "answerOptions": [
798
+ {
799
+ "describe": "Use Test.getStandardPricebookId() to get the standard price book ID.",
800
+ "isRight": true
801
+ },
802
+ {
803
+ "describe": "Use @TestVisible to allow the test method to see the standard price book.",
804
+ "isRight": false
805
+ },
806
+ {
807
+ "describe": "Use @IsTest(SeeAllData=true) and delete the existing standard price book.",
808
+ "isRight": false
809
+ },
810
+ {
811
+ "describe": "Use Test.loadData() and a static resource to load a standard price book.",
812
+ "isRight": false
813
+ }
814
+ ],
815
+ "hashCode": "1988672302"
816
+ },
817
+ {
818
+ "describe": "Which three statements are true regarding custom exceptions in Apex? Choose 3 answers",
819
+ "answerOptions": [
820
+ {
821
+ "describe": "A custom exception class cannot contain member variables or methods.",
822
+ "isRight": false
823
+ },
824
+ {
825
+ "describe": "A custom exception class can implement one or many interfaces.",
826
+ "isRight": true
827
+ },
828
+ {
829
+ "describe": "A custom exception class name must be end with \"Exception\".",
830
+ "isRight": true
831
+ },
832
+ {
833
+ "describe": "A custom exception class must extend the system Exception class.",
834
+ "isRight": true
835
+ },
836
+ {
837
+ "describe": "A custom exception class can extend other classes besides the Exception class.",
838
+ "isRight": false
839
+ }
840
+ ],
841
+ "hashCode": "1988672301"
842
+ },
843
+ {
844
+ "describe": "A team of developers is working on a source-driven project that allows them to work independently, with many different org configurations.\nWhich type of Salesforce orgs should they use for their development?",
845
+ "answerOptions": [
846
+ {
847
+ "describe": "Full Copy sandboxes",
848
+ "isRight": false
849
+ },
850
+ {
851
+ "describe": "Developer orgs",
852
+ "isRight": false
853
+ },
854
+ {
855
+ "describe": "Developer sandboxes",
856
+ "isRight": false
857
+ },
858
+ {
859
+ "describe": "Scratch orgs.",
860
+ "isRight": true
861
+ }
862
+ ],
863
+ "hashCode": "1988672300"
864
+ },
865
+ {
866
+ "describe": "What should be used to create scratch orgs?",
867
+ "answerOptions": [
868
+ {
869
+ "describe": "Sandbox refresh",
870
+ "isRight": false
871
+ },
872
+ {
873
+ "describe": "Salesforce CLI",
874
+ "isRight": true
875
+ },
876
+ {
877
+ "describe": "Developer Console",
878
+ "isRight": false
879
+ },
880
+ {
881
+ "describe": "Workbench",
882
+ "isRight": false
883
+ }
884
+ ],
885
+ "hashCode": "1988672298"
886
+ }
887
+ ],
888
+ "hashCode": "878610257"
889
+ }