MockCertMockCert
Menu

NVIDIA conceptsNVIDIA-Certified Professional: Agentic AIAI safety

NCP-AAI safety, ethics and compliance: what's tested

How NeMo Guardrails content safety, PolicyAI, injection detection and secure agent operations work, for NCP-AAI Safety, Ethics, and Compliance study.

By MockCert EditorialPublished Nov 16, 2026

3 min read

A NeMo Guardrails content safety flow returns whether text is safe and, depending on the model, which policies it broke. If a reasoning guard model's max_tokens is too small, its empty reply is typically treated as unsafe.

01 What does NCP-AAI test about safety, ethics and compliance?

Safety can look like the domain to skim the night before a mock exam. Its ideas are concrete, though: each NeMo Guardrails catalog guardrail is a rail flow you add to the input, output or retrieval section of config.yml.

Agentic security adds injection and context bloat detection. Secure operations add RBAC, sandboxing and log scrubbing.

Three study areas across objectives 9.1, 9.4 and 9.2

  1. Content safetyNVIDIA-trained and open-source safety models on input, output or retrieval rails
  2. Agentic securityYARA rules for injection; a size cap for context bloat
  3. Secure operationsRBAC, sandboxing and scrubbed logs
Each area rests on NeMo documentation, from config.yml rails to agent security guidance.

Combine several guardrail approaches for defense in depth.

02 How do guardrails check content?

Content safety checks can use models such as Nemotron Content Safety, Llama Guard 3 or ShieldGemma. The $model parameter names the guard model, which must be defined in the models section of config.yml.

Each check needs a prompt with an output parser, such as is_content_safe, which flags a reply containing "unsafe" or "yes". Without max_tokens, the action defaults to 1024 tokens.

PolicyAI also works as an input and output rail: an unsafe message is blocked, and a violating response is replaced with a refusal.

A missing content safety prompt raises an exception when the configuration loads.

03 How do you secure an agent beyond its prompts?

Injection detection uses YARA rules to catch code, SQL, template and cross-site scripting injection, and rejecting the output is the safest action in production.

Around the agent, limit permissions with RBAC, isolate execution in sandboxes or containers, and scrub sensitive data before logging. Use only signed models from trusted sources to cut supply chain risk.

Keeping logs longer than necessary increases exposure risk.

04 How should you study this domain next?

Read each rail above beside its config.yml section, then test yourself.

MockCert is independent of NVIDIA. Its quizzes explain each answer as soon as you give it, and each answer updates your estimated readiness for each exam domain, so your weakest domain is clear.

MockCert lists the certifications it covers today, so check that list first.

Summary

  1. Guardrails attach to the input, output or retrieval rails in config.yml.
  2. is_content_safe treats a reply with "unsafe" or "yes" as unsafe.
  3. On injection detection, rejecting output is safest in production.
  4. RBAC, sandboxing and log scrubbing protect what surrounds the agent.

Sources

  1. Guardrail Catalog | NVIDIA NeMo Guardrails Library Developer Guide (opens in a new tab)
  2. Security Considerations — NVIDIA NeMo Agent Toolkit (1.9) (opens in a new tab)
  3. Content Safety | NVIDIA NeMo Guardrails Library Developer Guide (opens in a new tab)
  4. Agentic Security | NVIDIA NeMo Guardrails Library Developer Guide (opens in a new tab)
  5. PolicyAI Integration | NVIDIA NeMo Guardrails Library Developer Guide (opens in a new tab)
  6. MockCert: free study guides, quizzes and mock exams