Skip to content
Forward Deployed

Forward Deployed
Lessons and contents
Final Week ReviewLesson 21 of 22
22 lessons
Interview

Rapid Revision Guide

Source
From the Forward Deployed library
By
Sourav Banerjee
Last updated
4 Nov 2026

Report an issue

Purpose: Last-day revision for an AI/Agentic FDE problem-decomposition interview.

Practise the decisions you need to make during the interview.


1. The Master Interview Flow

Whenever you get a vague prompt:

Diagram: Discover business problem and current workflow; Confirm functional requirements and operating limits; Design data, reasoning, and controlled actions; Stress-test scale, latency, cost, failures, and security; Evaluate and release; Observe outcomes and revisit trade-offsDiagram: Discover business problem and current workflow; Confirm functional requirements and operating limits; Design data, reasoning, and controlled actions; Stress-test scale, latency, cost, failures, and security; Evaluate and release; Observe outcomes and revisit trade-offs

Opening Line

  • “What outcome matters, and how does the work happen today?”
  • “Who uses it, at what volume, and which data and systems does it need?”
  • “Should it answer, recommend, or act? What counts as success, and what limits must it respect?”

2. Discovery: What Should I Ask?

Remember:

  • Why
  • Today
  • Who
  • Scale
  • Data
  • Action
  • Success
  • Boundaries

WHY

What business problem are we solving and what outcome matters?

TODAY

How does this process work today and where are the biggest pain points?

WHO + SCALE

Who uses the system, how many users do we expect, and what are peak volume and concurrency?

DATA

What data does the system need, where does it live, and how fresh must it be?

ACTION

Does AI only answer/recommend, or can it take actions?

Which actions require human approval?

SUCCESS

How will we measure success?

Think:

  • Business KPI
  • AI quality
  • Task success
  • Latency
  • Reliability
  • Cost

BOUNDARIES

Ask about:

  • Security
  • Privacy
  • Compliance
  • Latency
  • Availability
  • Cost
  • Integrations

3. Functional Requirements

Think:

Diagram: Required capabilities; Understand and retain context; Retrieve authorised evidence; Route and reason; Read tools and act if permitted; Approval and failure behaviour; Audit and outcome feedbackDiagram: Required capabilities; Understand and retain context; Retrieve authorised evidence; Route and reason; Read tools and act if permitted; Approval and failure behaviour; Audit and outcome feedback

Typical requirements:

  • Accept and understand requests
  • Maintain relevant context
  • Retrieve enterprise knowledge
  • Respect user permissions
  • Route to correct capability
  • Call enterprise tools/APIs
  • Execute approved actions
  • Escalate risky/uncertain cases
  • Handle failures
  • Maintain audit trail
  • Capture feedback

4. Non-Functional Requirements

Remember:

  • Scale

  • Latency

  • Reliability

  • Quality

  • Security

  • Safety

  • Cost

  • Observability

  • Audit

  • Confirm targets with the customer; label provisional assumptions.

  • Define each service-level objective (SLO) with a metric, target, workload, and measurement window.

Example (the 5 seconds is a placeholder; confirm the real number with the customer):

  • Vague request: “The system must be fast.”
  • Measurable example: “P95 response latency below five seconds for interactive requests.”
  • Confirm the target, workload, and measurement window with the customer.

5. Core Architecture Components

API Gateway

Diagram: User; API Gateway; AI applicationDiagram: User; API Gateway; AI application

Handles:

  • Authentication
  • Authorisation
  • Tenant Context
  • User Rate Limits
  • Quota
  • Request Validation

Think:

User → Application control


Model Gateway

Diagram: AI application; Model Gateway; Model A; Model B; Model CDiagram: AI application; Model Gateway; Model A; Model B; Model C

Handles:

  • Model Routing
  • Provider Abstraction
  • Fallback
  • Retry
  • Provider Limits
  • Tokens
  • Cost

Think:

Application → Model control


Router

Determines:

  • What capability should handle this request?

  • Use deterministic rules/classifiers where possible.


Orchestrator

Controls:

  • Workflow
  • State
  • Branching
  • Agents
  • Tools
  • Retries
  • Checkpoints

State Store

Stores durable:

  • Session
  • Workflow
  • Agent
  • Approval State

