Interview preparation
UNDERSTAND. EXPLAIN. REPEAT.

Question library

Explained questions for the decisions developers make.

Filters
660 questions

Guardrails

AI Engineering·Interview preparation

Beginner — What is a guardrail?

Intermediate2 min read

What is a guardrail?

AI Engineering·Guardrails

A check limiting unsafe or invalid behavior at input, output, or tool boundaries. Examples include schemas, content checks, evidence validation, rate limits, business rules, and approval gates.

Foundation2 min read

Does valid structured output mean safe output?

AI Engineering·Guardrails

No. A valid object can contain false facts or unauthorized action arguments. I validate shape, then check business meaning, ownership, evidence, and required approval independently.

Intermediate2 min read

What should fail closed?

AI Engineering·Guardrails

Permission, approval, and critical business-rule checks should block action when they cannot establish validity. For uncertain content or model availability, I use an appropriate clarification, template, search result, or human escalation rather than silently…

Advanced2 min read

A moderation check rejects legitimate injury descriptions. What do you do?

AI Engineering·Guardrails

I inspect domain-specific false positives, refine the policy and calibration dataset, and provide a permitted review path. Insurance support must handle legitimate sensitive content while minimizing private data and enforcing access.

Advanced2 min read

Evaluation

AI Engineering·Interview preparation

Beginner — Why isn't normal unit testing enough?

Intermediate2 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

Faithfulness versus correctness?

AI Engineering·Evaluation

Faithfulness asks whether the answer follows its evidence. Correctness asks whether it is the right answer for the applicable task and facts. An answer can faithfully repeat an outdated or inapplicable policy and remain wrong.

Intermediate2 min read

How do you trust an LLM judge?

AI Engineering·Evaluation

I calibrate it against human-labeled cases, test adversarial outputs, track disagreement, and version its rubric/model. I combine it with deterministic checks and never make it the sole permission or financial gate.

Advanced2 min read

A new prompt raises average accuracy but causes one tenant leak. Ship?

AI Engineering·Evaluation

No. Severe boundary violations are release blockers regardless of the average. I investigate the cause, fix the enforced access boundary, add the case to the security suite, and rerun relevant regression and quality checks.

Advanced2 min read

Observability

AI Engineering·Interview preparation

Beginner — What do you trace in an AI request?

Intermediate2 min read

What do you trace in an AI request?

AI Engineering·Observability

Authentication, retrieval, model calls, tool calls, state transitions, validation, and final outcome, linked by run/request IDs. I record timing, usage, and safe metadata without indiscriminately logging private content.

Foundation2 min read

Time to first token versus total latency?

AI Engineering·Observability

Time to first token measures how soon generation begins producing text, while total latency includes all required work and completion. Streaming improves perceived progress but may not reduce total runtime or cost.

Intermediate2 min read

Trace versus audit log?

AI Engineering·Observability

A trace diagnoses execution and performance and may be sampled. A business audit records important actions, actors, decisions, and outcomes with appropriate integrity/retention. I link them but do not let sampled traces replace claim approval records.

Advanced2 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

Cost optimization

AI Engineering·Interview preparation

Beginner — What determines AI cost?

Intermediate2 min read

What determines AI cost?

AI Engineering·Cost optimization

Input/output usage, model pricing, tool/search calls, embeddings, retries, and infrastructure. Human review and failed tasks also matter. I calculate total cost per completed useful task rather than only one API call.

Foundation2 min read

When is semantic caching unsafe?

AI Engineering·Cost optimization

When similar requests differ in tenant, user permissions, policy version, date, or personalized facts. I restrict it to suitable stable tasks and include freshness and scope dependencies; exact caches also require proper keys and invalidation.

Intermediate2 min read

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