Salesforce Platform Developer I (legacy) — Question 70
Universal Containers stores Orders and Line Items in Salesforce. For security reasons, financial representatives are allowed to see information on the Order such as order amount, but they are not allowed to see the Line Items on the Order.
Which type of relationship should be used?
Answer options
- A. Direct Lookup
- B. Indirect Lookup
- C. Master-Detail
- D. Lookup
Correct answer: C
Explanation
The correct answer is C, Master-Detail, as this relationship type enforces security controls where the detail (Line Items) is dependent on the master (Order). A Master-Detail relationship provides the necessary security model to restrict access to the Line Items while still allowing visibility of the Order details. The other options do not offer the same level of security enforcement needed in this scenario.