Salesforce
PDI · 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 requirem
Sign in or unlock PDI to reveal the answer and full explanation for question #57. The question stem and answer options stay visible for context.
Submitted by javi_es· Apr 18, 2026Data Modeling and Management
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
Unlock PDI to see the answer
You've previewed enough free PDI questions. Unlock PDI for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#Formula Fields#Roll-up Summary Fields#Master-Detail Relationship#Declarative Development