Topic 1 : Exam Pool A
When viewing a Quote, the sales representative wants to easily see how many discounted items are included in the Quote Line Items. What should a developer do to meet this requirement?
A. Create a trigger on the Quote object that queries the Quantity field on discounted Quote Line Items.
B. Create a Workflow Rule on the Quote Line Item object that updates a field on the parent Quote when the item is discounted.
C. Create a roll-up summary field on the Quote object that performs a SUM on the quote Line Item Quantity field, filtered for only discounted Quote Line Items.
D. Create a formula field on the Quote object that performs a SUM on the Quote Line Item Quantity field, filtered for only discounted Quote Line Items.
A developer created a Lightning component to display a short text summary for an object and wants to use it with multiple Apex classes. How should the developer design the Apex classes?
A. Have each class define method getObject() that returns the sObject that is controlled by the Apex class.
B. Extend each class from the same base class that has a method getTextSummary() that returns the summary.
C. Have each class implement an interface that defines method getTextSummary() that returns the summary.
D. Have each class define method getTextSummary() that returns the summary.
What should a developer use to implement an automatic Approval Process submission for Cases?
A. An Assignment Rule
B. Scheduled Apex
C. Process Builder
D. A Workflow Rule
Which two strategies should a developer use to avoid hitting governor limits when developing in a multi-tenant environment? (Choose two.)
A. Use collections to store all fields from a related object and not just minimally required fields.
B. Use methods from the “Limits” class to monitor governor limits.
C. Use SOQL for loops to iterate data retrieved from queries that return a high number of rows.
D. Use variables within Apex classes to store large amounts of data.
Which tool allows a developer to send requests to the Salesforce REST APIs and view the responses?
A. REST resource path URL
B. Workbench REST Explorer
C. Developer Console REST tab
D. Force.com IDE REST Explorer tab
Map
A. for (ID accountID : accountMap.keySet()) {…}
B. for (Account accountRecord : accountMap.values()) {…}
C. for (Integer i=0; I < accountMap.size(); i++) {…}
D. for (ID accountID : accountMap) {…}
E. for (Account accountRecord : accountMap.keySet()) {…}
Which three options can be accomplished with formula fields? (Choose three.)
A. Generate a link using the HYPERLINK function to a specific record.
B. Display the previous value for a field using the PRIORVALUE function.
C. Determine if a datetime field value has passed using the NOW function.
D. Return and display a field value from another object using the VLOOKUP function.
E. Determine which of three different images to display using the IF functio
What is a benefit of using an after insert trigger over using a before insert trigger?
A. An after insert trigger allows a developer to bypass validation rules when updating fields on the new record.
B. An after insert trigger allows a developer to insert other objects that reference the new record.
C. An after insert trigger allows a developer to make a callout to an external service.
D. An after insert trigger allows a developer to modify fields in the new record without a query
Using the Schema Builder, a developer tries to change the API name of a field that is referenced in an Apex test class. What is the end result?
A. The API name is not changed and there are no other impacts.
B. The API name of the field and the reference in the test class is changed.
C. The API name of the field is changed, and a warning is issued to update the class.
D. The API name of the field and the reference in the test class is updated.
While writing a test class that covers an OpportunityLineItem trigger, a Developer is unable to create a standard PriceBook since one already exists in the org. How should the Developer overcome this problem?
A. Use Test.getStandardPricebookId() to get the standard PriceBook ID.
B. Use @IsTest(SeeAllData=true) and delete the existing standard PriceBook.
C. Use Test.loadData() and a Static Resource to load a standard Pricebook.
D. Use @TestVisible to allow the test method to see the standard PriceBook.
Page 5 out of 40 Pages |
Previous |