| Q241 | Design an enterprise RAG system for confidential docs. | Versioned ingestion, ACL metadata/filtering, hybrid/rerank, citations, evals, freshness, tenant/security ops. | Full-system design. | “Vector DB + prompt.” | How delete revoked docs? | 081–110, 191 |
| Q242 | How would you choose a vector database? | Workload scale, filters, update rate, recall/latency, operations, compliance, cost. | Requirement-driven. | “Most popular benchmark.” | pgvector vs managed? | 073–080 |
| Q243 | How do you prove RAG tenant isolation? | Adversarial automated tests across storage/filter/cache/trace/tool paths plus query policy review. | Evidence, not intent. | “tenant_id prompt.” | What about shared embeddings? | 077–079, 189 |
| Q244 | How do you roll out new chunking? | Versioned parallel ingestion/index, offline eval, shadow, cutover, rollback. | Avoid mixed index corruption. | “Rechunk production in place.” | Freshness during backfill? | 086–093, 200 |
| Q245 | How do you detect stale RAG knowledge? | Source-version/freshness metrics, reconciliation, sampled source→index checks, evals. | Freshness is correctness. | “Ask model current date.” | Delete handling? | 079, 083–093 |
| Q246 | How do you evaluate a RAG stack end-to-end? | Retrieval metrics + grounded/correct/citation metrics + latency/cost/safety, segmented dataset. | Component + product view. | “LLM judge score only.” | How isolate regression? | 109–110, 181–187 |
| Q247 | Design a support agent allowed to refund up to $100. | Model interprets/proposes; deterministic policy checks ownership/amount; HITL/risk; idempotent executor/audit. | Financial invariant. | “Prompt says max $100.” | Concurrent refunds? | 053–059, 169–170 |
| Q248 | How do you recover when refund API times out after request? | Use idempotency/status lookup/reconciliation; do not blindly retry ambiguous write. | Distributed side effect. | “Retry immediately.” | If API lacks idempotency? | 058, 197 |
| Q249 | How do you design approval for an agent write? | Persist exact normalized action/hash, actor, expiry, decision; re-auth; execute once. | Consent integrity. | “Boolean approved in prompt.” | Modify flow? | 169, 180 |
| Q250 | How do you bound an autonomous research agent? | Source/tool allowlist, time/step/token/cost/search budgets, evidence criteria, no-progress, cancel. | Bounded autonomy. | “Let it decide when done.” | What is success metric? | 159, 170 |
| Q251 | When would you not use an agent? | Known deterministic process, high-stakes action, simple extraction/retrieval, tight latency/cost. | Complexity discipline. | “Agents for all AI.” | What would you use instead? | 156–157 |
| Q252 | How do you decide single vs multi-agent? | Compare specialization need and eval gain against coordination/latency/cost/security complexity. | Evidence-based. | “One agent per role.” | Baseline experiment? | 164–166 |
| Q253 | How do you prevent supervisor/worker loops? | Max depth/delegations, task IDs, visited set/no-progress, terminal/escalation states. | Convergence. | “Supervisor is smart enough.” | Parallel workers? | 166, 170 |
| Q254 | How should specialist agents communicate? | Minimal typed artifacts with provenance, not raw global memory; per-worker permissions. | Isolation/coupling. | “Share entire transcript.” | Conflict handling? | 165–166 |
| Q255 | Design user memory for an assistant. | Separate short-term thread state from long-term facts; consent/provenance/TTL/edit/delete/retrieval. | Data lifecycle. | “Store all chats in vector DB.” | Stale preference? | 167–168 |
| Q256 | How do you handle memory conflict? | Source authority/recency/user-confirmed state, surface ambiguity, update rather than silently merge. | Persistent fact correctness. | “Latest embedding wins.” | Delete propagation? | 168 |
| Q257 | Design a durable LangGraph approval workflow. | Typed state, checkpoint/thread, propose→interrupt→resume→re-auth→idempotent execute→audit. | Core production graph. | “Keep server process waiting.” | Node replay? | 146–155, 169 |
| Q258 | How do you deploy graph changes with active runs? | State/graph versioning, backward-compatible nodes/migrations, drain or route runs by version, resume tests. | Long-lived workflow evolution. | “All runs use newest code.” | Breaking tool schema? | 148, 155 |
| Q259 | What can cause duplicate side effects in durable workflows? | At-least-once retry, crash after external success, interrupt replay, duplicate resume/message. | Failure semantics. | “Only user double-click.” | Controls? | 151–152, 197 |
| Q260 | How do you test every graph route? | Deterministic service fakes, table-driven state cases, edge/interrupt/error/retry/termination assertions. | Graph is state machine. | “One happy E2E.” | Parallel branches? | 131–155, 198 |
| Q261 | Design a company MCP registry. | Server identity/version/trust owner, capability diff, scopes/risk, transport/auth, approval, health/audit. | MCP platform governance. | “List server URLs.” | Third-party server update? | 171–180, 200 |
| Q262 | How do you onboard third-party MCP server securely? | Review provenance/code/vendor, sandbox/network/files, credential scopes, tool/resource diff, allowlist, monitoring. | Supply-chain trust. | “MCP standard makes safe.” | Auto-update? | 178–180, 190 |
| Q263 | How do you secure remote MCP? | TLS, auth/OAuth resource validation, origin/host controls, least scopes, rate limits, audit, server-side auth. | Network + capability security. | “HTTPS only.” | Token storage? | 174, 179–180 |
| Q264 | How do you handle MCP protocol version evolution? | Isolate transport/protocol adapter, pin stable baseline, compatibility tests, beta opt-in, staged migration. | Fast-moving standard. | “Upgrade all clients immediately.” | Draft 2026? | baseline, 175 |
| Q265 | How do you handle malicious MCP resource content? | Treat as untrusted, label context, no privilege gain, egress/tool policy, injection evals. | Context trust boundary. | “Resources are data so harmless.” | Data exfiltration? | 178, 188 |
| Q266 | Design OAuth token architecture for many tool providers. | Per-user/workspace encrypted credential vault, scopes/audience, refresh broker, revocation, just-in-time token use. | Central security boundary. | “Put tokens in graph state.” | Multi-region? | 179–180, 200 |
| Q267 | How do you detect overbroad OAuth scopes? | Connection policy expected scopes, consent review, token metadata, audits/tests, reject unnecessary scope. | Least privilege. | “Provider defaults.” | Scope upgrade flow? | 179 |
| Q268 | How do you prevent prompt injection from becoming exfiltration? | Capability/data minimization, policy before tools, egress restrictions, sensitive-data controls, approvals/audit. | Injection impact containment. | “Prompt says don’t reveal.” | Web tool example? | 188–190 |
| Q269 | How do you secure a coding agent? | Ephemeral sandbox, repo/workspace scope, secret isolation, network allowlist, command/resource limits, review/write permissions. | High-risk tool system. | “Docker alone.” | CI credential access? | 190 |
| Q270 | How do you handle arbitrary SQL requests from model? | Model produces intent/query plan; trusted parameterized/query builder/read replica/allowlist limits, no raw privileged SQL. | Data security. | “Execute generated SQL after syntax parse.” | Analytics use case? | 190 |
| Q271 | Design an eval suite for a support agent. | Dataset by request/risk; answer, tool/no-tool, args, groundedness, approval, safety, latency/cost trajectory metrics. | Complete task definition. | “100 chat examples.” | Production feedback? | 181–187 |
| Q272 | How do you select an LLM judge? | Quality/calibration vs human labels, cost/latency, bias, version stability; use rubric and deterministic checks. | Judge is component. | “Largest model.” | Judge model upgrade? | 184 |
| Q273 | How do you prevent eval overfitting? | Held-out cases, production sampling, segment coverage, rotate adversarial cases, avoid developing only to one aggregate. | Evaluation validity. | “Increase dataset size only.” | Leakage from prompt examples? | 182–184 |
| Q274 | How do you decide eval thresholds for deployment? | Baseline/candidate, minimum critical metrics/segments, statistical/noise tolerance, explicit no-regression gates. | Risk-aware shipping. | “Overall score >80.” | Safety gate? | 181–185 |
| Q275 | What production metrics matter beyond eval scores? | Task completion, escalation, failures, latency, tokens/cost, tool success, queue/freshness, feedback. | Real operations. | “Accuracy only.” | SLO design? | 186–187, 191–197 |
| Q276 | How do you make traces useful but privacy-safe? | Structured metadata/IDs, controlled sampling, redaction, retention/access, no secrets, payload opt-in. | Telemetry governance. | “Log everything for debugging.” | Incident requiring content? | 186 |
| Q277 | How do you debug model quality regression in production? | Segment by model/prompt/tools/retrieval/version; replay traces against eval; compare baseline; rollback if needed. | Causal diagnosis. | “Increase temperature.” | Provider silent change? | 181–187 |
| Q278 | Design a model gateway. | Auth/tenant, provider adapters, capability catalog, routing/fallback, budgets/rate limits, telemetry, eval version policy. | Platform boundary. | “Proxy HTTP endpoint.” | Provider-specific features? | 040, 193, 200 |
| Q279 | How do you avoid lowest-common-denominator gateway design? | Common core plus capability-specific typed extensions; product can opt into evaluated provider features. | Portability vs innovation. | “Hide every difference.” | Example extension? | 040, 200 |
| Q280 | How do you route between cheap and expensive models? | Task/risk classifier + eval-qualified model tiers + latency/cost constraints + fallback. | Optimize utility. | “Character count.” | Router misclassification? | 193 |
| Q281 | How do you handle provider-specific structured output differences? | Adapter capability contract + schema/contract tests + per-provider implementation/fallback. | Integration reality. | “Framework normalizes perfectly.” | Queued jobs? | 041–050, 193 |
| Q282 | Design model-provider outage response. | Circuit breaker, compatible failover, degrade/queue, user communication, alert, incident, postmortem. | Reliability. | “Retry forever.” | No fallback? | 193, 197 |
| Q283 | How do you attribute AI cost by tenant? | Usage ledger per run/call with provider model tokens, embeddings/rerank/tools, mapped to workspace. | Economic governance. | “Cloud bill / users.” | Shared infra allocation? | 195 |
| Q284 | How do you prevent denial-of-wallet? | Auth, rate limits, run budgets, model/tool caps, quotas, anomaly alerts, approval for expensive operations. | Abuse + bugs. | “Set billing alert.” | Multi-agent risk? | 170, 195 |
| Q285 | How do you optimize context cost? | Better retrieval/rerank/dedupe, summaries, stable prompt caching, per-task budgets. | Input often dominates. | “Compress text randomly.” | Quality verification? | 107, 194–195 |
| Q286 | How do you benchmark latency? | End-to-end and per-span p50/p95/p99, TTFT/total, warm/cold, concurrency/query classes. | Real workload. | “One local timing.” | Streaming effect? | 196 |
| Q287 | How do you reduce RAG latency? | Parallel eligible searches, ANN/filter tuning, candidate/reranker bounds, cache, colocate services, fast embeddings/model. | Multi-stage optimization. | “Skip citations.” | Quality trade-off? | 101–110, 196 |
| Q288 | How do you reduce agent latency? | Fewer loops/tools, parallel independent reads, better routing/plans, async UX, avoid unnecessary critique. | Control-flow cost. | “Faster model only.” | Which spans prove? | 156–170, 196 |
| Q289 | How do you handle queue backpressure? | Admission control, concurrency/rate limits, priorities, scaling, ETA/degraded path, DLQ. | Protect system. | “Add workers infinitely.” | Provider quota? | 192, 197 |
| Q290 | What is idempotency strategy for queued agents? | Stable run/action IDs, state transitions, executor idempotency, dedupe, reconcile ambiguous outcomes. | At-least-once execution. | “Queue exactly-once.” | Retry after crash? | 192, 197 |
| Q291 | How do you cancel long AI work? | Persist cancel intent, propagate signals to model/tools, workers check state, terminal cancelled, cleanup safely. | Cooperative cancellation. | “Close browser.” | External write in flight? | 192, 197 |
| Q292 | How do you safely cache tool results? | Only deterministic/read semantics; include auth/resource/version/TTL; avoid stale sensitive sharing. | Cache is data boundary. | “Cache every GET.” | OAuth-scoped result? | 194 |
| Q293 | How do you design semantic-cache invalidation? | Version source/model/prompt/security scope, TTL, threshold eval, explicit invalidation for knowledge changes. | Hard problem. | “No invalidation needed.” | Legal docs? | 194 |
| Q294 | How do you test AI platform resilience? | Fault injection at provider/vector/queue/tool/OAuth; assert bounded recovery, no duplicate writes, observability. | Failure as design. | “Unit tests only.” | Chaos in staging? | 197–198 |
| Q295 | How do you differentiate retryable and recoverable? | Retryable same action may succeed later; recoverable needs alternate path/replan/user input; human/fatal separate. | Error taxonomy. | “All errors retry.” | Invalid tool args? | 197 |
| Q296 | What is safe degradation for empty retrieval? | State insufficient context, alternate authorized source/search, ask clarification/escalate; no guessing. | Reliability + quality. | “Use model memory.” | Product UX? | 108, 197 |
| Q297 | Design a ChatGPT-like assistant at high level. | Auth/conversations/model gateway/tools/RAG/memory/streaming/safety/evals/ops with tiers. | System design breadth. | “Frontend + API call.” | Multi-tenant storage? | 191, 199 |
| Q298 | Design an AI search engine. | Crawl/ingest/index lexical+dense, ranking/reranking, freshness, answer generation/citations, evals/abuse. | Search-first architecture. | “RAG chatbot.” | Ranking metrics? | 101–110, 199 |
| Q299 | Design a coding agent platform. | Repo isolation, planner/graph, search/read/edit/test tools, sandbox, checkpoints, approvals, evals, cost. | Complex agent system. | “LLM + shell.” | Secret handling? | 156–170, 190, 199 |
| Q300 | Design document intelligence. | Multi-format parsing/OCR/tables, extraction schemas, human review, RAG, provenance, jobs/evals. | Data pipeline + AI. | “Upload PDF to model.” | Large batch scale? | 083–110, 192 |
| Q301 | Design a multi-tenant AI SaaS. | Workspace auth, data/tool/RAG/state/cache/trace isolation, quotas, model gateway, evals. | Tenant as cross-cutting invariant. | “tenant_id in prompt.” | Background workers? | 189, 191–200 |
| Q302 | Design an AI workflow automation platform. | Triggers, durable graphs, connectors/MCP, OAuth, approvals, idempotent jobs, scheduler, audit/evals. | Automation = side effects. | “Agent loop with tools.” | Exactly-once misconception? | 146–180, 192 |
| Q303 | Design an evaluation platform. | Dataset/case/grader/version/run/comparison storage, batch workers, trace import, dashboards, access. | Evals as infrastructure. | “Spreadsheet of scores.” | Judge governance? | 181–187, 200 |
| Q304 | Design an agent observability platform. | Trace schema for model/tool/retrieval/graph/HITL, sampling/redaction, search, metrics, cost, replay links. | Process visibility. | “Central logs.” | Tenant access? | 185–187, 200 |
| Q305 | Design an MCP platform for enterprise tools. | Registry, server deployment/connectivity, auth/OAuth, policy/risk, capability diff, sandbox, audit, SDK. | Standardized secure tool ecosystem. | “Install MCP servers on laptops.” | Remote vs local? | 171–180, 200 |
| Q306 | How do you decide centralized vs team-owned prompts? | Platform registry/standards/telemetry; domain teams own semantics; review for high-risk shared prompts. | Organization design. | “Platform owns all prompts.” | Who sets evals? | 037, 200 |
| Q307 | How do you govern model upgrades? | Capability/eval benchmark, contract tests, cost/latency, canary, version pin, rollback and owner. | Models are dependencies. | “Use latest automatically.” | Security model change? | baseline, 193, 200 |
| Q308 | How do you govern vector index changes? | Versioned build/eval/cutover, freshness/reconciliation, rollback and storage budget. | Data-system migration. | “ALTER index live.” | Embedding change? | 071, 200 |
| Q309 | How do you govern tool schema changes? | Backward compatibility/versioning, agent evals, MCP/client capability diff, rollout with old runs. | Contracts affect trajectories. | “Models adapt.” | Rename parameter? | 049, 052, 200 |
| Q310 | How do you manage long-lived agent runs during deploy? | Pin run workflow version or maintain compatibility; drain/migrate; durable state; retry-safe workers. | Deployment correctness. | “Restart all runs.” | Emergency security fix? | 148–155, 200 |
| Q311 | How do you define ownership in AI incidents? | Platform owns model/gateway/runtime; data/RAG owner; product policy/tool owner; clear escalation matrix. | Cross-system incidents. | “AI team owns everything.” | Duplicate refund owner? | 191–200 |
| Q312 | What incident metrics do you preserve? | Trace IDs, versions, state transitions, tool/idempotency, source/index version, timings/cost, without leaking secrets. | Evidence. | “Only final chat.” | Legal retention? | 186–197 |
| Q313 | How do you roll back an AI change? | Versioned prompt/model/graph/retriever config, immutable deployment refs, traffic switch; handle in-flight state. | Rollback readiness. | “Git revert only.” | Data migration rollback? | 037, 148, 200 |
| Q314 | What makes an AI feature production-ready? | Evals, tests, auth, failure modes, observability, budgets, data lifecycle, rollout/rollback, incident owner. | Definition of done. | “Demo accuracy.” | Which gate for write tool? | 181–200 |
| Q315 | How do you measure product value of AI agent? | Task completion/outcome, time saved, escalation, quality, user correction, cost per success—not token volume. | Business alignment. | “Number of calls.” | Offline vs online metrics? | 187, 195 |
| Q316 | How do you choose human review thresholds? | Risk/irreversibility/uncertainty/policy/cost; validate with incident/quality data. | Not confidence alone. | “Confidence below 0.7.” | Money transfer? | 169–170 |
| Q317 | How do you design an AI architecture review? | Requirements/data/action risks, diagram, trust boundaries, evals/SLOs, failure/cost, evolution, decisions. | Senior communication. | “List libraries.” | What evidence request? | 199–200 |
| Q318 | What should an AI platform not abstract? | Product-specific domain rules/semantics and provider capabilities where abstraction erases needed behavior. | Avoid platform overreach. | “Everything.” | Example? | 040, 200 |
| Q319 | How do you know when to replace an agent with workflow? | Stable trajectories emerge, variability low, deterministic path improves cost/reliability without quality loss. | Simplification is optimization. | “Never go backwards.” | Migration method? | 156–157 |
| Q320 | What is your senior-level AI engineering principle? | Treat models as probabilistic components inside deterministic, observable, evaluated, least-privilege systems. | Integrates trade-offs. | “Use best model and prompt.” | Apply to capstone. | 001–200 |