Use this answer frame
Clarify the user outcome, failure impact, workload, residency, and owner. Draw the request path separately from the identity and authority path. Name state that survives interruption, what an unknown write outcome means, and which metric or evaluation could disprove your design.
Version note: Cloud features, network paths, quotas, and tool support change by service version, account, and region. Treat product capabilities below as interview scenarios, then verify the actual deployment target before relying on them.
Architecture scenarios
| Stack | Hidden hard part | Trade-off |
|---|---|---|
| AgentCore | Gateway bypass, managed harness versus runtime, identity, DR. | Managed runtime versus application-owned orchestration. |
| Microsoft Foundry | Private ingress versus outbound isolation and tool-specific paths. | Managed tools versus customer egress and residency constraints. |
| Gemini Enterprise Agent Platform | Runtime choice, event quotas, evaluation path, region-bound memory. | Managed integration versus container portability or cluster control. |
| vLLM / Ray / Kubernetes | KV cache, GPU saturation, backpressure, model/adapter rollout. | Utilization versus tail latency, fairness, and tenant isolation. |
| Cross-stack | Revocation, failover semantics, trace correlation, state compatibility. | Shared contracts versus preserving provider-specific capabilities. |
AWS AgentCore system design questions
Your agent runs on AgentCore Runtime behind an AgentCore Gateway, but the runtime can also be invoked directly. How do you close the bypass while preserving workload identity and a safe break-glass path?
Synthesized hard system-design practice · 01
Open reasoning route and hidden trap
Reasoning route: Treat the gateway as a boundary only if the runtime rejects direct callers. Restrict invocation by gateway identity, scope downstream tool authorization to the end user, test bypass attempts, and audit temporary emergency access.
Hidden trap: A gateway in front does not automatically make it the only path; a powerful gateway role can become a confused deputy.
Pressure test: What changes if the action cannot be reversed, a dependency is unavailable for an hour, or the user loses access mid-run?
Related questions and scenario follow-ups +3
Relevant questions already answered
Variants and interviewer follow-ups
- Constraint shift: Peak traffic grows tenfold, the p99 target tightens, and the team cannot add another service this quarter. What do you change first?
Answer cue: Estimate the bottleneck, preserve safety/correctness invariants, and compare the cheapest reversible changes before scaling the architecture.
- Failure variant: Assume a dependency times out after a side effect may have committed. What is the safe response, and which system of record determines whether it is complete?
Answer cue: Distinguish known failure from unknown outcome; bound retries, reconcile authoritative state, and make the user-visible fallback explicit.
- Proof probe: Which single test or production signal would most quickly falsify your proposed answer?
Answer cue: Name the input, expected invariant, failure threshold, and the rollout or rollback decision tied to the result.
A long-running AgentCore workflow pauses for approval, then the region fails after an external write commits but before the workflow records success. Design recovery and failover.
Synthesized hard system-design practice · 02
Open reasoning route and hidden trap
Reasoning route: Persist a stable operation ID, exact approved payload, workflow and policy versions, and last confirmed checkpoint. On failover, reconcile the target system before retry; replicate only permitted state and test RPO, RTO, failback, identity, quotas, and tool availability.
Hidden trap: Replicated conversation memory is not proof the external transaction committed; platform recovery does not make side effects exactly once.
Pressure test: What changes if the action cannot be reversed, a dependency is unavailable for an hour, or the user loses access mid-run?
Related questions and scenario follow-ups +3
Relevant questions already answered
Variants and interviewer follow-ups
- Customer variant: The customer changes scope after seeing the prototype and asks for a production commitment. What do you revalidate, defer, or decline?
Answer cue: Reconfirm the outcome, decision owner, data/security constraints, baseline, and change impact; renegotiate scope and acceptance criteria.
- Delivery failure: A dependency owner is unavailable and the integration returns incomplete or stale data on launch day. How do you protect the workflow and recover?
Answer cue: Use a safe fallback, communicate impact, preserve evidence, reconcile data, and set a named owner and recovery checkpoint.
- Adoption probe: What evidence would show that users adopted this workflow and achieved the intended outcome after handoff?
Answer cue: Use a baseline and outcome measure, user correction/escalation rates, support burden, and an explicit review with the operators.
You have existing LangGraph agents and want AgentCore Runtime, Memory, Gateway, and Identity. Which layer owns the orchestration loop and durable state?
Synthesized hard system-design practice · 03
Open reasoning route and hidden trap
Reasoning route: Choose one workflow authority. If LangGraph owns transitions and interrupts, integrate AgentCore services at explicit boundaries and test checkpoint/schema compatibility. If a managed harness owns the loop, avoid duplicating checkpoints and retry semantics.
Hidden trap: Two state machines may each retry or resume the same side effect; valid serialization does not mean semantic compatibility.
Pressure test: What changes if the action cannot be reversed, a dependency is unavailable for an hour, or the user loses access mid-run?
Related questions and scenario follow-ups +3
Relevant questions already answered
Variants and interviewer follow-ups
- Constraint shift: Peak traffic grows tenfold, the p99 target tightens, and the team cannot add another service this quarter. What do you change first?
Answer cue: Estimate the bottleneck, preserve safety/correctness invariants, and compare the cheapest reversible changes before scaling the architecture.
- Failure variant: Assume a dependency times out after a side effect may have committed. What is the safe response, and which system of record determines whether it is complete?
Answer cue: Distinguish known failure from unknown outcome; bound retries, reconcile authoritative state, and make the user-visible fallback explicit.
- Proof probe: Which single test or production signal would most quickly falsify your proposed answer?
Answer cue: Name the input, expected invariant, failure threshold, and the rollout or rollback decision tied to the result.
A supervisor agent delegates to specialist agents whose service roles expose broader data than the caller can access. How do you prevent delegated privilege escalation?
Synthesized hard system-design practice · 04
Open reasoning route and hidden trap
Reasoning route: Carry authenticated user context separately from workload identity. Reauthorize each resource and action at the target; bound delegation by tenant, task, data class, and deadline; treat results as untrusted and verify before writes.
Hidden trap: The supervisor choosing a collaborator is not authorization; an agent's service role must not silently widen the user's access.
Pressure test: What changes if the action cannot be reversed, a dependency is unavailable for an hour, or the user loses access mid-run?
Related questions and scenario follow-ups +3
Relevant questions already answered
Variants and interviewer follow-ups
- Constraint shift: Peak traffic grows tenfold, the p99 target tightens, and the team cannot add another service this quarter. What do you change first?
Answer cue: Estimate the bottleneck, preserve safety/correctness invariants, and compare the cheapest reversible changes before scaling the architecture.
- Failure variant: Assume a dependency times out after a side effect may have committed. What is the safe response, and which system of record determines whether it is complete?
Answer cue: Distinguish known failure from unknown outcome; bound retries, reconcile authoritative state, and make the user-visible fallback explicit.
- Proof probe: Which single test or production signal would most quickly falsify your proposed answer?
Answer cue: Name the input, expected invariant, failure threshold, and the rollout or rollback decision tied to the result.
Microsoft Foundry system design questions
A regulated customer needs private ingress and no public egress, but the agent uses a mix of Foundry tools, Azure AI Search, an MCP endpoint, and public grounding. Draw the true network paths.
Synthesized hard system-design practice · 05
Open reasoning route and hidden trap
Reasoning route: Map each tool's path as private endpoint, VNet, platform backbone, or public internet. Validate DNS, firewall, identity, and feature support separately. Replace or explicitly disallow any required tool that cannot meet the no-public-egress condition.
Hidden trap: A private endpoint secures an inbound path; it does not imply isolated egress or make every built-in tool private.
Pressure test: What changes if the action cannot be reversed, a dependency is unavailable for an hour, or the user loses access mid-run?
Related questions and scenario follow-ups +3
Relevant questions already answered
Variants and interviewer follow-ups
- Customer variant: The customer changes scope after seeing the prototype and asks for a production commitment. What do you revalidate, defer, or decline?
Answer cue: Reconfirm the outcome, decision owner, data/security constraints, baseline, and change impact; renegotiate scope and acceptance criteria.
- Delivery failure: A dependency owner is unavailable and the integration returns incomplete or stale data on launch day. How do you protect the workflow and recover?
Answer cue: Use a safe fallback, communicate impact, preserve evidence, reconcile data, and set a named owner and recovery checkpoint.
- Adoption probe: What evidence would show that users adopted this workflow and achieved the intended outcome after handoff?
Answer cue: Use a baseline and outcome measure, user correction/escalation rates, support burden, and an explicit review with the operators.
The desired network injection must be chosen at resource creation, but the current project already has agents and in-flight sessions. Design a migration with minimal downtime.
Synthesized hard system-design practice · 06
Open reasoning route and hidden trap
Reasoning route: Provision a new isolated environment, recreate configuration and private dependencies, deploy versioned agents, migrate permitted data, test every tool path, then cut traffic over by cohort. Define session handling, reconciliation, rollback, and a freeze window for high-risk writes.
Hidden trap: Treating an immutable network choice as an in-place toggle or forgetting active approvals and data to migrate.
Pressure test: What changes if the action cannot be reversed, a dependency is unavailable for an hour, or the user loses access mid-run?
Related questions and scenario follow-ups +3
Relevant questions already answered
Variants and interviewer follow-ups
- Constraint shift: Peak traffic grows tenfold, the p99 target tightens, and the team cannot add another service this quarter. What do you change first?
Answer cue: Estimate the bottleneck, preserve safety/correctness invariants, and compare the cheapest reversible changes before scaling the architecture.
- Failure variant: Assume the primary region or private network path becomes unavailable during an active run. What is the safe response, and which system of record determines whether it is complete?
Answer cue: Distinguish known failure from unknown outcome; bound retries, reconcile authoritative state, and make the user-visible fallback explicit.
- Proof probe: Which single test or production signal would most quickly falsify your proposed answer?
Answer cue: Name the input, expected invariant, failure threshold, and the rollout or rollback decision tied to the result.
A hosted agent can reach a private API in development but fails from an isolated production environment. Diagnose without making the API public.
Synthesized hard system-design practice · 07
Open reasoning route and hidden trap
Reasoning route: Check route and peering, endpoint approval, private DNS, firewall, service identity, target authorization, and whether this tool type actually uses the VNet path. Test DNS, TLS, and authorization as distinct layers and inspect the correlated trace.
Hidden trap: A successful DNS lookup proves neither the network route nor the caller's authorization.
Pressure test: What changes if the action cannot be reversed, a dependency is unavailable for an hour, or the user loses access mid-run?
Related questions and scenario follow-ups +3
Relevant questions already answered
Variants and interviewer follow-ups
- Constraint shift: Peak traffic grows tenfold, the p99 target tightens, and the team cannot add another service this quarter. What do you change first?
Answer cue: Estimate the bottleneck, preserve safety/correctness invariants, and compare the cheapest reversible changes before scaling the architecture.
- Failure variant: Assume a tool times out after the external action may have committed. What is the safe response, and which system of record determines whether it is complete?
Answer cue: Distinguish known failure from unknown outcome; bound retries, reconcile authoritative state, and make the user-visible fallback explicit.
- Proof probe: Which single test or production signal would most quickly falsify your proposed answer?
Answer cue: Name the input, expected invariant, failure threshold, and the rollout or rollback decision tied to the result.
Your evaluations need to run in a restricted network. The evaluator, telemetry exporter, or artifact source may use a different endpoint from model inference. Design the secure operating path.
Synthesized hard system-design practice · 08
Open reasoning route and hidden trap
Reasoning route: Inventory endpoints by task and region, including inference, eval data, identity, trace export, and artifact retrieval. Approve narrowly scoped destinations, check whether broad service tags exceed the tenant boundary, and explicitly disable features whose data path cannot be approved.
Hidden trap: Allowing model inference but silently losing evaluation or traces can make a system look healthy while becoming ungovernable.
Pressure test: What changes if the action cannot be reversed, a dependency is unavailable for an hour, or the user loses access mid-run?
Related questions and scenario follow-ups +3
Relevant questions already answered
Variants and interviewer follow-ups
- Constraint shift: Peak traffic grows tenfold, the p99 target tightens, and the team cannot add another service this quarter. What do you change first?
Answer cue: Estimate the bottleneck, preserve safety/correctness invariants, and compare the cheapest reversible changes before scaling the architecture.
- Failure variant: Assume an average score improves while a high-risk evaluation slice regresses. What is the safe response, and which system of record determines whether it is complete?
Answer cue: Distinguish known failure from unknown outcome; bound retries, reconcile authoritative state, and make the user-visible fallback explicit.
- Proof probe: Which single test or production signal would most quickly falsify your proposed answer?
Answer cue: Name the input, expected invariant, failure threshold, and the rollout or rollback decision tied to the result.
Google Cloud system design questions
Choose Gemini Enterprise Agent Platform Agent Runtime, Cloud Run, or GKE for a multi-tenant, long-running agent requiring custom networking, portability, and low operational toil.
Synthesized hard system-design practice · 09
Open reasoning route and hidden trap
Reasoning route: Turn each requirement into a hard gate or preference. Compare state/session semantics, identity, isolation, network control, framework support, scale-to-zero, GPU needs, quotas, observability, and migration cost. Prototype the least-understood hard gate first.
Hidden trap: Choosing by product name or hypothetical flexibility rather than validating the exact region, feature, quota, and network path.
Pressure test: What changes if the action cannot be reversed, a dependency is unavailable for an hour, or the user loses access mid-run?
Related questions and scenario follow-ups +3
Relevant questions already answered
Variants and interviewer follow-ups
- Constraint shift: Peak traffic grows tenfold, the p99 target tightens, and the team cannot add another service this quarter. What do you change first?
Answer cue: Estimate the bottleneck, preserve safety/correctness invariants, and compare the cheapest reversible changes before scaling the architecture.
- Failure variant: Assume the primary region or private network path becomes unavailable during an active run. What is the safe response, and which system of record determines whether it is complete?
Answer cue: Distinguish known failure from unknown outcome; bound retries, reconcile authoritative state, and make the user-visible fallback explicit.
- Proof probe: Which single test or production signal would most quickly falsify your proposed answer?
Answer cue: Name the input, expected invariant, failure threshold, and the rollout or rollback decision tied to the result.
Capacity is 250 peak users times two requests per minute, with roughly 12 model/tool/session events per request. The agent endpoint is healthy but sessions start throttling. Diagnose and plan capacity.
Synthesized hard system-design practice · 10
Open reasoning route and hidden trap
Reasoning route: Calculate request rate and internal event/write rates separately, add burst and retry headroom, then compare each project/region quota and concurrency limit. Measure real trajectories, add admission control, and degrade optional work without dropping authoritative workflow state.
Hidden trap: Sizing on front-door QPM misses event fan-out; retries can multiply consumption during an outage.
Pressure test: What changes if the action cannot be reversed, a dependency is unavailable for an hour, or the user loses access mid-run?
Related questions and scenario follow-ups +3
Relevant questions already answered
Variants and interviewer follow-ups
- Constraint shift: Peak traffic grows tenfold, the p99 target tightens, and the team cannot add another service this quarter. What do you change first?
Answer cue: Estimate the bottleneck, preserve safety/correctness invariants, and compare the cheapest reversible changes before scaling the architecture.
- Failure variant: Assume a tool times out after the external action may have committed. What is the safe response, and which system of record determines whether it is complete?
Answer cue: Distinguish known failure from unknown outcome; bound retries, reconcile authoritative state, and make the user-visible fallback explicit.
- Proof probe: Which single test or production signal would most quickly falsify your proposed answer?
Answer cue: Name the input, expected invariant, failure threshold, and the rollout or rollback decision tied to the result.
A prompt change improves final-answer quality but causes longer tool trajectories and occasional destructive calls. Design a release gate using the platform evaluation stack.
Synthesized hard system-design practice · 11
Open reasoning route and hidden trap
Reasoning route: Score final outcomes and trajectories separately; add exact assertions for forbidden actions, permissions, and tool arguments. Slice by risk and task, pin model/config/data versions, and gate on safety floors before any average-quality gain. Replay safely, then canary with side effects disabled or controlled.
Hidden trap: An aggregate response-quality score cannot establish that the agent took a safe path.
Pressure test: What changes if the action cannot be reversed, a dependency is unavailable for an hour, or the user loses access mid-run?
Related questions and scenario follow-ups +3
Relevant questions already answered
Variants and interviewer follow-ups
- Constraint shift: Peak traffic grows tenfold, the p99 target tightens, and the team cannot add another service this quarter. What do you change first?
Answer cue: Estimate the bottleneck, preserve safety/correctness invariants, and compare the cheapest reversible changes before scaling the architecture.
- Failure variant: Assume a tool times out after the external action may have committed. What is the safe response, and which system of record determines whether it is complete?
Answer cue: Distinguish known failure from unknown outcome; bound retries, reconcile authoritative state, and make the user-visible fallback explicit.
- Proof probe: Which single test or production signal would most quickly falsify your proposed answer?
Answer cue: Name the input, expected invariant, failure threshold, and the rollout or rollback decision tied to the result.
A multi-region agent uses sessions and long-term memory, but customer records cannot leave their home region. Design useful failover without violating residency.
Synthesized hard system-design practice · 12
Open reasoning route and hidden trap
Reasoning route: Separate conversation context, durable action state, user memory, and authoritative records. Keep region-bound data local; replicate only approved metadata or encrypted checkpoints. Define home-region routing, outage behavior, recovery objectives, and reconciliation before failback.
Hidden trap: Treating all forms of 'memory' as one data object with one residency policy.
Pressure test: What changes if the action cannot be reversed, a dependency is unavailable for an hour, or the user loses access mid-run?
Related questions and scenario follow-ups +3
Relevant questions already answered
Variants and interviewer follow-ups
- Customer variant: The customer changes scope after seeing the prototype and asks for a production commitment. What do you revalidate, defer, or decline?
Answer cue: Reconfirm the outcome, decision owner, data/security constraints, baseline, and change impact; renegotiate scope and acceptance criteria.
- Delivery failure: A dependency owner is unavailable and the integration returns incomplete or stale data on launch day. How do you protect the workflow and recover?
Answer cue: Use a safe fallback, communicate impact, preserve evidence, reconcile data, and set a named owner and recovery checkpoint.
- Adoption probe: What evidence would show that users adopted this workflow and achieved the intended outcome after handoff?
Answer cue: Use a baseline and outcome measure, user correction/escalation rates, support burden, and an explicit review with the operators.
vLLM / GPU serving system design questions
Throughput is healthy but first-token and p99 latency collapse during long-context bursts. Design serving capacity across prefill, decode, KV cache, queues, and autoscaling.
Synthesized hard system-design practice · 13
Open reasoning route and hidden trap
Reasoning route: Measure queue time, TTFT, prefill, decode, token lengths, KV-cache pressure, and preemption independently. Bound context and concurrency, isolate interactive from batch traffic, and compare replica, parallelism, and prefill/decode split against GPU topology.
Hidden trap: Adding replicas from CPU or request count when the bottleneck is GPU memory, KV cache, or model loading.
Pressure test: What changes if the action cannot be reversed, a dependency is unavailable for an hour, or the user loses access mid-run?
Related questions and scenario follow-ups +3
Relevant questions already answered
Variants and interviewer follow-ups
- Constraint shift: Peak traffic grows tenfold, the p99 target tightens, and the team cannot add another service this quarter. What do you change first?
Answer cue: Estimate the bottleneck, preserve safety/correctness invariants, and compare the cheapest reversible changes before scaling the architecture.
- Failure variant: Assume traffic or context length grows tenfold while the p99 latency target stays fixed. What is the safe response, and which system of record determines whether it is complete?
Answer cue: Distinguish known failure from unknown outcome; bound retries, reconcile authoritative state, and make the user-visible fallback explicit.
- Proof probe: Which single test or production signal would most quickly falsify your proposed answer?
Answer cue: Name the input, expected invariant, failure threshold, and the rollout or rollback decision tied to the result.
Prefix caching cuts cost, but multiple enterprise tenants share a model fleet. How do you assess cache isolation, key design, and side channels?
Synthesized hard system-design practice · 14
Open reasoning route and hidden trap
Reasoning route: Verify the exact deployed cache scope and key construction, including tenant, model, adapter, and security context. Test adversarial prefix collisions and timing leakage; partition or disable shared caching if confidentiality outweighs hit rate.
Hidden trap: A hash is not an authorization boundary; identical text can still belong to a different tenant or adapter context.
Pressure test: What changes if the action cannot be reversed, a dependency is unavailable for an hour, or the user loses access mid-run?
Related questions and scenario follow-ups +3
Relevant questions already answered
Variants and interviewer follow-ups
- Constraint shift: Peak traffic grows tenfold, the p99 target tightens, and the team cannot add another service this quarter. What do you change first?
Answer cue: Estimate the bottleneck, preserve safety/correctness invariants, and compare the cheapest reversible changes before scaling the architecture.
- Failure variant: Assume an average score improves while a high-risk evaluation slice regresses. What is the safe response, and which system of record determines whether it is complete?
Answer cue: Distinguish known failure from unknown outcome; bound retries, reconcile authoritative state, and make the user-visible fallback explicit.
- Proof probe: Which single test or production signal would most quickly falsify your proposed answer?
Answer cue: Name the input, expected invariant, failure threshold, and the rollout or rollback decision tied to the result.
Ray Serve system design questions
Ray Serve autoscaling sees ongoing requests, but GPU model replicas take minutes to start. Bursty demand creates 503s and long queues. Design the control loop.
Synthesized hard system-design practice · 15
Open reasoning route and hidden trap
Reasoning route: Bound queues and per-replica concurrency, keep warm capacity for interactive traffic, and tune scale targets with startup and stabilization delay. Distinguish ingress saturation from model saturation; explicitly shed or defer lower-priority work and test burst plus drain patterns.
Hidden trap: An unbounded queue turns overload into extreme tail latency; autoscaling is not instantaneous.
Pressure test: What changes if the action cannot be reversed, a dependency is unavailable for an hour, or the user loses access mid-run?
Related questions and scenario follow-ups +3
Relevant questions already answered
Variants and interviewer follow-ups
- Constraint shift: Peak traffic grows tenfold, the p99 target tightens, and the team cannot add another service this quarter. What do you change first?
Answer cue: Estimate the bottleneck, preserve safety/correctness invariants, and compare the cheapest reversible changes before scaling the architecture.
- Failure variant: Assume an average score improves while a high-risk evaluation slice regresses. What is the safe response, and which system of record determines whether it is complete?
Answer cue: Distinguish known failure from unknown outcome; bound retries, reconcile authoritative state, and make the user-visible fallback explicit.
- Proof probe: Which single test or production signal would most quickly falsify your proposed answer?
Answer cue: Name the input, expected invariant, failure threshold, and the rollout or rollback decision tied to the result.
Kubernetes / model serving system design questions
Multiple model sizes and LoRA adapters share a GPU fleet. A new adapter creates memory pressure and a tenant-specific regression. Design routing, caching, and rollout.
Synthesized hard system-design practice · 16
Open reasoning route and hidden trap
Reasoning route: Make base model and adapter version explicit in routing, traces, and cache keys. Profile weight/KV residency, batching, and cold loads; stage by cohort, retain a fallback, and validate quality and isolation per tenant before widening.
Hidden trap: An OpenAI-compatible API does not imply equivalent behavior; omit the adapter from a cache key and results can cross semantic boundaries.
Pressure test: What changes if the action cannot be reversed, a dependency is unavailable for an hour, or the user loses access mid-run?
Related questions and scenario follow-ups +3
Relevant questions already answered
Variants and interviewer follow-ups
- Constraint shift: Peak traffic grows tenfold, the p99 target tightens, and the team cannot add another service this quarter. What do you change first?
Answer cue: Estimate the bottleneck, preserve safety/correctness invariants, and compare the cheapest reversible changes before scaling the architecture.
- Failure variant: Assume an average score improves while a high-risk evaluation slice regresses. What is the safe response, and which system of record determines whether it is complete?
Answer cue: Distinguish known failure from unknown outcome; bound retries, reconcile authoritative state, and make the user-visible fallback explicit.
- Proof probe: Which single test or production signal would most quickly falsify your proposed answer?
Answer cue: Name the input, expected invariant, failure threshold, and the rollout or rollback decision tied to the result.
Multi-cloud system design questions
One request can use a hosted model, vector store, MCP tool server, and remote A2A agent. A tenant revokes access mid-run. Design immediate containment and eventual deletion.
Synthesized hard system-design practice · 17
Open reasoning route and hidden trap
Reasoning route: Enforce authorization at every resource; maintain source-to-chunk lineage and tombstones; revoke caches, memory, and delegated artifacts; cancel or revalidate in-flight work. Treat remote results as untrusted and define what must block until revocation propagates.
Hidden trap: Deleting the source document leaves embeddings, summaries, caches, traces, and delegated results behind.
Pressure test: What changes if the action cannot be reversed, a dependency is unavailable for an hour, or the user loses access mid-run?
Related questions and scenario follow-ups +3
Relevant questions already answered
Variants and interviewer follow-ups
- Constraint shift: Peak traffic grows tenfold, the p99 target tightens, and the team cannot add another service this quarter. What do you change first?
Answer cue: Estimate the bottleneck, preserve safety/correctness invariants, and compare the cheapest reversible changes before scaling the architecture.
- Failure variant: Assume a source is revoked or updated while stale chunks and cached answers remain. What is the safe response, and which system of record determines whether it is complete?
Answer cue: Distinguish known failure from unknown outcome; bound retries, reconcile authoritative state, and make the user-visible fallback explicit.
- Proof probe: Which single test or production signal would most quickly falsify your proposed answer?
Answer cue: Name the input, expected invariant, failure threshold, and the rollout or rollback decision tied to the result.
A provider fallback improves uptime, but the fallback model formats tool calls differently and has different refusal behavior. How can failover remain safe?
Synthesized hard system-design practice · 18
Open reasoning route and hidden trap
Reasoning route: Use provider-specific adapters, strict schema validation, external policy enforcement, and model-specific regression tests. Record the selected model and resume from durable state; re-evaluate pending actions instead of blindly replaying them.
Hidden trap: Prompt similarity is not semantic equivalence; a failover that changes an action decision is not transparent.
Pressure test: What changes if the action cannot be reversed, a dependency is unavailable for an hour, or the user loses access mid-run?
Related questions and scenario follow-ups +3
Relevant questions already answered
Variants and interviewer follow-ups
- Constraint shift: Peak traffic grows tenfold, the p99 target tightens, and the team cannot add another service this quarter. What do you change first?
Answer cue: Estimate the bottleneck, preserve safety/correctness invariants, and compare the cheapest reversible changes before scaling the architecture.
- Failure variant: Assume a tool times out after the external action may have committed. What is the safe response, and which system of record determines whether it is complete?
Answer cue: Distinguish known failure from unknown outcome; bound retries, reconcile authoritative state, and make the user-visible fallback explicit.
- Proof probe: Which single test or production signal would most quickly falsify your proposed answer?
Answer cue: Name the input, expected invariant, failure threshold, and the rollout or rollback decision tied to the result.
LangGraph / durable execution system design questions
A LangGraph approval interrupt is pending when the graph, tool contract, and authorization policy are upgraded. The saved checkpoint deserializes. Is resume safe?
Synthesized hard system-design practice · 19
Open reasoning route and hidden trap
Reasoning route: Persist graph, tool, prompt, and policy versions with state. Migrate with tested transforms or hold/restart; reauthorize and refresh facts before action. Treat interrupted nodes as replay boundaries and make work before the interrupt repeat-safe.
Hidden trap: Successful deserialization does not prove semantic compatibility; code before an interrupt may execute again on resume.
Pressure test: What changes if the action cannot be reversed, a dependency is unavailable for an hour, or the user loses access mid-run?
Related questions and scenario follow-ups +3
Relevant questions already answered
Variants and interviewer follow-ups
- Constraint shift: Peak traffic grows tenfold, the p99 target tightens, and the team cannot add another service this quarter. What do you change first?
Answer cue: Estimate the bottleneck, preserve safety/correctness invariants, and compare the cheapest reversible changes before scaling the architecture.
- Failure variant: Assume a tool times out after the external action may have committed. What is the safe response, and which system of record determines whether it is complete?
Answer cue: Distinguish known failure from unknown outcome; bound retries, reconcile authoritative state, and make the user-visible fallback explicit.
- Proof probe: Which single test or production signal would most quickly falsify your proposed answer?
Answer cue: Name the input, expected invariant, failure threshold, and the rollout or rollback decision tied to the result.
Observability / evaluation system design questions
Model, tool, and API health checks are green, but completed-task rate drops across clouds. Design the incident trace and investigation.
Synthesized hard system-design practice · 20
Open reasoning route and hidden trap
Reasoning route: Correlate gateway, model, retrieval, workflow, tool, approval, and user outcome. Compare cohorts and first divergence; capture versioned identifiers and source hashes, redact by data class, and turn the failure into a regression case.
Hidden trap: HTTP 200 and model latency are component signals, not proof of user-task success; raw prompt logging creates privacy risk.
Pressure test: What changes if the action cannot be reversed, a dependency is unavailable for an hour, or the user loses access mid-run?
Related questions and scenario follow-ups +3
Relevant questions already answered
Variants and interviewer follow-ups
- Constraint shift: Peak traffic grows tenfold, the p99 target tightens, and the team cannot add another service this quarter. What do you change first?
Answer cue: Estimate the bottleneck, preserve safety/correctness invariants, and compare the cheapest reversible changes before scaling the architecture.
- Failure variant: Assume a tool times out after the external action may have committed. What is the safe response, and which system of record determines whether it is complete?
Answer cue: Distinguish known failure from unknown outcome; bound retries, reconcile authoritative state, and make the user-visible fallback explicit.
- Proof probe: Which single test or production signal would most quickly falsify your proposed answer?
Answer cue: Name the input, expected invariant, failure threshold, and the rollout or rollback decision tied to the result.
OpenAI / Anthropic hosted APIs system design questions
A gateway routes one agent between OpenAI and Anthropic models. Tool calls, structured outputs, refusals, context caching, and streaming differ. Design a portable contract without losing important provider features.
Synthesized hard system-design practice · 21
Open reasoning route and hidden trap
Reasoning route: Normalize typed actions, refusals, errors, cancellation, and trace metadata. Keep native semantics in adapters, validate outputs before execution, and conformance-test each provider on the same tasks and failure cases.
Hidden trap: A shared request schema does not imply equivalent tool semantics, refusal behavior, or partial-stream handling.
Pressure test: What changes if the action cannot be reversed, a dependency is unavailable for an hour, or the user loses access mid-run?
Related questions and scenario follow-ups +3
Relevant questions already answered
Variants and interviewer follow-ups
- Constraint shift: Peak traffic grows tenfold, the p99 target tightens, and the team cannot add another service this quarter. What do you change first?
Answer cue: Estimate the bottleneck, preserve safety/correctness invariants, and compare the cheapest reversible changes before scaling the architecture.
- Failure variant: Assume a tool times out after the external action may have committed. What is the safe response, and which system of record determines whether it is complete?
Answer cue: Distinguish known failure from unknown outcome; bound retries, reconcile authoritative state, and make the user-visible fallback explicit.
- Proof probe: Which single test or production signal would most quickly falsify your proposed answer?
Answer cue: Name the input, expected invariant, failure threshold, and the rollout or rollback decision tied to the result.
A multi-tenant product hits provider rate limits during a traffic spike. Retries increase load while one high-volume tenant starves interactive work. Design fair admission and recovery.
Synthesized hard system-design practice · 22
Open reasoning route and hidden trap
Reasoning route: Budget by tenant, model, and request class; use bounded backoff with jitter, queue limits, circuit breaking, priority, and controlled fallback. Track queue time, throttles, token demand, completion, and quality by tenant; share a retry budget across layers.
Hidden trap: SDK retries multiplied by workflow retries can create a retry storm; request-count fairness ignores token cost.
Pressure test: What changes if the action cannot be reversed, a dependency is unavailable for an hour, or the user loses access mid-run?
Related questions and scenario follow-ups +3
Relevant questions already answered
Variants and interviewer follow-ups
- Constraint shift: Peak traffic grows tenfold, the p99 target tightens, and the team cannot add another service this quarter. What do you change first?
Answer cue: Estimate the bottleneck, preserve safety/correctness invariants, and compare the cheapest reversible changes before scaling the architecture.
- Failure variant: Assume a dependency times out after a side effect may have committed. What is the safe response, and which system of record determines whether it is complete?
Answer cue: Distinguish known failure from unknown outcome; bound retries, reconcile authoritative state, and make the user-visible fallback explicit.
- Proof probe: Which single test or production signal would most quickly falsify your proposed answer?
Answer cue: Name the input, expected invariant, failure threshold, and the rollout or rollback decision tied to the result.
A customer prohibits storing sensitive prompts, but the product needs traces, evaluations, and incident replay. Design data minimization across provider APIs and your own telemetry.
Synthesized hard system-design practice · 23
Open reasoning route and hidden trap
Reasoning route: Inventory prompt, tool, retrieval, memory, trace, eval, and provider-side retention separately. Redact before export, use opaque identifiers and approved source references, set retention/deletion rules, and verify current provider controls for the account and region.
Hidden trap: Provider training or retention settings do not govern application logs, trace stores, eval vendors, or tool servers.
Pressure test: What changes if the action cannot be reversed, a dependency is unavailable for an hour, or the user loses access mid-run?
Related questions and scenario follow-ups +3
Relevant questions already answered
Variants and interviewer follow-ups
- Customer variant: The customer changes scope after seeing the prototype and asks for a production commitment. What do you revalidate, defer, or decline?
Answer cue: Reconfirm the outcome, decision owner, data/security constraints, baseline, and change impact; renegotiate scope and acceptance criteria.
- Delivery failure: A dependency owner is unavailable and the integration returns incomplete or stale data on launch day. How do you protect the workflow and recover?
Answer cue: Use a safe fallback, communicate impact, preserve evidence, reconcile data, and set a named owner and recovery checkpoint.
- Adoption probe: What evidence would show that users adopted this workflow and achieved the intended outcome after handoff?
Answer cue: Use a baseline and outcome measure, user correction/escalation rates, support burden, and an explicit review with the operators.
A provider adds a structured-output or tool feature that would simplify your agent, but your cross-provider abstraction cannot express it. Extend the contract or use a provider-specific path?
Synthesized hard system-design practice · 24
Open reasoning route and hidden trap
Reasoning route: Weigh user value, safety, portability, and fallback behavior. Add an explicit tested capability interface or documented opt-in; do not silently weaken the shared contract. Define what happens when a request requiring the feature is routed elsewhere.
Hidden trap: A lowest-common-denominator wrapper can lose valuable capability, while an implicit escape hatch breaks failover semantics.
Pressure test: What changes if the action cannot be reversed, a dependency is unavailable for an hour, or the user loses access mid-run?
Related questions and scenario follow-ups +3
Relevant questions already answered
Variants and interviewer follow-ups
- Constraint shift: Peak traffic grows tenfold, the p99 target tightens, and the team cannot add another service this quarter. What do you change first?
Answer cue: Estimate the bottleneck, preserve safety/correctness invariants, and compare the cheapest reversible changes before scaling the architecture.
- Failure variant: Assume a tool times out after the external action may have committed. What is the safe response, and which system of record determines whether it is complete?
Answer cue: Distinguish known failure from unknown outcome; bound retries, reconcile authoritative state, and make the user-visible fallback explicit.
- Proof probe: Which single test or production signal would most quickly falsify your proposed answer?
Answer cue: Name the input, expected invariant, failure threshold, and the rollout or rollback decision tied to the result.
Official documentation for checking implementation details
- AWS AgentCore harness versus Runtime, Gateway runtime targets, and disaster recovery.
- Microsoft Foundry networking options and agent network traffic flow.
- Google Cloud agent architecture choices, agent quotas, and agent evaluation.
- OpenAI agent guide and Anthropic tool-use overview.
- vLLM production metrics, Ray Serve autoscaling, and LangGraph persistence.
Continue with the system design method and staff/principal mock round.