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

Salesforce PDI - Salesforce Certified Platform Developer 1 (SP25)

Page: 5 / 6
Total 204 questions

What should a developer use to fix a Lightning web component bug in a sandbox?

A.

Developer Console

B.

Force.com IDE

C.

Execute Anonymous

D.

VS Code

Which three code lines are required to create a Lightning component on a Visualforce page?

Choose 3 answers.

A.

$Lightning.use

B.

$Lightning.useComponent

C.

D.

E.

$Lightning.createComponent

A development team wants to use a deployment script to automatically deploy to a sandbox during their development cycles.

Which two tools can they use to run a script that deploys to a sandbox?

Choose 2 answers

A.

SFDX CLI

B.

Developer Console

C.

Change Sets

D.

Ant Migration Tool

Cloud Kicks has a multi-screen flow that its call center agents use when handling inbound service desk calls.

At one of the steps in the flow, the agents should be presented with a list of order numbers and dates that are retrieved from an external order management system in real time and displayed on the screen.

What should a developer use to satisfy this requirement?

A.

An outbound message

B.

An Apex REST class

C.

An Apex controller

D.

An invocable method

What are two considerations for deploying from a sandbox to production?

Choose 2 answers

A.

At least 75% of Apex code must be covered by unit tests.

B.

Unit tests must have calls to the System.assert method.

C.

Should deploy during business hours to ensure feedback can be quickly addressed.

D.

All triggers must have at least one line of test coverage.

Universal Containers wants to ensure that all new leads created in the system have a valid email address. They have already created a validation rule to enforce this requirement, but want to add an additional layer of validation using automation.

What would be the best solution for this requirement?

A.

Submit a REST API Callout with a JSON payload and validate the fields on a third party system

B.

Use a before-save Apex trigger on the Lead object to validate the email address and display an error message if it is invalid

C.

Use a custom Lightning Web component to make a callout to validate the fields on a third party system.

D.

Use an Approval Process to enforce the completion of a valid email address using an outbound message action.

Provide question feedback here (optional):

Based on this code, what is the value of x?

A.

4

B.

1

C.

2

D.

3

A developer is migrating a Visualforce page into a Lightning web component.

The Visualforce page shows information about a single record. The developer decides to use Lightning Data Service to access record data.

Which security consideration should the developer be aware of?

A.

Lightning Data Service ignores field-level security.

B.

The with sharing keyword must be used to enforce sharing rules.

C.

Lightning Data Service handles sharing rules and field-level security.

D.

The isAccessible () method must be used for field-level access checks.

When a user edits the Postal Code on an Account, a custom Account text field named "Timezone" must be updated based on the values in another custom object called PostalCodeToTimezone__c.

What is the optimal way to implement this feature?

A.

Build a flow with Flow Builder.

B.

Create an account approval process.

C.

Create a formula field.

D.

Build an account assignment rule.

A developer considers the following snippet of code:

Boolean isOK;

Integer x;

String theString = 'Hello';

if (isOK == false && theString == 'Hello') {

x = 1;

} else if (isOK == true && theString == 'Hello') {

x = 2;

} else if (isOK == null && theString == 'Hello') {

x = 3;

} else {

x = 4;

}

Based an this code, what is the value of x?

A.

1

B.

2

C.

3

D.

4