Summer Certification Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code = getmirror

Pass the Salesforce Developers PDII Questions and answers with ExamsMirror

Practice at least 50% of the questions to maximize your chances of passing.
Exam PDII Premium Access

View all detail and faqs for the PDII exam


726 Students Passed

90% Average Score

96% Same Questions
Viewing page 5 out of 5 pages
Viewing questions 41-50 out of questions
Questions # 41:

An Apex trigger creates an order co record every time an Opportunity is won by a Sales Rep. Recently the trigger is creating two orders.

What is the optimal technique for 2 developer to troubleshoot this?

Options:

A.

Disable all flows, and then re-enable them one at at time to see which one causes the error.

B.

Run the Apex Test Classes for the Apex trigger to ensure the code still has sufficient code coverage.

C.

Set up debug logging for every Sales Rep, then monitor the logs for errors and exceptions,

D.

Add system.debug() statements to the code and use the Developer Console logs to trace the code.

Questions # 42:

Universal Containers uses Salesforce to track orders in an order__c object.

The order = object has private organization-wide defaults. The order = object

has a custom field, Quality_Controller_c, that is a Lookup to User and is used

to indicate that the specified User is performing quality control on the order_ co.

What should be used to automatically give read only access to the User set in the

Quality_Controller field?

Options:

A.

Record ownership

B.

Criteria-based sharing

C.

Apex managed sharing

D.

User managed sharing

Questions # 43:

A developer created an Apex class that updates an Account based on input from a Lightning web component that Is used to register an Account. The update to the Account should only be made if it has not already been registered.

Question # 43

What should the developer do to ensure that users do not overwrite each other's updates to the same Account if they make updates at the same time?

Options:

A.

B.

C.

D.

Questions # 44:

What is the optimal way to fix this?

A)

Question # 44

B)

Question # 44

C)

Question # 44

D)

Question # 44

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Questions # 45:

Consider the following code snippet:

Question # 45

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

Choose 2 answers

Options:

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) ;.

Questions # 46:

A developer gets an error saying ‘Maximum Trigger Depth Exceeded.’

What is a possible reason to get this error message?

Options:

A.

A trigger is recursively invoked more than 16 times.

B.

The SOQL governor limits are being hit.

C.

There are numerous DML operations in the trigger logic.

D.

A flow trigger was included too many times.

Questions # 47:

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?

Options:

A.

REST call from JavaScript

B.

Headless Quick Action

C.

Call a Queueable from a Trigger

D.

Apex Continuation

Questions # 48:

Given the following information regarding Universal Containers (UC):

* UC represents their customers as Accounts in Salesforce.

* All customers have a unique Customer__Number_c that is unique across all of UC's systems.

* UC also has a custom Invoice c object, with a Lookup to Account, to represent invoices that are sent out from their external system.

UC wants to integrate invoice data back into Salesforce so Sales Reps can see when a customer pays their bills on time.

What is the optimal way to implement this?

Options:

A.

Ensure Customer Number cis an External ID and that a custom field Invoice Number cis an External ID and Upsert invoice data nightly.

B.

Use Salesforce Connect and external data objects to seamlessly import the invoice data into Salesforce without custom code.

C.

Create a cross-reference table in the custom invoicing system with the Salesforce Account ID of each Customer and insert invoice data nightly,

D.

Query the Account Object upon each call to insert invoice data to fetch the Salesforce ID corresponding to the Customer Number on the invoice.

Questions # 49:

A developer is responsible for formulating the deployment process for a Salesforce project. The project follows a source-driven development approach, and the developer wants to ensure efficient deployment and version control of the metadata changes.

Which tool or mechanism should be utilized for managing the source-driven deployment process?

Options:

A.

Metadata API

B.

Change Sets

C.

Force.com IDE

D.

Salesforce CLI with Salesforce DX

Questions # 50:

A company has code to update a Request and Request Lines and make a callout to

their external ERP system's REST endpoint with the updated records.

Question # 50

The callousUtil.makeRestCallout fails with a "You have uncommitted work pending. Please commit or rollback before calling cut’ error.

What should be done to address the problem?

Options:

A.

Change the callousUtil makeRestCallout to an @InvocsblsMethod method.

B.

Remove the Database. setSavepoint and Database. rollback.

C.

Change the CallousUtill .makeRestCallout to an @future method.

Viewing page 5 out of 5 pages
Viewing questions 41-50 out of questions
TOP CODES

TOP CODES

Top selling exam codes in the certification world, popular, in demand and updated to help you pass on the first try.