Which code block will accurately meet the business requirements?

A developer is asked to update data in an org based on new business rules. The new rules state that Accounts with the type set to 'Customer' should have a status of 'Active', and Accounts with the type set to 'Prospect' should have a status of 'Pending'. No other changes...

November 6, 2020 No Comments READ MORE +

Which feature of Apex code is required to facilitate this solution?

A developer is writing a Visualforce page that queries accounts in the system and presents a data table with the results. The users want to be able to filter the results based on up to five fields. However, the users want to pick the five fields to use as filter...

November 6, 2020 No Comments READ MORE +

Which change should the developer make to ensure the integration is not affected with minimal impact to business logic?

A developer created a new trigger that inserts a Task when a new Lead is created. After deploying to production, an outside integration is periodically reporting errors. Which change should the developer make to ensure the integration is not affected with minimal impact to business logic?A . Remove the Apex...

November 6, 2020 No Comments READ MORE +

What is the optimal way to achieve this?

A company wants to incorporate a third-party web service to set the Address fields when an Account is inserted, if they have not already been set. What is the optimal way to achieve this?A . Create a Process, call an Apex @future(callout=true) method from it, and make the callout from...

November 6, 2020 No Comments READ MORE +

What is the optimal way to implement this?

A Visualforce page contains an industry select list and displays a table of Accounts that have a matching value in their Industry field. <apex:selectList value="{!selectedIndustry}"> <apex:selectOptions values="{!industries}"/> </apex:selectList> When a user changes the value in the industry select list, the table of Accounts should be automatically updated to show the...

November 6, 2020 No Comments READ MORE +

Which SOQL query is valid on the Customer_Transaction__b Big Object?

Universal Containers uses Big Objects to store almost a billion customer transactions called Customer_Transaction__b. These are the fields on Customer_Transaction__b: Account__c Program__c Points_Earned__c Location__c Transaction_Date__c The following fields have been identified as Index Fields for the Customer_Transaction__b object: Account__c, Program__c, and Transaction_Date__c. Which SOQL query is valid on the Customer_Transaction__b...

November 6, 2020 No Comments READ MORE +

What is the optimal way to fix this?

The test method above calls an @future method that increments the Number_of_Times_Viewed__c value. The assertion is failing because the Number_of_Times_Viewed__c equals 0. @isTest static void testIncrement() { Account acct = new Account(Name = 'Test'); acct.Number_Of_Times_Viewed__c = 0; insert acct; AuditUtil.incrementViewed(acct.Id); Account acctAfter = [SELECT Number_Of_Times_Viewed__c FROM Account WHERE Id =...

November 6, 2020 No Comments READ MORE +

What is wrong with it?

Consider the Apex controller above, that is called from a Lightning Aura Component. What is wrong with it?A . Line 1: class must be globalB . Lines 1 and 6: class and method must be globalC . Line 6: method must be staticD . Line 8: method must first serialize...

November 5, 2020 No Comments READ MORE +

Which component should be added to the Visualforce page to display the message?

A custom Visualforce controller calls the ApexPages.addMessage() method, but no messages are rendering on the page. Which component should be added to the Visualforce page to display the message?A . <apex:message for="info"/>B . <apex:facet name="messages" />C . <apex:pageMessage severity="info" />D . <apex:pageMessages />View AnswerAnswer: D

November 5, 2020 No Comments READ MORE +

What is the optimal way to automate this?

A company has a custom object, Sales Demo Request, that has a lookup to an Opportunity. It is required that a Sales Demo Request record be created when an Opportunity’s Probability is greater than 50%. What is the optimal way to automate this?A . Use an Apex Trigger on Opportunity.B...

November 5, 2020 No Comments READ MORE +