問題文
A property management company tracks Lease records under each Property. When a property is removed from the portfolio, its leases must be removed with it, and each property must display the total rent of its leases. Which relationship should be used between Property and Lease?
選択肢
- A junction object between Property and Lease, so that each lease can belong to several properties and the totals roll up through the junction.
- A self-relationship on Property that stores the leases in a hierarchy.
- A master-detail relationship with Property as the master, because deletion cascades and roll-up summary fields become available.
- A lookup relationship with a required lookup field, because a required field prevents orphaned leases and allows totals to be summarized on the parent.