What is the most extendable way to update the Apex Trigger to accomplish this?

An Apex Trigger creates a Contract record every time an Opportunity record is marked as Closed and 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 is loaded, the Apex...

May 31, 2020 No Comments READ MORE +

Which method of integration is optimal?

A company has a web page that needs to get Account record information, given its Salesforce record ID, from JavaScript on the page and then display it. Which method of integration is optimal?A . REST APIB . Apex SOAP Web ServiceC . Soap APID . Apex REST Web ServiceView AnswerAnswer:...

May 31, 2020 No Comments READ MORE +

What is the best way to implement this?

A developer wishes to improve runtime performance of Apex calls by caching results on the client. What is the best way to implement this?A . Decorate the server-side method with @AuraEnabled(cacheable=true).B . Set a cookie in the browser for use upon return to the page.C . Call the setStorable() method...

May 30, 2020 No Comments READ MORE +

What change should be applied to the component?

A Lightning Component functions in preview mode and needs to be used inside a Lightning App Builder page, but it is not available. What change should be applied to the component?A . Expose it in the markup using the implements and access attributes.B . Delete the component, metadata, and Apex...

May 30, 2020 No Comments READ MORE +

Which functionality consideration impacts the final decision?

A developer is trying to decide between creating a Visualforce component or a Lightning component for a custom screen. Which functionality consideration impacts the final decision?A . Does the screen need to be rendered as a PDF?B . Does the screen need to be accessible from the Lightning Experience UI?C...

May 30, 2020 No Comments READ MORE +

What is the optimal way to implement this?

A Visualforce page contains an industry select list and displays a table of Accounts that have a matching value in their Industry field. <apex:selectList value="{!selectedIndustry}"> <apex:selectOptions values="{!industries}"/> </apex:selectList> When a user changes the value in the industry select list, the table of Accounts should be automatically updated to show the...

May 30, 2020 No Comments READ MORE +

What can a developer to do address the issue?

A company notices that their unit tests in a test class with many methods to create many records for prerequisite reference data are slow. What can a developer to do address the issue?A . Move the prerequisite reference data setup to a TestDataFactory and call that from each test method.B...

May 29, 2020 No Comments READ MORE +

What will happen when the mass update occurs?

An environment has two Apex Triggers: an after-update trigger on Account and an after-update trigger on Contact. The Account after-update trigger fires whenever an Account’s address is updated, and it updates every associated Contact with that address. The Contact after-update trigger fires on every edit, and it updates every Campaign...

May 29, 2020 No Comments READ MORE +

Given a list of Opportunity records named opportunityList, which code snippet is best for querying all Contacts of the Opportunity’s Account?

Given a list of Opportunity records named opportunityList, which code snippet is best for querying all Contacts of the Opportunity’s Account?A . List <Contact> contactList = new List <Contact>(); for(Opportunity o : opportunityList){ Account a = [SELECT Id, (SELECT Id FROM Contacts) FROM Account WHERE Id = :o.AccountId] contactList.addAll(a.Contacts); )B...

May 29, 2020 No Comments READ MORE +

What is the optimal way for a developer to get the total number of Opportunities for the Lightning Component?

Part of a custom Lightning Component displays the total number of Opportunities in the org, which is in the millions. The Lightning Component uses an Apex Controller to get the data it needs. What is the optimal way for a developer to get the total number of Opportunities for the...

May 29, 2020 No Comments READ MORE +