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...

June 8, 2020 No Comments READ MORE +

Which design resource configuration should be used?

A company wants to build a custom Lightning Component that will display a specified Account Field Set and that can only be added to the Account record page. Which design resource configuration should be used?A . <design:component label="Account FS Component"> <design:attribute name="fieldSetName" Label="Field Set Name" /> <sfdc:objects> <sfdc:object>FieldSet</sfdc:object> </sfdc:objects> </design:component>B...

June 8, 2020 No Comments READ MORE +

Which two statements are true regarding these issues and resolution?

A large company uses Salesforce across several departments. Each department has its own Salesforce Administrator. It was agreed that each Administrator would have their own sandbox in which to test changes. Recently, users notice that fields that were recently added for one department suddenly disappear without warning. Also, Workflows that...

June 8, 2020 No Comments READ MORE +

Which scenario necessitates that the callout be made in an @future method?

A developer is writing code that requires making callouts to an external web service. Which scenario necessitates that the callout be made in an @future method?A . The callouts will be made in an Apex Trigger.B . The callouts will be made in an Apex Test class.C . The callout...

June 7, 2020 No Comments READ MORE +

What is the optimal way to accomplish this?

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...

June 7, 2020 No Comments READ MORE +

Which strategy can a developer use to improve the performance?

A Visualforce page loads slowly due to the large amount of data it displays. Which strategy can a developer use to improve the performance?A . Use Javascript to move data processing to the browser instead of the controller.B . Use the transient keywords for the List variables used in the...

June 7, 2020 No Comments READ MORE +

Which change should the developer make to ensure the integration is not affected with minimal impact to business logic?

A developer created a new trigger that inserts a Task when a new Lead is created. After deploying to production, an outside integration is periodically reporting errors. Which change should the developer make to ensure the integration is not affected with minimal impact to business logic?A . Remove the Apex...

June 6, 2020 No Comments READ MORE +

What is the correct way to automate this using an Apex trigger?

A company's support process dictates that any time a Case is closed with a Status of 'Could not fix', an Engineering Review custom object record should be created and populated with information from the Case, the Contact, and any of the Products associated with the Case. What is the correct...

June 6, 2020 No Comments READ MORE +

Which two relationship queries use the proper syntax? (Choose two.)

Which two relationship queries use the proper syntax? (Choose two.)A . SELECT Id, Name, Account__r.Name FROM Contact WHERE Account__r.Industry ='Media'B . SELECT Name, (SELECT LastName FROM Contacts__r) FROM AccountC . SELECT Name, (SELECT LastName FROM Contacts) FROM AccountD . SELECT Id, Name, Account.Name FROM Contact WHERE Account.Industry = 'Media'View AnswerAnswer:...

June 6, 2020 No Comments READ MORE +

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...

June 5, 2020 No Comments READ MORE +