Weekend Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code = simple70

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


415 Students Passed

86% Average Score

90% Same Questions
Viewing page 1 out of 6 pages
Viewing questions 1-10 out of questions
Questions # 1:

Refer to the following code snippets:

A developer is experiencing issues with a Lightning web component. The component must surface information about Opportunities owned by the currently logged-in user.

Question # 1

When the component is rendered, the following message is displayed: "Error retrieving data”.

Which modification should be implemented to the Apex class to overcome the issue?

Options:

A.

Use the Cacheable=true attribute in the Apex method,

B.

Ensure the OWD for the Opportunity object is Public.

C.

Edit the code to use the w. cut sharing keyword in the Apex class.

D.

Use the Continuation=true attribute in the Apex method.

Questions # 2:

A developer is asked to modify a Lightning web component so that it displays in one column on phones and in two columns on tablets, desktops, and larger devices.

Given to the code below:

Question # 2

Which should the developer add to the code to meet the requirements?

Options:

A.

B.

C.

D.

Questions # 3:

A developer is trying to decide between creating a Visualforce component or a Lightning component for a custom screen.

Which functionality consideration impacts the final decision?

Options:

A.

Does the screen need to be accessible from the Lightning Experience UI?

B.

Does the screen need to be rendered as a PDF without using a thirdparty application?

C.

Will the screen make use of a JavaScript framework?

D.

Will the screen be accessed via a mobile app?

Questions # 4:

A user receives the generic "An internal server error has occurred” while interacting

with a custom Lightning component.

What should the developer do to ensure a more meaningful message?

Options:

A.

Add an onerror event handler to the tag.

B.

Add an error-view component to the markup.

C.

Use platform events to process the error

D.

Use an AuraHandledexception in a try-catch block.

Questions # 5:

Consider the below trigger intended to assign the Account to the manager of the Account's region:

Question # 5

Which two changes should a developer make in this trigger to adhere to best practices?

Choose 2 answers

Options:

A.

B.

C.

D.

Questions # 6:

Universal Containers (LIC) wants to develop a customer community to help their customers log issues with their containers. The community needs to function for their German- and Spanish-speaking customers also. UC heard that it's easy to create an international community using Salesforce, and hired a developer to build out the site.

What should the developer use to ensure the site is multilingual?

Options:

A.

Use custom labels to ensure custom messages are translated properly.

B.

Use custom settings to ensure custom messages are translated properly.

C.

Use custom objects to translate custom picklist values.

D.

Use custom metadata to translate custom picklist values.

Questions # 7:

A company has a native iOS order placement app that needs to connect to Salesforce to retrieve consolidated information from many different objects in a

JSON format.

Which is the optimal method to implement this in Salesforce?

Options:

A.

Apex REST web service

B.

Apex SOAP web service

C.

Apex SOAP callout

D.

Apex REST callout

Questions # 8:

As part of a custom interface, a developer team creates various new Lightning web components. Each of the components handles errors using toast messages. When the development is complete, all the components are added to the same Lightning page.

During acceptance testing, users complain about the long chain of toast messages that display when errors occur loading the components.

Which two techniques should the developer implement to improve the user experience?

Choose 2 answers

Options:

A.

Use a Lightning web component to aggregate and display all errors

B.

Use the window.alert() method to display the error messages

C.

Use a tag to display in-place error messages.

D.

Use public, properties on each component to display the error messages.

Questions # 9:

Just prior to a new deployment the Salesforce administrator, who configured a new order fulfillment process feature in a developer sandbox, suddenly left the company.

Ag part of the UAT cycle, the users had fully tested all of the changes in the sandbox and signed off on them; making the Order fulfillment feature ready for its go-live in the production environment.

Unfortunately, although a Change Set was started, it was not completed by the former administrator.

A developer is brought in to finish the deployment.

What should the developer do to identify the configuration changes that need to be moved into production?

Options:

A.

In Salesforce setup, look at the last modified date for every object to determine which should be added to the Change Set.

B.

Use the Metadata API and a supported development IDE to push all of the configuration from the sandbox into production to ensure no changes are lost.

C.

Leverage the Setup Audit Trail to review the changes made by the departed Administrator and identify which changes should be added to the Change Set.

D.

Set up Continuous Integration and a Git repository to automatically merge all changes from the sandbox metadata with the production metadata.

Questions # 10:

An Apex class does not achieve expected code coverage. The testsetup method explicitly calls a method In the Apex class..

How can the developer generate the code coverage?

Options:

A.

Use system.assert() in testSetup to verify the values are being returned.

B.

Verify the user has permissions passing a user into System,.runds().

C.

Call the Apex class method from a testsetup Instead of the testsetup methed.

D.

Add @testvisible to the method in the class the developer is testing.

Viewing page 1 out of 6 pages
Viewing questions 1-10 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.