Labour Day Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: bigdisc65

Salesforce CRT-450 Actual Questions

Page: 5 / 17
Question 20

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

Options:

A.

Forced: data:bulk:upsert

B.

Forced: data: object :upsert

C.

Forced: data: tree: upsert

D.

Forced: data:async:upsert

Question 21

A developer must modify the following code snippet to prevent the number of SOQL queries issued from exceeding the platform governor limit. public class without sharing OpportunityService( public static List getOpportunityProducts(Set opportunityIds){ List oppLineItems = new List(); for(Id thisOppId : opportunityIds){ oppLineItems.addAll([Select Id FROM OpportunityLineItems WHERE OpportunityId = :thisOppId)]; } return oppLineItems; } }

The above method might be called during a trigger execution via a Lightning component. Which technique should be implemented to avoid reaching the governor limit?

Options:

A.

Use the System.Limits.getQueries() method to ensure the number of queries is less than 100.

B.

Use the System.Limits.getlimitQueries() method to ensure the number of queries is less than 100.

C.

Refector the code above to perform the SOQL query only if the Set of opportunityIds contains less 100 Ids.

D.

Refactor the code above to perform only one SOQL query, filtering by the Set of opportunityIds.

Question 22

What are three characteristics of change set deployments?

Choose 3 answers

Options:

A.

Change sets can only be used between related organizations.

B.

Change sets can be used to transfer records.

C.

Sending a change set between two orgs requires a deployment connection.

D.

Change sets can deploy custom settings data.

E.

Deployment is done in a one-way, single transaction.

Question 23

In the following example, which sharing context will myMethod execute when it is invoked?

Options:

A.

Sharing rules will not be enforced for the running user.

B.

Sharing rules will be Inherited from the calling context.

C.

Sharing rules will be enforced by the instantiating class.

D.

Sharing rules will be enforced for the running user.

Page: 5 / 17
Exam Code: CRT-450
Exam Name: Salesforce Certified Platform Developer I (SP23)
Last Update: May 7, 2024
Questions: 235
CRT-450 pdf

CRT-450 PDF

$28  $80
CRT-450 Engine

CRT-450 Testing Engine

$33.25  $95
CRT-450 PDF + Engine

CRT-450 PDF + Testing Engine

$45.5  $130