00:00

QUESTION 56

A developer uses a before insert trigger on the Lead object to fetch the Territory c object, where the Territory c.PostalCode c matches the Lead.PostalCode. The code fails when the developer uses the Apex Data Loader to insert 10,000 Lead records. The developer has the following code block: Line-01: for (Lead l : Trigger.new){Line-02: if (l.PostalCode != null) {Line-03: List terrList = [SELECT Id FROM Territory c WHERE PostalCode c = :l.PostalCode];Line-04: if(terrList.size() > 0) Line-05: l.Territory c = terrList[0].Id; Line-06: }Line-07: }Which line of code is causing the code block to fail?

Correct Answer: A

QUESTION 57

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?

Correct Answer: C

QUESTION 58

How can a developer avoid exceeding governor limits when using an Apex Trigger?choose 2 answers

Correct Answer: CD

QUESTION 59

Which tool allows a developer to send requests to the Salesforce REST APIs and view the responses?

Correct Answer: B

QUESTION 60

What is a valid statement about Apex classes and interfaces? Choose 2 answers:

Correct Answer: BD