PDII Exam Details

  • Exam Code
    :PDII
  • Exam Name
    :Salesforce Certified Platform Developer II (Plat-Dev-301)
  • Certification
    :Salesforce Certifications
  • Vendor
    :Salesforce
  • Total Questions
    :445 Q&As
  • Last Updated
    :Jun 19, 2026

Salesforce PDII Online Questions & Answers

  • Question 371:

    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

  • Question 372:

    A developer is building a Lightning web component that displays quantity, unit price, and the total for an order line item. The total is calculated dynamically as the quantity multiplied by the unit price.

    What must be added to display the total?

    A. Add get total() { return quantity * unitPrice;} to the JavaScript and Total: {total} in the template.
    B. Add calculate Total() {return quantity * unitPrice;} to the javaScript and Total : {calculate Total()} in the template.
    C. Add Total: {quantity * UnitPrice} in the template.
    D. Add Total; {multiple quantit,y unitprice)} in the template.

  • Question 373:

    The "Webservice" keyword___________.

    A. Method must be static, and class must be global
    B. Can be used on all classes
    C. Used for any member variables included
    D. All of the above

  • Question 374:

    Exhibit.

    public class LeadController {

    public static List<Lead> getFetchLeadList(String searchTerm, Decimal aRevenue) {

    String safeTerm = '%'+searchTerm.escapeSingleQuotes()+ '%';

    return [

    SELECT Name, Company, AnnualRevenue FROM Lead

    WHERE AnnualRevenue >= :aRevenue

    AND Company LIKE :safeTerm

    LIMIT 20

    ];

    }

    }

    A developer created a JavaScript function as part of a Lightning Web Component (LWC) that surfaces information about leads by imperatively calling getFetchLeadList when certain criteria are met.

    What are the changes the developer should implement in the Apex class above to ensure the LWC can display data efficiently while preserving security? (Choose three)

    A. Annotate the Apex method with @AuraEnabled.
    B. Annotate the Apex method with @AuraEnabled(cacheable=true).
    C. Use the WITH SECURITY_ENFORCED clause within the SOQL query.
    D. Implement the with sharing keyword in the class declaration.
    E. Implement the without sharing keyword in the class declaration.

  • Question 375:

    What are three benefits of using static resources in Visualforce and Lightning Components? (Choose Three)

    A. Static resource files can be packaged into a collection of related files in a zip or jar archive.
    B. Static resource files do not count against an organization's quota of data storage.
    C. Static resource files are automatically minified.
    D. Relative paths can be used in files in static resource archives to refer to other content within the archive.
    E. Static resource files can be referenced by using the $Resource global variable instead of hardcoded IDs.

  • Question 376:

    Consider the following queries. For these queries, assume that there are more than 200,000 Account records. These records include soft-deleted records; that is, deleted records that are still in the Recycle Bin. Note that there are two fields that are marked as External Id on the Account. These fields are Customer_Numberc and ERP_Keyc.

    Which two queries are optimized for large data volumes? (Choose two.)

    A. SELECT Id FROM Account WHERE Id IN :aListVariable
    B. SELECT Id FROM Account WHERE Name != '' AND IsDeleted = false
    C. SELECT Id FROM Account WHERE Name != NULL
    D. SELECT Id FROM Account WHERE Name != '' AND Customer_Numberc = 'ValueA'

  • Question 377:

    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

  • Question 378:

    What is a consideration when testing batch Apex? (Choose two.)

    A. Test methods must execute the batch with a scope size of less than 200 records
    B. Test methods must call the batch execute() method once
    C. Test methods must use the @isTest (SeeAllData=true) annotation
    D. Test methods must run the batch between Test.startTest() and Test.stopTest()

  • Question 379:

    A developer has built a multi-page wizard using a single Custom Controller to query and update data. Users are complaining that the pages are loading slowly.

    What will improve performance? (Choose three.)

    A. Reducing the view state
    B. Using actionRegion and rerender
    C. Turning off the standard stylesheet
    D. Setting the Apex Page attribute cache=true
    E. Using selective queries

  • Question 380:

    A developer created the code to perform an HTP GET request to an external system.

    public class ERPCatalog {

    private final String ERP_CATALOG_URL = 'http://sampleCatalog.com/cat';

    public String getERPCatalogContents() { Http h = new Http();

    HttpRequest req = new HttpRequest();

    req.setEndpoint(ERP_CATALOG_URL);

    req.setMethod('GET');

    HttpResponse res = h.send(req);

    return res.getBody();

    }

    }

    When the code is executed, the callout is unsuccessful and the following error appears within the Developer Console:System.CalloutException: Unauthorized endpoint

    Which recommended approach should the developer implement to the callout exception?

    A. create a remote site setting configuration that includes the endpoint.
    B. Annotate the getERPCatalogContents method With @Future (Callout-true)
    C. use the setHeader () method to specify Basic Authentication.
    D. Change the access modifier for ERPCatelog from Public to global

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.