Universal Charities (UC) uses Salesforce to collect electronic donations in the form of credit card deductions from individuals and corporations. When a customer service agent enters the credit card information, it must be sent to 8 3rd-party payment processor for the donation to be processed, UC uses one payment processor for individuals and a different one for corporations. What should a developer use to store the payment processor settings for the different payment processors, so that their system administrator can modify the settings once they are deployed, if needed?
A. Custom object
B. Custom metadata
C. Hierarchy custom setting
D. List custom setting
A developer created a Lightning web component that uses a lightning-record-edit-form to collect information about Leads. Users complain that they only see one error message at a time about their input when trying to save a Lead record.
What is the recommended approach to perform validations on more than one field, and display multiple error messages simultaneously with minimal JavaScript intervention?
A. Try/catch/finally block
B. External JavaScript library
C. Validation rules
D. Apex trigger
Instead of waiting to send emails to support personnel directly from the finish method of a batch Apex process , Universal Containers wants to notify an external system in the event that an unhandled exception occurs. What is the appropriate publish/subscribe logic to meet this requirement?
A. Publish the error event using the Eventbus. publish () method.
B. No publishing is necessary. Have the external system subscribe to the BatchapexErrorEvent.
C. Publish the error event using the addError method.
D. Publish the error event with a Flow.
Universal Containers stores user preferences in a hierarchy custom setting, user Prefs_c, with a checkbox field, show _help co. Company-level defaults are stored at the organizational level, but may be overridden at the user level. If a user has not overridden preferences, then the defaults should be used. How should the show_Help_ c preference be retrieved for the current user?
A. Boolean show = User_Prefa_ c.getValuea().Show_Help_ co;
B. Boolean show = User Prefs c.getValues(UserInfo.getUserid{)).Show_Help c;
C. Boolean show = User_Prefs_c.getlnstance(].Show Help c;
D. Boolean show = User Prefs_c.show Melp_c;
A corporation has many different Salesforce orgs, with some different objects and some common objects, and wants to build a single Java application that can create, retrieve, and update common object records in all of the different orgs. Which method of integration should the application use?
A. SOAP API with the Partner WSDL
B. Apex REST Web Service
C. SOAP API with the Enterprise WSDL
D. Metadata APT
For compliance purposes, a company is required to track long-term product usage in their org. The information that they need to log will be collected from more than one object and, over time, they predict they will have hundreds of millions of records. What should a developer use to implement this?
A. Setup audit trail
B. Field audit trail
C. Big objects
D. Field history tracking
A developer is tasked with creating a Lightning web component that allows users to create a Case for a selected product, directly from a custom Lightning page. The input fields in the component are displayed in a non-linear fashion on top of an image of the product to help the user better understand the meaning of the fields. Which two components should a developer use to implement the creation of the Case from the Lightning web component? (Choose two answers).
A. lightning-record-edit-form
B. lightning-input
C. lightning-record-form
D. lightning-input-field
Which two scenarios require an Apex method to be called imperatively from a Lightning web component? (Choose two.)
A. Calling a method that makes a web service callout
B. Calling a method that is not annotated with cacheable=true
C. Calling a method with the click of a button
D. Calling a method that is external to the main controller for the Lightning web component
A Salesforce Platform Developer is leading a team that is tasked with deploying a new application to production. The team has used source-driven development, and they want to ensure that the application is deployed successfully. What tool or mechanism should be used to verify that the deployment is successful?
A. Force.com Migration Tool
B. Salesforce DX CLI
C. Apex Test Execution
D. Salesforce Inspector
Explanation:
The Salesforce CLI with Salesforce DX can be used to execute and verify the deployment of metadata to production. It allows the developer to run specified tests and ensure that the deployment meets all required conditions for success.
Which code snippet processes records in the most memory efficient manner, avoiding governor limits such as "Apex heap size too large"?
A. List
B. for(Opportunity opp : [SELECT Id, Amount FROM Opportunity]) { // perform operation here
C. Map
D. List
Explanation:
SOQL For Loops process records in smaller, manageable batches of 200, reducing memory usage and avoiding governor limits like "Apex heap size too large." Unlike other options that load all records into memory, SOQL For Loops handle large datasets efficiently by querying incrementally.
Page 2 out of 9 Pages |
Previous |