
SalesforceCertified Platform Developer II
Domain 3Objective 1
Apex Fundamentals and Best Practices PLATFORM-DEVELOPER-II Practice Questions (Page 2)
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 6–10
- 6
Which exception class is specifically designed to catch errors that occur when a DML operation fails due to a database constraint, such as a required field missing or an invalid value?
Select an answer first - 7
A developer needs to write a generic method that updates any sObject type passed in as a parameter. The method should not use a hard-coded object name. Which dynamic Apex feature should be used?
Select an answer first - 8
A developer needs to insert a record of an sObject type that is only known at runtime. Which dynamic Apex feature should be used?
Select an answer first - 9
Which technique is most effective for avoiding DML governor limit violations when updating a list of records?
Select an answer first - 10
An Apex method performs several DML operations. After inserting Accounts, it updates Contacts, but the Contact update fails due to a validation rule. The developer wants to preserve the Account insert while rolling back only the Contact update. Which approach 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.