ApexSensei

Practice the Apex that PD1 and interviews test

Write real Apex and get every drill checked. Start in your browser, then move to your own free Developer org.

Try a drill now Create a free account

About 5 minutes. No Salesforce org needed to start.

  • A code editor, not multiple choice. You write the Apex yourself.
  • Your own Developer org. Your tests run on the real platform, not a simulator.
  • Checked on every submit. You see more than a pass or a fail.
  • Two modules are free. Apex basics and Classes & objects.
The Block deleting Accounts with open deals drill: a trigger in the code editor and 5 of 5 tests passed in a Developer org.

How it works

  1. Try your first drill. No sign-up. You can see what a drill looks like before you create an account.
  2. Connect a Developer org. A free org you keep for practice. Production orgs are blocked.
  3. Practice and track progress. Submit solutions, review automatic results, and work through the topics.

Modules, in order

Start with the free Apex basics and Classes & objects. Later modules cover SOQL, DML, triggers, unit tests and async Apex.

A growing library of Apex drills in 9 modules. The first two modules are free. Apex Path is the paid plan. It unlocks every module after the two free ones. It costs $19 a month. First-time members get the first 7 days free. On Apex Path, you write a trigger that stops your Developer org from deleting an Account that still has an open Opportunity.

  1. Apex basics (beginner, free). Variables, numbers, text, dates, if and switch, loops, Lists, Sets and Maps.
  2. Classes & objects (beginner, free). Classes, constructors, methods, access modifiers, exceptions and enums.
  3. SOQL queries (intermediate). SOQL and SOSL: filters, bind variables, relationships, aggregates, date literals and safe dynamic queries.
  4. DML operations (intermediate). Insert, update, upsert and delete, Database methods, save results, savepoints and bulk-safe DML.
  5. Unit testing (intermediate). Apex test classes that fail when the code is wrong: assertions, test data, mocks and callout mocks.
  6. Triggers (intermediate). Before and after triggers, handler classes, bulk patterns, recursion guards and roll-ups.
  7. Asynchronous Apex (advanced). Future methods, Queueable, Batch and Schedulable Apex.
  8. Debugging (intermediate). Fix real production bugs: queries and DML in loops, null checks, recursion, mixed DML, empty tests and batch state.
  9. Security & deployment (advanced). Governor limits, security and the habits that survive a production deploy.

Learn from every failed check

When a check fails, the drill shows what it expected and what your code gave instead. Miss the same check twice and a hint opens up, so you are not left guessing.

Try drill 1 now

Questions people ask

What is ApexSensei?

ApexSensei is a practice site for Salesforce Apex, for people preparing for PD1 or a developer interview. You work through a growing library of short drills in 9 modules, from your first variable to triggers, tests and async Apex. Most drills run in your own free Salesforce Developer org, so you practice on the real platform.

Do I need a Salesforce org?

Not for the first drills. Sign up at developer.salesforce.com when a drill asks you to connect one.

Can ApexSensei touch my company's production org?

No. ApexSensei blocks production orgs. Connect a Developer org that you use only for practice.

How is ApexSensei different from Trailhead?

Trailhead teaches the platform with modules and quizzes. ApexSensei is where you practice. You write the Apex yourself, run it in your org, and every drill is checked automatically. Many people use both: learn a topic on Trailhead, then drill it here.

How long does a drill take?

Between 5 and 25 minutes. Most take about 15.

Who built ApexSensei?

We built ApexSensei so you can practice Apex in a real Developer org, not just read about it. The drills are written by a Salesforce developer and the author of Learning Apex and Learning LWC.

Start your first Apex drill today

Your first drill runs in the browser. No credit card.

Create a free account See pricing