- (Exam Topic 1)
Global with sharing class MyRemoter { public String accountName { get; set; } public static Account account
{ get; set; } public AccountRemoter(} {} @RemoteAction global static Account getAccount (String acccuntName) { account = [SELECT Id, Name, NumberOfEmployees FROM Account WHERE Name =
:accountName]; return account; } } Consider the Apex class above that defines a RemoteAction used on a
Visualforce search page. Which code snippet will assert that the remote action returned the correct Account?
Correct Answer:
B
- (Exam Topic 3)
An Apex trigger creates a Contract record every time an Opportunity record is marked as Closed end Won. This trigger is working great, except (due to a recent acquisition) historical Opportunity records need to be loaded into the Salesforce instance.
When a test batch of records are loaded, the Apex trigger creates Contract records. A developer is tasked with preventing Contract records from being created when mass loading the Opportunities, but the daily users still need to have the Contract records created.
What is the most extendable way to update the Apex trigger to accomplish this?
Correct Answer:
C
- (Exam Topic 1)
If a developer wanted to display error messages with the standard Salesforce Ul styling, what would they use?
Correct Answer:
A
- (Exam Topic 1)
What is the transaction limit on the max Salesforce CPU time?
Correct Answer:
D
- (Exam Topic 1)
Which API can b|e used to execute unit tests? (Choose three.)
Correct Answer:
CDE