MockCertMockCert
Menu

Test yourself in exam conditions

A full NVIDIA-Certified Professional: Agentic AI mock exam: 65 questions in 120 minutes. Your first one is free.

Start a free mock exam
Domain 7 · 5 topics · about 32 minTopics in this domainTopics

Domain 7 · Overview

Overview

Up next: Integrate NVIDIA NeMo Guardrails for compliance and safety enforcement. · 10 steps + check · 7 min

Domain 7 · Topic 1 of 5

Integrate NVIDIA NeMo Guardrails for compliance and safety enforcement.

Step 1 of 10

Think first How do you decide which NeMo Guardrails rails a safety need calls for, and where does each one go in the configuration?

Why it matters: Questions describe a safety or compliance need and ask which rail, setting, or configuration file meets it.

A guardrails configuration lives in one config folder. The file config.yml names the models and switches rails on, while Colang flows and Python actions implement them. Each rail type runs at its own point in a conversation.

Step 2 of 10

Term Meaning
config.yml The core file: which LLMs to use, general instructions, a sample conversation, and which rails are active.
Colang flow A rail written in a .co file; such files load from anywhere inside the config folder.
Custom action A Python function marked with @action() that Colang flows can call while handling a request.
Input rail A rail that runs when user input arrives, to validate, filter, or change it.

Step 3 of 10

Every guardrails component sits in one config folder. The file config.yml holds core options such as the LLMs, general instructions, and active rails. Colang .co files load recursively from anywhere in the folder. The file config.py registers custom LLM and embedding providers, plus shared resources, at startup. With the files ready, the SDK classes RailsConfig and LLMRails run the guardrails.

Step 4 of 10

Rail types differ by the moment they trigger. Catalog guardrails are configurable flows you place in the input, output, or retrieval section of config.yml. Pick the rail type by when the check must happen.

Rail types and when they run

Rail type Runs when Used to
Input rails User input arrives Validate, filter, or change the input
Retrieval rails RAG retrieval has finished Process the retrieved chunks
Execution rails Before and after an action runs Control tool and action calls
Tool rails (IORails engine) A model emits a tool call, or a tool result returns tool_output checks the call; tool_input checks the result

Exam trap The names mislead: tool_output rails do not check tool results. They check the tool calls the model emits, and tool_input rails check the results sent back to the model.

Step 5 of 10

Declare every model in the models section first. Input and output flows can use a model only after it is defined there. A flow points to one with $model=<type>, and the runtime checks that each reference has a matching model. For content safety, $model names the model that performs the check. The type jailbreak_detection is reserved for NIM-based jailbreak detection.

Step 6 of 10

Content safety rails send input and output to a safety model. The input rail runs the content_safety_check_input action, and the output rail runs content_safety_check_output. Usable models include Nemotron Content Safety, Llama Guard 3, and ShieldGemma. A missing prompt raises an exception when the configuration loads. When the prompt task sets no max_tokens, the action uses 1024 tokens.

Step 7 of 10

Each built-in check works in its own way. Self check input asks an LLM, and the jailbreak flows use a NIM model or heuristics. Injection detection checks LLM output, and its action can be set to omit instead of reject.

Built-in safety flows compared

Flow Checks How it works
self check input User input An LLM checks the input against a policy
jailbreak detection model User input A NIM model classifies it; endpoint path defaults to classify
jailbreak detection heuristics User input Heuristics instead of a model
injection detection LLM output Finds SQL, XSS, code, and template injection; action defaults to reject

Exam trap The heuristics flow does not call a NIM model. It uses heuristics instead; the jailbreak detection model flow is the NIM-based one.

Step 8 of 10

PII rails detect sensitive data and mask it. With Presidio, the default mask token is * and the default detection score threshold is 0.2. You set both separately for input, output, and retrieval.

Step 9 of 10

Input rails do not run in parallel by default. The setting rails.input.parallel defaults to false. For output streaming, stream_first defaults to true, so tokens stream before output rails apply. Chunks default to 200 tokens, carrying 50 tokens of context from the previous chunk.

Exam trap Streamed output is not held until output rails finish by default. Because stream_first is true, tokens reach the client before the rails check them.

Step 10 of 10

  • Define a model in the models section before any flow refers to it with $model.
  • Input rails run on arrival, retrieval rails after RAG retrieval, and execution rails around actions.
  • On the IORails engine, tool_output checks the model's tool calls and tool_input checks tool results.
  • Output streaming sends tokens before output rails by default, in chunks of 200 tokens.

