Exit demo PDI Salesforce Certification for Platform Developer I (Plat-Dev-201) PDF format · free preview

SalesForce PDI - Questions & Answers

Free preview · every answer includes a full explanation

Product page: https://prepkeys.com/pdi.html

Question 1
Single choice

Universal Containers decided to transition from Classic to Lightning Experience. They asked a developer to replace a JavaScript button that was being used to create records with prepopulated values.

What can the developer use to accomplish this?

A.

Validation rules

B.

Apex triggers

C.

Record triggered flows

D.

Quick Actions

Question 2
Single choice

A developer created a trigger on the Account object. While testing the trigger, the developer sees the error
message `Maximum trigger depth exceeded'.

What could be the possible causes?

A.

The developer does not have the correct user permission.

B.

The trigger is too long and should be refactored into a helper class.

C.

The trigger does not have sufficient code coverage.

D.

The trigger is getting executed multiple times.

Question 3
Multiple choice

Which two actions may cause triggers to fire? Choose 2 answers

A.

Changing a user's default division when the transfer division option is checked

B.

Updates to FeedItem

C.

Cascading delete operations

D.

Renaming or replacing a picklist entry

Question 4
Single choice

How can a developer check the test coverage of autolaunched Flows before deploying them in a change set?

A.

Use the ApextestResult class.

B.

Use the Flow Properties page.

C.

Use SOQL and the Tooling API.

D.

Use the Code Coverage Setup page,

Question 5
Multiple choice

A developer created a child Lightning web component nested inside a parent Lightning web component.
The parent component needs to pass a string value to the child component.

In which two ways can this be accomplished? Choose 2 answers

A.

The parent component can invoke a public method in the child component.

B.

The parent component can use a public property to pass the data to the child component,

C.

The parent can use the Apex controller class to send data to the child component.

D.

The parent component can use a custom event to pass the data to the child component.

Question 6
Single choice

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

A.

Sharing rules will be enforced by the instantiating class.

B.

Sharing rules will be enforced for the running user.

C.

Sharing rules will not be enforced for the running user.

D.

Sharing rules will be inherited from the calling context.

Question 7
Multiple choice

Which three resources in an Aura component can contain JavaScript functions? Choose 3 answers

A.

Style

B.

Renderer

C.

Controller

D.

Design

E.

Helper

Question 8
Single choice

A developer is creating a page that allows users to create multiple Opportunities. The developer is asked to verify the current user's default Opportunity record type, and set certain default values based on the record type before inserting the record.

How can the developer find the current user's default record type?

A.

Create the opportunity and check the opportunity. recordtype, which will have the record ID of the
current user's default record type, before inserting.

B.

Query the Profile where the ID equals userinfo.getprofileID () and then use the profile opportunity. getdefaultresoratype (} method,

C.

Use the Schema.userInfo.Opportunity.getDefaultRecordType() method.

D.

Use Opportunity.SObjectType.getDescribe().getRecordTypeInfos() to get a list of record types, and iterate trought them until isdefaultRecordTypeMapping() is true.

Question 9
Single choice

The following Apex method is part of the ContactService class that is called from a trigger:

How should the developer modify the code to ensure best practices are met?

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 10
Single choice

A team of developers is working on a source-driven project that allows them to work independently, with
many different org configurations.

Which type of Salesforce orgs should they use for their development?

A.

Developer sandboxes.

B.

Full Copy sandboxes

C.

Developer orgs

D.

Scratch orgs

Showing 10 of 270 questions · Unlock the full set