What is the result of the following code?

What is the result of the following code?A . The record will not be created and a exception will be thrown.B . The record will be created and a message will be in the debug log.C . The record will not be created and no error will be reported.D ....

January 11, 2021 No Comments READ MORE +

What are three techniques that a developer can use to invoke an anonymous block of code? (Choose three.)

What are three techniques that a developer can use to invoke an anonymous block of code? (Choose three.)A . Use the SOAP API to make a call to execute anonymous code.B . Create a Visualforce page that uses a controller class that is declared without sharing.C . Run code using...

January 11, 2021 1 Comment READ MORE +

Which statement is true about developing in a multi-tenant environment?

Which statement is true about developing in a multi-tenant environment?A . Governor limits prevent apex from impactiong the performance of multiple tenants on the same instanceB . Apex sharing controls access to records fomr multiple tenants on the same instanceC . Global apex classes can be referenced from multiple tenants...

January 10, 2021 No Comments READ MORE +

Which code should be used to update an existing Visualforce page that uses standard Visualforce components so that the page matches the look and feel of Lightning Experience?

Which code should be used to update an existing Visualforce page that uses standard Visualforce components so that the page matches the look and feel of Lightning Experience?A . <apex:page lightningStyleSheets=”true”>B . <apex:page>C . <apex:commandButton styleClass="slds-vf-button_brand" value="Refresh the Page">D . apex:actionStatusView AnswerAnswer: A

January 10, 2021 No Comments READ MORE +

Which Apex solution will let the developer implement this requirement?

A developer uses a loop to check each Contact in a list. When a Contact with the Title of “Boss” is found, the Apex method should jump to the first line of code outside of the for loop. Which Apex solution will let the developer implement this requirement?A . break;B...

January 10, 2021 No Comments READ MORE +

Which three statements are true regarding custom exceptions in Apex? (Choose three.)

Which three statements are true regarding custom exceptions in Apex? (Choose three.)A . A custom exception class must extend the system Exception class.B . A custom exception class can implement one or many interfaces.C . A custom exception class cannot contain member variables or methods.D . A custom exception class...

January 10, 2021 2 Comments READ MORE +

If apex code executes inside the execute() method of an Apex class when implementing the Batchable interface, which statement are true regarding governor limits? Choose 2 answers

If apex code executes inside the execute() method of an Apex class when implementing the Batchable interface, which statement are true regarding governor limits? Choose 2 answersA . The Apex governor limits might be higher due to the asynchronous nature of the transaction.B . The apex governor limits are reset...

January 9, 2021 No Comments READ MORE +

What is the correct definition of the Apex method?

A Next Best Action strategy uses an Enchance Element that invokes an Apex method to determine a discount level for a Contact, based on a number of factors. What is the correct definition of the Apex method?A . @InvocableMethod global static ListRecommendation getLevel(List<ContactWrapper> input) { /*implementation*/ }B . @InvocableMethod global...

January 8, 2021 No Comments READ MORE +

Which is the correct definition of the Apex method that gets additional information?

A Visual Flow uses an apex Action to provide additional information about multiple Contacts, stored in a custom class, contactInfo. Which is the correct definition of the Apex method that gets additional information?A . @InvocableMethod(label='Additional Info') public List<ContactInfo> getInfo(List<Id> contactIds) { /*implementation*/ }B . @InvocableMethod(label='additional Info') public static ContactInfo getInfo(Id...

January 6, 2021 No Comments READ MORE +

What should a developer do to ensure the code execution is disrupted if the retrievedRecordslist remains empty after the SOQL query?

Given the following block code: try{ List <Accounts> retrievedRecords = [SELECT Id FROM Account WHERE Website = null]; }catch(Exception e){ //manage exception logic } What should a developer do to ensure the code execution is disrupted if the retrievedRecordslist remains empty after the SOQL query?A . Check the state of...

January 6, 2021 No Comments READ MORE +