How should Invoices and Accounts be related to ensure that all Invoices are visible to everyone with access to an Account?
A developer wants to create a custom object to track Customer Invoices. How should Invoices and Accounts be related to ensure that all Invoices are visible to everyone with access to an Account?A . The Account should have a Master-Detail relationship to the Invoice.B . The Invoice should have a...
What is the proper process for an Apex Unit Test
What is the proper process for an Apex Unit TestA . Query for test data using SeeAllData = true. Call the method being tested. Verify that the results are correct.B . Query for test data using SeeAllData = true. Execute runAllTests(). Verify that the results are correct.C . Create data...
Which step should the developer take to resolve the issue and properly test the exception?
A developer wrote a unit test to confirm that a custom exception works properly in a custom controller, but the test failed due to an exception being thrown. Which step should the developer take to resolve the issue and properly test the exception?A . Use try/catch within the unit test...
How can a developer display data from the parent record on the page?
A Visualforce page has a standard controller for an object that has a lookup relationship to a parent object. How can a developer display data from the parent record on the page?A . By adding a second standard controller to the page for the parent record.B . By using a...
Which statement about change set deployments is accurate? (Choose 3)
Which statement about change set deployments is accurate? (Choose 3)A . They use an all or none deployment model.B . They require a deployment connection.C . They ca be used to transfer Contact records.D . They can be used to deploy custom settings data.E . They can be used only...
The Visualforce page should include which <apex:page> attribute(s) to correctly implement controller functionality?
A Visualforce page is required for displaying and editing Case records that includes both standard and custom functionality defined in an Apex class called myControllerExtension. The Visualforce page should include which <apex:page> attribute(s) to correctly implement controller functionality?A . controller=“Case” and extensions=“myControllerExtension”B . extensions=“myControllerExtension”C . controller=“myControllerExtension”D . standardController=“Case” and extensions=“myControllerExtension”View...
When can a developer use a custom Visualforce page in a Force.com application? (Choose 2)
When can a developer use a custom Visualforce page in a Force.com application? (Choose 2)A . To generate a PDF document with application dataB . To create components for dashboards and layoutsC . To deploy components between two organizationsD . To modify the page layout settings for a custom objectView...
Which scenario is invalid for execution by unit tests?
Which scenario is invalid for execution by unit tests?A . Executing methods for negative test scenariosB . Loading the standard Pricebook ID using a system methodC . Loading test data in place of user input for Flows.D . Executing methods as different users.View AnswerAnswer: C
In which order does Salesforce execute events upon saving a record?
In which order does Salesforce execute events upon saving a record?A . Before Triggers; Validation Rules; After Triggers; Assignment Rules; Workflow Rules; CommitB . Validation Rules; Before Triggers; After Triggers; Workflow Rules; Assignment Rules; CommitC . Before Triggers; Validation Rules; After Triggers; Workflow Rules; Assignment Rules; CommitD . Validation Rules;...
Which two exceptions may occur when it executes?
A developer executes the following query in Apex to retrieve a list of contacts for each account: List<account> accounts = [Select ID, Name, (Select ID, Name from Contacts) from Account] ; Which two exceptions may occur when it executes? (Choose two.)A . CPU limit exception due to the complexity of...