Exam Details

  • Exam Code
    :PDII
  • Exam Name
    :Salesforce Certification for Platform Developer II
  • Certification
    :Salesforce Certifications
  • Vendor
    :Salesforce
  • Total Questions
    :425 Q&As
  • Last Updated
    :Mar 27, 2025

Salesforce Salesforce Certifications PDII Questions & Answers

  • Question 391:

    {!v.account.Name}

    {!v.account.AccountNumber}

    {!v.account.Industry}

    Refer to the component code above. The information displays as expected (in three rows) on a mobile device. However, the information is not displaying as desired (in a single row) on a desktop or tablet.

    Which option has the correct component changes to display correctly on desktops and tablets?

    A. Option A

    B. Option B

    C. Option C

    D. Option D

  • Question 392:

    A developer created and tested a Visualforce page in their developer sandbox, but now receives reports that users are encountering ViewState errors when using it in Production. What should the developer ensure to correct these errors?

    A. Ensure queries do not exceed governor limits.

    B. Ensure properties are marked as Transient.

    C. Ensure properties are marked as private.

    D. Ensure profiles have access to the Visualforce page.

  • Question 393:

    The test method above calls a web service that updates an external system with Account information and sets the Account's Integration_Updated__c checkbox to True when it completes. The test fails to execute and exits with an error: "Methods defined as TestMethod do not support Web service callouts. "

    What is the optimal way to fix this?

    A. Add if (!Test.isRunningTest()) around CalloutUtil.sendAccountUpdate.

    B. Add Test.startTest() before and Test.stopTest() after CalloutUtil.sendAccountUpdate.

    C. Add Test.startTest() before and Test.setMock and Test.stopTest() after CalloutUtil.sendAccountUpdate.

    D. Add Test.startTest() and Test.setMock before and Test.stopTest() after CalloutUtil.sendAccountUpdate.

  • Question 394:

    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.

    The CalloutUtil. makeRestCallout fails with a 'You have uncommitted work pending. Please commit or rollback before calling out' error. What should be done to address the problem?

    A. Change the CalloutUtil.makeRestCallout to an @InvocableMethod method.

    B. Remove the Database.setSavepoint and Database.rollback.

    C. Move the CalloutUtil.makeRestCallout method call below the catch block.

    D. Change the CalloutUtil.makeRestCallout to an @future method

  • Question 395:

    A Visualforce page contains an industry select list and displays a table of Accounts that have a matching value in their Industry field.

    When a user changes the value in the industry select list, the table of Accounts should be automatically updated to show the Accounts associated with the selected industry. What is the optimal way to implement this?

    A. Add an within the .

    B. Add an within the .

    C. Add an within the .

    D. Add an within the .

  • Question 396:

    A company has a Lightning Page with many Lightning Components, some that cache reference data

    It is reported that the page does not always show the most current reference data. What can a developer use to analyze and diagnose the problem in the Lightning Page?

    A. Salesforce Lightning Inspector Storage Tab

    B. Salesforce Lightning Inspector Actions Tab

    C. Salesforce Lightning Inspector Event Log Tab

    D. Salesforce Lightning Inspector Transactions Tab

  • Question 397:

    Universal Containers wants to use an external Web Service provided by a third-party vendor to validate that shipping and billing addresses are correct. The current vendor uses basic password authentication, but Universal Containers might switch to a different vendor who uses OAuth. What would allow Universal Containers to switch vendors without updating the code to handle authentication?

    A. Custom Setting (List)

    B. Custom Metadata

    C. Named Credential

    D. Dynamic Endpoint

  • Question 398:

    A Visualforce page loads slowly due to the large amount of data it displays. Which strategy can a developer use to improve the performance?

    A. use lazy loading to load the data on demand, instead of in the controller's constructor.

    B. use an in the page to load all of the data asynchronously.

    C. use Javascript to move data processing to the browser instead of the controller.

    D. Use the transient keyword for the List variables used in the custom controller.

  • Question 399:

    Universal Containers wants to use a Customer Community with Customer Community Plus licenses so their customers can track how many of containers they are renting and when they are due back. Many of their customers are global companies with complex Account hierarchies, representing various departments within the same organization. One of the requirements is that certain community users within the same Account hierarchy be able to see several departments' containers, based on a junction object that relates the Contact to the various Account records that represent the departments. Which solution solves these requirements?

    A. A Custom Report Type and a report Lightning Component on the Community Home Page

    B. An Apex Trigger that creates Apex Managed Sharing records based on the junction object's relationships

    C. A Custom List View on the junction object with filters that will show the proper records based on owner

    D. A Visualforce page that uses a Custom Controller that specifies without sharing to expose the records

  • Question 400:

    An org has a Process Builder process 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 C:rr.i;5icnA.T.cur.t c is incorrect.

    Which two actions should the developer take to correct this problem? Choose 2 answers

    A. Call the trigger from the process.

    B. Uncheck the recursion checkbox on the process.

    C. Use a static Boolean variable in the trigger.

    D. Call the process from the trigger.

Tips on How to Prepare for the Exams

Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Salesforce exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your PDII exam preparations and Salesforce certification application, do not hesitate to visit our Vcedump.com to find your solutions here.