CRT-101 · Question #87
Cloud Kicks has a custom object called Shipments. The Company wants to see all the shipment items from an Account page. When an Account is deleted, the shipments should remain. What type of…
The correct answer is A. Shipments should have a lookup to Account. A Lookup relationship from Shipments to Account (A) is a loosely coupled relationship. If the parent Account is deleted, the child Shipment records are not deleted - the lookup field simply becomes blank. This preserves shipment data as required. Shipments can still be viewed…
Question
Cloud Kicks has a custom object called Shipments. The Company wants to see all the shipment items from an Account page. When an Account is deleted, the shipments should remain. What type of relationship should the administrator make between Shipments and Account?
Options
- AShipments should have a lookup to Account.
- BAccounts should have a lookup to Shipments.
- CShipments should have a master-detail to Accounts.
- DAccounts should have a master-detail to Shipments.
How the community answered
(57 responses)- A91% (52)
- B2% (1)
- C2% (1)
- D5% (3)
Explanation
A Lookup relationship from Shipments to Account (A) is a loosely coupled relationship. If the parent Account is deleted, the child Shipment records are not deleted - the lookup field simply becomes blank. This preserves shipment data as required. Shipments can still be viewed from the Account page via a related list. A Master-Detail relationship (C or D) tightly couples the child to the parent - deleting the Account would cascade-delete all related Shipments, which violates the requirement. Option B (Account having a lookup to Shipments) is architecturally backward; the relationship field belongs on the child object (Shipments), not the parent.
Topics
Community Discussion
No community discussion yet for this question.