Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Certified Platform Developer II All Questions

View all questions & answers for the Certified Platform Developer II exam

Exam Certified Platform Developer II topic 1 question 290 discussion

Actual exam question from Salesforce's Certified Platform Developer II
Question #: 290
Topic #: 1
[All Certified Platform Developer II Questions]

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?

  • A. An after insert trigger on Catalog that updates the Catalog Items if the Catalog’s CurrencyIsoCode is different.
  • B. A Database.Schedulable and Database.Batchable class that queries the Catalog object and updates the Catalog Items if the Catalog CurrencyISoCode is different.
  • C. An after insert trigger on Catalog Item that updates the Catalog Items if the Catalog’s CurrencyIsoCode is different.
  • D. A Database.Schedulable and Database.Batchable class that queries the Catalog Item object and updates the Catalog Items if the Catalog CurrencyISoCode is different.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Cvk09
Highly Voted 1 year, 8 months ago
B is correct answer
upvoted 5 times
...
FriedConsole2000
Most Recent 8 months, 4 weeks ago
Selected Answer: B
Should monitor Catalog. It is "B"
upvoted 1 times
...
stan_malta
1 year ago
Selected Answer: D
D because - 100.000 records can't be handled by Trigger (DML Limit is 10.000) - The "big" object is Catalog Item, not Catalog, therefore we need to batch through these
upvoted 4 times
...
Dev_Bond_ZA
1 year, 5 months ago
Selected Answer: D
D makes more sense to me. Less effort to implement.
upvoted 4 times
...
AppleDash
1 year, 8 months ago
Should be B. It's 100.000 records, so a Batch, and it should monitor the Catalog, not the Catalog Item.
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...