nerdexam
Salesforce

CRT-450 · Question #57

An org tracks customer orders on an Order object and the items of an Order on the Line Item object. The Line Item object has a MasterDetail relationship to the order object. A developer has a…

The correct answer is A. Implement the line amount as a numeric formula field and the order amount as a roll-up summary. See the full explanation below for the reasoning.

Question

An org tracks customer orders on an Order object and the items of an Order on the Line Item object. The Line Item object has a MasterDetail relationship to the order object. A developer has a requirement to calculate the order amount on an Order and the line amount on each Line item based on quantity and price. What is the correct implementation?

Options

  • AImplement the line amount as a numeric formula field and the order amount as a roll-up summary
  • BWrite a single before trigger on the Line Item that calculates the item amount and updates the
  • CImplement the Line amount as a currency field and the order amount as a SUM formula field.
  • DWrite a process on the Line item that calculates the item amount and order amount and updates

How the community answered

(47 responses)
  • A
    72% (34)
  • B
    4% (2)
  • C
    17% (8)
  • D
    6% (3)

Community Discussion

No community discussion yet for this question.

Full CRT-450 Practice