nerdexam
SalesforceSalesforce

PDI · Question #227

PDI Question #227: Real Exam Question with Answer & Explanation

Sign in or unlock PDI to reveal the answer and full explanation for question #227. The question stem and answer options stay visible for context.

Submitted by joshua94· Apr 18, 2026Logic and Process Automation

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?

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 PDI to see the answer

You've previewed enough free PDI questions. Unlock PDI 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.

Topics

#Apex Triggers#Governor Limits#Bulkification#Apex Best Practices
Full PDI PracticeBrowse All PDI Questions