Think first Which signals would you put on a dashboard for an agent served by NIM, and where does each one come from?
Why it matters: Questions describe a monitoring need and ask which endpoint, log setting, header or metric class provides it.
NIM serves its engine's own Prometheus metrics at /v1/metrics, while logs and request headers fill in the story. NeMo Agent Toolkit adds per-user and per-call metrics for the agent layer.
Reported, thanks
Step 2 of 9
Term
Meaning
Prometheus metrics
Metrics in a Prometheus-compatible format, exposed by NIM at /v1/metrics.
Native engine metrics
The inference backend's own metrics, which NIM passes through unchanged.
JSONL logging
One JSON object per log line, turned on with NIM_JSONL_LOGGING=true.
Correlation ID
An X-Request-Id value you send; NIM returns it on the response and passes it to the backend.
traceparent
The trace header that NIM's proxy layer always forwards to the backend.
Reported, thanks
Step 3 of 9
NIM exposes Prometheus metrics at /v1/metrics. These are the inference backend's own metrics, passed through unchanged. They report latency, throughput, token counts, queue depth and GPU utilization.
Reported, thanks
Step 4 of 9
Dashboards built for one engine do not transfer. NIM does not wrap or rename the engine's metrics. A dashboard or alert rule made for the matching engine works unchanged, but it will not fit the other engine, vLLM or SGLang.
Exam trap NIM does not give every engine one common metric set. Dashboards and alerting rules do not carry over when you switch engines.
Reported, thanks
Step 5 of 9
NIM writes its logs to stderr.NIM_LOG_LEVEL sets verbosity with standard Python levels. For collectors such as Fluentd, Logstash or CloudWatch, set NIM_JSONL_LOGGING=true to get one JSON object per line.
Two environment variables that control NIM logs
Setting
What it controls
Values
NIM_LOG_LEVEL
Log verbosity
DEBUG, INFO, WARNING, ERROR or CRITICAL
NIM_JSONL_LOGGING
Log format for NIM and the backend
true gives one JSON object per line
Exam trap JSONL logging is not limited to NIM's own messages. It formats the vLLM or SGLang backend's logs the same way.
Reported, thanks
Step 6 of 9
Send X-Request-Id to correlate a request. NIM returns the ID on the response and passes it on to the backend. If you omit it, NIM adds none. NIM also always forwards traceparent, but spans appear only when the engine has tracing on.
Exam trap Forwarding traceparent is not enough on its own. The inference engine must have tracing enabled before it creates spans.
Reported, thanks
Step 7 of 9
LLMMetrics derives metrics from LLM call logs. This NeMo Agent Toolkit class works on standardized call logs. Its compute_profiling_metrics method returns the same DataFrame with six NOVA- columns added. The ATIF Metrics model records one step's LLM operational and confidence data.
Reported, thanks
Step 8 of 9
Track latency and errors for each user.PerUserMetricsCollector gathers metrics from SessionManager's per-user builders, for one user or all users. PerUserRequestMetrics has fields such as avg_latency_ms and error_count. The /monitor/users endpoint returns PerUserMonitorResponse.
Reported, thanks
Step 9 of 9
Dashboards read NIM's Prometheus metrics at /v1/metrics, passed through from the engine unchanged.
Engine metrics keep their native names, so dashboards do not carry over between engines.
Set NIM_JSONL_LOGGING=true when a production log collector ingests NIM logs.
Spans need tracing enabled on the engine, even though NIM always forwards traceparent.
Think first When an agent call fails, how do you find which part of the stack broke and why?
Why it matters: Questions describe a failing agent and ask which error, log or tracking tool points to the root cause.
Root cause diagnosis starts with a precise signal. NeMo Guardrails turns outbound HTTP failures into specific exception types. NeMo Agent Toolkit decorators record what each function call did.
Reported, thanks
Step 2 of 10
Term
Meaning
HTTPClientError
The base class every outbound HTTP failure in NeMo Guardrails inherits from.
retry_count
Attribute on HTTPClientError giving the retries that finished before the caller saw the error.
track_function
Agent Toolkit decorator that runs tracking logic around sync, async and generator functions.
NAT Event Stream
The Agent Toolkit stream that receives intermediate steps from the profiler.
Reported, thanks
Step 3 of 10
All outbound HTTP failures share one base class. In NeMo Guardrails, HTTPClientError sits at the top. The exceptions are transport-neutral, so your handler does not depend on the HTTP library underneath. Catch the base class to log every failure in one place.
Reported, thanks
Step 4 of 10
Each subclass names a different failure point. Read the exception type first. It tells you whether the request never connected, ran out of time, got an error status or returned an unreadable body.
NeMo Guardrails HTTP exceptions and what each one means
Exception
Raised when
What failed
HTTPConnectionError
The transport cannot open or keep a connection
The link to the server
HTTPTimeoutError
The request runs past its total timeout
The time budget
HTTPStatusError
The server answers with an unsuccessful status
The request, as judged by the server
HTTPResponseDecodeError
The response body is not valid JSON
Parsing the reply
Exam trap A decode error does not mean the server was unreachable. A reply arrived; its body just could not be decoded as JSON.
Reported, thanks
Step 5 of 10
retry_count shows how many retries finished first. Log it together with the exception. A value above 0 means the caller saw the error only after retries had already run.
Reported, thanks
Step 6 of 10
llm_tracker logs through a standard Python logger. The module creates it with logging.getLogger(__name__), so it is an ordinary named Python logger. Your existing Python logging setup applies to it.
Reported, thanks
Step 7 of 10
track_function wraps any function type with tracking logic. It handles 4 kinds of function: sync, async, generator and async generator. The tracking logic runs around each call of the wrapped function.
Reported, thanks
Step 8 of 10
track_unregistered_function adds scope management and automatic tracking. It relies on Context.push_active_function, the toolkit's built-in tracking, which avoids duplicate tracking entries. Pass name to replace func.__name__ in the records, and metadata to attach extra data.
Exam trap The name argument does not rename the function. It only sets the name used for tracking in place of func.__name__.
Reported, thanks
Step 9 of 10
push_intermediate_step sends a step to the NAT Event Stream. This is how the Agent Toolkit profiler records an intermediate step of a run, alongside the function tracking above.
Reported, thanks
Step 10 of 10
Catch HTTPClientError to handle every outbound HTTP failure in NeMo Guardrails.
Connection, timeout, status and decode errors each point to a different failure.
retry_count tells you how many retries ran before the error reached the caller.
track_unregistered_function uses built-in tracking to avoid duplicate entries.
Think first How do you prove a new agent version is really faster or cheaper than the version before it?
Why it matters: Questions describe a benchmark run and ask which setting, record or comparison makes the result trustworthy.
A throughput figure is meaningless unless you know the configuration that produced it. AIPerf measures the served model, and its output plus the server log show exactly what was measured.
Reported, thanks
Step 2 of 11
Term
Meaning
AIPerf
NVIDIA's preferred tool for benchmarking LLM applications served by NIM.
Resolved configuration line
Server log line listing the arguments NIM actually resolved; hidden at the default log level.
Trace
The sequence of requests a traced workload sends; sequential sampling walks it in order and wraps.
cache_salt
A per-run value that stops the prefix cache from carrying results from one run to the next.
Pareto curve
The throughput and latency pairs you get by sweeping concurrency.
Reported, thanks
Step 3 of 11
AIPerf measures the model; load tools measure scaling. Load testing tools such as K6 send many concurrent requests to see how a deployment scales. Performance benchmarking with AIPerf measures the model's own throughput, latency and token-level metrics.
Load testing and performance benchmarking compared
Feature
Load testing
Performance benchmarking
Example tool
K6
AIPerf
What it tells you
How the deployment copes with many concurrent requests
Throughput, latency and token-level metrics of the model
Reported, thanks
Step 4 of 11
A throughput number needs the configuration behind it. Before collecting data, record the inference engine and the resolved arguments. Start the NIM with NIM_LOG_LEVEL=INFO, because the default level hides the Resolved configuration: line.
Exam trap Do not rely on the default log level to show the server's arguments. It suppresses the Resolved configuration: line; set NIM_LOG_LEVEL=INFO instead.
Reported, thanks
Step 5 of 11
Keep input_config and the server log line with your numbers. The input_config object in AIPerf's output shows the configuration AIPerf accepted. Paired with the Resolved configuration: line, together they are the authoritative record of the measured setup.
Reported, thanks
Step 6 of 11
The -m value must match the served model ID exactly. Query the server's /v1/models endpoint for the ID rather than typing the name from memory.
Reported, thanks
Step 7 of 11
Use --dataset-sampling-strategy sequential for repeatable runs. It walks the trace in order and wraps around, so each run at one concurrency sees the same request order. Add a fresh cache_salt per run so the prefix cache cannot inflate later sweep points.
Exam trap Do not use a base64 salt. It can emit / and +, so use a hex salt instead.
Reported, thanks
Step 8 of 11
Never compare a synthetic point with a traced one. Synthetic and traced workloads are both valid, yet each answers a different question. With a traced workload, expect the mean input length you measure to sit about 10% or less from the trace's mean.
Reported, thanks
Step 9 of 11
Sweep concurrency, then read the Pareto curve. Every concurrency level gets a separate artifact directory. Put output_token_throughput on one axis and inter_token_latency on the other. Choose the concurrency with the highest throughput that still meets your latency budget.
Reported, thanks
Step 10 of 11
Cost numbers count only at acceptable accuracy. The NIM cost benchmarking method does not measure accuracy. NeMo Evaluator has 17 runtime-registered built-in benchmarks, such as HumanEval, whose code_sandbox scorer runs code in Docker with network isolation.
Reported, thanks
Step 11 of 11
Record the engine and resolved arguments, with NIM_LOG_LEVEL=INFO, before collecting data.
Use sequential sampling and a fresh hex cache_salt so runs stay comparable.
Compare synthetic with synthetic and traced with traced, never across the two.
Pick the concurrency with the highest throughput inside your latency budget.
Think first How can an agent keep improving in production without a risky manual retraining cycle?
Why it matters: Questions describe a production agent and ask how the finetuning harness, its rewards or its deployment safeguards should be set up.
The NeMo Agent Toolkit finetuning harness trains an agent with the same workflow it runs in production. Evaluators score each run to produce rewards. You evaluate model quality before enabling automatic deployment, then track performance in production and retrain as needed.
Reported, thanks
Step 2 of 10
Term
Meaning
Finetuning harness
Experimental Agent Toolkit feature for in-situ training; breaking changes may come without notice.
Trajectory
Training data the harness collects by running evaluation; it is kept only when it carries log probabilities.
On-policy
Training that needs fresh trajectories after each update, as GRPO and PPO do.
KL penalty
DPO setting where higher values give more conservative, slower but more stable updates.
Reported, thanks
Step 3 of 10
The harness trains with your production workflow. In-situ training means no move to a separate development environment. Start it with nat finetune and a configuration file. The feature is experimental, so later releases may break your setup.
Reported, thanks
Step 4 of 10
TrajectoryBuilder, TrainerAdapter and Trainer can be mixed and customized. Rewards come from the Agent Toolkit evaluator system. That means the metrics you already evaluate with can double as training signals.
Reported, thanks
Step 5 of 10
The inference endpoint must return log probabilities. Any trajectory lacking logprobs is dropped before training. Check that your endpoint supports them before you start a run.
Exam trap An endpoint that returns only text is not enough. Trajectories need log probabilities, or the harness filters them out.
Reported, thanks
Step 6 of 10
GRPO and PPO need fresh trajectories after each update. That is why the harness runs evaluation at the start of every epoch: it collects new trajectories. With curriculum learning, difficulty comes from the average reward on each example group.
Reported, thanks
Step 7 of 10
DPO pairs come from Test-Time Compute during workflow runs. Install the NeMo Customizer plugin with pip install nvidia-nat-nemo-customizer. Higher KL penalty values, 0.2-0.5, make updates more conservative: slower, but more stable.
Reported, thanks
Step 8 of 10
OpenPipe ART separates inference from training. Its async client-server design lets inference run anywhere while training runs on GPU infrastructure.
Reported, thanks
Step 9 of 10
Evaluate a finetuned model before automatic deployment. Once it is live, track its performance in production and retrain when needed. Retraining becomes a loop rather than a one-off event.
Exam trap Do not enable automatic deployment first and test later. Evaluate model quality before turning it on.
Reported, thanks
Step 10 of 10
The harness trains in situ with nat finetune and your production workflow.
Trajectories without log probabilities are dropped, so the endpoint must return them.
On-policy methods like GRPO and PPO regenerate trajectories every epoch.
Test model quality before auto-deploying, then monitor and retrain as needed.
Think first What does it take to keep a live agent available, explainable and trusted after it ships?
Why it matters: Questions describe a live agent deployment and ask which practice keeps it available, transparent or accountable.
After deployment, agents need ongoing operation, monitoring and maintenance. Uptime rests on dashboards and reliability metrics, while log tracking serves root cause diagnosis. Trust rests on transparency, audit trails and human oversight.
Reported, thanks
Step 2 of 7
Term
Meaning
Reliability metrics
Measures you define, together with monitoring dashboards, to watch a live agent.
Decision traceability
A transparency mechanism, alongside explainable reasoning, for following an agent's decisions.
Audit trail
A record that is designed and enforced along with system security.
Human oversight
People's ability to oversee an agent and intervene, for accountability and trust.
Reported, thanks
Step 3 of 7
Running an agent is ongoing work after deployment. The Run, Monitor, and Maintain domain covers operating, monitoring and maintaining agentic systems once they are live. It carries 7% of the exam weight.
Practices for uptime and trust in the study guide
Goal
Practice
Guide objective
Uptime
Monitoring dashboards and reliability metrics
8.1
Diagnosis
Track logs, errors and anomalies for root causes
8.2
Regression checks
Benchmark deployed agents against prior versions
8.3
Security
Design and enforce security and audit trails
9.1
Transparency
Explainable reasoning and decision traceability
10.3
Accountability
Human oversight and intervention
10.4
Reported, thanks
Step 4 of 7
Dashboards and reliability metrics keep live agents up. Tracking logs, errors and anomalies is a separate practice, for diagnosing root causes. Benchmark each deployed agent against its prior versions on an ongoing basis.
Exam trap Monitoring is not only a dashboard. The guide also lists tracking logs, errors and anomalies to diagnose root causes.
Reported, thanks
Step 5 of 7
Transparency means explainable reasoning and decision traceability. These mechanisms let people follow how an agent reached a decision. Pair them with system security and audit trails that are both designed and enforced.
Reported, thanks
Step 6 of 7
Human oversight and intervention support accountability and trust. People must be able to oversee an agent and step in. The professional role calls for building resilient, secure and trustworthy agentic solutions.
Exam trap Trust is not only a technical metric. The guide ties accountability and trust to human oversight and intervention.
Reported, thanks
Step 7 of 7
Uptime starts with monitoring dashboards and reliability metrics.
Benchmark deployed agents continuously against their prior versions.
Transparency comes from explainable reasoning and decision traceability.
Human oversight and intervention support accountability and trust.
Each topic's Check tested it on its own; this mixes them.
Mixed quiz
Take the Domain 8 quiz
5 questions mixed from every topic in this domain, each answer explained. Mixing topics is harder than one at a time, and it is what the exam does. No account needed; with a free account your answers also build your estimated exam score.
Free to start: the study notes and plan, quizzes, flashcards and the first mock exam, no card needed. A free account keeps your place and saves your quiz scores.