Free preview mode
Enjoy the free questions and consider upgrading to gain full access!
CRT-450
Free trial
Verified
Question 51
A developer identifies the following triggers on the Expense__c object: deteleExpense, applyDefaultsToExpense, validateExpenseUpdate;
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 two.)
- A: Unify the before insert and before update triggers and use Process Builder for the delete action.
- B: Create helper classes to execute the appropriate logic when a record is saved.
- C: Maintain all three triggers on the Expense__c object, but move the Apex logic out of the trigger definition.
- D: Unify all three triggers in a single trigger on the Expense__c object that includes all events.
Question 52
When using SalesforceDX, what does a developer need to enable to create and manage scratch orgs?
- A: Production
- B: Environment Hub
- C: Dev Hub
- D: Sandbox
Question 53
Which two are best practices when it comes to component and application event handling? (Choose two.)
- A: Reuse the event logic in a component bundle, by putting the logic in the helper.
- B: Use component events to communicate actions that should be handled at the application level.
- C: Handle low-level events in the event handler and re-fire them as higher-level events.
- D: Try to use application events as opposed to component events.
Question 54
What is the maximum number of SOQL queries used by the following code?
- A: 1
- B: 5
- C: 6
- D: 2
Question 55
Which three steps allow a custom SVG to be included in a Lightning web component? (Choose three.)
- A: Upload the SVG as a static resource.
- B: Reference the getter in the HTML template.
- C: Import the SVG as a content asset file.
- D: Import the static resource and provide a getter for it in JavaScript.
- E: Reference the import in the HTML template.
Question 56
A developer must create a Lightning component that allows users to input Contact record information to create a Contact record, including a Salary__c custom field.
What should the developer use, along with a lightning-record-edit-form, so that Salary__c field functions as a currency input and is only viewable and editable by users that have the correct field level permissions on Salary__c?
A.
B.
C.
D.
Question 57
What is the order of operations when a record is saved in Salesforce?
- A: workflow, process flows, triggers, commit
- B: process flows, triggers, workflow, commit
- C: triggers, workflow, process flows, commit
- D: workflow, triggers, process flows, commit
Question 58
What is the requirement for a class to be used as a custom Visualforce controller?
- A: Any top-level Apex class that has a constructor that returns a PageReference
- B: Any top-level Apex class that extends a PageReference
- C: Any top-level Apex class that has a default, no-argument constructor
- D: Any top-level Apex class that implements the controller interface
Question 59
The Job_Application__c custom object has a field that is a Master-Detail relationship to the Contact object, where the Contact object is the Master. As part of a feature implementation, a developer needs to retrieve a list containing all Contact records where the related Account Industry is `˜Technology' while also retrieving the contact's Job_Application__c records.
Based on the object's relationships, what is the most efficient statement to retrieve the list of contacts?
- A: [SELECT Id, (SELECT Id FROM Job_Applications_r) FROM Contact WHERE Account.Industry = 'Technology'];
- B: [SELECT Id, (SELECT Id FROM Job_Applications_r) FROM Contact WHERE Accounts.Industry = 'Technology'];
- C: [SELECT Id, (SELECT Id FROM Job_Applications_c) FROM Contact WHERE Accounts.Industry = 'Technology'];
- D: [SELECT Id, (SELECT Id FROM Job_Application_c) FROM Contact WHERE Account.Industry = 'Technology'];
That’s the end of your free questions
You’ve reached the preview limit for CRT-450Consider upgrading to gain full access!
Free preview mode
Enjoy the free questions and consider upgrading to gain full access!