Valid PDII Dumps shared by ExamDiscuss.com for Helping Passing PDII Exam! ExamDiscuss.com now offer the newest PDII exam dumps, the ExamDiscuss.com PDII exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com PDII dumps with Test Engine here:
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
Correct Answer: B
Recent Comments (The most recent comments are at the top.)
Igris - Jun 27, 2025
Option B Is Risky: . A Scheduleable and Batchable class that queries the Catalog object and updates the Catalog Items if the Catalog CurrencyIsoCode is different
Querying Catalogs and then loading all their children (up to millions total) in execute() will likely: Hit query row limits (50k total rows across SOQL queries). Cause heap size issues or CPU timeouts if too many Catalog Items are loaded per Catalog. ❌ Poor fit for a parent-to-child large-volume use case. ❌ You can't guarantee CatalogItem[] processing stays within batch-safe limits.
Igris - Jun 27, 2025
Option A is Correct. A Scheduleable and Batchable class that queries the Catalog Item object and updates the Catalog Items if the Catalog CurrencyIsoCode is different
You batch directly on Catalog Items, which allows you to process children in manageable 200-record chunks. This keeps you safely under the 50,000-row query limit per transaction. In each batch, you can reference the parent Catalog (via CatalogId) and compare the CurrencyIsoCode before updating. ✅ Scalable even when 1 Catalog has >50k children. ✅ You stay within Apex limits by controlling batch size and records per execution.
Kumz - Dec 30, 2021
Correct answer is Option A. Reason: You have to do this via asynchronous since the data volume is high to process & you have to query child records in batch since a parent can have lakhs of child data which you cannot process in execute in any single batch chunks
Manisha Achtani - Mar 05, 2021
Hello Admin, please delete my previous comment for this question. This question is already marked correct answer. Answer is B only.
Recent Comments (The most recent comments are at the top.)
Option B Is Risky:
. A Scheduleable and Batchable class that queries the Catalog object and updates the Catalog Items if the Catalog CurrencyIsoCode is different
Querying Catalogs and then loading all their children (up to millions total) in execute() will likely:
Hit query row limits (50k total rows across SOQL queries).
Cause heap size issues or CPU timeouts if too many Catalog Items are loaded per Catalog.
❌ Poor fit for a parent-to-child large-volume use case.
❌ You can't guarantee CatalogItem[] processing stays within batch-safe limits.
Option A is Correct. A Scheduleable and Batchable class that queries the Catalog Item object and updates the Catalog Items if the Catalog CurrencyIsoCode is different
You batch directly on Catalog Items, which allows you to process children in manageable 200-record chunks.
This keeps you safely under the 50,000-row query limit per transaction.
In each batch, you can reference the parent Catalog (via CatalogId) and compare the CurrencyIsoCode before updating.
✅ Scalable even when 1 Catalog has >50k children.
✅ You stay within Apex limits by controlling batch size and records per execution.
Correct answer is Option A. Reason: You have to do this via asynchronous since the data volume is high to process & you have to query child records in batch since a parent can have lakhs of child data which you cannot process in execute in any single batch chunks
Hello Admin, please delete my previous comment for this question. This question is already marked correct answer. Answer is B only.
Answer should be D.