Interview preparation
UNDERSTAND. EXPLAIN. REPEAT.

Question library

Explained questions for the decisions developers make.

Filters
660 questions

What database optimization did you perform?

Project deep dives·Project discussion

Database optimization changes data access so the same required result costs less work or waits less. Typical changes involve a query, index, join pattern or transaction scope. The useful story explains why the original plan was expensive and what trade-off the new design introduced.

Intermediate2 min read

What failure scenarios existed?

Project deep dives·Project discussion

Failure scenarios are the ways a normal workflow can be interrupted or produce an uncertain result. They include invalid data, unavailable dependencies, duplicate events and crashes between steps. A project answer should explain the scenarios the actual system handled and honestly identify known gaps.

Intermediate2 min read

How did you handle retries?

Project deep dives·Project discussion

A retry policy decides which failures may be attempted again, how long to wait and when to stop. It is valuable for temporary faults but dangerous for non-idempotent side effects. Explain the actual policy and duplicate protection used, or clearly say that a policy was missing.

Intermediate2 min read

How did you prevent duplicate processing?

Project deep dives·Project discussion

Duplicate prevention identifies repeated attempts at the same logical operation and avoids applying its effect twice. It must work under concurrent requests and crashes, so an ordinary pre-check is often insufficient. A stable key plus an atomic database rule is one approach, with separate handling for external effects.

Intermediate2 min read

How did you secure the application?

Project deep dives·Project discussion

Application security is a collection of controls at identity, data-access, input and operational boundaries. A project explanation should focus on specific implemented checks rather than broad labels such as “secure APIs.” Use one concrete request to demonstrate how an unauthorized action was rejected.

Intermediate2 min read

What would happen at 10x traffic?

Project deep dives·Project discussion

A 10x traffic question tests whether you understand how work and resource usage grow. Different parts of the system may scale differently, so ten times the requests does not automatically require ten times the app servers. Start with current bottlenecks, data growth and external quotas, then estimate which limit appears first.

Intermediate2 min read

What is the bottleneck?

Project deep dives·Project discussion

A bottleneck is the resource or serialized step that limits throughput or increases waiting time. It can move after an optimization, so it is a property of a workload and system state rather than a permanent label on a component. Traces and saturation measurements help identify it.

Intermediate2 min read

What would you cache?

Project deep dives·Project discussion

Caching reuses an earlier result to avoid repeated work. Good candidates are expensive repeated reads with an acceptable freshness window and a clear key. Caching is a poor shortcut when every answer must reflect the latest write or when users could share private results accidentally.

Intermediate2 min read

Where could a race condition happen?

Project deep dives·Project discussion

A race condition happens when overlapping operations can violate a rule because their checks and writes are not coordinated. It can occur across requests even in a single-threaded Node process, and across multiple app instances. Identify the shared state and the exact interleaving that produces a wrong result.

Intermediate2 min read

What happens if a third-party integration is unavailable?

Project deep dives·Project discussion

An unavailable integration should not cause unlimited waiting or silently lose accepted work. The design needs deadlines and an explicit user-visible outcome, such as failure, pending work or a stale-but-labeled result. Retry and reconciliation policies depend on whether the external operation is safe to repeat.

Intermediate2 min read

What happens if a database transaction fails halfway?

Project deep dives·Project discussion

A database transaction is intended to prevent partial committed changes within its own boundary. If a participating statement fails and the transaction is rolled back, its uncommitted database changes are not kept. Other systems and earlier independent commits are outside that protection.

Intermediate2 min read

How would you monitor this system?

Project deep dives·Project discussion

Monitoring tracks whether the system meets its operational goals and helps locate failures. Metrics show trends, logs show events and traces connect steps in a request or workflow. Useful monitoring includes business progress, not just whether processes are alive.

Intermediate2 min read

What would you redesign today?

Project deep dives·Project discussion

A redesign answer should show what you learned from the existing system and how you would improve one real weakness. The proposal needs a benefit, a migration approach and an honest cost. Replacing a whole stack is rarely a convincing answer without a specific constraint driving it.

Intermediate2 min read

How do I explain Azure AD SSO and its tokens?

Project deep dives·Technical deep dives

Single sign-on lets an application rely on an identity provider so users can reuse an established login. OIDC supplies login identity on top of OAuth, while access and refresh tokens support API access and session continuation. The client and API validate different token purposes rather than trusting any token returned by the login service.

Advanced2 min read

What is a tenant, and why does it matter?

Project deep dives·Technical deep dives

A tenant is an organizational identity boundary containing users, applications and policies. Multi-tenant applications must decide which organizations can sign in and which data each organization may access. Identity-provider tenant validation and application database tenant scoping are related but separate controls.

Advanced2 min read

How do I explain workflow state, retries and compensation?

Project deep dives·Technical deep dives

Workflow state records where a run is, which steps completed and what remains to be done. Retries repeat recoverable steps, while compensation performs a business recovery action after partial success. Durable state makes these decisions possible after a process restart instead of relying on in-memory progress.

Advanced2 min read

How do I explain stored procedure optimization?

Project deep dives·Technical deep dives

A stored procedure is database-side code that groups SQL operations and control flow into a callable unit. It can reduce application round trips and centralize data logic, but a procedure can still contain slow queries or hold locks too long. Optimization begins by finding the expensive statements and understanding their plans and transaction behavior.

Advanced2 min read

How do I explain price/time priority and auditability?

Project deep dives·Technical deep dives

Price/time priority chooses better eligible prices first and then the earlier accepted order among equal-price orders in a simple matching model. Auditability means accepted inputs and resulting decisions can be reconstructed and checked. Concurrency control, durable sequence and exact quantities are needed so recovery does not change the outcome.

Advanced2 min read

Difficulty is an editorial estimate. Completion means you chose to mark a question as understood.