Salesforce
CRT-450 · Question #227
CRT-450 Question #227: Real Exam Question with Answer & Explanation
Sign in or unlock CRT-450 to reveal the answer and full explanation for question #227. The question stem and answer options stay visible for context.
Question
A developer deployed a trigger to update the status__c of Assets related to an Account when the Account''s status changes and a nightly integration that updates Accounts in bulk has started to fail with limit failures. What should the developer change about the code to address the failure while still having the code update all of the Assets correctly?
Exhibit
Options
- AChange the gerAssetsToUpdac= method to process all Accounts in one call and call it outside of
- BAdd a LIMIT clause to the SOQL query on line 16 to limit the number of Assets queried for an
- CMove all of the logic to a Queueable class that queries for and updates the Assets and call it from
- DAdd List<Asset> assets = [SELECT Id, Status__c FROM Asset WHERE AccountId = :acctId] to
Unlock CRT-450 to see the answer
You've previewed enough free CRT-450 questions. Unlock CRT-450 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
