Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Certified Platform Developer II (Plat-Dev-301) Exam - Topic 8 Question 21 Discussion

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
C) A Database.Schedulable and Database.Batchable class that queries the Catalog object and updates the Catalog Items if the Catalog CurrencylsoCode is different
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
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

Salesforce Certified Platform Developer II (Plat-Dev-301) Exam - Topic 8 Question 21 Discussion

Actual exam question for Salesforce's Salesforce Certified Platform Developer II (Plat-Dev-301) exam
Question #: 21
Topic #: 8
[All Salesforce Certified Platform Developer II (Plat-Dev-301) 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 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

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

0/2000 characters
Mendy
7 months ago
I think B is too limited; it should be on the Catalog object instead.
upvoted 0 times
...
Jamal
7 months ago
Definitely A, triggers are designed for this kind of update!
upvoted 0 times
...
Chaya
7 months ago
Wait, can a trigger really handle 100,000 records efficiently?
upvoted 0 times
...
Cyril
8 months ago
I disagree, C could handle large data volumes better.
upvoted 0 times
...
Horace
8 months ago
Option A seems like the best choice for this scenario.
upvoted 0 times
...
Benedict
8 months ago
I’m leaning towards option C, but I’m not entirely confident. I just remember that batch classes are useful for handling large data volumes like 100,000 items.
upvoted 0 times
...
Alexis
8 months ago
I feel like the after insert trigger on Catalog Item could work, but it seems like it wouldn't catch updates to the Catalog itself.
upvoted 0 times
...
Stevie
8 months ago
I remember practicing a similar question where we had to update related records, and I think a batch class might be overkill for just updating currency codes.
upvoted 0 times
...
Hubert
8 months ago
I think we might need an after insert trigger on the Catalog, but I'm not sure if that's the right context since it mentions updating after a change.
upvoted 0 times
...
Denae
8 months ago
I'm not entirely sure about the differences between blacklisting and whitelisting in this context. I'll need to review those concepts before deciding on the best policy.
upvoted 0 times
...
Alesia
8 months ago
I've used change sets before, so I'm pretty confident I can handle this. The key is to remember the main components that can be included in a change set.
upvoted 0 times
...
Tamra
8 months ago
This looks like a straightforward policy priority question. I'll need to carefully review the policy priorities to determine which one will be invoked next.
upvoted 0 times
...

Save Cancel