0% found this document useful (0 votes)
39 views2 pages

PD 1

Download as pdf or txt
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 2

Question # 23

A developer at AW Computing is tasked to create the supporting test class for a 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.

hich two approaches can the developer use to ensure Pricing _Structure__c records are

available when the test class is executed?

Choose 2 answers

A.

Use a Test Date Factory class.

B.

Use the @raTeat (seeAllData=true) annotation.

C.

Use the Test. leadtear{} method,

D.

Use without shering on the class declaration.

View Answer Full Access


Question # 24
Refer to the code snippet below:

When a Lightning web component is rendered, a list of apportunities that match certain criteria

shopuld be retrievved from the database and displayed to the end user.

Which three Considerations must the developer implement to make the method

available within the Lightning web component?

Choose 3 answer

A.

The method must specify the (cacheable-trun) attribute

B.

The method must specify the (continuation-true) attribute

C.

The method must be annotaled with true Invocablemethod annolation


D.

The method cannot mutate the result set retrieved from the database.

E.

The method must be annotated with the AureEnabled annolation

View Answer Full Access


Question # 25
Which two sfdx commands can be used to add testing data to a Developer sandbox?

A.

Forced: data:bulk:upsert

B.

Forced: data: object :upsert

C.

Forced: data: tree: upsert

D.

Forced: data:async:upsert

View Answer Full Access


Question # 26
What should a developer do to check the code coverage of a class after running all tests?

A.

View the Code Coverage column in the list view on the Apex Classes page.

B.

View the Class Test Percentage tab on the Apex Class fist view m Salesforce Setup.

C.

View Use cede coverage percentage for the class using the Overall Code Coverage panel in the

Developer Console Tests tab.

D.

Select and run the class on the Apex Test Execution page in the Developer Console.

You might also like