Interview preparation
UNDERSTAND. EXPLAIN. REPEAT.

Question library

Explained questions for the decisions developers make.

Filters
660 questions

When do you use an agent versus a workflow?

AI Engineering·Microsoft Agent Framework

Use an agent for variable language interaction and bounded tool selection. Use a workflow when order, dependencies, approvals, or state transitions must be explicit. A business application often uses both.

Intermediate2 min read

MAF versus LangGraph?

AI Engineering·Microsoft Agent Framework

I compare ecosystem/language fit, state contracts, review/resume behavior, persistence guarantees, observability, and hosting. LangGraph starts from explicit state-graph orchestration; MAF provides agent and workflow abstractions in its ecosystem. The…

Advanced2 min read

A client already uses Semantic Kernel. Do you rewrite?

AI Engineering·Microsoft Agent Framework

I inventory maintained features, current support, and actual pain points. I prototype MAF behind stable tool contracts and compare evaluation/recovery behavior before migrating. A rename or new framework alone does not justify a risky rewrite.

Advanced2 min read

Workflows

AI Engineering·Interview preparation

Beginner — Deterministic versus agentic workflow?

Intermediate2 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 is idempotency important?

AI Engineering·Workflows

Retries can happen after a successful effect but before the response arrives. A scoped operation key and payload hash let the service return the same receipt instead of creating another claim or sending another email.

Intermediate2 min read

Temporal or BullMQ?

AI Engineering·Workflows

I use a queue for isolated background jobs and a durable workflow platform for long-lived coordination, timers, and human events when justified. BullMQ still needs explicit business lifecycle records; Temporal still needs idempotent activities and…

Advanced2 min read

Submission timed out. Should you retry?

AI Engineering·Workflows

First classify the outcome as potentially unknown. Query or reconcile the external receipt by operation key, then retry only under a documented idempotency contract. Reporting failure immediately could encourage duplicate customer submissions.

Advanced2 min read

Memory

AI Engineering·Interview preparation

Beginner — Context versus memory?

Intermediate2 min read

Context versus memory?

AI Engineering·Memory

Context is the information a model sees in the current call. Memory is stored application data that may be selected for later context. Persisting something does not make it accurate, current, relevant, or authorized for every task.

Foundation2 min read

Checkpoints versus long-term memory?

AI Engineering·Memory

Checkpoints recover execution progress; long-term memory stores selected preferences or verified past events. I keep both separate from authoritative policy and claim records because their purposes and retention differ.

Intermediate2 min read

How do you prevent memory poisoning?

AI Engineering·Memory

I define which sources may create memory, require provenance and verification for important facts, scope it by tenant/user, and provide expiry and correction/deletion. Retrieved memory remains lower authority than fresh canonical business data.

Advanced2 min read

The assistant remembers a policy that has expired. What changes?

AI Engineering·Memory

It must resolve current policy applicability through the business service. Historical memory may explain past conversation but cannot decide the active version. I invalidate dependent caches and test stale-memory conflicts explicitly.

Advanced2 min read

AI security

AI Engineering·Interview preparation

Beginner — What is prompt injection?

Intermediate2 min read

What is prompt injection?

AI Engineering·AI security

It is an attempt to redirect the model through attacker-controlled instructions. When those instructions appear in a PDF, webpage, email, or tool result, it is indirect injection. I treat these sources as data and limit model authority.

Foundation2 min read

Why avoid direct database access?

AI Engineering·AI security

A generated query can read too much, mutate data, or consume excessive resources. I expose narrow schema-defined business tools with authorization, parameterized queries, field projection, and limits instead of broad database credentials.

Intermediate2 min read

What are the main trust boundaries?

AI Engineering·AI security

Browser to API, documents to parser, model to tool executor, tool to business service, cross-tenant retrieval/memory/cache, and application to provider/telemetry. At each boundary I validate, minimize, authorize, and record permitted outcomes.

Advanced2 min read

An invoice tells the agent to email private records. What blocks it?

AI Engineering·AI security

The invoice is untrusted content. The agent lacks unrestricted read/send tools, the tool service checks object access and recipients, and sending requires the configured approval. A better prompt helps but does not serve as the primary barrier.

Advanced2 min read

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