11.11 Special 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: save70

Developers PDI Book

Page: 3 / 13
Total 174 questions

Salesforce Certified Platform Developer I (SU24) Questions and Answers

Question 9

A developer needs to have records with specific field values in order to test a new Apex class.

What should the developer do to ensure the data is available to the test?

Options:

A.

Use test.loadData() and reference a JSON file in Documents.

B.

Use Test.loadData() and reference a CSV file in a static resource.

C.

Use Anonymous Apex to create the required data.

D.

Use SOQL to query the org for the required data.

Question 10

A developer completed modifications to a customized feature that is comprised of two elements:

* Apex trigger

* Trigger handler Apex class

What are two factors that the developer must take into account to properly deploy the modification to the production environment?

Choose 2 answers

Options:

A.

All methods in the test classes must use @isTest.

B.

Apex classes must have at least 75% code coverage org-wide.

C.

Test methods must be declared with the testMethod keyword.

D.

At least one line of code must be executed for the Apex trigger.

Question 11

Which three resources in an Aura component can contain JavaScript functions? Choose 3 answers

Options:

A.

Renderer

B.

Controller

C.

style

D.

Helper

E.

Design

Question 12

A developer at AW Computing is tasked to create the supporting test class for programmatic customization that leverages records stored within the custom object, Pricing_Structure__c. AW Computing has a complex pricing structure for each item on the store, spanning more than 500 records,

Which two approaches can the developer use to ensure Pricing Strucrture_c records are available when the test class is executed?

Choose 2 answers

Options:

A.

Use a Test Data Factory class.

B.

Use the Test.loadTesc() method.

C.

Use the @T=Test (SeefAllDaca=rru=) annotation.

D.

Use without sharing on the class declaration.

Page: 3 / 13
Total 174 questions