Interview prep
Filter the bank, open any question, or practise the filtered set with answers hidden.
Type
Difficulty
12 questions
- β APEX-Q01Future, Queueable, Batch or Scheduled Apex: when do you use each?Decision by need: callouts and chaining β Queueable; volume β Batch or Cursor + Queueable; timetable β Scheduled; decoupling β Platform Events.Conceptual Intermediate
- β APEX-Q02A trigger works in the UI but fails with 'Too many SOQL queries: 101' during a data load. Walk me through the fix.Find the query in the loop (or the recursion), make it set-based, re-test with 200+ records, and check the whole transaction.Scenario Intermediate
- β APEX-Q03Describe your trigger framework.One trigger per object, dispatcher and handlers, bulk-safe events, bypass switches, precise recursion control, and Flow coexistence.Conceptual Intermediate
- APEX-Q04Design the code structure for a large org where triggers, Flows, LWCs and REST APIs all need the same order-submission logic.Service layer as the single entry point, selectors, domain logic, unit of work, invocable and REST wrappers, async for callouts, and tests.Design Advanced
- APEX-Q05Batch Apex or Apex Cursors with chained Queueables for processing 20 million records?Batch: familiar, stateful, finish step, 5-slot concurrency. Cursor + Queueable: no batch slot, flexible chunks, but quotas and more code.Trade-off Advanced
- β APEX-Q06An integration queueable fails intermittently when ERP times out, and failures go unnoticed. How do you make it robust?Finalizer-based retry with back-off, idempotency, logging and alerting, circuit breaking, and replay.Scenario Advanced
- APEX-Q07What is a governor limit, and which ones matter most in practice?Per-transaction resource limits in a multitenant platform; SOQL, DML, CPU, heap, callouts and async limits, and how to design for them.Conceptual Foundation
- APEX-Q08How do you enforce security in Apex?Sharing keywords, user-mode database operations, stripInaccessible, safe dynamic SOQL, and secure entry points.Conceptual Intermediate
- APEX-Q09How do you test asynchronous Apex and callouts?startTest/stopTest boundaries, mocks, one execute per batch, first job per chain, and asserting outcomes.Design Intermediate
- APEX-Q10Record-triggered Flow or Apex trigger: how do you decide for a given requirement?Complexity, volume, testability, team skills, performance, and a per-object ownership rule.Trade-off Intermediate
- APEX-Q11You need to create a user and assign permission sets when a contact is approved. The code fails with a mixed DML error. Why, and what do you do?Setup vs non-setup objects in one transaction; isolate with async (Queueable or future); runAs in tests.Scenario Intermediate
- β APEX-Q12Board scenario: your org has 40 triggers, 120 flows and 3 managed packages on Opportunity and Account, and saves take 8 seconds. Present your remediation plan.Measure first, consolidate automation per object, a trigger framework, move work async, query and sharing tuning, governance, and phased delivery.CTA board CTA