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 5 · 5 topics · about 26 minTopics in this domainTopics

Domain 5 · Overview

Overview

Up next: Implement memory mechanisms for short- and long-term context retention. · 9 steps + check · 5 min

Domain 5 · Topic 1 of 5

Implement memory mechanisms for short- and long-term context retention.

Step 1 of 9

Think first How do you give an agent memory that keeps user context across steps, and when would you build your own backend?

Why it matters: Questions describe a memory need and ask which wrapper, interface, provider or config setting delivers it.

NeMo Agent Toolkit memory lets a stateful app recall user-specific data across multiple steps. You configure a memory backend and reach it through a memory client, or wrap an agent so history is stored and retrieved automatically.

Step 2 of 9

Term Meaning
MemoryItem The main object that represents one piece of memory.
MemoryEditor The low-level abstract interface for adding, searching and removing memory items.
MemoryManager The abstract interface for higher-level operations such as summarization or reflection.
MemoryBaseConfig The Pydantic base class that every memory config class must extend.
Auto-memory wrapper Wraps an agent so conversation history is stored and retrieved for it automatically.

Step 3 of 9

Memory lets an agent recall user-specific data across steps. That recall is what makes an LLM application stateful. Your code or tools get a memory instance by calling builder.get_memory_client() with the name of the memory config.

Example: Gets the memory instance configured under the name user_store.

my_memory = builder.get_memory_client("user_store")
  • "user_store": the memory config's name

Step 4 of 9

Three abstractions split the memory work. A MemoryItem is the data. MemoryEditor handles item-level changes, while MemoryManager handles higher-level work when you need it.

Memory abstractions compared

Abstraction Level What it handles
MemoryItem Main data object One piece of memory
MemoryEditor Low-level abstract interface Adding, searching and removing items
MemoryManager Higher-level abstract interface Summarization or reflection

Exam trap Summarization is not a MemoryEditor job; higher-level operations such as summarization or reflection belong to MemoryManager.

Step 5 of 9

The auto-memory wrapper stores and retrieves history for you. It captures both user messages and agent responses, so your workflow makes no manual memory calls. The auto_memory_agent requires inner_agent_name, which names the agent to wrap.

Step 6 of 9

A user_id_resolver callable runs for every memory operation. The callable can be synchronous or asynchronous. For nat run, the console front end's user_id defaults to nat_run_user_id.

Exam trap The resolver is not called once per session and cached; it is invoked for every memory operation.

Step 7 of 9

Zep and Redis memory come as plugins. Zep is provided by the nvidia-nat-zep-cloud plugin. Redis is provided by the Redis-maintained nemo-agent-toolkit-redis plugin.

Step 8 of 9

Extend MemoryBaseConfig and implement a MemoryEditor. The editor must handle add_items, search and remove_items calls. Declaring name="my_custom_memory" on the config class lets the toolkit recognize _type: my_custom_memory in the memory config.

Exam trap A custom memory config is not just any class; it must extend the Pydantic base class MemoryBaseConfig.

Step 9 of 9

  • Wrap an agent with auto-memory to store user messages and agent responses automatically.
  • MemoryEditor adds, searches and removes items; MemoryManager summarizes or reflects.
  • Every memory config class extends MemoryBaseConfig, and its name is what _type refers to.
  • Get a memory instance with builder.get_memory_client() and the memory config's name.

Sources: Memory in NVIDIA NeMo Agent Toolkit — NVIDIA NeMo Agent Toolkit (1.9) (opens in a new tab) · Adding a Memory Provider — NVIDIA NeMo Agent Toolkit (1.9) (opens in a new tab)

Check

Check: Implement memory mechanisms for short- and long-term context retention.

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

Loading the cards and questions…

Up next: Apply reasoning frameworks (chain-of-thought, task decomposition). · 7 steps + check · 5 min

Domain 5 · Topic 2 of 5

Apply reasoning frameworks (chain-of-thought, task decomposition).

Step 1 of 7

Think first When should an agent plan its reasoning up front, and when should it reason between each action?

Why it matters: Questions describe an agent task and ask which reasoning approach or agent type fits it, and what that agent requires.

Reasoning frameworks such as chain-of-thought and task decomposition shape how an agent works toward a goal. In NeMo Agent Toolkit, the reasoning agent plans ahead of time, while a ReAct agent reasons between steps.

Step 2 of 7