Sources: NeMo Guardrails Library Configuration Overview | NVIDIA NeMo Guardrails Library Developer Guide (opens in a new tab) · Configuration YAML Schema Reference | NVIDIA NeMo Guardrails Library Developer Guide (opens in a new tab) · About Configuring Guardrails | NVIDIA NeMo Guardrails Library Developer Guide (opens in a new tab) · Guardrail Catalog | NVIDIA NeMo Guardrails Library Developer Guide (opens in a new tab) · Content Safety | NVIDIA NeMo Guardrails Library Developer Guide (opens in a new tab)

Check

Check: Integrate NVIDIA NeMo Guardrails for compliance and safety enforcement.

Cards to recall, then questions on this topic. About 2 minutes. Nothing is saved without an account.

Loading the cards and questions…

Up next: Deploy NVIDIA NIM microservices for high-performance inference. · 9 steps + check · 6 min

Domain 7 · Topic 2 of 5

Deploy NVIDIA NIM microservices for high-performance inference.

Step 1 of 9

Think first What must you get right when deploying NIM on Kubernetes, from profile selection through multi-node scaling?

Why it matters: Questions describe a NIM deployment and ask which profile, Helm value, health check, or operator setting makes it work.

At startup NIM picks one model profile, which decides the files it downloads and how the engine launches. On Kubernetes you deploy it with the Helm chart or the NIM Operator. Multi-node deployments add Ray, tensor- and pipeline-parallel sizes, and ReadWriteMany storage when persistence is on.

Step 2 of 9

Term Meaning
Model profile A pre-validated inference configuration that NIM selects when the container starts.
NIMCache Operator resource that caches model files on persistent storage, so restarts and scaling reuse them.
NIMService Operator resource that runs the NIM deployment: pods, health probes, service exposure, and GPU scheduling.
Readiness endpoint The path /v1/health/ready, which returns HTTP 200 only once the model is fully loaded.

Step 3 of 9

NIM selects exactly one profile when the container starts. Without NIM_MODEL_PROFILE, NIM picks the best compatible profile for your GPU, free VRAM, memory needs, and parallelism limits. A profile description names the backend, vllm or sglang, and the precision: bf16, fp8, mxfp4, or nvfp4.

Exam trap A profile's parallelism can be overridden. Setting NIM_TENSOR_PARALLEL_SIZE=4 on a profile with tp=2 launches the backend with TP=4.

Step 4 of 9

Use /v1/health/ready, not /v1/health/live, to judge readiness. The live endpoint answers at once, even while the model loads. The ready endpoint returns 200 only after loading finishes. The Operator's startup probe on it allows 120 failures 10 seconds apart, up to 20 minutes. A dry run selects the profile and downloads the model without starting the server.

Exam trap A 200 from /v1/health/live does not mean the model can serve. Only the ready endpoint waits for the model to finish loading.

Step 5 of 9

Both deploy NIM on Kubernetes; the Operator adds custom resources. The Operator uses NIMCache to cache model files and NIMService to run the deployment. A failed NIMCache download job retries up to 5 times, the default backoffLimit.

Helm chart and NIM Operator compared

Feature Helm chart NIM Operator
Minimum version Kubernetes v1.26 or later with GPU nodes NIM Operator 3.0.2 or later
What it creates A StatefulSet by default; a Deployment if statefulSet.enabled is false NIMCache and NIMService custom resources
Extra arguments on multi-node customArgs reach the leader container only Avoid spec.args; it reaches neither leader nor workers

Step 6 of 9

Ray forms the cluster; vLLM or SGLang runs the model across it. The usual setup sets tensor-parallel size to the GPUs per node and pipeline-parallel size to the node count. Helm needs both sizes above 0, or model.profile, or the chart fails to render. Ray's port, 6379 by default, must be reachable between pods. Turn off JSON logging with model.jsonLogging=false.

Exam trap ReadWriteOnce storage fails for multi-node NIM with persistence on. The volume must mount on several nodes, so use ReadWriteMany.

Step 7 of 9

Autoscale on inference metrics, not CPU or memory. Plain CPU and memory figures are poor signals for scaling NIM, so point HPA at inference-specific metrics. Give NIM pods a priority class, or they rank lowest and can be preempted. When upgrades leave no room for an extra GPU pod, use Recreate instead of the default RollingUpdate.

Step 8 of 9

Lower --max-model-len to cap tokens per request. It limits the combined input and output tokens of each request. On the SGLang backend, prefix caching (radix cache) is already on, so you add no flag. Across nodes, tensor parallelism relies on network bandwidth, latency, and Remote Direct Memory Access (RDMA) availability.

