Summer Sale Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: ecus65

Salesforce PDII - Salesforce Certified Platform Developer II (Plat-Dev-301)

Page: 3 / 6
Total 202 questions

Consider the following code snippet:

Which two steps should the developer take to add flexibility to change the endpoint and credentials without needing to modify code?

Choose 2 answers

A.

Use req. setindpoint ('callout:endFoint_NC'); within the callout request.

B.

Store the URL of the endpoint in a custom Label named endpointuRL.

C.

Create a Named Credential, endPcint_wc, ta store the endpoint and credentials.

D.

Use red. setEndpoint (Label.endPointURL) ;.

Which three Visualforce components can be used to initiate Ajax behavior to perform partial page updates?

Choose 3 answers

A.

B.

C.

D.

E.

Universal Containers (UC) has enabled the translation workbench and has translated picklist values. UC has a custom multi-select picklist field, Product__c, on the Account object that allows sales reps to specify which of UC’s products an Account already has. A developer is tasked with writing an Apex method that retrieves Account records, including the Product_c field.

What should the developer do to ensure the value of Products__c is in the current user's language?

A.

Use tolabel ducts__c) in the fields list of the SOQL query.

B.

Set the locale on each record in the SOQL result list.

C.

Call the translate method on each record in the SOQL result list.

D.

Use the Locale clause in the SOQL query.

Assuming the CreateOneAccount class creates one account and implements the

Queueable interface, which syntax properly tests the Apex code?

A)

B)

C)

D)

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Universal Containers decided to use Salesforce to manage a new hire interview process. A custom object called Candidate was created with organization-wide defaults set to Private. A lookup on the Candidate object sets an employee as an Interviewer.

What should be used to automatically give Read access to the record when the lookup field is set to the Interviewer user?

A.

The record can be shared using an Apex class.

B.

The record can be shared using a permission set.

C.

The record can be shared using a sharing rule.

D.

The record cannot he shared with the current setup.

Universal Containers (UC) has an ERP system that stores customer Information,

When an Account is created in Salesforce, the ERP system's REST endpoint for creating new customers must automatically be called with the Account information. If the call to the ERP

system falls, the Account should still be created. Accounts in the UC org are only created, one at a time, by users in the UC customer on-boarding department.

What should a developer implement to make the call to the ERP

system's REST endpoint?

A.

REST call from JavaScript

B.

Headless Quick Action

C.

Call a Queueable from a Trigger

D.

Apex Continuation

Which two best practices should the developer implement to optimize this code? Choose 2 answers

A.

Change the trigger context to after update, after insert

B.

Remove the DML statement.

C.

Use a collection for the DML statement.

D.

Query the Driving-Structure_C records outside of the loop

A developer needs to implement a historical Task reporting feature that allows users, assigned to a custom profile named "Auditors", to perform searches against the Tasks related to the Account object.

The developer must ensure the search is able to return Tasks that are between 12 and 24 months old. It should exclude any tasks which have been deleted, and include Tasks whether archived or not.

Given the following code, which select statement should be inserted at the placeholder as a valid way to retrieve the Tasks ranging from L2 to 24 months old?

A.

B.

C.

D.

In an organization that has multi-currency enabled, a developer Is tasked with building a Lighting component that displays the top ten Opportunities most recently accessed by the logged in user. The developer must ensure the Amount and LastModifiedDate field values are displayed according to the user's locale.

What is the most effective approach to ensure values displayed respect the user's locale settings?

A.

Use REGEX expressions to format the values retrieved via SOQL.

B.

Use a wrapper class to format the values retrieved via SOQL.

C.

Use the FOR VIEW clause in the SOQL query.

D.

Use the FORMAT () function in the SOQL query.

Universal Containers uses a custom Lightning page to provide a mechanism to perform a step-by-step wizard search for Accounts. One of the steps in the wizard is to allow the user to input text into a text field, ERF Number_c, that is then used in a query to find matching Accounts.

Which step should be taken to resolve the issue?

A.

Perform the SOQL query as part of a for loop.

B.

Mark the ERP_Numker = field as an external ID.

C.

Mark the ERP_Number__ c field as required.

D.

Move the SO0L query to within an asynchronous process.