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.

Posted by: Pdfprep Category: PDII Tags: , ,

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 CurrencylsoCode Text field that contains the currency code they should use. If a Catalog’s CurrencylsoCode changes, all of its Catalog Items’ CurrencylsoCodes should be changed as well.

What should a developer use to update the CurrencylsoCodes on the Catalog Items when the Catalog’s CurrencylsoCode changes^5
A . An after insert trigger on Catalog that updates the Catalog Items if the Catalog’s CurrencylsoCode is different
B . An after insert trigger on Catalog Item that updates the Catalog Items if the Catalog’s CurrencylsoCode is different
C . A Database.Schedulable and Database.Batchable class that queries the Catalog object and updates the Catalog Items if the Catalog CurrencylsoCode is different
D . A Database.Schedulable and Database.Batchable class that queries the Catalog Item object and updates the Catalog Items if the Catalog CurrencylsoCode is different

Answer: C