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
    :Apr 12, 2025

Salesforce Salesforce Certifications PDII Questions & Answers

  • Question 271:

    What is the correct syntax for calling a controller action from a Visualforce page and updating part of the page once the action is completed? (Choose two.)

    A.

    B.

    C.

    D.

  • Question 272:

    Which of the follow be used together in DML operations (transaction)? (Choose two.)

    A. Acco u nt - Acco u ntS ha re

    B. Case - CaseComment

    C. Opportunity - User

    D. Account - Order

  • Question 273:

    A developer is creating unit tests for code that makes SOAP web service callouts. The developer needs to insert some test data as a part of the unit tests setup. What are three actions to enable this functionality? (Choose three.)

    A. Surround the callout with TeststartTest(), Test.stopTest()

    B. Surround the data insertion with Test.startTest(), Test.stopTest()

    C. Implement the WebServiceMock interface

    D. Update code to call Test.setMock()

    E. Implement the HttpCalloutMock interface

  • Question 274:

    An integration user makes a successful login() call via the SOAP API. What can be used in the SOAP header to provide server authorization for subsequent API requests?

    A. Named Credentials

    B. Session ID

    C. OAuth access token

    D. Security token

  • Question 275:

    A customer has a single Visualforce page that allows each user to input up to 1500 sales forecasts and instantly view pivoted forecast calculations. Users are complaining that the page is loading slowly, and they are seeing error messages regarding heap and view state limits. What are three recommendations to optimize page performance? (Choose three.)

    A. Segregate calculation functionality from input functionality

    B. Specify the list of sales forecasts as transient

    C. Implement pagination and reduce records per page

    D. Create formula fields to compute pivoted forecast calculations

    E. Use JavaScript Remoting instead of controller actions

  • Question 276:

    A developer needs to create a service that will process an email sent to it and create an account and contact using the contents of the email as data for the records. How might a developer accomplish this requirement?

    A. Use the Apex Inbound Email Handler

    B. Use the Fuel API with Email Data Extensions

    C. Use Heroku Data Clips to Process Email

    D. Use Auto-launched Flow and Process Builder

  • Question 277:

    How can Apex be used with Visual Workflow?

    A. To set the version of a Flow being run

    B. To start a Flow automatically

    C. To add custom styling to a Flow

    D. To control access to a Flow

  • Question 278:

    During the order of execution of a Visualforce page GET request, what happens after this step? Evaluate constructors on controllers and extensions

    A. Evaluate constructors and expressions on custom components

    B. Create view state if exists

    C. Send the HTML response to the browser

    D. Evaluate expressions, action attributes, and method calls

  • Question 279:

    A developer needs to create a Lightning page for entering Order Information. An error message should be displayed if the zip code entered as part of the Order's shipping address is not numeric. What is a recommended way for the error message be displayed to the end user?

    A. Use the apex:message tag to display errors

    B. Use the aura:component tag to display errors

    C. Use the uhoutputText tag to display errors

    D. Use the uhinputDefaultError tag to display errors

  • Question 280:

    A developer is writing unit tests for the following method:

    public static Boolean isFreezing(String celsiusTemp){ if(String.isNotBlank(celsiusTemp) andand celsiusTemp.isNumeric()){ return Decimal.valueof(celsiusTemp) <= 0; } return null; }

    Which assertion would be used in a negative test case?

    A. System.assertEquals(true, isFreezing(null))

    B. System.assertEquals (true, isFreezing('O')

    C. System.assertEquals(null, isFreezing('asdf))

    D. System.assertEquals(true, isFreezingClOO'))

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.