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 creation of the Contact fails?
A. use the Database.Delete method if the Contact insertion fails.
B. Disable validation 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.
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 customizations?
A. Create an After 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.
A developer is creating a page in App Builder that will be used in the Salesforce mobile app.
Which two practices should the developer follow to ensure the page operates with optimal performance?
Choose 2 answers
A. Limit five visible components on the page.
B. Limit 25 fields on the record detail page.
C. Limit the number of Tabs and Accordion components.
D. Analyze the page with Performance Analysis for App Builder.
A company wants to create a dynamic survey that navigates users through a different series of questions based on their previous responses. What is the recommended solution to meet this requirement?
A. Dynamic Record Choice
B. Lightning Process Builder
C. Visualforce and Apex
D. Custom Lightning Application
A developer wants to write a generic Apex method that will compare the Salesforce Name field between any two object records. For example, to compare the Name field of an Account and an Opportunity; or the Name of an Account and a Contact.
How should the developer do this?
A. Use a String.replace( ) method to parse the contents of each Name field.
B. Invoke a Schema,describe() function to compare the values of each Name field.
C. Cast each object into an sObject and use sObject.get(Name') to compare the Name fields.
D. Use the salesforce metadata API to extract the value of each object and compare the name fields
An org has a requirement that the Shipping Address on the Account must be validated by a third- party web service, before the Account is allowed to be inserted. What is the optimal way to meet this requirement?
A. Make a callout to the web service from a custom Visualforce controller.
B. Make a callout to the web service from a standard Visualforce controller.
C. Make a callout to the web service from an after insert trigger.
D. Make a callout to the web service from a before insert trigger.
A developer migrated functionality from JavaScript demoting to a Lightning web component and wants to use the existing getOpportunities() method to provide data. Which modification to the method is necessary?
A. A The method must be decorated with uraEnabled.
B. The method must return a JSON Object.
C. The method must be decorated with (cacheable=true).
D. The method must return a String of a serialized JSON Array.
A developer implemented a custom data table in a Lightning web component with filter functionality. However, users are submitted support tickets about long load times when the filters are changed. The component uses an Apex method that is called to query for records the selected filters.
What should the developer do to improve performance of the component?
A. Use setStorable( ) in the Apex method to store the response in the client-side cache
B. Return all records into a list when the component is created and filter the array in JavaScript
C. Use SOSL to Query the records on filter change.
D. Use a selective SOQL query with a custom index.
Given the following containment hierarchy:
What is the correct way to communicate the new value of a property named ''passthrough'' to my-parent component if the property is defined within my-child-component?
A. Option A
B. Option B
C. Option C
D. Option D
Which annotation should a developer use on an Apex method to make it available to be wired to a property In a Lightning web component?
A. @RemoteAction
B. @AuraEnabledcacheable=true)
C. @QRemoteAction(caccheable=true)
D. @AuraEnabled