Salesforce Exam Questions PDF
Document Details
Uploaded by RaptSquirrel4080
Tags
Summary
This document contains a sample of Salesforce exam questions and answers. It includes questions about flows, Apex triggers, validation rules, and more.
Full Transcript
A Salesforce administrator used Flow Builder to create a flow named \"accountOnboarding\". The flow must be used inside an Aura component. Which tag should a developer use to display the flow in the component? A. lightning: flow B. lightning-flow C. aura-flow D. aura: flow 2. A developer is a...
A Salesforce administrator used Flow Builder to create a flow named \"accountOnboarding\". The flow must be used inside an Aura component. Which tag should a developer use to display the flow in the component? A. lightning: flow B. lightning-flow C. aura-flow D. aura: flow 2. A developer is alerted to an issue with a custom Apex trigger that is causing records to be duplicated. What is the most appropriate debugging approach to troubleshoot the issue? A. Review the Historical Event logs to identify the source of the issue. B. Add system.debug statements to the code to track the execution flow and identify the issue. C. Use the Apex Interactive Debugger to step through the code and identify the issue. D. Disable the trigger in production and test to see if the issue still occurs. 3. Managers at Universal Containers want to ensure that only decommissioned containers are able to be deleted in the system. To meet the business requirement a Salesforce developer adds \"Decommissioned\" as a picklist value for the Status c custom field within the Container c object. Choose 2 answers A. Before record-triggered flow B. Apex trigger C. After record-triggered flow D. Validation rule 4. Universal Containers wants to ensure that all new leads created in the system have a valid email address. They have already created a validation rule to enforce this requirement, but want to add an additional layer of validation using automation. What would be the best solution for this requirement? A. Submit a REST API Callout with a JSON payload and validate the fields on a third party system B. Use an Approval Process to enforce the completion of a valid email address using an outbound message action. C. Use a before-save Apex trigger on the Lead object to validate the email address and display an error message if it is invalid D. Use a custom Lightning Web component to make a callout to validate the fields on a third party system. 5. A team of developers is working on a source-driven project that allows them to work independently, with many different org configurations. Which type of Salesforce orgs should they use for their development? A. Developer sandboxes B. Full Copy sandboxes C. Developer orgs D. Scratch orgs 6. A developer needs to allow users to complete a form on an Account record that will create a record for a custom object. A. Add a Dynamic Action to the Users assigned Page Layouts. B. Create a Lightning web component. C. Create a Custom Permission for the users. D Add a Dynamic Action to the Account Record Page. E. Create a Dynamic form 7. A developer needs to prevent the creation of Request\_\_c records when certain conditions exist in the system. A Request Logic class exists that checks the conditions. What is the correct implementation? A. trigger RequestTrigger on Request\_\_c (after insert) { RequestLogic.validateRecords (trigger.new); } B. trigger RequestTrigger on Request (before insert) { RequestLogic.validateRecords (trigger.new); } C. trigger RequestTrigger on Request (before insert) { if (Requestlogic.isValid(Request\_cl) Request.addError(\'Your request cannot be created at this Lime.\"); } D. trigger RequestTrigger on Request e (after insert) { if (RequestLogic.isValid(Request\_c}} Request.addError(\'Your request cannot be created at this time.\'); } 8. A company decides to implement a new process where every time an Opportunity is created, a follow up Task should be created and assigned to the opportunity Owner. What is the most efficient way for a developer to implement this? A. Apex trigger on Task B. Task actions C. Auto-launched flow on Task D. Record-triggered flow on Opportunity 9. A developer is creating a page that allows users to create multiple Opportunities. The developer is asked to verify the current user\'s default Opportunity record type, and set certain default values based on the record type before inserting the record. How can the developer find the current user\'s default record type? A. Create the opportunity and check the opportunity.recordType, which will have the record ID of the current user\'s default record type, before inserting. B. Query the Profile where the ID equals userinfo.getProfileID() and then use the profile.Opportunity.getDefaultRecordType() method. C. Use the schema.userinfo.opportunity.getDefaultRecordType() method. D. Use Opportunity.sobjectType.getDescribe().getRecordTypeInfo() to get a list of record types, and iterate through them until isDefaultRecordTypeMapping() is true. 10. The Account object in an organization has a master-detail relationship to a child object called Branch. The following automations exist: A. Rollup summary fields can cause the parent record to go through Save. B. Duplicate rules are executed once all DML operations commit to the database. C. The trigger may fire multiple times during a transaction. D. The validation rules will cause the trigger to fire again. 11. A PrimaryId\_\_c custom field exists on the Candidate\_\_c custom object. The field is used to store each candidate\'s id number and is marked as Unique in the schema definition. A. Upload the CSV into a custom object related to candidate c. B. Create a before insert trigger to correctly map the records. C. Update the primary defield definition to mark it as an External Id. D. Create a before save flow to correctly map the records. 12. A Developer Edition org has five existing accounts. A developer wants to add 10 more accounts for testing purposes. 13. A developer wants to get access to the standard price book in the org while writing a test class that covers an OpportunityLineItem trigger. Which method allows access to the price book? A. Use Test.getStandard PricebookId() to get the standard price book ID. B. Use IsTest (SeeAllData=true and delete the existing standard price book. C. Use \@TestVisible to allow the test method to see the standard price book. D. Use Test.loadData() and a static resource to load a standard price book. 14. 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. A. lightning-input-currency value=\"Salary\_\_\_c\"\> \ B. \ \ C. \ \ D. \ A. View the code coverage percentage for the class using the Overall Code Coverage panel in the Developer Console Tests tab. B. View the Class Test Percentage tab on the Apex Class list view in Salesforce Setup. C. Select and run the class on the Apex Test Execution page in the Developer Console. D. View the Code Coverage column in the list view on the Apex Classes page. 33. A developer creates a new Apex trigger with a helper class, and writes a test class that only exercises 95% coverage of the new Apex helper class. Change Set deployment to production fails with the test coverage warning: A. Increase the test class coverage on the helper class. B. Create a test class and methods to cover the Apex trigger. C. Remove the failing test methods from the test class. D. Run the tests using the \'Run All Tests\' method. 34. What are three capabilities of the \