Examers.io
ExamsOrganizationsHow it worksPricingHelp & FAQ
Salesforce logo

SalesforceCertified Platform Developer II

Domain 3Objective 1

Apex Fundamentals and Best Practices PLATFORM-DEVELOPER-II Practice Questions (Page 1)

Part of the LOGIC AND PROCESS AUTOMATION domain, which accounts for 7% of the PLATFORM-DEVELOPER-II exam.

18questions here
4free pages
5concepts
7%of the exam

Questions 1–5

  1. 1application · medium

    A developer is writing a batch Apex class that processes up to 10,000 Account records. Inside the execute method, the code queries related Contacts for each Account using a SOQL query inside a for loop, then updates the Contacts. The developer notices that the batch job frequently fails with a System.LimitException. Which change will most effectively resolve the issue?

    Select an answer first
  2. 2expert · hard

    An Apex method performs a series of DML operations: it inserts Accounts, then updates Contacts, and finally inserts Opportunities. The developer wants to ensure that if any DML operation fails, the entire transaction is rolled back, but also wants to log the error and send an email notification. Which approach should be used?

    Select an answer first
  3. 3application · medium

    A developer writes a method that returns the first Account record that matches a given name. The method uses a SOQL query. Which return type should the method declare?

    Select an answer first
  4. 4foundation · easy

    A developer needs to construct a SOQL query at runtime where the field name is stored in a variable. Which dynamic Apex feature should be used?

    Select an answer first
  5. 5foundation · easy

    In an Apex transaction, what is the purpose of a savepoint?

    Select an answer first
Finished these 5 questions?

Review the revealed explanations, or continue through the curriculum.

Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by Salesforce. “PLATFORM-DEVELOPER-II” is a trademark of its owner, used for identification only.