Term Meaning
Reasoning agent A toolkit agent that plans ahead and calls an underlying function directly, reasoning on top of it.
ReAct agent A toolkit agent that reasons between steps; its output_parser reads the LLM's output.
Reasoning LLM A model that supports reasoning; the reasoning agent needs one.
ReWOO agent A LangChain-based toolkit agent with agent, prompt and register submodules.

Step 3 of 7

The reasoning agent plans ahead; ReAct reasons between steps. Both are NeMo Agent Toolkit agents. The reasoning agent works out a plan before acting, then invokes the underlying function directly. A ReAct agent does its reasoning between steps instead.

Reasoning agent and ReAct agent compared

Feature Reasoning agent ReAct agent
When it reasons Ahead of time, through planning Between steps
Notable parts Invokes an underlying function directly output_parser and register_per_user_agent submodules

Exam trap The reasoning agent does not reason between steps the way ReAct does. It reasons ahead of time through planning.

Step 4 of 7

A reasoning agent needs an LLM that supports reasoning. NIM lists supported profiles for reasoning models such as nvidia/nemotron-3-nano-omni-30b-a3b-reasoning. The meta/muse-glimmer model reasons before answering and needs a cache-permission step during deployment.

Exam trap Not every LLM will work with the reasoning agent. You must choose one that supports reasoning.

Step 5 of 7

Customize the reasoning agent's prompts in YAML. The workflow's YAML config file holds prompts you can tailor to your task. The exam expects you to excel at goal-oriented reasoning and chain-of-thought prompt engineering.

Step 6 of 7

The toolkit also ships a LangChain-based ReWOO agent. Its package has agent, prompt and register submodules. Like the ReAct agent, it sits in the toolkit's LangChain plugin.

Step 7 of 7

Check

Check: Apply reasoning frameworks (chain-of-thought, task decomposition).

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

Loading the cards and questions…

Up next: Engineer planning strategies for sequential and multi-step decision-making. · 7 steps + check · 5 min

Domain 5 · Topic 3 of 5

Engineer planning strategies for sequential and multi-step decision-making.

Step 1 of 7

Think first When should an agent follow a fixed chain of steps, and when should it generate and compare several plans?

Why it matters: Questions describe a multi-step task and ask whether a sequential executor or a multi-plan planner fits, and how to set it up.

A sequential executor chains functions in a fixed order, passing each output to the next function, with no LLM orchestration. The experimental multi-plan planners instead produce several candidate plans, either in a single shot or by combining plans from multiple LLMs.

Step 2 of 7

Term Meaning
Sequential executor A control flow component that chains functions, feeding each output into the next one.
tool_list The SequentialExecutorConfig field that lists the FunctionRef entries to run in order.
SequentialExecutorExit The exception a tool raises to leave the chain early with a custom message.
Test-time compute (TTC) The experimental search module that holds the multi-plan planners.

Step 3 of 7

A sequential executor runs functions in a set order. Each function's output becomes the next function's input. The order is decided in advance, so no LLM or agent has to orchestrate the steps.

Exam trap A sequential executor does not ask an LLM which tool to call next. It follows a predetermined order.

Step 4 of 7

List the functions to run, in order, in tool_list. SequentialExecutorConfig adds options for type mismatches and for exceptions. ToolExecutionConfig sets options for each individual tool in the chain.

Fields that shape a sequential chain

Field Belongs to What it controls
tool_list SequentialExecutorConfig The functions to run, in order
raise_type_incompatibility SequentialExecutorConfig Handling of type mismatches between chained functions
return_error_on_exception SequentialExecutorConfig How exceptions in the chain are handled
use_streaming ToolExecutionConfig Streaming for one tool in the chain

Step 5 of 7

You can validate types between chained functions. The check confirms one function's output type fits the next function's input. A tool that must stop the chain raises SequentialExecutorExit with a custom message. Streaming and compatibility validation can be customized in YAML config files.

Exam trap Type validation between chained functions is something you opt in to. It is not described as always on.

Step 6 of 7

Multi-plan planners produce several candidate plans. SingleShotMultiPlanPlanner generates multiple plans in one shot. MultiLLMPlanner queries several LLMs and combines every plan they return. It binds each LLMRef with the LANGCHAIN framework wrapper.

Two multi-plan planners compared

Feature SingleShotMultiPlanPlanner MultiLLMPlanner
How plans are made Several plans in a single shot Each bound LLM makes plans_per_llm plans
What you get back Multiple plans All plans from every LLM, combined

Exam trap These planners are experimental. They live in the test-time compute (TTC) search module, not in the sequential executor.

