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: 2 / 6
Total 202 questions

Universal Containers implements a private sharing model for the Convention Attendee co custom object. As part of a new quality assurance effort, the company created an Event_Reviewer_c user lookup field on the object.

Management wants the event reviewer to automatically gain ReadWrite access to

every record they are assigned to.

What is the best approach to ensure the assigned reviewer obtains Read/Write access to the record?

A.

Create a before insert trigger on the Convention Attendee custom object, and use Apex Sharing Reasons and Apex Managed Sharing.

B.

Create an after insert trigger on the Convention Attendee custom object, and use Apex Sharing Reasons and Apex Managed Sharing.

C.

Create criteria-based sharing rules on the Convention Attendee custom object to share the records with the Event Reviewers,

D.

Create a criteria-based sharing rule on the Convention Attendee custom object to share the records with a group of Event Reviewers.

Universal Containers is using a custom Salesforce application to manage customer

support cases. The support team needs to collaborate with external partners to

resolve certain cases. However, they want to control the visibility and access to the

cases shared with the external partners. Which Salesforce feature can help achieve this requirement?

A.

Role hierarchy

B.

Criteria-based sharing rules

C.

Apex managed sharing

D.

Sharing sets

An org has an existing process, built using Process Builder, on Opportunity that sets a custom field, CommissionBaseAmount__c, when

an Opportunity is edited and the Opportunity's Amount changes.

A developer recently deployed an Opportunity before update trigger that uses the CommissionBaseAmount__c and complex logic to calculate a

value for a custom field, CommissionAmount__c, when an Opportunity stage changes to Closed/Won.

Users report that when they change the Opportunity to Closed/Won and also change the Amount during the same save, the CommissionAmount__c is incorrect.

Which action should the developer take to correct this problem?

A.

A Replace the process with a Fast Field Update record-trigger flow.

B.

Call the trigger from the process.

C.

Call the process from the trigger.

A developer is creating a page in App Builder that will be used in the Salesforce mobile app.

Which two practices should the developer follow to ensure the page operates with optimal performance?

Choose 2 answers

A.

Limit 25 fields on the record detail page.

B.

Limit the number of Tabs and Accordion components.

C.

Analyze the page with Performance Analysis for App Builder.

D.

Limit five visible components on the page.

Given the following code:

Assuming there were 10 Contacts and five Accounts created today, what is the expected result?

A.

System.QueryException: Too many DML Statement errors on Contact

B.

System.QueryException: List has more than one row for Assignment on Account

C.

Systemn.LimitException: Too many SOQL Queries on Account

D.

System.LimitException: Too many SOQL Queries on Contact

A developer created the following test method:

The developer org has five accounts where the name starts with “Test”. The developer executes this test in the Developer Console.

After the test code runs, which statement is true?

A.

The test will fail.

B.

There will be no accounts where the name starts with "Test".

C.

There will be five accounts where the name starts with "Test".

D.

There will be six accounts where the name starts with "Test".

A developer built an Aura component for guests to self-register upon arrival at a front desk kiosk. Now the developer needs to create a component for the utility tray to alert users whenever a guest arrives at the front desk.

What should be used?

A.

DML Operation

B.

Changelog

C.

Application Event

D.

Component Event

Which Salesforce feature allows a developer to see when a user last logged in to

Salesforce if real-time notification is not required?

A.

Calendar Events

B.

Asynchronous Data Capture Events

C.

Event Monitoring Log

D.

Developer Log

A corporation has many different Salesforce orgs, with some different objects and some common objects, and wants to build a single Java application that can create, retrieve, and update common object records in all of the different orgs.

Which method of integration should the application use?

A.

SOAP API with the Partner WSDL

B.

Apex REST Web Service

C.

SOAP API with the Enterprise WSDL

D.

Metadata APT

The Salesforce admin et Cloud Kicks created a custom object called Region_c to store all postal zip codes in the United States and the Cloud Kicks sales region the zip code belongs to.

Cloud Kicks wants a trigger on the Lead to populate the Region based on the Lead's zip code.

Which code segment is the most efficient way to fulfill this request?

A)

B)

C)

D)

A.

Option A

B.

Option B

C.

Option C

D.

Option D