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

PDI Salesforce Exam Lab Questions

Page: 10 / 17
Question 40

A develop completed modification 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?

Options:

A.

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

B.

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

C.

All methods in the test classes must use @isTest.

D.

Test methods must be declared with the testMethod keyword.

Question 41

A Salesforce Administrator used Flow Builder to create a flow named ‘’accountOnboarding’’. The flow must be used inside an Aura component.

Which tag should a developer use to display the flow in the component?

Options:

A.

Lightning-flow

B.

Aura:flow

C.

Lightning:flow

D.

Aura:flow

Question 42

Which three steps allow a custom SVG to be included in a Lightning web component? Choose 3 answers

Options:

A.

Upload the SVG as a static resource.

B.

Import the static resource and provide a getter for it in JavaScript.

C.

Reference the getter in the HTML template.

D.

Reference the import in the HTML template.

E.

Import the SVG as a content asset file.

Question 43

A developer deployed a trigger to update the status__c of Assets related to an Account when the Account’'s status changes and a nightly integration that updates Accounts in bulk has started to fail with limit failures.

What should the developer change about the code to address the failure while still having the code update all of the Assets correctly?

Options:

A.

Change the gerAssetsToUpdac= method to process all Accounts in one call and call it outside of the for loop that starts on line 03.

B.

Add a LIMIT clause to the SOQL query on line 16 to limit the number of Assets queried for an Account.

C.

Move all of the logic to a Queueable class that queries for and updates the Assets and call it from the trigger.

D.

Add List assets = [SELECT Id, Status__c FROM Asset WHERE AccountId = :acctId] to line 14 and iterate over the assets list in the for loop on line 15.

Page: 10 / 17
Exam Code: PDI
Exam Name: Platform Developer I (SP23)
Last Update: Apr 27, 2024
Questions: 235
PDI pdf

PDI PDF

$28  $80
PDI Engine

PDI Testing Engine

$33.25  $95
PDI PDF + Engine

PDI PDF + Testing Engine

$45.5  $130