Step 9 of 9

  • Without NIM_MODEL_PROFILE, NIM picks the best compatible profile for the hardware.
  • Only /v1/health/ready returning 200 shows the model is fully loaded.
  • Multi-node NIM needs ReadWriteMany storage when persistence is on, an open Ray port, and JSON logging off.
  • Scale NIM on inference-specific metrics rather than CPU or memory.

Sources: Model Profiles and Selection — NVIDIA NIM for LLM and VLM (opens in a new tab) · Kubernetes Deployment — NVIDIA NIM for LLM and VLM (opens in a new tab) · Multi-Node Deployment — NVIDIA NIM for LLM and VLM (opens in a new tab) · NIM Operator Deployment — NVIDIA NIM for LLM and VLM (opens in a new tab) · Helm and Kubernetes — NVIDIA NIM for LLM and VLM (opens in a new tab) · Multi-Node Deployment — NVIDIA NIM for LLM and VLM (opens in a new tab)

Check

Check: Deploy NVIDIA NIM microservices for high-performance inference.

Cards to recall, then questions on this topic. About 2 minutes. Nothing is saved without an account.

Loading the cards and questions…

Up next: Optimize workflows with the NVIDIA NeMo Agent Toolkit. · 10 steps + check · 6 min

Domain 7 · Topic 3 of 5

Optimize workflows with the NVIDIA NeMo Agent Toolkit.

Step 1 of 10

Think first When a NeMo Agent Toolkit workflow is slow or costly, how do you find the bottleneck and then tune it?

Why it matters: Questions describe a workflow to measure or tune and ask which profiler output, optimizer setting, or sizing step fits.

The toolkit gives you three tools for optimizing. The profiler reports latency and finds bottlenecks, and the optimizer searches parameters and prompts for better scores. The sizing calculator estimates the GPU cluster a target load needs.

Step 2 of 10

Term Meaning
Profiler The measuring tool from the nvidia-nat-profiler package, run through nat eval.
Optimizer An optional tool, run with nat optimize, that tunes numbers with Optuna and prompts with a genetic algorithm.
Parameter set One combination of values the optimizer evaluates, run 3 times by default for a stable score.
Sizing calculator A tool that estimates GPU cluster size for a target number of users and response time.

Step 3 of 10

Run the profiler through nat eval. Callback handlers cover LangChain/LangGraph, LlamaIndex, CrewAI, Google ADK, and Semantic Kernel. For a registered function, list its frameworks in the framework_wrappers argument of register_function. For your own Python code, @track_function records start, end, inputs, and outputs, even for async functions and generators.

Step 4 of 10

inference_optimization.json holds confidence intervals. It gives 90%, 95%, and 99% intervals for latency, throughput, and workflow runtime. The prompt_caching_prefixes option finds repeated prompt prefixes worth pre-loading into KV caches. Nested stack bottleneck analysis finds tool calls inside other tool calls; simple_stack gives a simpler view.

Step 5 of 10

A spike threshold counts functions running at the same time. With spike_threshold set to 7, concurrency spike analysis flags every moment when 7 or more functions are running at once. Lower the value to catch smaller bursts of parallel work.

Exam trap A threshold of 7 also flags exactly 7 concurrent functions. The test is greater than or equal to the threshold, not strictly greater.

Step 6 of 10

Optuna tunes numbers; a genetic algorithm tunes prompts. Install the optimizer first, for example with pip install nvidia-nat[config-optimizer], then run nat optimize. Your configuration object must inherit from OptimizableMixin to get the optimizable_params field. GA prompt optimization stays off unless prompt.enabled is set.

Numeric and prompt optimization compared

Feature Numeric values Prompts
Method Optuna Custom genetic algorithm (GA)
Default effort 20 trials (numeric.n_trials) Population of 10 over 5 generations

Exam trap Prompts are not tuned unless you turn it on. The setting prompt.enabled defaults to false.

Step 7 of 10

Each metric is maximized or minimized, then scores are combined. Metric weights default to 1.0 and are normalized. Combination modes are harmonic, sum, and chebyshev, with harmonic as the default. Each parameter set runs 3 times by default to smooth noisy results. With the sampler unset or bayesian, Optuna uses TPE for one objective and NSGA-II for several; grid is the alternative.

Step 8 of 10

Gather metrics first, then size the cluster offline. The calculator first collects metrics at several concurrency levels, then sizes the cluster in offline_mode from them. Aim for at least 10 concurrency values; fewer still work, but accuracy may drop. The dataset needs inputs only, with no ground truth answers.

Exam trap Sizing does not need labeled data. The calculator's dataset needs only the inputs, not ground truth answers.

