MultipleChoice
A developer must write an Apex method that will be called from a Lightning component. The method may delete an account stored in the accountRec variable. Which method should a developer use to ensure only users that should be able to delete Accounts can succesfully perform deletions?
OptionsMultipleChoice
custom picklist field, Food_Preference__c, exist on a custom object. The picklist contains the following options: 'Vegan','Kosher','No Preference'. The developer must ensure a value is populated every time a record is created or updated. What is the most efficient way to ensure a value is selected every time a record is saved?
OptionsMultipleChoice
Which three web technologies can be integrated into a Visualforce page? Choose 3 answares
OptionsMultipleChoice
Universal Containers implemented a private sharing model for the Account object. A custom Account search tool was developed with Apex to help sales representatives find accounts that match multiple criteria they specify. Since its release, users of the tool report they can see Accounts they do not own. What should the developer use to enforce sharing permission for the currently logged-in user while using the custom search tool?23wa
OptionsMultipleChoice
Which feature should a developer use to update an inventory count on related Product records when the status of an Order is modified to indicate it is fulfilled?
OptionsMultipleChoice
What is the result of the following Classes page?
OptionsMultipleChoice
A developer must modify the following code snippet to prevent the number of SOQL queries issued from exceeding the platform governor limit. public class without sharing OpportunityService( public static List<OpportunityLineItem> getOpportunityProducts(Set<Id> opportunityIds){ List<OpportunitylineItem> oppLineItems = new List<OpportunityLineItem>(); for(Id thisOppId : opportunityIds){ oppLineItems.addAll([Select Id FROM OpportunityLineItems WHERE OpportunityId = :thisOppId)]; } return oppLineItems; } } The above method might be called during a trigger execution via a Lightning component. Which technique should be implemented to avoid reaching the governor limit?
OptionsMultipleChoice
A developer considers the following snippet of code: Boolean isOK; integer x; String theString = 'Hello'; if (isOK == false && theString == 'Hello') { x = 1; } else if (isOK == true && theString =='Hello') { x = 2; } else if (isOK != null && theString == 'Hello') { x = 3; } else { x = 4; } Based on this code, what is the value of x?
Options