Step 7 of 7

  • A sequential executor passes each function's output to the next, in a predetermined order.
  • List the chained functions in tool_list.
  • Raise SequentialExecutorExit to leave the chain early with a custom message.
  • MultiLLMPlanner combines the plans_per_llm plans from each bound LLM.

Sources: About the Sequential Executor — NVIDIA NeMo Agent Toolkit (1.9) (opens in a new tab) · nat.experimental.test_time_compute.search.single_shot_multi_plan_planner — NVIDIA NeMo Agent Toolkit (1.9) (opens in a new tab) · nat.experimental.test_time_compute.search.multi_llm_planner — NVIDIA NeMo Agent Toolkit (1.9) (opens in a new tab) · nat.plugins.langchain.control_flow.sequential_executor — NVIDIA NeMo Agent Toolkit (1.9) (opens in a new tab)

Check

Check: Engineer planning strategies for sequential and multi-step decision-making.

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 stateful orchestration to coordinate complex tasks and knowledge retention. · 9 steps + check · 5 min

Domain 5 · Topic 4 of 5

Manage stateful orchestration to coordinate complex tasks and knowledge retention.

Step 1 of 9

Think first How do you coordinate many functions in one task while keeping step history and knowledge available throughout?

Why it matters: Questions describe a multi-step workflow and ask which orchestration, step-tracking or knowledge base feature keeps it coordinated.

Stateful orchestration has three parts here. A TTC orchestration function coordinates multiple functions, an intermediate step manager tracks the steps in the event stream, and a knowledge base keeps documents ready as context.

Step 2 of 9

Term Meaning
TTCToolOrchestrationFunction A NeMo Agent Toolkit function used to orchestrate multiple functions.
TTCItem The form each ToolUselist item is converted to inside the orchestration function.
IntermediateStepManager Manages updates to the NAT Event Stream for intermediate steps.
kb folder The folder inside the configuration folder that holds knowledge base documents.
$relevant_chunks The context variable that holds the retrieved knowledge base chunks.

Step 3 of 9

The TTC orchestration function coordinates multiple functions. You configure it with TTCToolOrchestrationFunctionConfig. It instantiates every relevant strategy: search, editing, scoring and selection.

Step 4 of 9

Items move from a ToolUselist through optional strategies. Some stages always apply and some only when configured. The function returns a new ToolUselist with each output set.

Stages of TTC tool orchestration

Stage What it does Detail
Convert Turns each item into a TTCItem Input is a ToolUselist
Search and edit Runs search and editing strategies Optional
Call Runs the matching augmented function per item Matched by tool name
Score and select Runs scoring and selection on the result Only if configured

Exam trap Scoring and selection are not stages that always run; the function applies them to the result only if configured.

Step 5 of 9

IntermediateStepManager updates the NAT Event Stream. get_outstanding_step_count returns how many steps have started but not yet ended. push_intermediate_steps injects steps into the event stream without updating the manager's internal stack.

Exam trap push_intermediate_steps does not add the steps to the manager's internal stack; it only injects them into the event stream.

Step 6 of 9

Replay remote steps so the full trace tree is visible. Pass the remote workflow's steps to push_intermediate_steps. Invoke the remote with the right workflow-parent-id and workflow-parent-name, so the replayed root step gets the correct parent.

Exam trap Replayed steps do not find their parent on their own; the remote must be invoked with workflow-parent-id and workflow-parent-name.

Step 7 of 9

Put documents in the kb folder inside the configuration folder. The knowledge base turns on automatically when documents are there. Customize it in the knowledge_base section of config.yml. Currently only Markdown documents are supported.

Exam trap Placing files of other formats in kb does not extend the knowledge base; currently only the Markdown format is supported.

Step 8 of 9

Documents are split into topic chunks at markdown headers. Large chunks are split again at blank lines to stay within a maximum chunk size. Retrieved chunks are then available as $relevant_chunks in the context.

Step 9 of 9

  • The TTC orchestration function converts items, calls tools by name, and can search, edit, score and select.
  • get_outstanding_step_count counts steps that have started but not yet ended.
  • push_intermediate_steps replays steps into the event stream without updating the internal stack.
  • Knowledge base documents go in kb, must be Markdown, and reach the context as $relevant_chunks.

