nerdexam
Salesforce

CRT-450 · Question #52

An Opportunity needs to have an amount rolled up from a custom object that is not in a master- detail relationship. How can this be achieved?

The correct answer is C. Write a trigger on the child object and use an aggregate function to sum the amount for all related. See the full explanation below for the reasoning.

Question

An Opportunity needs to have an amount rolled up from a custom object that is not in a master- detail relationship. How can this be achieved?

Options

  • AWrite a trigger on the child object and use a red-black tree sorting to sum the amount for all
  • BWrite a Process Builder that links the custom object to the Opportunity.
  • CWrite a trigger on the child object and use an aggregate function to sum the amount for all related
  • DUse the Streaming API to create real-time roll-up summaries.

How the community answered

(26 responses)
  • A
    4% (1)
  • B
    12% (3)
  • C
    81% (21)
  • D
    4% (1)

Community Discussion

No community discussion yet for this question.

Full CRT-450 Practice