nerdexam
Salesforce

PDII · Question #271

A company manages information about their product offerings in custom objects named Catalog and Catalog Item. Catalog Item has a master-detail field to Catalog, and each Catalog may have as many as…

The correct answer is D. A Database.Schedulable and Database.Batchable class that queries the Catalog Item object and. See the full explanation below for the reasoning.

Question

A company manages information about their product offerings in custom objects named Catalog and Catalog Item. Catalog Item has a master-detail field to Catalog, and each Catalog may have as many as 100,000 Catalog Items. Both custom objects have a CurrencyIsoCode Text field that contains the currency code they should use. If a Catalog's CurrencyIsoCode changes, all of its Catalog Items' CurrencyIsoCodes should be changed as well. What should a developer use to update the CurrencIsoCodes on the Catalog Items when the Catalog's CurrencyIsoCode changes?

Options

  • AAn after insert trigger on Catalog that updates the Catalog Items if the Catalog's CurrencyIsoCode
  • BA Database.Schedulable and Database.Batchable class that queries the Catalog object and
  • CAn after insert trigger on Catalog Item that updates the Catalog Items if the Catalog's
  • DA Database.Schedulable and Database.Batchable class that queries the Catalog Item object and

How the community answered

(36 responses)
  • A
    17% (6)
  • B
    6% (2)
  • C
    8% (3)
  • D
    69% (25)

Community Discussion

No community discussion yet for this question.

Full PDII Practice