Which statement generates a list of Leads and Contacts that have a field with the phrase 'ACME'?

Which statement generates a list of Leads and Contacts that have a field with the phrase 'ACME'?A . List <sObject> searchList = (FIND "*ACME*" IN ALL FIELDS RETURNING Contact, Lead);B . List<List <sObject>> searchList = (FIND "*ACME*" IN ALL FIELDS RETURNING Contact, Lead);C . Map <sObject> searchList = (FIND "*ACME*"...

January 15, 2021 No Comments READ MORE +

Which approach can efficiently generate the required data for each unit test?

A developer needs to create a baseline set of data (Accounts, Contacts, Products, Assets) for an entire suite of test allowing them to test independent requirements various types of Salesforce Cases. Which approach can efficiently generate the required data for each unit test?A . Use @TestSetup with a viod method.B...

January 15, 2021 No Comments READ MORE +

What is the practice to get the sum of all order line totals on the order header?

Universal Container use a simple order Management app. On the Order Lines, the order line total is calculated by multiplying the item price with the quantity ordered. There is a Master-Detail relationship between the Order and the Order Lines object. What is the practice to get the sum of all...

January 14, 2021 No Comments READ MORE +

In which two ways can the developer declare the variables to ensure their value 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?...

January 14, 2021 No Comments READ MORE +

Which two statements enable the developer to save the records to the database without an Id?

A developer needs to save a List of existing Account records named myAccounts to the database, but the records do not contain Salesforce Id values. Only the value of a custom text field configured as an External ID with an API name of Foreign_Key__c is known. Which two statements enable...

January 14, 2021 No Comments READ MORE +

What are three considerations when using the @InvocableMethod annotation in Apex? Choose 3 answers

What are three considerations when using the @InvocableMethod annotation in Apex? Choose 3 answersA . A method using the @InvocableMethod annotation must define a return value.B . A method using the @InvocableMethod annotation can have multiple input parameters.C . A method using the @InvocableMethod annotation must be declared as staticD...

January 14, 2021 No Comments READ MORE +

What should the developer do to provide the custom user interface?

A developer must provide a custom user interface when users edit a Contact. Users must be able to use the interface in Salesforce Classic and Lightning Experience. What should the developer do to provide the custom user interface?A . Override the Contact’s Edit button with a Visualforce page in Salesforce...

January 13, 2021 No Comments READ MORE +

Which three resources in an Azure Component can contain JavaScript functions?

Which three resources in an Azure Component can contain JavaScript functions?A . ControllersB . helperC . DesignD . StyleE . RendererView AnswerAnswer: A,B,E

January 13, 2021 No Comments READ MORE +

What should the developer do to fulfill the business request in the quickest and most effective manner?

Universal Containers has large number of custom applications that were built using a third-party javaScript framework and exposed using Visualforce pages. The Company wants to update these applications to apply styling that resembles the look and feel of Lightning Experience. What should the developer do to fulfill the business request...

January 13, 2021 No Comments READ MORE +

A developer must implement a CheckPaymentProcessor class that provides check processing payment capabilities that adhere to what defined for payments in the PaymentProcessor interface. public interface PaymentProcessor { void pay(Decimal amount); } Which is the correct implementation to use the PaymentProcessor interface class?

A developer must implement a CheckPaymentProcessor class that provides check processing payment capabilities that adhere to what defined for payments in the PaymentProcessor interface. public interface PaymentProcessor { void pay(Decimal amount); } Which is the correct implementation to use the PaymentProcessor interface class?A . Public class CheckPaymentProcessor implements PaymentProcessor {...

January 13, 2021 1 Comment READ MORE +