Queue

Use when:

  • Long-running work
  • Traffic bursts
  • Async processing
  • Background jobs

Cache

  • Use for repeated safe work.

Remember:

Diagram: Valid scoped cache; Less repeated work; Lower latency and cost; Expiry and invalidation; Manage freshness riskDiagram: Valid scoped cache; Less repeated work; Lower latency and cost; Expiry and invalidation; Manage freshness risk

6. RAG: Rapid Version

Ingestion

Diagram: Documents; Parse; Chunk; Embed; Index with metadata, permissions, and versionsDiagram: Documents; Parse; Chunk; Embed; Index with metadata, permissions, and versions

Query

Diagram: Question and trusted identity; Permission and metadata filters; Retrieve; Rerank if useful; Select context; Supported answerDiagram: Question and trusted identity; Permission and metadata filters; Retrieve; Rerank if useful; Select context; Supported answer

Remember:

Recall

Did I retrieve the relevant information?

Precision

How much retrieved information is relevant?

Groundedness

Is the answer supported by retrieved evidence?

Static vs Live

Diagram: What is the refund policy?; RAG; Where is my refund?; Live API or toolDiagram: What is the refund policy?; RAG; Where is my refund?; Live API or tool

Security rule

Apply permissions during retrieval. Don't retrieve everything and ask the LLM not to expose unauthorised information.


7. Agentic Systems: Rapid Version

First ask:

Do I need an agent?

Diagram: Known deterministic steps; Workflow or code; Dynamic step selection; Bounded agentDiagram: Known deterministic steps; Workflow or code; Dynamic step selection; Bounded agent

Then ask:

Do I need multiple agents?

  • Don't create multi-agent architecture without a reason.

Agent loop

Diagram: Task; Select next step; Validate, authorise, and check budget; Controlled tool; Observe result; Continue?; More work within bounds; Complete, stop, or escalateDiagram: Task; Select next step; Validate, authorise, and check budget; Controlled tool; Observe result; Continue?; More work within bounds; Complete, stop, or escalate

Always bound agents

  • Maximum steps
  • Maximum tool calls
  • Maximum tokens
  • Maximum retries
  • Maximum elapsed time
  • Maximum cost

8. Tools & Actions

Prefer:

Diagram: Agent requests operation; Validated and authorised tool; Enterprise systemDiagram: Agent requests operation; Validated and authorised tool; Enterprise system
  • Expose only approved operations with validated arguments and scoped access.

For business actions:

Diagram: Agent recommendation; Policy and required approval; Executor; Enterprise systemDiagram: Agent recommendation; Policy and required approval; Executor; Enterprise system

Critical term: Idempotency

Diagram: Refund submission; Timeout; Reconcile status; Confirmed result; Safe retry of same logical action; Still unknown: defer or escalateDiagram: Refund submission; Timeout; Reconcile status; Confirmed result; Safe retry of same logical action; Still unknown: defer or escalate
  • Use an idempotency key that the execution path actually honours.

9. Guardrails & Human Approval

Remember:

Diagram: Agent recommends; Policy decides; Executor actsDiagram: Agent recommends; Policy decides; Executor acts
  • Do not use the LLM as the final authority for deterministic business rules.

Example (illustrative thresholds; the customer sets the real ones, including the middle band):

Diagram: Illustrative refund amount; Below 100 dollars: permitted automatic path; 100 to 500 dollars: customer-defined policy checks; Above 500 dollars: required human approvalDiagram: Illustrative refund amount; Below 100 dollars: permitted automatic path; 100 to 500 dollars: customer-defined policy checks; Above 500 dollars: required human approval

Other terms:

  • Least Privilege
  • Fail-Closed
  • Kill Switch
  • Defence in Depth

10. Scaling: Rapid Version

Interviewer says:

"Now scale this to 100K users."

Think:

  • Stateless Workers
  • Horizontal Scaling
  • Rate Limits
  • Admission Control
  • Queue
  • Backpressure
  • Fairness
  • Tenant Isolation
  • Caching
  • Autoscaling

Rate Limit

May this user/tenant send this much traffic?

Admission Control

Does the system currently have capacity to accept this work?

Backpressure

How do we slow or stop upstream work when downstream capacity is full?

Fair Queue