Sources: nat.experimental.test_time_compute.functions.ttc_tool_orchestration_function — NVIDIA NeMo Agent Toolkit (1.9) (opens in a new tab) · nat.builder.intermediate_step_manager — NVIDIA NeMo Agent Toolkit (1.9) (opens in a new tab) · Knowledge Base Configuration | NVIDIA NeMo Guardrails Library Developer Guide (opens in a new tab)

Check

Check: Manage stateful orchestration to coordinate complex tasks and knowledge retention.

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

Loading the cards and questions…

Up next: Adapt reasoning strategies based on prior experiences and feedback. · 8 steps + check · 5 min

Domain 5 · Topic 5 of 5

Adapt reasoning strategies based on prior experiences and feedback.

Step 1 of 8

Think first How can an agent's plans, prompts and model improve from earlier results and evaluation feedback?

Why it matters: Questions describe an agent that should learn from past results and ask which planning, feedback or finetuning mechanism fits.

NeMo Agent Toolkit adapts reasoning at three levels. A reasoning agent plans ahead, oracle feedback feeds evaluation failures back into prompt evolution, and finetuning sends trajectories away to update model weights.

Step 2 of 8

Term Meaning
Reasoning agent An agent that reasons ahead of time through planning, while a ReAct agent reasons between steps.
Oracle feedback Failure reasoning from evaluation results, injected into the prompt optimization genetic algorithm.
Worst items The worst-performing evaluation items, whose reasoning extract_worst_reasoning pulls out.
TrainerAdapter Sends trajectories to a remote training cluster for weight updates.
LLMBasedPlanScorer An experimental test-time compute scorer that uses an LLM to score each planning item.

Step 3 of 8

A reasoning agent plans ahead instead of between steps. That is its key difference from a ReAct agent. You must pick an LLM that supports reasoning, and you can customize its prompts in the YAML config file.

Exam trap A reasoning agent does not think between tool calls like ReAct; it reasons ahead of time through planning.

Step 4 of 8

LLMBasedPlanScorer uses an LLM to score planning items. It is an experimental part of test-time compute. Its ainvoke method scores a list of planning items, given the original prompt and the agent context.

Step 5 of 8

Oracle feedback grounds prompt evolution in real failures. It extracts, formats and injects failure reasoning into the prompt optimization genetic algorithm. extract_worst_reasoning takes reasoning from the worst items, using each evaluator's direction: maximize or minimize. build_oracle_feedback turns it into a string capped by max_chars.

Step 6 of 8

Feedback injection has 4 modes. They are never, always, failing_only and adaptive. The failing_only mode uses a fitness_threshold, while adaptive fires on the triggers below.

The adaptive mode's three triggers

Trigger Setting What it watches
Stagnation stagnation_generations Generations without improvement
Collapse fitness_variance_threshold Fitness variance, to detect collapse
Low diversity diversity_threshold Ratio of duplicated prompts

Exam trap fitness_threshold belongs to failing_only mode; the adaptive triggers are stagnation, fitness variance and prompt duplication.

Step 7 of 8

A TrainerAdapter sends trajectories for weight updates. Its submit method sends them to the remote training backend and returns a TrainingJobRef. Then wait_until_complete polls that job, waiting poll_interval seconds between status checks.

Exam trap Oracle feedback changes prompts, not model weights; weight updates come from trajectories sent through a TrainerAdapter.

Step 8 of 8

  • Reasoning agents plan ahead; ReAct agents reason between steps.
  • Oracle feedback injects failure reasoning from evaluations into the prompt optimization genetic algorithm.
  • Feedback modes are never, always, failing_only and adaptive.
  • A TrainerAdapter sends trajectories to a remote cluster for weight updates.

Sources: About Reasoning Agent — NVIDIA NeMo Agent Toolkit (1.9) (opens in a new tab) · nat.plugins.config_optimizer.prompts.oracle_feedback — NVIDIA NeMo Agent Toolkit (1.9) (opens in a new tab) · nat.finetuning.interfaces.trainer_adapter — NVIDIA NeMo Agent Toolkit (1.9) (opens in a new tab) · nat.experimental.test_time_compute.scoring.llm_based_plan_scorer — NVIDIA NeMo Agent Toolkit (1.9) (opens in a new tab)

Check

Check: Adapt reasoning strategies based on prior experiences and feedback.

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

Loading the cards and questions…

Domain 5 · after the last topic

Domain 5 review

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

Mixed quiz

Take the Domain 5 quiz

7 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 5 flashcards

8 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 · 10% of the examKnowledge Integration, and Data Handling5 topics

Report a problem

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

What is the problem?

Optional.