Question 7

- (Exam Topic 1)
A company represents their customers as Accounts that have an External ID field called
Customer_Number____c. They have a custom Order (Order____c) object, with a Lookup to Account, to represent Orders that are placed in their external order management system (OMS). When an order is fulfilled in the OMS, a REST call to Salesforce should be made that creates an Order record in Salesforce and retates it to the proper Account. What is the optimal way to implement this?

Correct Answer:B

Question 8

- (Exam Topic 1)
@isTest static void testAccountUpdate() { Account acct = new Account({Name = 'Test'); acct.Integration Updated_c = false; insert acct; CalloutUtil.sendAccountUpdate (acct.Id); Account acctAfter = [SELECT Id, Integration Updated_c FROM Account WHERE Id = :acct.Id] [0]; System.assert(true, acctAfter.Integration_Updated_c); } The test method above calls a web service that updates an external system with Account information and sets the Account's Integration_Updated c checkbox to True when it completes. The test fails to execute and exits with an error: "Methods defined as TestMethod do not support Web service callouts." What is the optimal way to fix this?

Correct Answer:B

Question 9

- (Exam Topic 1)
If the "PageReference.setRedirect" Apex function is set to True, what type of request is made?

Correct Answer:A

Question 10

- (Exam Topic 1)
What Visualforce tag can be used to display custom messages in pages using the Salesforce Ul styling for errors, warnings, and other types of messages?

Correct Answer:D

Question 11

- (Exam Topic 3)
Consider the following code snippet:
Platform-Developer-II dumps exhibit
The Apex method is executed in an environment with a large data volume count for Accounts, and the query Is performing poorly.
Which technique should the developer Implement to ensure the query performs optimally, while preserving the entire result set?

Correct Answer:D

Question 12

- (Exam Topic 1)
A developer is asked to build a solution that will automatically send an email to the Customer when an Opportunity stage changes. The solution must scale to allow for 10,000 emails per day. The criteria to send the email should be evaluated after all Workflow Rules have fired. What is the optimal way to accomplish this?

Correct Answer:D

START Platform-Developer-II EXAM