Salesforce-Platform-Administrator-II Practice Test
Salesforce Spring 25 Release 219 Questions
The accounting team at Universal Containers is looking to roll out two new custom objects:
a parent Invoice object and a child Payment object. Whenever a Payment record is
created, the Invoice object should be updated to reflect the current outstanding value of the
Invoice.
What should the administrator do to build this functionality?
A. Create a lookup-relationship on the Payment with a Roll-up Summary field on the
Invoice.
B. Create a lookup-relationship on the Payment and a workflow cross object field update.
C. Create a master-detail relationship on the Payment and a workflow cross object field
update.
D. Create a master-detail relationship on the Payment with a Roll-up Summary field on the
Invoice.
D. Create a master-detail relationship on the Payment with a Roll-up Summary field on the
Invoice.
Explanation:
Creating a master-detail relationship on the Payment with a Roll-up Summary field on the
Invoice will build this functionality. A master-detail relationship creates a parent-child
relationship between two objects, where the child records inherit the sharing and security
settings of their parent. A Roll-up Summary field calculates values from related child
records, such as count, sum, min, or max. In this case, the Roll-up Summary field on the
Invoice can calculate the sum of all Payments related to it and subtract it from the Invoice
amount to get the current outstanding value.