Study guide · Agentic AI
Agent Development: NCP-AAI Domain 2 (15%)
Agent Development is the other 15% domain — the hands-on craft of building agents. Here's what the NCP-AAI exam expects on tool use, prompting, structured output, and robust agent loops.
What this domain covers
Where Architecture is about the blueprint, Agent Development is about actually building the agent: defining tools, prompting the model to use them, parsing structured outputs, handling errors, and wiring the loop together. At 15% it is tied for the largest domain. NVIDIA's exam page summarises it as the practical building, integration, and enhancement of agents — so expect questions about why a working agent misbehaves, and which change fixes it.
Tool use / function calling
Tools are how an agent acts on the world — search, code execution, database queries, API calls. You define each tool with a name, a description, and a typed parameter schema; the model chooses which to call and supplies arguments, your runtime executes it, and the result returns to the model. Clear, unambiguous tool descriptions are the single biggest lever on whether an agent calls the right tool.
# A tool definition is a name + description + typed schema
{
"name": "get_weather",
"description": "Get current weather for a city. Use when the user asks about weather.",
"parameters": {
"type": "object",
"properties": { "city": { "type": "string" } },
"required": ["city"]
}
}Designing a good tool set
A tool set is an interface the model has to learn from text alone, so design it the way you would a public API. Give each tool one job and a distinct name, and say in the description when to use it and what it returns. Type every parameter, and constrain values with enums or formats where you can, so a bad argument fails validation instead of reaching a real system. Return concise, structured results rather than raw dumps: a 5,000-line API response pasted into the context costs tokens on every later step and buries the one field the model needed. Keep read and write operations in separate tools, so the ones that change state can be permission-gated or sent for approval. And keep the set small — overlapping tools are a frequent cause of wrong tool choices.
# Weak: vague, overlapping, untyped
{ "name": "data", "description": "Gets data", "parameters": { "q": "string" } }
# Stronger: one job, says when to use it, typed and constrained
{
"name": "search_orders",
"description": "Look up a customer's orders by email. Use before answering any question about order status. Returns at most 10 orders, newest first.",
"parameters": {
"type": "object",
"properties": {
"email": { "type": "string" },
"status": { "type": "string", "enum": ["open", "shipped", "cancelled"] }
},
"required": ["email"]
}
}The system prompt as a specification
An agent's system prompt works best as a specification: its role and goal, the tools available and when each applies, hard constraints (what it must never do), the output format, and what to do when it is unsure — ask a clarifying question, or stop and hand over. A few short examples of correct behaviour help more than long abstract rules. Just as important is separating instructions from data. Tool results, retrieved documents and user-supplied files are data, and they can contain text that looks like instructions — the basis of prompt injection. Mark untrusted content clearly, tell the model it is content to use rather than commands to follow, and back that up with permissions in code, because a prompt alone cannot guarantee the model ignores an injected instruction.
Structured output and validation
Agents need machine-parseable output to drive the next step. Use JSON schemas / structured output modes rather than parsing free text, and always validate before acting on the result. Never trust that the model returned well-formed data — validate, and on failure, re-prompt with the error.
result = llm.call(tools=[...], response_format=schema)
try:
data = validate(result, schema) # parse + check
except ValidationError as e:
result = llm.retry(error=e) # feed the error backError handling and resilience
Real tools fail — timeouts, rate limits, bad arguments. A well-built agent catches the failure, feeds a useful error message back to the model, and lets it adapt (retry, pick a different tool, or ask for clarification). It also bounds retries so a failing tool cannot spin the loop forever.
Retries, timeouts and idempotency
Not every failure deserves the same response, and the exam rewards telling them apart. Transient failures — timeouts, rate limits, a temporarily unavailable service — are worth retrying with exponential backoff and jitter, up to a fixed limit. A rejected argument is not transient: retrying the identical call will fail again, so return the error to the model and let it correct the input. A permission failure should not be retried at all; it should be reported or escalated. Retries also carry a hidden risk for tools that change state: if a "create ticket" or "issue refund" call timed out after the server acted, a blind retry does it twice. Make such tools idempotent, typically with an idempotency key, so a repeated request has no extra effect.
Failure Response Timeout / rate limit / 503 .. retry with backoff + jitter, bounded Invalid argument (400) ...... return the error to the model to fix Permission denied (403) ..... do not retry; report or escalate Not found (404) ............. tell the model; it may try another route Repeated write after timeout safe only if the tool is idempotent
Managing the message history
Each turn of the loop appends the model's output and the tool result to the history, so context grows with every step. Left alone, that raises cost and latency and can push important early instructions out of the model's effective attention. Common development-level controls are keeping the system prompt and recent turns verbatim while summarising older ones, truncating or summarising large tool outputs before they enter the history, and storing bulky artifacts (files, long documents, query results) outside the context and passing a reference instead. Longer-term memory design is covered in depth in Cognition, Planning, and Memory (10%).
Integrating agents with existing systems
Most of the value of an agent comes from what it can reach: internal APIs, databases, ticketing systems, code repositories. Wrap each system in a thin tool adapter that validates input, calls the real API, and shapes the response into something compact and useful for the model. Give the agent its own scoped credentials with the least privilege the task needs, and keep secrets in the runtime, never in the prompt, where they could be echoed back or leaked. Open protocols such as the Model Context Protocol (MCP) standardise how tools are described and called, which lets one tool server be reused by several agents and frameworks instead of being rewritten for each.
Frameworks vs building from scratch
Agent frameworks handle the loop, tool dispatch, and memory plumbing so you can focus on tools and prompts; building from scratch gives full control and easier debugging. The exam expects you to understand what these frameworks do under the hood — the loop, tool schemas, and message history — regardless of which one you use.
Worked scenario: the agent keeps calling the wrong tool
A support agent has tools named lookup_customer, get_customer and search_accounts, and it often calls the wrong one or skips the lookup entirely. Work through the cheap causes before the expensive ones. First, read the traces: is it choosing wrongly, or failing on arguments? Here the three tools overlap, so the model has no reliable way to tell them apart — merge them into one tool, or rewrite each description to say exactly when it applies and what it returns. Next, check the system prompt actually says a lookup is required before answering account questions. Then look at what the tool returns: if it is a large, noisy payload, the model may misread it on the next step. Add one or two examples of correct behaviour. Only when these are fixed, and an evaluation run still shows failures, is a different model worth testing.
Common misconceptions
"With function calling, the model runs the function" — the model only emits a request naming a tool and its arguments; your code decides whether to run it, and runs it. "Structured output means no validation" — a schema guarantees shape, not meaning; still check that IDs exist and values make sense before acting. "Retrying is always safe" — only for operations that are idempotent. "More tools make a more capable agent" — selection accuracy drops as tools overlap; a smaller, sharper set usually performs better. "Tool results can be trusted as instructions" — they are data, and treating them as commands is how prompt injection succeeds.
How this domain connects to the rest of the blueprint
Agent Development implements what Agent Architecture and Design (15%) specifies, and together they are 30% of the exam. Whether your changes actually help is the subject of Evaluation and Tuning (13%). Retrieval tools and data pipelines are examined in Knowledge Integration and Data Handling (10%), and guardrails on tool use and untrusted content come back in Safety, Ethics, and Compliance (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.
A create_ticket tool call times out and the agent retries it. Users later find duplicate tickets. What is the most robust fix?
- AStop retrying any tool call that times out, and report every timeout to the user
- BTell the model in the system prompt never to call create_ticket more than once
- CMake the tool idempotent with an idempotency key so a repeat has no extra effectCorrect
- DRaise the tool timeout so that the first call is far less likely to time out at all
An agent calls a booking tool with a date in the wrong format, and the tool rejects the argument. What should the runtime do?
- AReturn the validation error to the model so it can fix the argument and try againCorrect
- BRetry the identical call with exponential backoff, up to a fixed limit
- CEscalate the task to a person straight away, since the tool has stopped working
- DSwallow the error and return an empty result so the loop keeps going
An agent needs to call an internal HR API that requires credentials. Where should those credentials live?
- AIn the system prompt, so the model can include them in the arguments of each call
- BIn the tool description, so the model knows which key belongs with which endpoint
- CIn a shared service account that every agent in the company already uses for APIs
- DIn the runtime, with least-privilege scope, added by the tool adapterCorrect
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