can only be assigned one time?

A developer is implementing an Apex class for a financial system. Within the class, the variables ‘creditAmount’ and ‘debtAmount’ should not be able to change once a value is assigned. In which two ways can the developer declare the variables to ensure their value can only be assigned one time?...

June 6, 2021 No Comments READ MORE +

What should the developer do to ensure the data is available to the test?

A developer needs to have records with specific field values in order to test a new Apex class. What should the developer do to ensure the data is available to the test?A . Use Anonymous Apex to create the required data.B . Use SOQL to query the org for the...

June 5, 2021 No Comments READ MORE +

What is the appropriate publish/subscribe logic to meet these requirements?

Universal Containers (UC) decided it will not to send emails to support personnel directly from Salesforce in the event that an unhandled exception occurs. Instead, UC wants an external system be notified of the error. What is the appropriate publish/subscribe logic to meet these requirements?A . Publish the error event...

June 5, 2021 No Comments READ MORE +

Which action will allow the developer to relate records in the data model without knowing the Salesforce ID?

A developer needs to join data received from an integration with an external system with parent records in Salesforce. The data set does not contain the Salesforce IDs of the parent records, but it does have a foreign key attribute that can be used to identify the parent. Which action...

June 4, 2021 No Comments READ MORE +

When the code execution, which two events occur as a result of the Apex transaction?

Refer to the following code snippet for an environment has more than 200 Accounts belonging to the Technology' industry: When the code execution, which two events occur as a result of the Apex transaction? Choose 2 answersA . If executed in an asynchronous context, the apex transaction is likely to...

June 4, 2021 2 Comments READ MORE +

What are two ways that a controller and extension can be specified on a Visualforce page?

What are two ways that a controller and extension can be specified on a Visualforce page? Choose 2 answersA . a@pex:page=Account extends="myControllerExtension"B . Qo apex:page standardController="Account" extensions="myControllerExtension”C . apex:page controllers="Account, myControllerExtension”D . apex:page controller="Account” extensions="myControllerExtension"”View AnswerAnswer: B,D

June 4, 2021 No Comments READ MORE +

What is the value of the count field if an Account is inserted with an initial value of zero, assuming no other automation logic is implemented on the Account?

A developer writes a trigger on the Account object on the before update event that increments a count field. A workflow rule also increments the count field every time that an Account is created or updated. The field update in the workflow rule is configured to not re-evaluate workflow rules....

June 4, 2021 No Comments READ MORE +

Which two methods should the developer implement to fulfill the business requirement?

Universal Containers recently transitioned from Classic to Lighting Experience. One of its business processes requires certain value from the opportunity object to be sent via HTTP REST callout to its external order management system based on a user-initiated action on the opportunity page. Example values are as follow ✑ Name...

June 4, 2021 No Comments READ MORE +

Which approach should the developer to meet this requirement?

A developer is asked to create a Visualforce page for Opportunities that allows users to save or merge the current record. Which approach should the developer to meet this requirement?A . A custom controllerB . A custom controller extensionC . Visualforce page JavaScriptD . Standard controller methodsView AnswerAnswer: A

June 3, 2021 No Comments READ MORE +

Which method should a developer use to ensure only users that should be able to delete Accounts can successfully perform deletions?

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 successfully perform deletions?A . Schema.sObjectType.Account.isDeletable()B ....

June 3, 2021 No Comments READ MORE +