PD2 Flashcards
A
A company has a custom object. Order__c, that has a custom picklist field. Status__c, with values of New, In Progress,’ or Fulfilled and a
lookup field, Contact_c, to Contact. Which SOQL query wrii return a unique list of all the Contact records that have no Fulfilled Orders?
A . SELECT Contact_c From order_c Where id NOT IN (SELECT id FROM_c Where States_c + Fulfilled’)
B . SELECT iD FROM Contact WHERE id NOT IN (SELECT id From order_c WHERE_c = Fulfilled’)
C . SELECT Contact_c FROM Order_c Where Status_c <> ;Fulfilled’
D . SELECT id FROM Contact WHERE id NOT IN (SELECT Contact _c FROM order_c Where Status_c = fulfilled’)
D
A company has a custom component that allows users to search for records of a certain object type by invoking an Apex Controller that returns a list of results based on the user’s input, when the search Is completed, a searchComplete event is fired, with the results put in a results aribute of the event. The component is designed to be used within other components and may appear on a single page more than once.
What is the opmal code that should be added to fire the event when the search has completed?
A.
var evt = component.getEvent(“searchComplete”);
evt. setParams([results: results]);
evt. fire();
B.
var evt = $A.get(“e.c.searchComplete”);
evt. setParams([results: results]);
evt. fire();
C.
var evt = component.getEvent(“searchComplete”);
evt. setParams([“v.results”, results]);
evt. fire();
D.
var evt = $A.get(“e.c.searchComplete”);
evt. setParams([“v.results”, results]);
evt. fire();
B
D
Consider the controller code above that is called from a Lightning component and returns data wrapped in a class.
Consider the controller code above that is called from a Lightning component and returns data wrapped in a class.
The developer verified that the Queries return a single record each and there is error handing in the Lightning component, but the component is not getting anything back when calling the controller getSomeData().
What is wrong?
A . The member’s Name and Option of the class MyDataWrapper should be annotated with @AuraEnabled too.
B . The member’s Name and Option should not be declared public.
C . The member’s Name and Option should not have get and set.
D . Instances of Apex classes such as MyDataWrapper cannot be returned to a Lightning component.
A
A
A,D
When should you use the ‘transient’ property on variables?
A . Variables that you want transmied as part of the view state. Stac variables also don’t get transmied
B . Variables that you don’t want transmied as part of the view state. Stac variables also don’t get transmied C . Stac variables that you want transmied as part of the view state to save space
D . Large variables in order to save space
B
if the ‘PageReference.setRedirect’ Apex function is set to False, what type of request is made?
A . Get request
B . Postback request
C . If PageReference points to the same controller and subset of extensions, postback request, otherwise get request
C
If the ‘PageReference.setRedirect’ Apex funcon is set to True, what type of request is made?
A . Get request
B . Postback request
C . If PageReference points to the same controller and subset of extensions, postback request, otherwise get request
A
The ‘acon’ aribute on is ONLY evaluated on which type of request?
A . Get request
B . Postback request
A
What is the correct order of execuon for Visualforce Page ‘postback’ requests (when user interacon requires a page update)?
A . 1) Decode View State
2) Evaluate expressions and method calls for the main page and custom components 3) Upon successful compleon, Evaluate the acon that triggered the postback
4) Upon successful compleon, Update data and redirect user/update view state
5) HTML sent to browser
B . 1) Evaluate expressions and method calls for the main page and custom components 2) Decode View State
3) Upon successful compleon, Update data and redirect user/update view state
4) Upon successful compleon, Evaluate the acon that triggered the postback
5) HTML sent to browser
C . 1) Decode View State
2) Evaluate expressions and method calls for the main page and custom components
3) Upon successful compleon, Update data and redirect user/update view state
4) Upon successful compleon, Evaluate the acon that triggered the postback
5) HTML sent to browser
A
If you have a method ‘doStuff(List<sobject> records)', which is a valid call?</sobject>
A . doStuff([Select Id From Account]); B . doStuff(List records);
C . doStuff(Account acct);
D . doStuff(sObject obj);
A
During the Visualforce Page execuon, what step follows immediately aer ‘Evaluate constructors on controller and extensions’?
A . Create the view state
B . Evaluate constructors, extensions, and expression on aribute definions on any custom components present C . Evaluate expressions, aribute acons, and other method calls (geers/seers) on main page
D . Send HTML to Browser
B
The ‘Webservice’ keyword___________.
A . Method must be stac, and class must be global
B . Can be used on all classes
C . Used for any member variables included
D . All of the above
D
What is the transacon limit on the number of ‘sendEmail’ method calls?
A . 20
B . 10
C . 50
D . 100
E . There is no limit Explanaon Explanaon/Reference:
B
What is the correct order of execuon for Visualforce Page ‘get’ requests (inial page visit)?
A . Evaluate constructors on controller and extensions
2) If there’s a element, create the view state
3) Evaluate expressions, aribute acons, and other method calls (geers/seers) on main page
4) Evaluate constructors, extensions, and expression on aribute definions on any custom components present
5) Send HTML to Browser
B . Evaluate constructors, extensions, and expression on aribute definions on any custom components present
2) Evaluate constructors on controller and extensions
3) Evaluate expressions, aribute acons, and other method calls (geers/seers) on main page
4) If there’s a element, create the view state
5) Send HTML to Browser
C . Evaluate constructors on controller and extensions
2) Evaluate constructors, extensions, and expression on aribute definions on any custom components present 3) Evaluate expressions, aribute acons, and other method calls (geers/seers) on main page
4) If there’s a element, create the view state
5) Send HTML to Browser
C
A developer writes the following code:
While tesng the code, the developer receives the following error message: System.CalloutExcepon : You have uncommied work pending What should the developer do? (Choose two.)
A . Use the asyncSend() method of the HTTP class to send the request in async context B . Ensure all callouts are completed prior to execung DML statements C . Move the web service callout into an future method D . Use Database.insert (order, true) to immediately commit any database changes
B,C
A developer has a page with two extensions overriding the Standard controller for Case.
What will happen when a user clicks the command button?
A . All of the three Save methods will be executed
B . Save from Case Standard Controller will be executed
C . Save from CaseExtensionTwo will be executed
D . Save from CaseExtensionOne will be executed
D
A developer is wring unit tests for the following method:
Which assertion would be used in a negative test case?
A . System.assertEquals(true, isFreezing(null))
B . System.assertEquals (true, isFreezing(‘O’)
C . System.assertEquals(null, isFreezing(‘asdf))
D . System.assertEquals(true, isFreezingClOO’))
C
A custom field Exec_Count_c of type Number is created on an Account object. An account record with value of ‘1’ for a: Exec__Count_c is saved. A workflow field update is defined on the Exec_Count_c field, to increment its value every me an account record is created or updated. The following trigger is defined on the account:
trigger ExecOrderTrigger on Account (before insert, before update, aer insert, aer update){ for (Account accountlnstance: Trigger.New){ if (Trigger . isBefore){ accountlnstance Exec_Count_c += 1; } System, debug (accountlnstance.Exec_Count_c); } }
A . 1,2,3,3
B . 1,2,3,4
C . 2, 2, 4, 4
D . 2,2,3,3
C
A developer has wrien the following method:
stac void processList(List<sobject> input){ Which code block can be used to call the method?</sobject>
A . processList (ace)
B . processList ([FIND ‘Acme’ ‘RETURNING Account])
C . processList([SELECT Id, Name FROM sObject WHERE Type = ‘Account’])
D . for Account ace : [SELECT Id, Name FROM Account])
C
The Contact object has a custom field called ‘Zone.’ Its data type is ‘Text’ and field length is 3. What is the outcome aer execung the following code snippet in the org?
A . Both inserts succeed and the contact record that has the Zone value of ‘PI’IT is set to NULL
B . A paral insert succeeds and the contact record that has the Zone value ‘IAD1 is inserted
C . Both inserts succeed and the contact record that has the Zone value of PITT is truncated
D . An unhandled DML excepon is thrown and no contact records are inserted
D
What is a potenal design issue with the following code?
A . SOQL could be avoided by creang a formula field for StageName in Account from the related Opportunity B . The code will result in a System.LimitExcepon : Too many script statements error
C . The code will result in a System.DmExcepon:Enty_is_Deleted error
D . The code will result in a System.LimitExcepon: Apex CPU me limit exceeded error
D
A developer writes the following Apex trigger so that when a Case is closed, a single Survey record is created for that Case. The issue is that mulple Survey_c records are being created per Case.
What could be the cause of this issue?
A . A user is creang the record as Closed
B . A workflow rule is firing with a Create Task acon C . A workflow rule is firing with a Field Update acon D . A user is eding the record mulple mes
D
A company requires an external system to be nofied whenever an account is updated.
What LimitExcepon could the following code trigger?
A . System.LimitExcepon: Too many future calls
B . System.LimitExcepon: Too many callouts
C . System.LimitExcepon: Too many SOQL queries
D . System.CalloutExcepon: Callout from triggers are currently not supported
A
A developer has been asked to create code that will meet the following requirements: Receives input of: Map<ld><br></br>Performs a potenally long-running callout to an outside web service<br></br>Provides a way to confirm that the process executed successfully</ld>
Which asynchronous feature should be used?
A . future (callout=true)
B . Database.AllowCallouts interface C . Schedulable interface
D . Queueable interface
D
A
C
A user receives the generic ‘An internal server error has occurred’ while interacng with a custom Lightning Component. What should the developer do to ensure a more meaningful message?
A . Use an AuraHandledExcepon in a try/catch block.
B . Use ProcessBuilder to catch the error.
C . Add an onerror event handler to the tag.
D . Add an error-view component to the markup.
A
D
.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 ‘Acve,’ and Accounts with the type set to ‘Prospect’ should have a status of ‘Pending.’ No other changes to data should be made. Which code block will accurately meet the business requirements?
D
Line 1 public class AributeTypes Line 2 { Line 3 private final String[] arrayItems; Line 4 Line 5 @AuraEnabled Line 6 public List<string> getStringArray() { Line 7 Strings+ arrayItems = new String*+, 'red', 'green', 'blue' -; Line 8 return arrayItems; Line 9 } Line 10 } Consider the Apex controller above that is called from a Lightning Aura Component. What is wrong with it?</string>
A . Line 1: class must be global B . Lines 1 and 6: class and method must be global C . Line 6: method must be stac D . Line 8: method must first serialize the list to JSON before returning
C
{!v.account.Name} {!v. account .AccountNumber} {!v.account. Industry} Refer to the component code above. The informaon displays as expected (in three rows) on a mobile device. However, the informaon is not displaying as desired (in a single row) on a desktop or tablet. Which opon has the correct component changes to display correctly on desktops and tablets?
C
@isTest stac void testAccountUpdate() { Account acct = new Account({Name = ‘Test’); acct.Integraon Updated_c = false; insert acct; CalloutUl.sendAccountUpdate (acct.Id); Account acctAer = [SELECT Id, Integraon Updated_c FROM Account WHERE Id = :acct.Id] [0]; System.assert(true, acctAer.Integraon_Updated_c); } The test method above calls a web service that updates an external system with Account informaon and sets the Account’s Integraon_Updated__c checkbox to True when it completes. The test fails to execute and exits with an error: ‘Methods defined as TestMethod do not support Web service callouts.’ What is the opmal way to fix this?
A . Add if (!Test.isRunningTest()) around CalloutUl.sendAccountUpdate.
B . Add Test.startTest() before and Test.stopTest() aer CalloutUl.sendAccountUpdate.
C . Add Test.startTest() before and Test.setMock and Test.stopTest() aer CalloutUl.sendAccountUpdate. D . Add Test.startTest() and Test.setMock before and Test.stopTest() aer CalloutUl.sendAccountUpdate.
B
A Visualforce page contains an industry select list and displays a table of Accounts that have a matching value in their Industry field.
When a user changes the value in the industry select list, the table of Accounts should be automatically updated to show the Accounts associated with the selected industry.
What is the optimal way to implement this?
A . Add an
B . Add an C . Add an D . Add an
B
D
A,E
A
B
B
C
B,C,D
Salesforce users consistently receive a ‘Maximum trigger depth exceeded’ error when saving m Account. How can a developer fix this error?
A . Split the trigger logic into two separate triggers. B . Modify the trigger to use the isMulThread=true annotaon. C . Convert trigger to use the future annotaon, and chain any subsequent trigger invocaons to the Account object. D . Use a helper class to set a Boolean to TRUE the first me a trigger is fired, and then; modify the trigger to only fire when modify the trigger to only fire when the Boolean is FALSE.
D
A
B
C
C
C,D,E
C
D
A
BCE
A developer is wring 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 fields when they run the page.
Which Apex code feature is required to facilitate this soluon’
A . Streaming API
B . Dynamic SOQL
C . Report API
D . Dynamic variable binding
B
C
C
D
A developer is developing a reuseable Aura Component that will reside on an sObject Lightning Page with the following HTML snippet:
A . Set the sObject type as a component aribute.
B . Add force:hasSobjectName to the implements.
C . Use the getSObjectTypeQ method in an Apex class.
D . Create a design aribute and configure via App builder.
B
B,D
Which two queries are selecve SOQL queries and can be used for a large data set of 200,000 Account records? Choose 2 answers
A . SELECT id FROM ACCOUNT WHERE Name = !: ‘ ‘
B . SELECT id FROM ACCOUNT WHERE Name = Null
C . SELECT id FROM ACCOUNT WHERE Name = Null AND Customer_Number_c= ‘ValueA’ D . SELECT id FROM ACCOUNT WHERE id IN (list of Account Ids)
A,D
A developer receives complaints that the component loads slowly.
Which change can the developer implement to make the component perform faster?
A . Change the default for showContacrlnfo to ‘false’.
B . Move the contents of
C . Change the type of contactlnfo to ‘Map’.
D . Add a change event handler for showContacnfo
A
A company accepts orders for customers in their enterprise resource planning (ERP) crder__c records with a lookup field to Account. The Account object has an External ID field, ERP_Customer_ID__c.
What should the integraon use to create new Order__c records that will automacally be related to the correct Account?
A . Upsert on the Account and specify the ERP_Customer_ID__c.
B . Merge on the Order__c object and specify the ERP_Customer_ID__c.
C . Insert on the Order__c object followed by an update on the Order__c object. D . Upsert on the Order__c object and specify the ERP_Customer_ID__c.`
C
When developing a Lightning web component, which seng displays lightning-layout-items in one column on small devices, such as mobile phones, and in two columns on tablet-size and desktop-size screens?
A . Set size=M6’ mobile-device-size=’12’
B . Set size-‘12’ medium-device-size’6’
C . Set size-‘12’ tablet-device-size-‘6’
D . Set size-‘6’ small-device-size-‘12’
B
Which technique can run custom logic when a Lightning web component is loaded?
A . Call SA.enqueueAcon passing in the method to call.
B . Use the connectedCallback () method.
C . Use an aura:handler ‘init’ event to call a funcon.
D . Use the renderedCallback ( ) method.
C
A Lightning web component exists in the system and displays informaon about the record in context as a modal. Salesforce administrators need to use this component within the Lightning App Builder.
Which two sengs should the developer configure within the xml resource file? Choose 2 answers
A . Set the IsExposed aribute to True.
B . Set the IsVisible aribute to True.
C . Specify the target to be lightning__RecordPage. D . Specify the target to be lightning__AppPage.
A,C
A Visualforce page loads slowly due to the large amount of data it displays. Which strategy can a developer use to improve the performance?
A . use lazy loading to load the data on demand, instead of in the controller’s constructor. B . use an in the page to load all of the data asynchronously.
C . use Javascript to move data processing to the browser instead of the controller.
D . Use the transient keyword for the List variables used in the custom controller.
A
Universal Containers wants to use a Customer Community with Customer Community Plus licenses so their customers can track how many of containers they are renng and when they are due back. Many of their customers are global companies with complex Account hierarchies, represenng various departments within the same organizaon. One of the requirements is that certain community users within the same Account hierarchy be able to see several departments’ containers, based on a juncon object that relates the Contact to the various Account records that represent the departments. Which soluon solves these requirements?
A . A Custom Report Type and a report Lightning Component on the Community Home Page
B . An Apex Trigger that creates Apex Managed Sharing records based on the juncon object’s relaonships
C . A Custom List View on the juncon object with filters that will show the proper records based on owner
D . A Visualforce page that uses a Custom Controller that specifies without sharing to expose the records
A
A company has a Lightning Page with many Lightning Components, some that cache reference dat
a. It is reported that the page does not always show the most current reference data. What can a developer use to analyze and diagnose the problem in the Lightning Page?
A . Salesforce Lightning Inspector Storage Tab
B . Salesforce Lightning Inspector Acons Tab
C . Salesforce Lightning Inspector Event Log Tab
D . Salesforce Lightning Inspector Transacons Tab
A
Universal Containers wants to use an external Web Service provided by a third-party vendor to validate that shipping and billing addresses are correct. The current vendor uses basic password authencaon, but Universal Containers might switch to a different vendor who uses OAuth. What would allow Universal Containers to switch vendors without updang the code to handle authencaon?
A . Custom Seng (List)
B . Custom Metadata
C . Named Credenal
D . Dynamic Endpoint
C
A developer created and tested a Visualforce page in their developer sandbox, but now receives reports that users are encountering ViewState errors when using it in Producon. What should the developer ensure to correct these errors?
A . Ensure queries do not exceed governor limits.
B . Ensure properes are marked as Transient.
C . Ensure properes are marked as private.
D . Ensure profiles have access to the Visualforce page.
B
A company’s support process dictates that any me a Case is closed with a Status of ‘Could not fix,’ an Engineering Review custom object record should be created and populated with informaon from the Case, the Contact, and any of the Products associated with the Case. What is the correct way to automate this using an Apex trigger?
A . An after upsert trigger that creates the Engineering Review record and inserts it
B . A before upsert trigger that creates the Engineering Review record and inserts it
C . An after update trigger that creates the Engineering Review record and inserts it
D . A before update trigger that creates the Engineering Review record and inserts it
C
A company processes Orders within their Salesforce instance. When an Order’s status changes to ‘Paid’ it must nofy the company’s order management system (OMS). The OMS exposes SOAP web service endpoints to listen for when to retrieve the data from Salesforce. What is the opmal method to implement this?
A . Create an Apex trigger and make a callout to the OMS from the trigger.
B . Generate the Partner WSDL and use it to make a callout to the OMS.
C . Create an Outbound Message that contains the session ID and send it to the OMS. D . Generate the Enterprise WSDL and use it to make a callout to the OMS.
D
An Apex class does not achieve expected code coverage. The testSetup method explicitly calls a method in the Apex class. How can the developer generate the code coverage?
A . Add @testVisible to the method in the class the developer is tesng. B . Use system.assert() in testSetup to verify the values are being returned. C . Call the Apex class method from a testMethod instead of the testSetup method.
D . Verify the user has permissions passing a user into System.runAs().
C
A Developer wishes to improve runme performance of Apex calls by caching results on the client. What is the best way to implement this?
A . Decorate the server-side method with @AuraEnabled(cacheable=true).
B . Set a cookie in the browser for use upon return to the page.
C . Decorate the server-side method with @AuraEnabled(storable=true).
D . Call the setStorable() method on the acon in the JavaScript client-side code.
D
A developer is trying to decide between creang a Visualforce component or a Lightning component for a custom screen. Which funconality consideraon impacts the final decision?
A . Does the screen need to be accessible from the Lightning Experience UI?
B . Will the screen make use of a JavaScript framework?
C . Does the screen need to be rendered as a PDF?
D . Will the screen be accessed via a mobile app?
D
A Lightning Component funcons in preview mode and needs to be used inside a Lightning App Builder page, but it is not available. What change should be applied to the component?
A . Refresh the sandbox and upgrade it to the latest API version.
B . Delete the component, metadata, and Apex controller and recreate them.
C . Expose it in the markup using the implements and access aributes.
D . Look for errors in the logic in the JavaScript controller.
C
Recently a Salesforce org’s integraon failed because it exceeded the number of allowed API calls in a 24-hour period. The integraon handles a near real-me, complex inseron of data into Salesforce. The flow of data is as follows: The integraon looks up Contact records with a given email address and, if found, the integraon adds a Task to the first matching Contact it finds. If a match is not found, the integraon looks up Lead records with a given email address and, if found, the integraon adds a Task to the first matching Lead it finds. If a match is not found, the integraon will create a Lead and a Task for that newly created Lead. What is one way in which the integraon can stay near real-me, but not exceed the number of allowed API calls in a 24-hour period?
A . Use the REST API as well as the SOAP API to effecvely double the API calls allowed in a 24-hour period.
B . write a custom Apex web service that, given an email address, does all of the logic the integraon code was doing.
C . Create several Apex InboundEmailHandlers to accept calls from the third-party system, thus bypassing the API limits.
D . Create an Inbound Message that, using Flow, can do all of the logic the integraon code was doing.
C
A developer created a Lightning web component that uses a Lightning-record-edit-force to collect informaon about Leads. Users complain that they only see one error message at a me when they save a Lead record.
What can the developer use to perform the validaons, and allow mulple error messages to be displayed simultaneously?
A . Apex REST
B . External JavaScript Library
C . Apex Trigger
D . Process Builder
C
A developer created a new trigger that inserts a Task when a new Lead is created. Aer deploying to producon, an outside integraon is periodically reporng errors.
Which change should the developer make to ensure the integraon is not affected with minimal impact to business logic?
A . Use a Try/Catch block aer the insert statement.
B . Remove the Apex Class from the Integraon User’s Profile.
C . Deacvate the Trigger before the Integraon runs.
D . Use the Database method with allOrNone set to False.
A
Global with sharing class MyRemoter { public String accountName { get; set; } public stac Account account { get; set; } public AccountRemoter(} {} @RemoteAcon global stac Account getAccount (String acccuntName) { account = [SELECT Id, Name, NumberOfEmployees FROM Account WHERE Name = :accountName]; return account; } } Consider the Apex class above that defines a RemoteAcon used on a Visualforce search page. Which code snippet will assert that the remote acon returned the correct Account?
A . MyRemoter remote = new MyRemoter(); Account a = remote.getAccount ({‘TestAccount’); System.assertEquals, ‘TestAcccunt’, a.Name -;
B . Account a = MyRemoter.getAccount ('TestAccount'): System.assertEquals{ 'TestAccount', a.Name }; C . MyRemoter remote = new MyRemoter('TestAccount'}; Account a = remote.getAccount {);System.assertEquals(, ''TestAccount', a.Name -; D . Account a = controller.getAccount('TestAccount'); System.assertEquals(, 'TestAccount', a.Name } ;
B
What are three benefits of using declarave customizaons over code? Choose 3 answers
A . Declarave customizaons generally require less maintenance.
B . Declarave customizaons do not require user tesng.
C . Declarave customizaons cannot generate run me errors.
D . Declarave customizaons will automacally update with each Salesforce release. E . Declarave customizaons are not subject to governor limits.
B,D,E
Somemes events on Salesforce need to be handled by an external system due to the scale or type of process being executed. Consider the use case of a user in Salesforce needing to get pricing for an order they are building in Salesforce while on the phone with a customer. The pricing logic already exists in a third-party system. Instead of recreang this logic in Salesforce, it will be leveraged by making a request of the third-party system. The response, in this case the pricing, will be returned and stored back in Salesforce. What is the opmal soluon?
A . A Visualforce page that can make a real-me Apex callout to display and save the pricing back in Salesforce
B . An Apex trigger that upon saving the Order will make a real-me Apex callout, saving the pricing back in Salesforce
C . A Process Builder process and Outbound Message to fetch the pricing upon save and store the pricing in Salesforce
D . An ETL tool to process batches of newly saved Orders every few minutes to store the pricing back in Salesforce
B
A developer wants to call an Apex Server-side Controller from a Lightning Aura Component. What are two limitaons to the data being returned by the Controller? Choose 2 answers
A . A Lists of Custom Apex Classes cannot be returned by Apex Controllers called by Lightning Aura Components.
B . Basic data types are supported, but defaults, such as maximum size for a number, are defined by the objects that they map to.
C . A custom Apex Class can be returned, but only the values of public instance properes and methods annotated with @AuraEnabled are serialized and returned.
D . Only Basic data types and sObjects are supported as return types for Apex Controllers called by Lightning Aura Components.
B,C
A developer is wring code that requires making callouts to an external web service. Which scenario necessitates that the callout be made in an @future method?
A . The callouts will be made in an Apex Test class.
B . The callouts will be made in an Apex Trigger.
C . The callout could take longer than 60 seconds to complete.
D . over 10 callouts will be made in a single transacon.
B
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 opmal way to automate this?
A . Build a Flow on Opportunity.
B . Create a Workflow on Opportunity.
C . Use an Apex Trigger on Opportunity.
D . Build a Process on Opportunity
C
A company has a nave iOS app for placing orders that needs to connect to Salesforce to retrieve consolidated informaon from many different objects in a JSON format. Which is the opmal method to implement this in Salesforce?
A . Apex SOAP Callout
B . Apex REST Callout
C . Apex SOAP Web Service
D . Apex REST Web Service
D
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 opmal way to achieve this?
A . Create a Process, call an Apex @InvocableMethod from it, and make the callout from that Apex method.
B . Create an aer insert trigger, call an @future(callout=true) method from it, and make the callout from that Apex method.
C . Create a Process, call an Apex @future(callout=true) method from it, and make the callout from that Apex method.
D . Create an aer insert trigger, call an Apex @InvocableMethod method from it, and make the callout from that Apex method
B
An Apex trigger creates an Order__c record every me an Opportunity is won by a Sales Rep. Recently the trigger is creang two orders. What is the opmal method for a developer to troubleshoot this?
A . Run the Apex Test Classes for the Apex trigger to ensure the code sll has sufficient code coverage.
B . Turn off all Workflow Rules, then turn them on one at me to see which one causes the error.
C . add system.debug() statements to the code and use the Developer Console logs to trace the code.
D . Set up debug logging for every Sales Rep, then monitor the logs for errors and excepons.
D
A company represents their customers as Accounts in Salesforce. All customers have a unique Customer_Number__c that is unique across all of the company’s systems. They also have a custom Invoice__c object, with a Lookup to Account, to represent invoices that are sent out from their external system. This company wants to integrate invoice data back into Salesforce so Sales Reps can see when a customer is paying their bills on me. What is the opmal way to implement this?
A . Use Salesforce Connect and external data objects to seamlessly import the invoice data into Salesforce without custom code.
B . Ensure Customer_Number__c is an External ID and that a custom field Invoice_Number__c is an External ID and Upsert invoice data nightly.
C . Create a cross-reference table in the custom invoicing system with the Salesforce Account ID of each Customer and insert invoice data nightly.
D . Query the Account Object upon each call to insert invoice data to fetch the Salesforce ID corresponding to the Customer Number on the invoice
B
Which two relaonship queries use the proper syntax? Choose 2 answers
A . SELECT Name, (SELECT LastName FROM Contacts__r) FROM Account
B . SELECT Name, (SELECT LastName FROM Contacts) FROM Account
C . SELECT Id, Name, Account __r.Name FROM Contact WHERE Account r.Industry = ‘Media’
D . SELECT Id, Name, Account.Name FROM Contact WHERE Account.Industry = ‘Media’
B,D
A developer built a Component to be used at the front desk for guests to self-register upon arrival at a kiosk. The developer is now asked to create a Component for the Ulity Tray to alert Users whenever a guest has arrived at the front desk. What should be used?
A . Changelog
B . Component Event
C . Applicaon Event
D . DML Operaon
C
What are three benefits of using stac resources in Visualforce and Lightning Components? Choose 3 answers
A . Stac resource files can be packaged into a collecon of related files in a zip or jar archive.
B . Stac resource files do not count against an organizaon’s quota of data storage.
C . Stac resource files are automacally minified.
D . Relave paths can be used in files in stac resource archives to refer to other content within the archive. E . Stac resource files can be referenced by using the $Resource global variable instead of hardcoded IDs.
A,D,E
A company represents their customers as Accounts that have an External ID field called Customer_Number__c. They have a custom Order (Order__c) object, with a Lookup to Account, to represent Orders that are placed in their external order management system (OMS). When an order is fulfilled in the OMS, a REST call to Salesforce should be made that creates an Order record in Salesforce and retates it to the proper Account. What is the opmal way to implement this?
A . Perform a REST GET on the Account and a REST POST to update the Order__c with the Account’s record ID.
B . Perform a REST PATCH to upsert the Order__c and specify the Account’s Customer_Number__c in it.
C . Perform a REST GET on the Account and a REST PATCH to upsert the Order__c with the Accounts record ID.
D . Perform a REST POST to update the Order__c and specify the Account’s Customer_Number__c in it.
B
The test method above calls an @future method that increments the Number_of_Times_Viewed__c value. The asseron is failing because the Number_of_Times_Viewed__c equals 0. What is the opmal way to fix this?
A . Change the inializaon to acct.Number_Of_Times_Viewed__c = 1.
B . Change the asseron to System.assertEquals(0, acctAer.Number_Of_Times_Viewed__c).
C . Add Test.startTest() before and Test.stopTest() aer AuditUl.incrementViewed.
D . Add Test.startTest() before and Test.stopTest() aer insert acct
C
A company has a custom object, Order__c, that has a required, unique, external ID field called Order_Number__c. Which statement should be used to perform the DML necessary to insert new records and update exisng records in a List of Order__c records?
A . upsert orders;
B . merge orders;
C . merge orders Order_Number__c;
D . upsert orders Order_Number__c;
D
Example 1: AggregateResult[] groupedResults = [SELECT Campaignid, AVG(Amount) FROM Opportunity GROUP BY CampaignId]; for (AggregateResult ar : groupedResuits) { System.debug (‘Campaign ID’ + ar.get(‘CampaignId’-); System.debug (‘Average amount’ + ar.get(‘exprd’)); } Example 2: AggregateResult[] groupedResults = [SELECT Campaignid, AVG(Amount) theAverage FROM Opportunity GROUP BY Campaignid]; for (AggregateResult ar : groupedResuits) { System.debug(*Campaign ID’ + ar.get(‘CampaignId’)); System.debug (‘Average amount’ + ar.get(‘theAverage’)); } Example 3: AggregateResult[] groupedResults = [SELECT CampaignId, AVG(Amount) FROM Opportunity GROUP BY CampaignId]; for (AggregateResult ar : groupedResuits) System.debug(*Campaign ID’ + ar.get(‘CampaignId’)); System.debug(‘Average amount’ + ar.get.AVG(-); } Example 4:AggregateResult[] groupedResults = [SELECT CampaigniId, AVG(Amount) theAverage FROM Opportunity GROUP BY Campaignid]; for (AggregateResult ar : groupedResults) { System.debug(‘Campaign ID’ + ar.get(‘CampaignId’)); System.debug (‘Average amount’ + ar.theAverage-; } Which two of the examples above have correct System.debug statements? Choose 2 answers
A . Example 1
B . Example 2
C . Example 3
D . Example 4
A,B
Consider the above trigger intended to assign the Account to the manager of the Account’’s region. Which two changes should a developer make in this trigger to adhere to best pracces? Choose 2 answers
A . Use a Map accountMap instead of List accountList.
B . Use a Map to cache the results of the Region__c query by Id.
C . Move the Region__c query to outside the loop.
D . Remove the last line updang accountList as it is not needed.
C,D
Business rules require a Contact to always be created when a new Account is created. What can be used when developing a custom screen to ensure an Account is not created if the creaon of the Contact fails?
A . use the Database.Delete method if the Contact inseron fails.
B . Disable validaon rules on Contacts and set default values with a Trigger.
C . use the Database.Insert method with allOrNone set to False.
D . use setSavePoint() and rollback() with a try/catch block.
D
An Apex Trigger creates a Contract record every me an Opportunity record is marked as Closed and Won. This trigger is working great, except (due to a recent acquision) historical Opportunity records need to be loaded into the Salesforce instance. When a test batch of records are loaded, the Apex Trigger creates Contract records. A developer is tasked with prevenng Contract records from being created when mass loading the Opportunies, but the daily users sll need to have the Contract records created. What is the most extendable way to update the Apex Trigger to accomplish this?
A . Use a Hierarchy Custom Seng to disable the Trigger for the user who does the data loading.
B . Add a Validaon Rule to the Contract to prevent Contract creaon by the user who does the data loading. C . Use a List Custom Seng to disable the Trigger for the user who does the data loading.
D . add the Profile Id of the user who does the data loading to the Trigger so the Trigger won’t fire for this user.
A
A company uses an external system to manage its custom account territory assignments. Every quarter, millions of Accounts may be updated in Salesforce with new Owners when the territory assignments are completed in the external system. What is the opmal way to update the Accounts from the external system?
A . Apex REST Web Service
B . Composite REST API
C . SOAP API
D . Bulk API
A
A company wants to implement a new call center process for handling customer service calls. It requires service reps to ask for the caller’s account number before proceeding with the rest of their call script. Following best pracces, what should a developer use to meet this requirement?
A . Approvals
B . Flow Builder
C . Apex Trigger
D . Process Builder
B
A large company uses Salesforce across several departments. Each department has its own Salesforce Administrator. It was agreed that each Administrator would have their own sandbox in which to test changes. Recently, users noce that fields that were recently added for one department suddenly disappear without warning. Also, Workflows that once sent emails and created tasks no longer do so. Which two statements are true regarding these issues and resoluon? Choose 2 answers
A . A sandbox should be created to use as a unified tesng environment instead of deploying Change Sets directly to producon.
B . Page Layouts should never be deployed via Change Sets, as this causes Workflows and Field-level Security to be reset and fields to disappear.
C . The administrators are deploying their own Change Sets, thus deleng each other’s fields from the objects in producon.
D . The administrators are deploying their own Change Sets over each other, thus replacing enre Page Layouts and Workflows in Producon
A,D
A company has a web page that needs to get Account record informaon, given its Salesforce record ID, from JavaScript on the page and then display it. Which method of integraon is opmal?
A . SOAP API
B . Apex REST Web Service
C . Apex SOAP Web Service
D . REST API
B
UC Loans is a small company with a part me Salesforce administrator. UC Loans wants to create a Loan__c record whenever an Opportunity is won. What is the opmal soluon for UC Loans to accomplish this?
A . Quick Acon
B . Apex Trigger
C . Process Builder
D . Workflow Rule
C
A developer needs to send Account records to an external system for backup purposes. The process must take a snapshot of Accounts as they are saved and then make a callout to a RESTful web service. The web service can only receive, at most, one record per call. Which feature should be used to implement these requirements?
A . workflow
B . @future
C . Queueable
D . Process Builder
D
A developer gets an error saying ‘Maximum Trigger Depth Exceeded.’ What is a possible reason to get this error message?
A . The SOQL governor limits are being hit.
B . A Process Builder is running that sends mass emails.
C . Trigger is recursively invoked more than 16 mes.
D . There are numerous DML operaons in the trigger logic.
C
An org has a requirement that an Account must always have one and only one Contact listed as Primary. So selecng one Contact will de-select any others. The client wants a checkbox on the Contact called ‘Is Primary’ to control this feature. The client also wants to ensure that the last name of every Contact is stored enrely in uppercase characters. What is the opmal way to implement these requirements?
A . write a single trigger on Contact for both aer update and before update and callout to helper classes to handle each set of logic.
B . Write an aer update trigger on Contact for the Is Primary logic and a separate before update trigger on Contact for the last name logic.
C . write an aer update trigger on Account for the Is Primary logic and a before update trigger on Contact for the last name logic.
D . write a Validaon Rule on the Contact for the Is Primary logic and a before update trigger on Contact for the last name logic.
A
A developer is asked to build a soluon that will automacally send an email to the Customer when an Opportunity stage changes. The soluon must scale to allow for 10,000 emails per day. The criteria to send the email should be evaluated aer all Workflow Rules have fired. What is the opmal way to accomplish this?
A . Use a Workflow Email Alert.
B . Use a MassEmailMessage() with an Apex Trigger.
C . Use a SingleEmailMessage() with an Apex Trigger.
D . Use an Email Alert with Process Builder.
D
A company noces that their unit tests in a test class with many methods to create many records for prerequisite reference data are slow. What can a developer to do address the issue?
A . Move the prerequisite reference data setup to a TestDataFactory and call that from each test method. B . Move the prerequisite reference data setup to the constructor for the test class. C . Move the prerequisite reference data setup to a stac method in the test class and call that from each test method. D . Move the prerequisite reference data setup to a @testSetup method in the test class.
A
Part of a custom Lightning Component displays the total number of Opportunies in the org, which is in the millions. The Lightning Component uses an Apex Controller to get the data it needs. What is the opmal way for a developer to get the total number of Opportunies for the Lightning Component?
A . SUM() SOQL aggregate query on the Opportunity object
B . SOQL for loop that counts the number of Opportunies records
C . COUNT() SOQL aggregate query on the Opportunity object
D . Apex Batch job that counts the number of Opportunity records
C
0f Universal Containers uses Big Objects to store almost a billion customer transacons called Customer_Transacon__b. These are the fields on Customer_Transacon__b: Account__c Program__ Points_Earned__c Locaon__c Transacon_Date__c The following fields have been idenfied as Index Fields for the Customer_Transacon__b object: Account__c, Program__c, and Transacon_Date__c. Which SOQL query is valid on the Customer_Transacon__b Big Object?
A . SELECT Account__c, Program__c, Transacon_Date__c FROM Customer_Transacon__b
WHERE Account__c = ‘001R000000302D3’ AND Program__c =’Shoppers’ AND Transacon_Date__c=2019-05-31T00:00Z
B . SELECT Account__c, Program__c, Transacon_Date__c FROM Customer_Transacon__b WHERE
Account__c = ‘001R000000302D3’ AND Program__c LIKE ‘Shop%’ AND Transacon_Date__c=2019-05-31T00:00Z C . SELECT Account__c, Program__c, Transacon_Date__c FROM Customer_Transacon__b WHERE
Account__c = ‘001R000000302D3’ AND Program__c EXCLUDES (‘Shoppers’, ‘Womens’) AND Transacon_Date__c=2019-05-31T00:00Z
D . SELECT Account__c, Program__c, Transacon_Date__c FROM Customer_Transacon__b WHERE Account__c = ‘001R000000302D3’ AND Program__c INCLUDES (‘Shoppers’, ‘Womens’) AND Transacon_Date__c=2019-05-31T00:00Z
A
The progress of an apex job queued is using the System.enqueueJob method and needs to be monitored. Which opons are valid? (Choose two.)
A . Use the Apex Jobs page in setup
B . Query the Queueable Apex record
C . Query the AsyncApexJob record
D . Use the Scheduled Jobs page in setup
A,C
A developer is trying to access org data from within a test class. Which sObject type requires the test class to have the (seeAllData=true) annotaon?
A . RecordType
B . Profile
C . User
D . Report
D
A developer is wring a complex applicaon involving triggers, workflow rules, Apex classes, and
processes. The developer needs to carefully consider the order of execuon when developing the applicaon. 1. Before Triggers
2. Aer Triggers
3. Post commit logic such as sending email
4. DML commied to the database
- Workflow rules
- Roll-up summary calculaons
In what order do the following operaons execute?
A . 1,2,5,6,4,3
B . 1,5,6,2,4,3
C . 1,2,4,5,6,3
D . 1,6,5,2,4,3
A
Which are relevant pracces while analyzing the meline of different types of transacons in the execuon overview panel? (Choose two.)
A . Log lines in the execuon log panel can be analyzed for details about specific events
B . The performance tree should be use to analyze events further starng from the one that take the least amount of me
C . The execuon tree can be used with the execuon log to filter and get specific informaon about events
D . Mulple short bursts of Apex events should be analyzed since they can add up to a significant amount of me
A,D
Which tool should the developer use?
A . Developer Console
B . Force.com Migraon Tool
C . Workbench
D . Force.com IDE
C
A developer is working on code that requires a call to an external web service from a batch. How should the developer enable this funconality?
A . Implement a custom System.CalloutExcepon class B . Include Database.AllowCallout() in the class definion C . Implement an @future method for the callout, and invoke it from the batch
D . Specify ‘callout=true’ in the batch implementaon
B
What Visualforce tag can be used to display custom messages in pages using the Salesforce Ul styling for errors, warnings, and other types of messages?
A .
B .
C .
D .
D
What is a best pracce when unit tesng a controller? (Choose two.)
A . Simulate user interacon by leveraging Test.setMock()
B . Verify correct references by using getURL()
C . Access test data by using seeAIIData=true
D . Set query parameters by using getParameters().put
B,D
A customer requires that when the billing address field on an Account gets updated, the address field on all its related contact records should reflect the same update.
How can this requirement be met with minimal customizaons?
A . Create an Aer Trigger on Account to upd|ate its related contact records on update
B . Create a Workflow Rule on Account to update related child Contact records
C . Create a Lightning Process on Account to update related child Contact records
D . Create a scheduled batch job that updates all contact address fields based on the related account record.
C
Which is a valid Apex REST Annotaon? (Choose two.)
A . @Hp Patch
B . @HpDelete
C . HpUpsert
D . @HpAcon
A,B
A developer must create a way for external partners to submit millions of leads into Salesforce per day-How should the developer meet this requirement?
A . Publicly expose a Visualforce page via Force.com Sites
B . Create a web service on Heroku that uses Heroku Connect
C . Host a Web-to-Lead form on the company website
D . Publicly expose an Apex Web Service via Force.com Sites
B
A developer must create a custom paginaon soluon for accessing approximately 2000 records and displaying 50 records on each page. Data from Salesforce will be accessed via an API and not via Apex.
How can the developer meet these requirements? (Choose two.)
A . Use a StandardSetController
B . Use CURSOR 50 in SOQL queries
C . Use OFFSET in SOQL queries
D . Use LIMIT 50 in SOQL queries
C,D
A developer is using a third-party JavaScript library to create a custom user interface in Visualforce. The developer needs to use JavaScript to get data from a controller method in response to a user acon.
How can the developer accomplish this?
A . Use to create a JavaScript wrapper for the controller method
B . Use the @RemoteAcon annotaon on the method definion with JavaScript Remong C . Use the $Controller global variable to access the controller method via JavaScript
D . Use to enable JavaScript support for the controller method
B
A company exposes a REST web service and wants to establish two-way SSL between Salesforce and the REST web service. A cerficate signed by an appropriate cerficate authority has been provided to the developer.
What modificaon is necessary on the Salesforce side? (Choose two.)
A . Create an entry for the cerficate in Cerficate and Key Management
B . Update the code to use HpRequest.setClientCerficateName()
C . Configure two-factor authencaon with the provided cerficate
D . Update the code to use HpRequest.setHeaderQ to set an Authorizaon header.
A,B
What level can a hierarchy custom seng be defined for? (Choose three.)
A . Users
B . Groups
C . Profiles
D . Roles
E . Organizaon
Answer: A, C, E
[FIND ‘map’ IN ALL FIELDS RETURNING Account (Id, Name), Contact, Opportunity, Lead] What is a valid return type for th|e following SOSL query?
A . List
B . List>
C . List D . List
Answer: B
A developer has created a Visualforce page that uses a third-party JavaScript framework. The developer has decided to supply data to the JavaScript functions using JavaScript Remoting for Apex Controllers.
What is the correct syntax to declare a remote method in Apex? (Choose two.)
A. @RemoteAction global static String getTable()
B. @RemoteAction global String getTable()
C. @RemoteAction public static String getTable()
D. @RemoteObject global static String getTable()
Answer: A, C
A developer needs test data for Apex test classes.
What can the developer use to provide test data to the test methods? (Choose two.)
A. List Is = Test.loadData (Lead.sObjectType, ‘myTestLeads’);
B. myDataFactory.createTestRecords (10)
C. Database.createTestRecords (10)
D. List Is = Test.loadData (Lead.sObjectType, $Resource + ‘myTestLeads’);
Answer: A, B
A developer has created a soluon using the SOAP API for authencang Communies users. What is needed when issuing the login() Call? (Choose two.)
A . Organizaon Id
B . Session Id
C . Username and Password D . Security Token
Answer: A, C
When developing a Visualforce page that will be used by a global organizaon that does business in many languages and many currencies, which feature should be used? (Choose three.)
A . Custom Labels
B . convertCurrency()
C . Global Labels
D . Translaon Workberic E . getLocalCurrency()
Answer: A, B, D
How can the DISTANCE and GEOLOCATION funcons be used i|n SOQL queries? (Choose two.)
A . To filter results based on distance from a latude and longitude B . To get the distance results from a latude and longitude
C . To order results by distance from a latude or longitude
D . To group results in distance ranges from a latude and longitude
Answer: A, C
Which two objects can be inserted in the same transacon? (Choose two.)
A . Opportunity and User
B . Account and AccountShare
C . Case and CaseComment
D . Account and Group`
Answer: B, C
A developer created a custom component to display an HTML table. The developer wants to be able to use the component on different Visualforce Pages and specify different header text for the table.
Which tag should the developer use inside the component?
A.
B.
C.
D.
Answer: D
What is a consideraon when using bind variables with dynamic SOQL? (Choose two.)
A . Dynamic SOQL cannot reference fields on bind variables
B . Dynamic SOQL cannot use bind variables
C . Bind variables must be public or global
D . Bind variables must be in local scope
Answer: A, D
Which statement is true about using ConnectApi namespace (also called Chaer in Apex)? (Choose two.)
A . Chaer in Apex methods honor the ‘with sharing’ and ‘without sharing’ keywords
B . Chaer in Apex operaons are synchronous, and they occur immediately
C . Chaer in Apex methods do not run in system mode; they run in the context of the current user
D . Many test methods related to Chaer in Apex require the IsTest (SeeAIIData=true) annotaon
Answer: C, D
Which API can b|e used to execute unit tests? (Choose three.)
A . Streaming AP B . Test API
C . Tooling API
D . SOAP API
E . Metadata API
Answer: C, D, E
What is a recommended pracce with regard to the Apex CPU limit? (Choose two.)
A . Opmize SOQL query performance
B . Use Map collecons to cache sObjects
C . Avoid nested Apex iteraons
D . Reduce view state in Visualforce pages
Answer: B, C
1 Contact con = new Contact ( LastName =fSmith’, Department = fAdminT)
2 insert con;
3 Contact insertedContact=[select Name from Contact where id=icon.Id];
4 Savepoint sp_admin = Database.setSavepoint();
5 con.Department = fHRf;
6 update con;
7 Database.rollback(sp_admin);
8 System.debug(Limits.getDmlStatements 0);
Given the following code, what value will be output in the logs by line #8?
A.5
B.3
C.4
D.2
Answer: C
A developer has created a Team Member sObject that has a Master-Detail relaonship to a Project sObject and a Lookup relaonship to the User sObject. The developer must ensure that a User listed on a Team Member record has Read-Write access to the parent Project record.
How can the developer accomplish this if the Project sObject has a Private sharing model and thousands of Project records?
A . Create a Controller that uses the Without Sharing keyword
B . Create a Criteria-Based Sharing Rule on the Project sObject
C . Create a Team Member Trigger that inserts Project_Share records
D . Create a Project Sharing Rule that shares to the Team Member Group
Answer: C
A developer is wring a Visualforce page to display a list of all of the checkbox fields found on a custom object. What is the recommended mechanism the developer should use to accomplish this?
A . Schema Class
B . Apex API
C . Schema Builder
D . Metadata API
Answer: A
A developer receives a LimitExcepon: Too many query rows: 50001 error when running code.
What debugging approach using the Developer Console provides the fastest and most accurate mechanism to idenfy a specific component that may be returning an unexpected number of rows?
A . Count the number of Row Limit warning messages in the Debug Logs
B . Add System.debug(System.getQueryRows()) to the code to track SOQL usage
C . Filter the Debug Log on SOQL_EXECUTE_END statements to track the results of each SOQL Query D . Use the Execuon Overview to see the number of rows returned by each Executed Unit
Answer: C
A developer has built a mul-page wizard using a single Custom Controller to query and update dat a. Users are complaining that the pages are loading slowly.
What will improve performance? (Choose three.)
A . Reducing the view state
B . Using aconRegion and rerender
C . Turning off the standard stylesheet
D . Seng the Apex Page aribute cache=true E . Using selecve queries
Answer: A, D, E
A developer wants to create a Visualforce page that allows a user to search for a given account by Name. If the account is found, the account details should be populated on screen. If no account is found, an error message should be displayed to the user.
How can this be accomplished? (Choose two.)
A . Use the (apex: informaon) tag to display the error message
B . Use the ApexPages.addMessage() method to add the error message
C . Use the tag to display the error message
D . Use the accountaddErrorQ method to add the error message
Answer: B, C
Which statement is true regarding the use of user input as part of a dynamic SOQL query?
A . Free text input should not be allowed, to avoid SOQL injecon
B . The String.format() method should be used to prevent injecon
C . Quotes should be escaped to protect against SOQL injecon
D . The string should be URL encoded by the input form to prevent errors
Answer: C
A developer encounters an error that states that the Apex heap size is exceeded. Which technique may reduce heap size?
A . Add the transient keyword to the variable definion
B . Move the variable definion inside the scope of the funcon
C . Use stac variables instead of instance variables
D . Use SOQL for loops instead of standard SOQL queries
Answer: D
A developer has a Debug method within a class, which is invoked hundreds of mes.
What is the opmal funconality in the Developer Console to count the number of calls made to the method?
A . The ‘Execuon Log’ Panel
B . The ‘Execuon Stack’ Panel
C . The ‘Executed Units’ tab under the Execuon Overview Panel
D . The ‘Execuon Tree’ tab under the Stack Tree Panel
Answer: C
A developer needs to design a custom object that will be integrated into a back-end system.
What should the developer do to ensure good data quality and to ensure that data imports, integraons, and searches perform well? (Choose two.)
A . Configure a custom field as unique
B . Configure a custom field as indexed
C . Configure a custom field as external ID
D . Configure a custom field as Salesforce ID
Answer: A, C