Study guide · Agentic AI
Deployment & Scaling: NCP-AAI Domain 4 (13%)
Deployment & Scaling is 13% of the NCP-AAI exam — taking an agent from a notebook to reliable production traffic. Here's what the exam expects on serving, cost, latency, and scale.
What this domain covers
Deployment and Scaling is about running agents in production: how you serve them, keep latency and cost under control, handle concurrent users, and scale as load grows. Agentic workloads are unusually demanding because a single user request can fan out into many model and tool calls. This domain is 13% of the exam. NVIDIA's exam page summarises it as operationalizing and scaling agentic systems — getting from a working prototype to a service that stays fast, affordable and available as traffic grows.
Serving architecture: what runs where
It helps to picture a production agent as separate layers, because most deployment questions are about which layer a problem belongs to. A gateway handles authentication, rate limits and quotas. A stateless orchestrator service runs the agent loop. Model inference runs on dedicated serving infrastructure, usually GPUs, behind its own endpoint. Tools are separate services with their own limits. Session state and memory live in an external store, and long-running work goes through a queue to background workers. Each layer scales, fails and is monitored independently.
client → gateway (auth, rate limits, quotas)
→ orchestrator (stateless agent loop) ──→ model inference (GPU endpoints)
│ ──→ tool services (APIs, search, DBs)
├── state store (sessions, memory, checkpoints)
└── queue → background workers (long-running tasks)Why agents are expensive to serve
A single agent task is not one model call — it is a loop of many calls, each carrying a growing context of prior steps and tool results. Cost and latency compound with every step. The core deployment skill is controlling that fan-out: capping steps, trimming context, caching, and choosing the right-sized model per step.
# One user request can become many model + tool calls request → [plan → tool → observe] × N steps → answer # Cost ≈ Σ (input_tokens + output_tokens) over every step # Latency ≈ Σ (model_latency + tool_latency) over every step
Latency and cost controls
Practical levers include: streaming responses so users see progress; running independent tool calls in parallel rather than sequentially; caching retrieval and repeated calls; using a smaller/faster model for easy sub-steps and a larger one only where needed; and setting hard step/token budgets per request.
Stream output ........ perceived latency ↓ Parallel tool calls .. wall-clock latency ↓ Cache retrieval ...... repeated cost ↓ Right-size the model . per-step cost ↓ Step/token budgets ... worst-case cost capped
Statelessness and concurrency
To scale horizontally, the serving layer should be stateless — conversation and agent state live in an external store (cache or database) keyed by session, not in process memory. That lets any instance handle any request and lets you add instances behind a load balancer as traffic grows.
Synchronous or asynchronous execution
Short tasks can run inside the request: the user waits a few seconds and sees streamed output. Tasks that take minutes, or dozens of tool calls, should not hold an HTTP connection open. Accept the request, put the job on a queue, return a job ID straight away, and let a background worker run the agent, with progress reported by polling, a stream of events, or a callback when it finishes. Checkpoint the agent's state as it goes, so a worker that crashes or is replaced can resume from the last step instead of starting over and repeating actions it already took.
Task profile Pattern Seconds, user waiting ............... synchronous + streaming Minutes, many tool calls ............ queue + job ID + background worker Must survive a worker restart ....... checkpoint state after each step Bursty load above capacity .......... queue absorbs the burst (backpressure)
Model serving: throughput versus latency
Inference servers raise GPU throughput by batching many requests together, and modern servers add new requests to a running batch rather than waiting for it to finish. Bigger batches serve more users per GPU but can raise each user's latency, so batch settings are a throughput–latency trade-off tuned against a latency target. Memory is the other limit. Each in-flight request holds a key-value (KV) cache that grows with its context length, so long agent histories reduce how many requests fit on a GPU at once. Quantisation shrinks model memory at some cost in accuracy, and prefix caching reuses the computation for a shared prompt prefix — such as a long system prompt and tool definitions — which cuts time to first token and cost on every call that repeats it.
Time to first token (TTFT) .. how soon output starts; matters for streaming UX Inter-token latency ......... how fast output arrives once it starts Throughput .................. requests or tokens served per second per GPU p95 / p99 latency ........... the slow tail that users actually complain about
Autoscaling signals
Scaling GPU inference on CPU utilisation is a common mistake: the CPU can sit idle while the GPU is saturated. Better signals are queue depth, requests in flight per replica, GPU utilisation, and latency against your target. Allow for cold starts too. A new inference replica has to load model weights before it can serve, which can take long enough that scaling only after latency degrades is too late. Keep a minimum of warm replicas, and scale on leading signals such as a growing queue rather than on symptoms such as timeouts.
Reliability under load
Production agents must degrade gracefully: apply rate limiting and backpressure, set timeouts on every model and tool call, retry transient failures with backoff, and have a fallback path when a dependency is down. Autoscaling handles volume, but only if the system is stateless and each call is bounded. Watch for retry storms: when a dependency slows down, every client retrying at once multiplies its load. Backoff with jitter spreads the retries out, and a circuit breaker stops calling a failing dependency for a while so it can recover. A degraded mode — a smaller fallback model, cached answers, or a clear "try again later" — beats timing out.
Rolling out changes safely
In an agent, a release is more than code: the prompts, tool definitions, model version and settings all change behaviour, so version them together and know exactly which combination is live. Gate each release on the offline eval set, then expose it gradually — a canary that takes a small share of traffic, or a shadow deployment that runs the new version on copies of real requests without showing users its output. Watch quality, latency and cost on the new version, and keep a one-step rollback to the previous combination.
Worked scenario: a launch-day traffic spike
A research agent that worked in testing starts timing out on launch day, and the cost per request is climbing. Diagnose by layer before buying hardware. Traces show many requests spend most of their time waiting on tool calls made one after another, so independent calls are run in parallel and repeated lookups are cached. Long tasks were held open as synchronous requests, so they move to a queue with job IDs and streamed progress. Context grows with every step, which inflates both cost and KV-cache memory, so older steps are summarised and large tool results trimmed. Replicas scale on CPU, so the autoscaler is switched to queue depth and in-flight requests, with warm capacity kept ready. Raising the request timeout would have hidden the problem, not fixed it.
Common misconceptions
"Scaling means a bigger GPU" — many agent bottlenecks are sequential tool calls, unbounded loops or bloated context, which hardware does not fix. "Longer timeouts fix timeouts" — they convert fast failures into slow ones. "Retry everything under load" — unbounded retries amplify an outage. "Stateless means the agent has no memory" — the state still exists; it lives in an external store rather than in the process. "Autoscale on CPU" — for GPU inference, queue depth and in-flight requests are better signals.
How this domain connects to the rest of the blueprint
The fan-out you have to serve is set by Agent Architecture and Design (15%), and the release gate comes from Evaluation and Tuning (13%). NVIDIA's own serving and inference stack is examined separately in NVIDIA Platform Implementation (7%), and keeping a deployed agent healthy — observability, alerting, drift — is the subject of Run, Monitor, and Maintain (5%).
Worked example questions
Exam-style questions on this domain, with the reasoning spelled out. They are written for this guide rather than taken from the readiness test's question bank.
An agent service keeps each session's conversation in process memory. After instances are added behind a load balancer, users lose context mid-conversation. What fixes this?
- AMove session state out of the process into an external store keyed by session IDCorrect
- BPin each user to one instance with sticky sessions on the load balancer
- CRun a single, much larger instance so every session stays in one process
- DRaise the instance memory limit so more conversations fit in each process
GPU inference replicas autoscale on CPU utilisation. Under load, latency climbs but no new replicas start. Which scaling signal is better?
- AMemory utilisation on the orchestrator hosts that run the agent loop
- BThe number of HTTP 5xx errors returned to clients in the last hour
- CQueue depth and requests in flight per replicaCorrect
- DAverage CPU utilisation, with the scaling threshold lowered to 20%
Some agent tasks take several minutes and dozens of tool calls. They run inside the HTTP request, and many connections drop before the task completes. Which design fits?
- ARaise the HTTP timeout on the gateway so long tasks can finish in one request
- BQueue the job, return a job ID, and run it on a worker that checkpoints its stateCorrect
- CHave the client retry the whole request automatically whenever the connection drops
- DCut the step budget so that every task is forced to finish within thirty seconds
Sources and last verified
Exam figures on this page are read from the vendor pages below. Each date is when we last checked that page.
- NVIDIA-Certified Professional: Agentic AI (NCP-AAI) — last verified · www.nvidia.com/en-us/learn/certification/agentic-ai-professional/
- NVIDIA certification FAQ (retake terms) — last verified · www.nvidia.com/en-us/learn/certification/
Further reading