Prevent:

Diagram: Tenant A: dominant demand; Shared capacity; Tenant B: little capacity left; Tenant C: little capacity leftDiagram: Tenant A: dominant demand; Shared capacity; Tenant B: little capacity left; Tenant C: little capacity left

Noisy Neighbour

  • One tenant consumes shared resources and hurts others.

11. Latency: Rapid Version

First decompose:

Diagram: End-to-end latency; Queue wait; Retrieval; Model calls; Agent and orchestration overhead; Tools; NetworkDiagram: End-to-end latency; Queue wait; Retrieval; Model calls; Agent and orchestration overhead; Tools; Network
  • Then optimise.

Remember:

Diagram: Measure wait and define SLO; Find critical path; Choose measured latency change; Stream safe output; Overlap independent reads; Reduce redundant hops; Tune retrieval, tools, or queues; Use async delivery for long tasksDiagram: Measure wait and define SLO; Find critical path; Choose measured latency change; Stream safe output; Overlap independent reads; Reduce redundant hops; Tune retrieval, tools, or queues; Use async delivery for long tasks

Track:

  • P50

  • P95

  • P99

  • TTFT

  • Don't optimise only average latency.


12. Cost: Rapid Version

Break cost down:

  • Model cost, including input and output tokens.
  • Retrieval, tools, and compute.
  • Retries and relevant review or rework.

Then:

Diagram: Measure spend; Agree on quality floor; Evaluate model choice; Reduce irrelevant context; Cache eligible work; Remove redundant calls; Bound total work; Batch eligible jobs; Measure cost per successful taskDiagram: Measure spend; Agree on quality floor; Evaluate model choice; Reduce irrelevant context; Cache eligible work; Remove redundant calls; Bound total work; Batch eligible jobs; Measure cost per successful task

Questions to ask

  • Can a smaller model meet the quality requirement?
  • Which context is irrelevant or duplicated?
  • Can fresh, permission-safe results be reused?
  • What does each model call contribute?
  • Can code handle a known rule or validation?
  • Is the agent repeating work without progress?

Best metric

  • Cost per successful task = total cost across attempts ÷ successful tasks.

Cost per successful task: the one I'd lead with, because it counts retries and failed attempts.


13. Reliability: Rapid Version

When something fails:

Diagram: Classify failure; Bound waiting; Check retry safety; Choose fallback or safe degradation; Recover or escalate; Record actual statusDiagram: Classify failure; Bound waiting; Check retry safety; Choose fallback or safe degradation; Recover or escalate; Record actual status

Know these:

Timeout

  • Set a dependency deadline within the task budget. A write timeout leaves the remote outcome uncertain.

Retry

  • Retry transient failures, and only when the call is safe to repeat.

Exponential Backoff + Jitter

  • Increase retry delays, add jitter, honour dependency guidance, and stop within the task budget.

Circuit Breaker

Diagram: Repeated dependency failures; Stop normal calls temporarily; Probe recoveryDiagram: Repeated dependency failures; Stop normal calls temporarily; Probe recovery

Graceful Degradation

  • One non-critical service failing shouldn't necessarily kill everything.

DLQ

Diagram: Processing failure; Bounded safe retries; Dead-letter queue; Owner investigates and prepares safe replayDiagram: Processing failure; Bounded safe retries; Dead-letter queue; Owner investigates and prepares safe replay

Checkpoint

  • Resume long-running workflows after failure.

  • A checkpoint doesn't make an external action happen exactly once.

  • If a write may have gone through, reconcile its status first.

Blast Radius

If this fails, how much of the system is affected?


14. Evaluation: Rapid Version

RAG

Evaluate:

  • Retrieval
  • Groundedness
  • Answer Quality

Agents

Evaluate:

  • Routing
  • Tool Selection
  • Tool Arguments
  • Trajectory
  • Task success

Deterministic

  • Correct schema?
  • Correct tool?
  • Correct arguments?
  • Latency threshold?
  • Required citation?

Non-Deterministic

  • Helpful?

  • Relevant?

  • Grounded?

  • High-quality?

  • Use a clear rubric and calibrate human or model judges against expert labels.

Offline

  • Use held-out cases to compare candidates before release.

Online

  • Track production traces, actual outcomes, and feedback after release.

