
SalesforceCertified Platform Developer II
Domain 7Objective 2
Describe How to Apply Different Techniques to Create Test Data and Responses. PLATFORM-DEVELOPER-II Practice Questions (Page 2)
Part of the TESTING domain, which accounts for 7% of the PLATFORM-DEVELOPER-II exam.
33questions here
7free pages
8concepts
7%of the exam
Questions 6–10
- 6
Which method is used to run a block of code as a specific user in a test?
Select an answer first - 7
Which interface must be implemented to mock an Apex web service callout in a test?
Select an answer first - 8
A developer is testing a class that calls both an Apex web service and an HTTP callout. The developer needs to mock both in the same test. Which approach is correct?
Select an answer first - 9
A developer is writing a test for a class that inserts a large number of records. The test needs to create 500 Account records with a required custom field. Which technique is most efficient for creating this test data?
Select an answer first - 10
A developer is writing a test for a trigger that enforces a business rule: an Opportunity cannot be inserted unless its related Account has a certain custom field set to 'Active'. The developer wants to test both the success and failure scenarios. Which approach is best?
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.