What is wrong?
Consider the controller code above that is called from a Lightning component and returns data wrapped in a class. Consider the controller code above that is called from a Lightning component and returns data wrapped in a class. The developer verified that the Queries return a single record each and...
Which use case is an appropriate fit for the ©future asynchronous Apex method? (Choose two.)
Which use case is an appropriate fit for the ©future asynchronous Apex method? (Choose two.)A . A developer has jobs that need larger query results than regular transactions allowB . A developer needs to segregate DML operations and bypass the mixed save DML errorC . A developer has long-running jobs...
What is the optimal way to fix this?
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...
What is a benefit of JavaScript remoting over Visualforce Remote Objects?
What is a benefit of JavaScript remoting over Visualforce Remote Objects?A . Allows for specified re-render targetsB . Does not require any Apex codeC . Does not require any JavaScript codeD . Supports complex server-side application logicView AnswerAnswer: D
What is the optimal technique a developer should use to programmatically retrieve Global Picklist options in a Test Method?
What is the optimal technique a developer should use to programmatically retrieve Global Picklist options in a Test Method?A . Use the Schema namespace.B . Use a static resource.C . Perform a callout to the Metadata APE . Perform a SOQL Query.View AnswerAnswer: A
What is the optimal way to implement this?
A company represents their customers as Accounts in Salesforce. All customers have a unique Customer_Number__c that is unique across all of the company’s systems. They also have a custom Invoice__c object, with a Lookup to Account, to represent invoices that are sent out from their external system. This company wants...
Which is the optimal method to implement this in Salesforce?
A company has a native iOS app for placing orders that needs to connect to Salesforce to retrieve consolidated information from many different objects in a JSON format. Which is the optimal method to implement this in Salesforce?A . Apex REST Web ServiceB . Apex SOAP Web ServiceC . Apex...
Which code snippet will assert that the remote action returned the correct Account?
Consider the Apex class above that defines a RemoteAction used on a Visualforce search page. global with sharing class MyRemoter { public String accountName { get; set; } public static Account account { get; set; } public AccountRemoter() {} @RemoteAction global static Account getAccount(String accountName) { account = [SELECT Id,...
Which two of the examples above have correct System.debug statements? (Choose two.)
Which two of the examples above have correct System.debug statements? (Choose two.) Example 1: AggregateResult[] groupedResults = [SELECT CampaignId, AVG(Amount) FROM Opportunity GROUP BY CampaignId]; for (AggregateResult ar : groupedResults) { System.debug('Campaign ID' + ar.get('CampaignId')); System.debug('Average amount' + ar.get('expr0')); } Example 2: AggregateResult[] groupedResults = [SELECT CampaignId, AVG(Amount) theAverage FROM...
Which are relevant practices while analyzing the timeline of different types of transactions in the execution overview panel? (Choose two.)
Which are relevant practices while analyzing the timeline of different types of transactions in the execution overview panel? (Choose two.)A . Log lines in the execution log panel can be analyzed for details about specific eventsB . The performance tree should be use to analyze events further starting from the...