Remember:

  • Verify actual task completion even when the response sounds good.

15. Release: Rapid Version

Avoid:

Diagram: New prompt; Immediate full production exposure; Risk of untested regressionsDiagram: New prompt; Immediate full production exposure; Risk of untested regressions

Prefer:

Diagram: Version candidate; Offline evaluation; Release gate; Shadow and/or scoped canary; Observe; Expand if criteria pass; Stop or roll back if criteria failDiagram: Version candidate; Offline evaluation; Release gate; Shadow and/or scoped canary; Observe; Expand if criteria pass; Stop or roll back if criteria fail

Shadow

Diagram: Request; Current path; User and real execution; Shadow candidate; Evaluation only: no production writesDiagram: Request; Current path; User and real execution; Shadow candidate; Evaluation only: no production writes

Canary

Diagram: Candidate; Small eligible user cohort; Observe; Expand if criteria pass; Stop or roll back if criteria failDiagram: Candidate; Small eligible user cohort; Observe; Expand if criteria pass; Stop or roll back if criteria fail

Also know:

  • Versioning
  • Feature Flags
  • Rollback
  • Kill Switch

16. Observability: Rapid Version

Trace the entire request:

Diagram: Request; Router; Workflow or agent; Retrieval; Model calls; Tool calls; Response and actual outcomeDiagram: Request; Router; Workflow or agent; Retrieval; Model calls; Tool calls; Response and actual outcome

Capture:

  • Latency
  • Tokens
  • Cost
  • Model
  • Agent Steps
  • Retrieved Docs
  • Tool Calls
  • Errors
  • Outcome

Observability vs Audit

  • Observability

Why is my system behaving badly?

  • Audit

Why did my system take this business action?


17. Security: Rapid Version

Authentication

Who are you?

Authorisation

What are you allowed to do?

Then:

Diagram: Authenticate identity; Resolve trusted tenant and scope; Authorise data and tools; Check business policy; Approval if required; Execute permitted action; AuditDiagram: Authenticate identity; Resolve trusted tenant and scope; Authorise data and tools; Check business policy; Approval if required; Execute permitted action; Audit

Remember:

  • Least Privilege
  • Tenant Isolation
  • Permission-Aware RAG
  • Secrets Management
  • PII
  • Data Residency
  • Defence in Depth

18. Trade-Offs: Rapid Version

Almost every decision should have:

Diagram: Decision; Customer requirement; Trade-off and verificationDiagram: Decision; Customer requirement; Trade-off and verification

Main triangle

Diagram: Quality; Cost; LatencyDiagram: Quality; Cost; Latency
  • Required security, safety, and correctness constraints still apply.

Examples:

Diagram: Stronger model; Possible quality gain; Cost and latency may increaseDiagram: Stronger model; Possible quality gain; Cost and latency may increase
Diagram: More retrieval; Recall may improve; Tokens, cost, latency, and noise may increaseDiagram: More retrieval; Recall may improve; Tokens, cost, latency, and noise may increase
Diagram: Valid scoped cache; Lower repeated cost and latency; Manage freshness and permissionsDiagram: Valid scoped cache; Lower repeated cost and latency; Manage freshness and permissions
Diagram: More agents; Possible capability or parallel-work benefit; More calls, coordination, complexity, and failure pathsDiagram: More agents; Possible capability or parallel-work benefit; More calls, coordination, complexity, and failure paths

Strong interview sentence

"I'm choosing X because of requirement Y. The trade-off is Z."


Trigger → Concept Cheat Sheet

  • Revise this section immediately before the interview.