Step 9 of 10

Lower eval.general.max_concurrency when nat eval hits rate limits. On 429 Too Many Requests errors, reduce the concurrency, for example to 1 with a command-line override. Each run saves config_effective.yml, the final configuration with every override applied. Out of the box, nat eval reads json, jsonl, csv, xls, and parquet datasets, or a custom type.

Step 10 of 10

Check

Check: Optimize workflows with the NVIDIA NeMo Agent Toolkit.

Cards to recall, then questions on this topic. About 2 minutes. Nothing is saved without an account.

Loading the cards and questions…

Up next: Leverage NVIDIA TensorRT-LLM and Triton Inference Server for latency reduction. · 9 steps + check · 6 min

Domain 7 · Topic 4 of 5

Leverage NVIDIA TensorRT-LLM and Triton Inference Server for latency reduction.

Step 1 of 9

Think first How can an agent workflow mark its latency-critical work and return results without making clients wait or time out?

Why it matters: Questions describe a latency or timeout problem and ask which decorator, endpoint, or server setting addresses it.

Cutting latency in an agent workflow happens at two levels. Inside the code, functions declare how latency-sensitive they are, so routing can send urgent requests to fast backends. At the server, the endpoint you call decides whether a client waits, streams, or polls.

Step 2 of 9

Term Meaning
Latency sensitivity An integer level, such as 1 for low up to 3 for high, marking how strict a function's latency needs are.
@latency_sensitive A decorator that tags a function with an integer latency sensitivity level.
Async generate An endpoint that runs a workflow in the background and returns a job identifier at once.
Dask The library the toolkit server uses to manage asynchronous jobs.

Step 3 of 9

Tag a function with @latency_sensitive and an integer level. Levels are integers, for example 1 for low, 2 for medium, and 3 for high. While the function runs, its level sits on the context stack. Code reads the current value through Context.get().latency_sensitivity, with Context imported from nat.builder.context.

Step 4 of 9

The highest level in the call stack wins. Sensitivity flows down nested calls with max-based merging. So a level-1 function called from inside a level-3 function still runs at level 3. One use is LLM routing, which sends high-sensitivity requests to low-latency backends.

Exam trap An inner function cannot lower the level it inherits. The effective value is the maximum of all pushed levels, not the most recently pushed one.

Step 5 of 9

Pick the transaction by how long the client can wait. A running toolkit server offers 5 workflow transactions over HTTP or WebSocket. The three generate options differ in when the client gets its data.

Generate options compared

Feature Non-streaming Streaming Async
Client receives The result once all workflow data is ready Chunks as the workflow produces them A job identifier at once; results later
Route or requirement /v1/workflow /v1/workflow/stream Needs the async_endpoints extra installed

Step 6 of 9

Async generate keeps long workflows from timing out clients. The call hands back a unique job identifier for checking status and results later. Its sync_timeout defaults to 0, so it returns immediately; the maximum is 300 seconds. Jobs run on Dask, which starts a local cluster unless scheduler_address points to an existing scheduler.

Exam trap The --max_concurrent_jobs flag is not a direct job limit. It sets the number of Dask workers, 10 by default, and applies only when scheduler_address is unset.

Step 7 of 9

Set filter_steps to none to get only the final output. On the /v1/workflow/full route, filter_steps takes a comma-separated list of step types to filter by. The value none drops every intermediate step. Separately, disable_legacy_routes set to true drops the legacy endpoint paths entirely.

Step 8 of 9

nat mcp serve publishes workflow tools on port 9901. By default it binds to localhost, publishes every workflow tool, and serves them at the /mcp path over streamable-http. A custom base_path needs streamable-http, since SSE cannot use custom base paths. SSE has no authentication either, so production servers should run streamable-http with authentication configured.

Exam trap SSE is a poor production choice for an MCP server. It supports neither authentication nor a custom base path.

Step 9 of 9

  • The effective latency sensitivity is the highest level pushed on the context stack.
  • Async generate returns a job identifier at once; sync_timeout defaults to 0 with a maximum of 300.
  • Streaming sends chunks as they appear, while non-streaming waits for the complete result.
  • Use streamable-http, not SSE, for MCP servers that need authentication or a custom base path.

Sources: nat.plugins.profiler.decorators.latency — NVIDIA NeMo Agent Toolkit (1.9) (opens in a new tab) · NVIDIA NeMo Agent Toolkit API Server Endpoints — NVIDIA NeMo Agent Toolkit (1.9) (opens in a new tab) · NeMo Agent Toolkit as an MCP Server — NVIDIA NeMo Agent Toolkit (1.9) (opens in a new tab)

