What is the optimal way to implement these requirements?

An org has a requirement that an Account must always have one and only one Contact listed as Primary. So selecting one Contact will de-select any others. The client wants a checkbox on the Contact called 'Is Primary' to control this feature. The client also wants to ensure that the...

March 5, 2021 No Comments READ MORE +

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

March 5, 2021 No Comments READ MORE +

Which solution solves these requirements?

Universal Containers wants to use a Customer Community with Customer Community Plus licenses so their customers can track how many containers they are renting and when they are due back. Many of their customers are global companies with complex Account hierarchies, representing various departments within the same organization. One of...

March 5, 2021 No Comments READ MORE +

What is wrong with it?

Consider the Apex controller above, that is called from a Lightning Aura Component. What is wrong with it?A . Line 1: class must be globalB . Lines 1 and 6: class and method must be globalC . Line 6: method must be staticD . Line 8: method must first serialize...

March 4, 2021 No Comments READ MORE +

How can the developer generate the code coverage?

An Apex class does not achieve expected code coverage. The testSetup method explicitly calls a method in the Apex class. How can the developer generate the code coverage?A . Verify the user has permissions passing a user into System.runAs().B . Call the Apex class method from a testMethod instead of...

March 4, 2021 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...

March 4, 2021 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...

March 4, 2021 No Comments READ MORE +

Which two changes should a developer make in this trigger to adhere to best practices?

Consider the above trigger intended to assign the Account to the manager of the Account’s region. trigger AssignOwnerByRegion on Account ( before insert, before update ) { List<Account> accountList = new List<Account>(); for( Account anAccount : trigger.new ) { Region__c theRegion = [ SELECT Id, Name, Region_Manager__c FROM Region__c WHERE...

March 4, 2021 No Comments READ MORE +

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

March 4, 2021 No Comments READ MORE +

What is the optimal way for a developer to fix the issue?

A company has many different unit test methods that create Account records as part of their data setup. A new required field was added to the Account and now all of the unit tests fail. What is the optimal way for a developer to fix the issue?A . Add a...

March 3, 2021 No Comments READ MORE +