Interviewer Says Think
100K users Clarify active users, peak rates, concurrency, and task duration
Traffic spike Queue, admission control, backpressure
One tenant dominates Noisy neighbour, quota, fair queue
Overloaded system Admission control, load shedding
Multiple customers Multi-tenancy, isolation
Slow requests P95/P99 + trace stages
Slow chat experience TTFT + streaming
Independent APIs Parallelise
Slow dependency Timeout, cache, async
Flaky dependency Retry, backoff, circuit breaker
Action happened twice Idempotency
Duplicate event Idempotent consumer
Repeated job failure DLQ
10-minute agent Async + queue + durable state
Agent crashes halfway Checkpoint + reconcile uncertain actions
Approval tomorrow Durable state + HITL
Conversation history Session state
Long-term preferences Memory
Growing prompt Bounded context + summary
Repeated requests Cache
Freshness concern TTL
Company documents RAG
Current order status Tool/API
Can't find document Retrieval recall
Too many irrelevant docs Precision + reranking
Document permissions ACL-aware retrieval
Unsupported claims Grounding
Different request types Router
Multi-step workflow Orchestrator
Simple routing Rules/code
Runaway agent Execution bounds
Production actions Controlled tools
Sensitive action Policy + executor
High-risk action HITL
Policy unavailable Block or defer sensitive writes; keep safe unaffected functions available
Agent misbehaving Kill switch
Multiple LLMs Model gateway
Provider outage Compatible fallback within quality, capability, and data restrictions
AI bill high Model + context + calls + cache
Tenant cost Cost attribution
New prompt/model Offline eval + release gate
Real traffic without impact Shadow
Gradual rollout Canary
Selected tenants only Feature flag
Bad deployment Rollback
Measure agent quality Offline + online eval
Good answer, failed action Task success
Wrong tool Trajectory evaluation
Exact pass/fail Deterministic eval
Semantic quality LLM/human judge
Why slow/failing? Observability
Why did AI act? Audit
Reliability target SLI/SLO/SLA
Worker dies Stateless + durable state
Limit failure impact Blast radius
Sensitive data AuthN/AuthZ + least privilege
Safe action-taking AI Defence in depth

60-Second Architecture Pressure Test

After drawing your architecture, quickly ask yourself:

  • Scale: What happens at 100K users?
  • Latency: Where is the critical path?
  • Cost: Where are model calls/tokens growing?
  • Failure: What happens if model/rag/tool fails?
  • State: What happens if a worker dies?
  • Security: Can users access unauthorised data/actions?
  • Safety: Can the agent take dangerous actions?
  • Quality: How do I know the AI works?
  • Release: How do I safely change it?
  • Operations: How do I debug it?

10 Rapid Practice Questions

  • Try answering each in 1–2 minutes, not 20 minutes.

1.

"Build an AI customer-support agent."

  • What are your first discovery questions?

2.

"Now it needs to issue refunds."

  • What changes architecturally?

3.

"We now have 100K users."

  • What changes?

4.

"P99 latency is 20 seconds."

  • How do you investigate and optimise it?

5.

"The AI bill increased 3×."

  • How do you investigate and reduce it?

6.

"The refund API is unreliable."

  • How do you design around it?

7.

"Employees have different document permissions."

  • How does your RAG architecture change?

8.

"We changed the prompt."

  • How do you safely release it?

9.

"The agent gives good responses but sometimes chooses the wrong tool."

  • How do you evaluate this?

10.

"One enterprise tenant consumes most model capacity."

  • How do you protect other tenants?

Final Interview Checklist

Before finishing:

  • Business problem clear?
  • Current workflow understood?
  • Functional requirements defined?
  • NFRs measurable?
  • Every architecture box justified?
  • RAG vs live API clear?
  • Agent actually required?
  • Actions protected by policy?
  • High-risk actions HITL?
  • Scale addressed?
  • Latency addressed?
  • Cost addressed?
  • Failure handling addressed?
  • Security addressed?
  • Evaluation defined?
  • Release strategy defined?
  • Observability defined?
  • Major trade-offs explained?

The One Framework to Remember

Use these stages to organise the answer:

Diagram: Discover business problem and current workflow; Confirm functional requirements and operating limits; Design data, reasoning, and controlled actions; Stress-test scale, latency, cost, failures, and security; Evaluate and release; Observe outcomes and revisit trade-offsDiagram: Discover business problem and current workflow; Confirm functional requirements and operating limits; Design data, reasoning, and controlled actions; Stress-test scale, latency, cost, failures, and security; Evaluate and release; Observe outcomes and revisit trade-offs

And use this reasoning pattern repeatedly:

Diagram: Customer statement; Requirement; Constraint; Component or pattern; Trade-offDiagram: Customer statement; Requirement; Constraint; Component or pattern; Trade-off

Sources (checked 27 Sep 2026)

Rate your confidence and keep notes on the module page.