Which two trigger types should the developer create?

A developer needs to update an unrelated object when a record gets saved. Which two trigger types should the developer create?A . After insertB . After updateC . Before updateD . Before insertView AnswerAnswer: C,D

March 20, 2022 No Comments READ MORE +

Which two techniques should the developer implement as a best practice to ensure transaction control and avoid exceeding governor limits?

A developer has to identify a method in en Apex class that performs resource intensive actions in memory by iterating over the result set of a SOQL statement on the account. The method also performs a SOQL statement to save the changes to the database. Which two techniques should the...

March 20, 2022 No Comments READ MORE +

What occurs when more than one Account is returned by the SOQL query?

Given the following Apex statement: Account myAccount = [SELECT Id, Name FROM Account]; What occurs when more than one Account is returned by the SOQL query?A . The variable, myAccount, is automatically cast to the List data type.B . The first Account returned is assigned to myAccount.C . The query...

March 19, 2022 No Comments READ MORE +

How can the developer resolve the error?

A developer receives an error when trying to call a global server-side method using the ©remoteAction decorator. How can the developer resolve the error?A . Change the function signature to be private static.B . Add static to the server-side method signature.C . A Decorate the server-side method with (static=true).D ....

March 19, 2022 No Comments READ MORE +

How many times will the trigger fire if a new Account is inserted, assuming no other automation logic is implemented on the Account?

A developer writes a single trigger on the Account object on the after insert and after update events. A workflow rule modifies a field every time an Account is created or updated. How many times will the trigger fire if a new Account is inserted, assuming no other automation logic...

March 19, 2022 No Comments READ MORE +

What should the developer use to override the Contact's Edit button and provide this functionality?

A developer must provide custom user interfaces when users edit a Contact in either Salesforce Classic or Lightning Experience. What should the developer use to override the Contact's Edit button and provide this functionality?A . A Visualforce page in Salesforce Classic and a Lightning component in Lightning ExperienceB . A...

March 19, 2022 No Comments READ MORE +

How can the developer make sure that validation rule violations are displayed?

A developer has a VF page and custom controller to save Account records. The developer wants to display any validation rule violation to the user. How can the developer make sure that validation rule violations are displayed?A . Add custom controller attributes to display the message.B . Include <apex:messages> on...

March 19, 2022 No Comments READ MORE +

Which relationship implementation supports these requirements?

A developer has the following requirements: Calculate the total amount on an Order. Calculate the line amount for each Line Item based on quantity selected and price. Move Line Items to a different Order if a Line Item is not stock. Which relationship implementation supports these requirements?A . Line Items...

March 18, 2022 No Comments READ MORE +

Which code segment shows the correct declaration of the class and methods?

A developer needs to implement a custom SOAP Web Service that is used by an external Web Application. The developer chooses to Include helper methods that are not used by the Web Application In the Implementation of the Web Service Class. Which code segment shows the correct declaration of the...

March 18, 2022 No Comments READ MORE +

Which standard field is required when creating a new contact record?

Which standard field is required when creating a new contact record?A . LastNameB . NameC . AccountIdD . FirstNameView AnswerAnswer: A

March 18, 2022 No Comments READ MORE +