Universal Containers wants to back up all of the data and attachments in its Salesforce org once month. Which approach should a developer use to meet this requirement?
A. Use the Data Loader command line.
B. Create a Schedulable Apex class.
C. Schedule a report.
D. Define a Data Export scheduled job.
Explanation: Scheduling a Data Export job is the best way to back up all the data and attachments in a Salesforce org once a month. The Data Export job can be scheduled to run at a certain frequency so that the data can be backed up on a regular basis. This makes it easy to restore the data in case of any emergency.
A developer must perform a complex SOQL query that joins two objects in a Lightning component. How can the Lightning component execute the query?
A. Create a flow to execjte the query and invoke from the Lightning component
B. Write the query in a custom Lightning web component wrapper ana invoke from the Lightning component,
C. Invoke an Apex class with the method annotated as &AuraEnabled to perform the query.
D. Use the Salesforce Streaming API to perform the SOQL query.
A developer is creating a Lightning web component to showa list of sales records. The Sales Representative user should be able to see the commission field on each record. The Sales Assistant user should be able to see all fields on the record except the commission field. How should this be enforced so that the component works for both users without showing any errors?
A. Use WITH SECURITY_ENFORCED in the SOQL that fetches the data for the component.
B. Use Security. stripInaccessible to remove fields inaccessible to the current user.
C. Use Lightning Data Service to get the collection of sales records.
D. Use Lightning Locker Service to enforce sharing rules and field-level security.
Universal Containers has a Visualforce page that displays a table of every Container c being rented by a given Account. Recently this page is failing with a view state limit because some of the customers rent over 10,000 containers. What should a developer change about the Visualforce page to help with the page load errors?
A. Use JavaScript remotlng with SOQL Offset.
B. Implement pagination with a StandardSetController.
C. Implement pagination with an OffaetController.
D. Use lazy loading and a transient List variable.
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 name must end with “Exception”.
E. A custom exception class can extend other classes besides the Exception class.
When importing and exporting data into Salesforce, which two statements are true? Choose 2 answers
A. Bulk API can be used to import large data volumes in development environments without bypassing the storage limits.
B. Bulk API can be used to bypass the storage limits when importing large data volumes in development environments.
C. Developer and Developer Pro sandboxes have different storage limits.
D. Data import wizard is a client application provided by Salesforce.
A developer wants to import 500 Opportunity records into a sandbox. Why should the developer choose to use data Loader instead of Data Import Wizard?
A. Data Loader runs from the developer's browser.
B. Data Import Wizard does not support Opportunities.
C. Data Loader automatically relates Opportunities to Accounts.
D. Data Import Wizard cannot import all 500 records.
A Next Best Action strategy uses an Enhance 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. Option A
B. Option B
C. Option C
D. Option D
Given the following Anonymous Block:
Which one do you like?
What should a developer consider for an environment that has over 10,000 Case records?
A. The transaction will fail due to exceeding the governor limit.
B. The try/catch block will handle any DML exceptions thrown.
C. The transaction will succeed and changes will be committed.
D. The try/catch block will handle exceptions thrown by governor limits.
A developer identifies the following triggers on the Expense c object:
The triggers process before delete, before insert, and before update events respectively.
Which two techniques should the developer implement to ensure trigger best practices are followed? Choose 2 answers
A. Create helper classes to execute the appropriate logic when a record is saved.
B. Unify the before insert and before update triggers and use Flow for the delete action.
C. Unify all three triggers in a single trigger on the Expense c object that includes all events.
D. Maintain all three triggers on the Expense c object, but move the Apex logic out of the trigger definition.
Page 6 out of 24 Pages |
Previous |