Intermediate
APEX
Bulk-Safe Account Lookup
Never run a SOQL query inside a loop — always query once outside it, especially in a trigger.
Write one line of Apex that queries the Id and Name fields of every Account record, assigned to a List<Account> variable named accounts.
Log in
to submit a solution.