Courseiva

SALESFORCE-PD1 · topic practice

Developer Fundamentals practice questions

Developer Fundamentals covers Apex language basics, sObject and DML operations, SOQL/SOSL queries, and the Salesforce governor limits that govern them. Questions present short code scenarios and ask you to pick valid syntax, identify the limit or exception a snippet triggers, or choose the correct API method for a task.

Courseiva uses original exam-style practice questions designed for learning and revision. The goal is to understand the concepts, recognise exam patterns, and improve through explanations — not memorise copied exam dumps.

Editorial oversight:Johnson Ajibi· MSc IT Security, IEEE Senior Member
20 questionsDomain: Developer Fundamentals

What the exam tests

What to know about Developer Fundamentals

Be able to read Apex snippets and state whether they compile and which governor limit they hit. The single most important habit: keep SOQL and DML outside loops and use Database methods when partial success is required.

Apex primitive and collection types, including Date, Datetime, and Map iteration constructs

DML statements versus Database class methods and their all-or-nothing versus partial-success behavior

SOQL and SOSL syntax, relationship queries, and querying inside loops

Governor limits such as SOQL queries, DML statements, and CPU time per transaction

Watch out for

Common Developer Fundamentals exam traps

  • ▸Assuming Database.insert is all-or-nothing; it returns SaveResult objects and allows partial success unless allOrNone is set true.
  • ▸Placing SOQL or DML inside a for-loop, which breaches the 100-query or 150-statement limit quickly.
  • ▸Confusing Date with Datetime, or using a Map loop syntax that does not match the map's key or value types.

Practice set

Developer Fundamentals questions

20 questions · select your answer, then reveal the explanation

A developer needs to retrieve Account records along with their associated Contacts in a single query. Which query syntax is correct?

An Apex trigger needs to query related Account records for a list of newly inserted Contact records. What is the most robust way to handle the relationship query in SOQL to avoid governor limits?

Which collection method is used to add all elements from one Set into another Set in Apex?

What is the correct way to declare a constant variable in Apex?

A developer needs to retrieve 10 Account records starting from the 21st record to implement pagination in a custom component. Which SOQL clause should be used?

A developer wants to ensure that a custom Apex REST service method properly handles authentication and executes securely in the context of the calling user. How should the class be defined?

A developer needs to query Task records related to Account records using a parent-to-child relationship. What is the standard child relationship name for Tasks on the Account object?

An Apex trigger needs to execute logic only when a specific custom field (Discount_Percent__c) on an Opportunity changes its value. Which comparison should the developer use?

Which TWO trigger context variables are available in BEFORE INSERT triggers? Choose 2 options.

Which THREE features are enforced when an Apex class is defined with the 'with sharing' keyword? Choose 3 options.

Which THREE best practices should a developer follow to avoid governor limits when writing SOQL queries in Apex? Choose 3 options.

Which TWO statements about Apex variables and initialization are true? Choose 2 options.

Which TWO options represent valid ways to instantiate and populate a Set of Strings in Apex? Choose 2 options.

Which SOQL query utilizes the correct syntax to retrieve child Contact records from a parent Account record using the standard relationship name?

A developer needs to run an Apex class in system mode, ignoring user-level object and field-level permissions, but enforcing organization-wide sharing rules. How should the class be declared?

A developer needs to update 5,000 Account records and wants to ensure that if any single record fails validation, none of the records are committed to the database. Which method should be used?

What is the maximum number of SOQL queries that can be issued in a single synchronous Apex transaction?

An Apex transaction performs a DML operation, followed by a callout to an external REST API, followed by another DML operation. What exception will Salesforce throw?

Which Salesforce data model relationship type allows two objects to have a many-to-many relationship through a junction object?

A developer needs to determine if the current user has delete permissions on the Opportunity object in Apex before calling a deletion method. Which method should be used?

Free account

Track your progress over time

Create a free account to save your results and see which topics improve across sessions.

Focused Developer Fundamentals sessions

Start a Developer Fundamentals only practice session

Every question in these sessions is drawn from the Developer Fundamentals domain — nothing else.

Related practice questions

Related SALESFORCE-PD1 topic practice pages

Move into related areas when this topic feels solid.

Frequently asked questions

What does the SALESFORCE-PD1 exam test about Developer Fundamentals?
Be able to read Apex snippets and state whether they compile and which governor limit they hit. The single most important habit: keep SOQL and DML outside loops and use Database methods when partial success is required.
How should I use these practice questions?
Select your answer before revealing the explanation. Then read why each option is right or wrong — this active recall approach builds retention far faster than re-reading notes.
Can I practise just Developer Fundamentals questions in a focused session?
Yes — the session launcher on this page draws every question from the Developer Fundamentals domain. Use a 10-question session first to gauge your baseline, then move to 20 or 30 once the weak spots are clear.
Where can I practise other SALESFORCE-PD1 topics?
Use the topic links above to move to related areas, or go back to the SALESFORCE-PD1 question bank to see all topics.
Are these real exam questions or dumps?
These are original practice questions written to test the same concepts the SALESFORCE-PD1 exam covers. They are not copied from any real exam or dump site.