
SalesforceCertified Platform Developer II
Domain 3Objective 1
Apex Fundamentals and Best Practices PLATFORM-DEVELOPER-II Practice Questions (Page 3)
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 11–15
- 11
An Apex method inserts a list of Accounts and then updates a list of Contacts. The Contact update fails because one Contact has an invalid email. The developer wants to ensure that if the Contact update fails, the Account insert is also rolled back. Which approach should be used?
Select an answer first - 12
What is the return type of a SOSL query in Apex?
Select an answer first - 13
What is the return type of a SOQL query that is assigned to a variable using the syntax `List<Account> accs = [SELECT Id FROM Account];`?
Select an answer first - 14
A developer needs to write a method that queries records from an object whose API name is stored in a custom setting. The query must be built at runtime because the object name is not known at compile time. Which approach should be used?
Select an answer first - 15
An Apex method performs a DML operation that may throw a DmlException. The developer wants to ensure that some cleanup code runs regardless of whether the DML succeeds or fails. Which block should be used?
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.