Exam2pass
0 items Sign In or Register
  • Home
  • IT Exams
  • Guarantee
  • FAQs
  • Reviews
  • Contact Us
  • Demo
Exam2pass > Salesforce > Salesforce Certifications > PDII > PDII Online Practice Questions and Answers

PDII Online Practice Questions and Answers

Questions 4

Business rules require a Contact to always be created when a new Account is created. What can be used when developing a custom screen to ensure an Account is not created if the creation of the Contact fails?

A. use the Database.Delete method if the Contact insertion fails.

B. Disable validation rules on Contacts and set default values with a Trigger.

C. use the Database.Insert method with allOrNone set to False.

D. use setSavePoint() and rollback() with a try/catch block.

Buy Now

Correct Answer: D

Questions 5

A customer requires that when the billing address field on an Account gets updated, the address field on all its related contact records should reflect the same update. How can this requirement be met with minimal customizations?

A. Create an After Trigger on Account to upd|ate its related contact records on update

B. Create a Workflow Rule on Account to update related child Contact records

C. Create a Lightning Process on Account to update related child Contact records

D. Create a scheduled batch job that updates all contact address fields based on the related account record.

Buy Now

Correct Answer: C

Questions 6

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 five visible components on the page.

B. Limit 25 fields on the record detail page.

C. Limit the number of Tabs and Accordion components.

D. Analyze the page with Performance Analysis for App Builder.

Buy Now

Correct Answer: BD

Questions 7

A company wants to create a dynamic survey that navigates users through a different series of questions based on their previous responses. What is the recommended solution to meet this requirement?

A. Dynamic Record Choice

B. Lightning Process Builder

C. Visualforce and Apex

D. Custom Lightning Application

Buy Now

Correct Answer: A

Questions 8

A developer wants to write a generic Apex method that will compare the Salesforce Name field between any two object records. For example, to compare the Name field of an Account and an Opportunity; or the Name of an Account and a Contact.

How should the developer do this?

A. Use a String.replace( ) method to parse the contents of each Name field.

B. Invoke a Schema,describe() function to compare the values of each Name field.

C. Cast each object into an sObject and use sObject.get(Name') to compare the Name fields.

D. Use the salesforce metadata API to extract the value of each object and compare the name fields

Buy Now

Correct Answer: C

Questions 9

An org has a requirement that the Shipping Address on the Account must be validated by a third- party web service, before the Account is allowed to be inserted. What is the optimal way to meet this requirement?

A. Make a callout to the web service from a custom Visualforce controller.

B. Make a callout to the web service from a standard Visualforce controller.

C. Make a callout to the web service from an after insert trigger.

D. Make a callout to the web service from a before insert trigger.

Buy Now

Correct Answer: D

Questions 10

A developer migrated functionality from JavaScript demoting to a Lightning web component and wants to use the existing getOpportunities() method to provide data. Which modification to the method is necessary?

A. A The method must be decorated with uraEnabled.

B. The method must return a JSON Object.

C. The method must be decorated with (cacheable=true).

D. The method must return a String of a serialized JSON Array.

Buy Now

Correct Answer: A

Questions 11

A developer implemented a custom data table in a Lightning web component with filter functionality. However, users are submitted support tickets about long load times when the filters are changed. The component uses an Apex method that is called to query for records the selected filters.

What should the developer do to improve performance of the component?

A. Use setStorable( ) in the Apex method to store the response in the client-side cache

B. Return all records into a list when the component is created and filter the array in JavaScript

C. Use SOSL to Query the records on filter change.

D. Use a selective SOQL query with a custom index.

Buy Now

Correct Answer: A

Questions 12

Given the following containment hierarchy:

What is the correct way to communicate the new value of a property named ''passthrough'' to my-parent component if the property is defined within my-child-component?

A. Option A

B. Option B

C. Option C

D. Option D

Buy Now

Correct Answer: B

Questions 13

Which annotation should a developer use on an Apex method to make it available to be wired to a property In a Lightning web component?

A. @RemoteAction

B. @AuraEnabledcacheable=true)

C. @QRemoteAction(caccheable=true)

D. @AuraEnabled

Buy Now

Correct Answer: B

Exam Code: PDII
Exam Name: Salesforce Certification for Platform Developer II
Last Update: Jun 11, 2025
Questions: 425

PDF (Q&A)

$45.99
ADD TO CART

VCE

$49.99
ADD TO CART

PDF + VCE

$59.99
ADD TO CART

Exam2Pass----The Most Reliable Exam Preparation Assistance

There are tens of thousands of certification exam dumps provided on the internet. And how to choose the most reliable one among them is the first problem one certification candidate should face. Exam2Pass provide a shot cut to pass the exam and get the certification. If you need help on any questions or any Exam2Pass exam PDF and VCE simulators, customer support team is ready to help at any time when required.

Home | Guarantee & Policy |  Privacy & Policy |  Terms & Conditions |  How to buy |  FAQs |  About Us |  Contact Us |  Demo |  Reviews

2025 Copyright @ exam2pass.com All trademarks are the property of their respective vendors. We are not associated with any of them.