Soru

Zorluk: OrtaStandard and Custom Object Management

A Salesforce administrator at an aviation charter company is designing a custom object named Flight Reservation to track client trips associated with Account records. The management team requires that all flight reservations are automatically removed if their parent Account record is deleted, and that total charter expenditure is automatically aggregated and displayed on the Account record. Which configuration fulfills these requirements?

  1. Create a Master-Detail relationship on Flight Reservation pointing to Account, and create a Roll-Up Summary field on Account.Cevap
  2. B
    Create a Master-Detail relationship on Flight Reservation pointing to Account, but configure the relationship so detail records are preserved when an Account is deleted.
  3. C
    Create a Lookup relationship on Flight Reservation pointing to Account, and create a Roll-Up Summary field on Account.
  4. D
    Create a Lookup relationship on Flight Reservation pointing to Account, and use Dynamic Forms visibility rules on the Account Lightning Page to calculate expenditures.

Cevap

Create a Master-Detail relationship on Flight Reservation pointing to Account, and create a Roll-Up Summary field on Account.
Establishing a Master-Detail relationship with Account as the master object ensures that deleting an Account automatically deletes associated Flight Reservation records. Furthermore, Master-Detail relationships natively support Roll-Up Summary fields on the master object, allowing the administrator to calculate aggregate expenditure metrics directly on Account records.

Adım Adım Çözüm

1
Analyze relationship requirements for cascading deletion
Master-Detail relationship is required because deleting the parent Account must cascade to delete child Flight Reservation records.
Lookup relationships do not perform cascading deletions by default, whereas Master-Detail relationships enforce parent ownership and automatic detail record deletion.
2
Analyze aggregation requirements on the parent record
A Roll-Up Summary field on the Account object will calculate total expenditure.
Native Roll-Up Summary fields require a Master-Detail relationship between the parent (Account) and child (Flight Reservation) objects.

Anahtar Kavram

Master-Detail vs. Lookup Relationship Capabilities
Bu soruyu puanla