Check

Check: Leverage NVIDIA TensorRT-LLM and Triton Inference Server for latency reduction.

Cards to recall, then questions on this topic. About 2 minutes. Nothing is saved without an account.

Loading the cards and questions…

Up next: Manage and optimize multimodal input pipelines on NVIDIA hardware. · 9 steps + check · 6 min

Domain 7 · Topic 5 of 5

Manage and optimize multimodal input pipelines on NVIDIA hardware.

Step 1 of 9

Think first How do you get image, audio, or video into a model served by NIM, and when does a well-formed request still fail?

Why it matters: Questions describe a multimodal request or container and ask which engine, content part, or format makes it work.

NIM passes media to multimodal models through ordinary Chat Completions requests whose content mixes text and media parts. Whether a request works depends on the model and on the engine inside the image. vLLM handles image, audio, and video; SGLang handles image and audio only.

Step 2 of 9

Term Meaning
Content array The list inside a chat message that mixes text parts with image, audio, or video parts.
Inference engine The serving backend packed into a NIM image: either vLLM or SGLang.
Data URL A string that carries base64-encoded media bytes inline, with the MIME type at the front.
Multimodal rail A NeMo Guardrails rail that considers more than text, such as voice, gestures, posture, or images.

Step 3 of 9

Media rides in a Chat Completions content array. NIM LLM and VLM can serve models that take image, audio, or video input. You reach them with OpenAI-compatible Chat Completions requests whose content array mixes text items with media items. Check the model first: a text-only model cannot process any of the three media types.

Step 4 of 9

Video needs vLLM; image and audio work on both engines. Every container image ships with one engine, vLLM or SGLang. The SGLang images also leave out the video decoder that video_url requests depend on.

Media support by inference engine

Feature vLLM image SGLang image
Image input Supported Supported
Audio input (audio_url) Supported Supported
Video input (video_url) Supported Not supported: no video decoder in the image

Exam trap Video on an SGLang image is not fixed by a request flag. The image has no video decoder, so video input needs a vLLM image.

Step 5 of 9

Startup logs or the chosen profile's description name the engine. Before you send video, confirm which engine the running container uses. Read the startup logs, or look at the description of the profile it selected. That check stops you from sending video_url content to an SGLang image.

Step 6 of 9

Audio uses audio_url or input_audio; video uses video_url. The audio_url and video_url parts are extensions to the OpenAI Chat Completions schema. Both engines accept audio_url. Both also accept the standard OpenAI input_audio part for inline audio. A video_url part still needs a vLLM image.

Step 7 of 9

Put a base64 data URL in image_url.url. To send image bytes instead of a link, encode them as base64 and set image_url.url to a data URL, for example one starting data:image/jpeg;base64,. The MIME type in that URL should match the file, so a PNG file takes image/png.

Exam trap Labeling a PNG as image/jpeg in the data URL is a mismatch. The MIME type must name the file's real format.

Step 8 of 9

Rails can act on voice, gestures, posture, and images too. Multimodal rails take several input and output modalities into account. The Colang Standard Library has an avatars module whose flows cover multimodal events and actions. For example, the user gestured flow waits for GestureUserActionFinished events, and the bot gesture flow triggers StartGestureBotAction events.

Step 9 of 9

  • Video input needs a vLLM image, because SGLang images lack the video decoder.
  • Media travels next to text in an OpenAI-compatible Chat Completions content array.
  • Inline images use a base64 data URL in image_url.url with a MIME type that matches the file.
  • A text-only model cannot take image, audio, or video, whatever engine serves it.

Sources: Image, Audio, and Video Input — NVIDIA NIM for LLM and VLM (opens in a new tab) · Multimodal Rails | NVIDIA NeMo Guardrails Library Developer Guide (opens in a new tab)

Check

Check: Manage and optimize multimodal input pipelines on NVIDIA hardware.

Cards to recall, then questions on this topic. About 2 minutes. Nothing is saved without an account.

Loading the cards and questions…

Domain 7 · after the last topic

Domain 7 review

Each topic's Check tested it on its own; this mixes them.

Mixed quiz

Take the Domain 7 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.

Flashcards

Domain 7 flashcards

10 cards with this domain's key facts. Flip each one and check what you knew. No account needed.

Test yourself in exam conditions

A full NVIDIA-Certified Professional: Agentic AI mock exam: 65 questions in 120 minutes. Your first one is free.

Start a free mock exam
Next domain · 7% of the examRun, Monitor, and Maintain5 topics

Report a problem

On “”. Tell us what looks wrong; we read every report.

What is the problem?

Optional.