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 11:

    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?

    A. Add @testVisible to the method in the class the developer is testing.
    B. Use system.assert() in testSetup to verify the values are being returned.
    C. Call the Apex class method from a testMethod instead of the testSetup method.
    D. Verify the user has permissions passing a user into System.runAs().

  • Question 12:

    What is a recommended practice with regard to the Apex CPU limit? (Choose two.)

    A. Optimize SOQL query performance
    B. Use Map collections to cache sObjects
    C. Avoid nested Apex iterations
    D. Reduce view state in Visualforce pages

  • Question 13:

    A developer has a requirement to query three fields (Id, Name, Type) from an Account and the FirstName and LastName for all Contacts associated with the Account.

    Which option is the preferred optimized method to achieve this for the Account named Ozone Electronics?

    A. Account a = [SELECT Id, Name, Type FROM Account WHERE Name = 'Ozone Electronics'];List<Contact> lContacts = [SELECT FirstName, LastNameFROM ContactWHERE AccountId = :a.Id];
    B. Account a = [SELECT Id, Name, Type,(SELECT FirstName, LastName FROM Contacts)FROM AccountWHERE Name = 'Ozone Electronics'LIMIT 1];
    C. List<Contact> lContacts = new List<Contact>();for (Contact c : [SELECT FirstName, LastName, Account.Name, Account.Id, Account.TypeFROM ContactWHERE Account.Name = 'Ozone Electronics']) {lContacts.add(c);}
    D. List<Account> lAccounts = [SELECT Id, Name, TypeFROM AccountJOIN (SELECT Id, FirstName, LastNameFROM ContactWHERE Contact.Account.Name = 'Ozone Electronics')];

  • Question 14:

    A company represents their customers as Accounts in Salesforce. All customers have a unique Customer_Number__c that is unique across all of the company's systems. They also have a custom Invoice__c object, with a Lookup to Account, to represent invoices that are sent out from their external system. This company wants to integrate invoice data back into Salesforce so Sales Reps can see when a customer is paying their bills on time.

    What is the optimal way to implement this?

    A. Use Salesforce Connect and external data objects to seamlessly import the invoice data into Salesforce without custom code.
    B. Ensure Customer_Number__c is an External ID and that a custom field Invoice_Number__c is an External ID and Upsert invoice data nightly.
    C. Create a cross-reference table in the custom invoicing system with the Salesforce Account ID of each Customer and insert invoice data nightly.
    D. Query the Account Object upon each call to insert invoice data to fetch the Salesforce ID corresponding to the Customer Number on the invoice

  • Question 15:

    What is the transaction limit for the number of SOSL queries?

    A. 20
    B. 2,000
    C. 100 (synchronous), 200 (async)
    D. 200 (synchronous), 100 (async)
    E. There is no limit

  • Question 16:

    How many Territories can an instance of salesforce have?

    A. 400
    B. 200
    C. 1000
    D. 100
    E. 500

  • Question 17:

    Customer billing data must be added and updated into Salesforce from a remote system on a weekly basis. Additionally, customer activity information must be extracted from Salesforce and put it into an on-premises data warehouse on a weekly basis.

    Which approach should be used to import data into Salesforce and export data out of Salesforce, taking into consideration that these imports and exports can interfere with end-user operations during business hours and involve large amounts of data?

    A. Batch Apex, where Salesforce pushes data to and pulls data from the remote systems
    B. Replication via third-party ETL to push data into Salesforce and pull data out in batches
    C. Salesforce Connect to push data to and pull data from the remote systems
    D. Call-in directly from each remote system to Salesforce APIs to push and pull the data

  • Question 18:

    A developer is creating a Lightning web component to display a calendar. The component will be used in multiple countries. In some locales, the first day of the week is a Monday, or a Saturday, or a Sunday.

    What should the developer do to ensure the calendar displays accurately for users in every locale?

    A. Use a custom metadata type to store key/value pairs.
    B. Query the FirstDayOfWeek field from the Locale for the current user.
    C. Use UserInfo.getLocale() in the component.
    D. Import the @salesforce/i18n module and use the firstDayOfWeek internationalization property.

  • Question 19:

    What is the transaction limit on the max execution time?

    A. 5 minutes
    B. 10 minutes
    C. 15 minutes
    D. 20 minutes
    E. There is no limit

  • Question 20:

    Given a list of Opportunity records named opportunityList, which code snippet is best for querying all Contacts of the Opportunity's Account?

    A. Option A
    B. Option B
    C. Option C
    D. Option D

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.