A developer needs a collection that maps each Account Id to its Account record for fast lookup by Id. Which Apex collection type is designed for this?
Platform Developer I
SALESFORCE_PDIReady to test yourself?
A timed, blueprint-proportional exam drawn fresh from this bank β with a per-domain score report.
π Free preview: showing 10 of 30 questions. Unlock the full bank β every question, explanation, and reference.
Unlock all 30 questions β10 questions across 4 topics. Choose an answer for each question, then check it to see the correct answer and explanation.
Filter by topic
All 10 questions
Developer Fundamentals
7 questions in topicApex language basics, data types, SOQL/SOSL, multi-tenancy, and platform architecture.
A feature must find all records containing the text 'Acme' across Accounts, Contacts, AND Leads in one search. Which query language is appropriate?
Why does Salesforce enforce governor limits (SOQL query limits, DML limits, CPU time) on Apex code?
In one SOQL query, a developer must fetch Accounts together with all of their related Contacts. Which query accomplishes this?
An Apex class declared 'with sharing' behaves differently from one declared 'without sharing'. What does 'with sharing' enforce?
A developer writes: for (Account a : [SELECT Id, Name FROM Account WHERE Industry = 'Tech']) { ... }. What is this construct called and why is it recommended for large result sets?
When should a team choose APEX over declarative automation (Flow) for a requirement?
Process Automation and Logic
3 questions in topicApex triggers, bulkification, DML, transactions, exceptions, and asynchronous Apex.
Inside an Apex trigger on Account, which context variable holds the NEW versions of the records being saved, and which holds the values BEFORE the change (in an update)?
A trigger must (a) set a default value on a field of the triggering records and (b) create a related Task after the records exist. Which trigger events fit each need?
A trigger contains a SOQL query INSIDE a for-loop over Trigger.new. Importing 500 accounts fails with 'Too many SOQL queries: 101'. What is the correct fix?