Set 1 Flashcards
A developer wants to retrieve the Contacts and Users with the email address ‘dev@uc.com’.
Which SOSL statement should the developer use?
A. FIND {Email = ‘dev@uc.com’} RETURNING Contact (Email), User (Email)
B. FIND {Email = ‘dev@uc.com’} IN Contact, User
C. FIND Email IN Contact, User FOR {dev2uc.com}
D. FIND {dev@uc.com} IN Email Fields RETURNING Contact (Email), User (Email)
D
An after trigger on the Account object performs a DML update operation on all of the child
Opportunities of an Account. There are no active triggers on the Opportunity object, yet a “maximum
trigger depth exceeded” error occurs in certain situations.
Which two reasons possibly explain the Account trigger firing recursively? (Choose two.)
A. Changes are being made to the Account during Criteria Based Sharing evaluation.
B. Changes to Opportunities are causing roll-up summary fields to update on the Account.
C. Changes are being made to the Account during an unrelated parallel save operation.
D. Changes to Opportunities are causing cross-object workflow field updates to be made on the
Account.
B, D
A developer created a trigger on the Account object and wants to test if the
trigger is properly bulklfield. The developer team decided that the trigger should be tested with 200
account records with unique names.
What two things should be done to create the test data within the unit test with the least amount of
code?
Choose 2 answers
A. Use the @isTest(isParallel=true) annotation in the test class.
B. Use the @isTest(seeAllData=true) annotation in the test class.
C. Create a static resource containing test data.
D. Use Test.loadData to populate data in your test methods.
C, D
A developer created a custom order management app that uses an Apex class. The order is
represented by an Order object and an Orderltem object that has a master-detail relationship to
Order. During order processing, an order may be split into multiple orders.
What should a developer do to allow their code to move some existing Orderltem records to a new
Order record?
A. Change the master-detail relationship to an external lookup relationship.
B. Select the Allow reparenting option on the master-detail relationship.
C. Create a junction object between Orderltem and Order.
D. Add without sharing to the Apex class declaration.
B
What is a key difference between a Master-Detail Relationship and a Lookup Relationship?
A. When a record of a master object in a Lookup Relationship is deleted, the detail records are also
deleted.
B. When a record of a master object in a Master-Detail Relationship is deleted, the detail records are
kept and not deleted.
C. A Lookup Relationship is a required field on an object.
D. A Master-Detail Relationship detail record inherits the sharing and security of its master record.
D
When importing and exporting data into Salesforce, which two statements are true?
Choose 2 answers
A. Bulk API can be used to bypass the storage limits when importing large data volumes in
development environments.
B. Bulk API can be used to import large data volumes in development environments without
bypassing the storage limits.
C. Developer and Developer Pro sandboxes have different storage limits.
D. Data import wizard is a client application provided by Salesforce.
C, D
A developer creates a new Apex trigger with a helper class, and writes a test class that only exercises 95% coverage of new Apex helper class. Change Set deployment to production fails with the test coverage warning: "Test coverage of selected Apex Trigger is 0%, at least 1% test coverage is required" What should the developer do to successfully deploy the new Apex trigger and helper class? A. Create a test class and methods to cover the Apex trigger B. Remove the falling test methods from the test class. C. Increase the test class coverage on the helper class D. Run the tests using the 'Run All Tests' method.
B
What are two best practices when it comes to Lightning Web Component events?
A. Use event.detail to communicate data to elements in the same shadow tree
B. Use CustomEvent to pass data from a child to a parent component.
C. Use event.target to communicate data to elements that aren’t in the same shadow tree.
D. Use events configured with bubbles: false and composed:false.
B, C
A credit card company needs to Implement the functionality for a service agent to process
damaged credit cards. When the customers call In, the service agent must gather many pieces of
information Is tasked to Implement this functionality.
What should the developer use to satisfy this requirement In the most efficient manner?
A. Approval Process
B. Apex Trigger
C. Flow Builder
D. Lightning Component
B
As part of a data cleanup strategy, AW Computing wants to proactively delete associated
opportunity records when the related Account is deleted.
Which automation tool should be used to meet this business requirement?
A. Record-Triggered Flow
B. Workflow Rules
C. Scheduled job
D. Process Builder
A
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__: custom field within the Contact__c object.
Which tool should the developer use to enforce only Container records with a status of
“Decommissioned” can be deleted?
A. Before record-triggered flow
B. Validation rule
C. Apex trigger
D. After record-triggered flow
C
Which aspect of Apex programming is limited due to multitenancy?
A. The number of active Apex classes
B. The number of records returned from database queries
C. The number of methods in an Apex Class
D. The number of records processed in a loop
B
What are three techniques that a developer can use to invoke an anonymous block of code?
(Choose three.)
A. Create a Visualforce page that uses a controller class that is declared without sharing.
B. Type code into the Developer Console and execute it directly.
C. Use the SOAP API to make a call to execute anonymous code.
D. Run code using the Anonymous Apex feature of the Developer’s IDE.
E. Create and execute a test method that does not specify a runAs() call.
B, C, D
What are three ways for a developer to execute tests in an org? Choose 3. A. Tooling API B. Metadata API. C. Bulk API D. Setup Menu E. Salesforce DX
A, D, E
Universal Container uses Salesforce to create orders.
When an order is created, it needs to sync with the-in-house order fulfillment system. The order
fulfillment system can accept SOAP messages over the HTTPS. If the connection fails, messages
should be retried for up to 24 hours.
What is the recommended approach to sync the orders in Salesforce with the order fulfillment
system?
A. Create an after insert trigger on the Order object to make a callout to the order fulfilment system
B. Use Process Bulkier to call an invocable Apex method that sends a message to the order fulfilment
system.
C. Write an Apex SOAP service to integrate with the order fulfillment system.
D. Set up a Workflow Rule outbound message to the order fulfillment system.
A