Interview preparation
UNDERSTAND. EXPLAIN. REPEAT.

Question library

Explained questions for the decisions developers make.

Filters
117 questions matching “Coding”

When would you avoid LangChain?

AI Engineering·LangChain

For a small direct API call with clear validation, plain SDK code may be easier to understand and maintain. I adopt abstractions when they reduce actual integration complexity and keep provider requests, costs, and failures inspectable.

Advanced2 min read

What are nodes, edges, and state?

AI Engineering·LangGraph

Nodes are steps that perform work, edges choose what runs next, and state carries the information needed by those steps. Nodes can be ordinary code or model calls, so the graph can be deterministic or hybrid.

Foundation2 min read

Deterministic versus agentic workflow?

AI Engineering·Workflows

Deterministic transitions follow defined code and recorded outcomes. Agentic transitions delegate some next-step choices to a model. I use AI for language uncertainty and deterministic control for business invariants.

Foundation2 min read

Why isn't normal unit testing enough?

AI Engineering·Evaluation

Model outputs vary and can be plausible but wrong. I still unit-test deterministic code, but also evaluate representative tasks, support from evidence, tool behavior, and safe failure using versioned datasets and rubrics.

Foundation2 min read

The API returned 200 but the user got no complete answer. Why?

AI Engineering·Observability

Streaming headers may have been sent before an error or disconnect. I inspect terminal events and run/message status rather than HTTP code alone, then check provider completion, validation, cancellation, and persistence spans.

Advanced2 min read

What questions come before architecture?

AI Engineering·AI system design

What task should succeed, which data is authoritative, who may access it, what errors are costly, how fast it must respond, expected load, and available budget. Then decide whether deterministic code or AI is needed.

Foundation2 min read

A concrete architecture proposal template

AI Engineering·Senior engineer decision framework

For a client, write: Outcome and scope; users and permissions; authoritative data; ordinary-code baseline; AI responsibilities; controlled workflow and approvals; tools/data contracts; failure and reconciliation policy; evaluations; telemetry/audit;…

Advanced2 min read

Questions to ask before choosing architecture

AI Engineering·Interview revision cheat sheet

What successful outcome does the client need, and can ordinary code provide it?

Intermediate2 min read

Final interview advice

DSA fundamentals·Interview practice & revision

Explain the approach before coding.

Advanced2 min read

Best Java DSA interview practice list

DSA with Java·Java implementations

Must know

Advanced2 min read

What should I study first?

Interview skills·Answer technique

Preparation works best when later topics build on earlier ones. JavaScript scope and async behavior support Node and React; database rules support backend correctness and system design. Follow the sequence, but spend extra time where you cannot yet explain a concept without reading the answer.

Foundation2 min read

How can I reduce dependence on AI?

Interview skills·Answer technique

Reducing AI dependence means being able to understand, test and change a solution without treating generated output as authority. Use AI as a source of candidate ideas, then establish correctness through your own reasoning and evidence. The goal is independent judgment, not avoiding useful tools entirely.

Foundation2 min read

What is scope? What does lexical mean?

JavaScript & TypeScript·Scope & execution

Scope is the part of a program where a variable can be accessed. JavaScript uses lexical scope, which means the available outer variables depend on where a function was defined, not where it is later called. The engine searches outward through surrounding scopes when a name is not found locally.

Foundation2 min read

What are unknown, any and never?

JavaScript & TypeScript·TypeScript

any allows operations without normal type checking, while unknown accepts any value but requires checks before use. never represents a situation where no value is possible, such as the result of a function that always throws. These types describe different levels of knowledge and should not be used interchangeably.

Intermediate2 min read

HTTP/1.1 vs HTTP/2 vs HTTP/3?

Node.js, Express & HTTP·HTTP & APIs

HTTP versions preserve the basic request/response model but change how messages travel over the network. HTTP/2 multiplexes streams over one TCP connection, while HTTP/3 uses QUIC to avoid some transport-level blocking between streams. These improvements affect connection efficiency, not the need for correct API semantics.

Foundation2 min read

What makes a backend ready for production?

Node.js, Express & HTTP·Production engineering

Production readiness means an application can be operated, monitored and recovered under normal load and failure. Working business logic is only one part; configuration, resource limits, startup, shutdown and observability also affect users. A ready service should fail clearly and avoid accepting work it cannot safely complete.

Intermediate2 min read

What are WebSockets, microservices and CQRS used for?

NestJS·Background work & deployment

WebSockets maintain a two-way connection for ongoing messages, microservices split an application into separately operated services, and CQRS separates command/write handling from query/read handling. These solve different problems and can be used independently. Each adds complexity that should be justified by a concrete requirement.

Intermediate2 min read

How do I fix slow aggregation, pagination or N+1 queries?

MongoDB & Mongoose·Query performance

Query performance depends on how much data is scanned, joined, sorted and returned for each useful result. Slow pagination and N+1 patterns often do repeated work that grows with result size. The best fix usually reduces that work before increasing hardware or connection limits.

Advanced2 min read

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