Last Updated On : 29-Jun-2026


Salesforce Agentforce Specialist - AI-201 Practice Test

Prepare with our free Salesforce Agentforce Specialist - AI-201 sample questions and pass with confidence. Our Agentforce-Specialist practice test is designed to help you succeed on exam day.

378 Questions
Salesforce 2026

Universal Containers recently deployed a customer service agent to handle common inquiries. After a month of usage, the support manager wants to analyze the agent’s performance. They need to view aggregated metrics such as the escalation rate to human agents, average session duration, and which topics have the lowest resolution scores so they can prioritize which agent actions need optimization. Which native Salesforce capability should the Agentforce Specialist use to provide these insights and guide the optimization strategy?

A. Agentforce Observability, leveraging Agent Analytics dashboards and the Session Tracing Data Model to review aggregate performance and drill into specific underperforming interactions.

B. The Einstein Trust Layer Audit Trail, exporting the raw JSON logs to measure the token usage and temperature settings of every user session.

C. The Salesforce Optimization report, scheduling a monthly scan to identify deprecated subagents and unused agent actions across the org.

A.   Agentforce Observability, leveraging Agent Analytics dashboards and the Session Tracing Data Model to review aggregate performance and drill into specific underperforming interactions.

Explanation:

Agentforce Observability is the native Salesforce capability specifically designed to give admins, specialists, and business stakeholders visibility into how deployed agents are performing over time. It provides:

* Aggregated performance metrics, such as escalation rate to human agents, average session duration, resolution rates by topic, and other conversation-level KPIs — exactly what the support manager needs.
* Agent Analytics dashboards that surface these metrics in a consumable, visual format for reporting and trend analysis.
* The underlying Session Tracing Data Model, which captures detailed session-level and interaction-level data, allowing the specialist to drill down from aggregate trends into specific underperforming conversations/topics to diagnose root causes (e.g., which topics or actions are causing low resolution scores).

This combination—dashboards for the aggregate view plus session-level tracing for drill-down troubleshooting—is precisely what's needed to guide an optimization strategy (e.g., deciding which agent actions or topics need refinement).

Why the Other Options Are Incorrect:
B. Einstein Trust Layer Audit Trail
The Trust Layer audit trail is focused on trust, safety, and compliance logging (e.g., toxicity detection, data masking, prompt/response logging for governance purposes), not on business performance analytics like escalation rates or resolution scores. Token usage and temperature settings are technical or operational details, not the business performance insights the support manager is requesting.

C. Salesforce Optimization Report
The Salesforce Optimization Report is a general org health tool that identifies items such as unused fields, page layouts, automation, and technical debt. It is unrelated to Agentforce conversational performance metrics and does not provide agent-specific analytics such as escalation rates, session duration, or topic-level resolution scoring.

Reference:
Salesforce Agentforce documentation — "Agentforce Observability and Analytics" (Agent Analytics dashboards and the Conversation/Session Tracing Data Model for performance monitoring and optimization).

In a Knowledge-based data library, which capability does enabling the “Filter by Knowledge Data Categories” option provide?

A. It applies custom metadata from the selected data categories to the Knowledge articles, aiming to enhance search relevance.

B. It organizes the indexed Knowledge articles into separate sections based on their assigned data categories.

C. It limits the indexed articles to only those belonging to selected data categories, thereby improving indexing precision.

C.   It limits the indexed articles to only those belonging to selected data categories, thereby improving indexing precision.

Explanation:

The requirement focuses on data scaling and management optimization within an Agentforce Knowledge-based Data Library.

The correct functionality is described below:

When setting up an Agentforce Data Library linked to Salesforce Knowledge, checking the Filter by Knowledge Data Categories box changes how data flows into the vector pipeline.

Instead of chunking and embedding every single article in your entire Salesforce Knowledge base, this option enables you to select specific data category hierarchies or branches.

Consequently, the data library limits the indexed articles to only the documents that belong to those chosen categories. This prevents irrelevant or massive amounts of non-essential data from flooding the vector index, maximizing search accuracy and tuning efficiency for that specific agent's use case.

Why the Other Options Are Incorrect
A. ❌ It applies custom metadata from the selected data categories to the Knowledge articles, aiming to enhance search relevance.
Data categories are structural attributes that are already assigned to articles during content authoring. Enabling this setting doesn't inject or modify the metadata tags on the original articles; it filters the records that are chosen for vectorization.

B. ❌ It organizes the indexed Knowledge articles into separate sections based on their assigned data categories.
Vector databases and Data Cloud Search Indices store information as high-dimensional semantic chunks rather than visible folders or tabbed UI sections.

Reference
Salesforce Agentforce Help: Use Salesforce Knowledge in Data Libraries.

Salesforce Agentforce Documentation: Create a Data Library. Tailoring a knowledge base data library to specific data categories ensures that the semantic indexing and grounding are accurate, fast, and optimized.

Exam Tip
When managing massive datasets or refining the scope of an Agentforce Data Library:

Filter by Knowledge Data Categories = Scopes down the data stream by excluding unselected categories, saving processing costs and preventing the vector index from being polluted with out-of-scope articles.

The support team at Coral Cloud Resorts needs to create a Flex prompt template that summarizes complex case histories for agent handoffs. The goal is to ensure summaries are concise and follow a specific three-part structure: Issue, Steps Taken, and Next Action. What should an Agentforce Specialist recommend to ensure consistent data output?

A. Use chain-of-thought reasoning.

B. Define the desired output structure with explicit headings in the instruction.

C. Use a prompt template-triggered flow to format responses.

B.   Define the desired output structure with explicit headings in the instruction.

Explanation:

The requirement is for the LLM to produce consistent, structured summaries with the exact format:

Issue
Steps Taken
Next Action

The best prompt engineering practice is to explicitly specify the desired output format in the prompt instructions. For example:

Summarize the case using the following structure:

Issue:
Steps Taken:
Next Action:

Providing a clear template or headings significantly improves the consistency of LLM-generated responses and is a recommended Prompt Builder technique.

Why the Other Options Are Incorrect
A. ❌ Use chain-of-thought reasoning.
Chain-of-thought is intended to help an LLM reason through complex problems internally.
It does not guarantee a consistent output format.
It is not the appropriate technique for enforcing a fixed summary structure.

C. ❌ Use a prompt template-triggered flow to format responses.
Flows are useful for automating business logic and data retrieval.
Formatting the LLM's textual response into a specific structure is best achieved through clear prompt instructions, not by invoking a Flow.
This adds unnecessary complexity without addressing the prompt engineering requirement.

Reference
Salesforce Prompt Builder documentation on writing effective prompts and specifying output formats.
Salesforce Agentforce prompt engineering best practices.
Salesforce Certified Agentforce Specialist (AI-201) Exam Guide – Prompt Builder and prompt engineering.

Exam Tip
When the exam asks how to make LLM output consistent or predictable, the correct approach is usually to:

✅ Specify the exact output format.
✅ Include headings, bullet points, or JSON/XML structures when appropriate.
✅ Give clear, explicit instructions.

A useful rule to remember:

Consistency of output → Explicit formatting instructions in the prompt
Business logic → Flow or Apex
Reasoning → LLM, but don't rely on it to infer the desired structure.

Universal Containers is developing an Agentforce Service Agent to handle a complex, multi-step customer onboarding process. To better organize the conversational logic, the Agentforce Specialist splits the process across two distinct subagents and places the setup configuration for the second step inside the before_reasoning block of the new subagent. During testing, when the agent transitions to this new subagent mid-conversation, the conversation occasionally stalls or behaves unexpectedly. What is the risk the Agentforce Specialist must consider regarding the execution timing of before_reasoning?

A. The before_reasoning block will only run once and sets the immutable variables.

B. The before_reasoning block runs at the start of the next turn after a transition.

C. The before_reasoning block only runs on the very first turn after the agent launches.

B.   The before_reasoning block runs at the start of the next turn after a transition.

Explanation:

Option B correctly identifies the risk/behavior. In Agentforce Agent Script:

The before_reasoning block executes deterministically at the start of a turn (before the LLM reasoning loop begins for that subagent).

When the agent transitions mid-conversation to a new subagent, the before_reasoning block of the new subagent runs at the beginning of the next turn after the transition.

If setup/configuration logic (e.g., initializing variables, running prerequisite actions, or setting state) is placed in before_reasoning, it may not execute immediately upon transition. This can cause stalls, unexpected behavior, or missing state during the first interaction with the new subagent.

Why the Other Options Are Incorrect
A. ❌
This is not accurate. The before_reasoning block can run on multiple turns (not just once), and variables can be mutable or immutable depending on their declaration. The main issue is the timing of execution relative to subagent transitions.

C. ❌
This is incorrect because it describes behavior associated with the initial agent launch rather than per-subagent or per-transition execution.

Key Takeaway & Best Practices
Use before_reasoning for deterministic setup that should happen every turn the subagent is active (e.g., checks or initial data loads).

For transition-specific setup, consider careful ordering, shared variables/context passing, or combining the setup with transition logic in the prior subagent’s after_reasoning block.

Test transitions thoroughly, as they discard prior prompt context and start fresh in the new subagent.

This question tests deep knowledge of Agent Script execution order, subagent transitions, and hybrid reasoning in multi-step processes, which is a core topic in the Agentforce Specialist exam.

A company’s support agent is inconsistently executing a mandatory fraud check action before processing refunds. In some conversations the fraud check fires, but in others the agent skips directly to issuing the refund. Upon review, an Agentforce Specialist recommends placing the instruction guideline with run @actions.fraud_check followed by run @actions.process_refund. What is the effect of this configuration change?

A. The fraud-check action will be more strongly suggested to the large language model (LLM), but it may still be skipped if the LLM determines it is not relevant to the conversation.

B. The fraud-check action will execute after the large language model (LLM) check if it missed it in the process step execution, but the agent will lose its ability to use an empathetic tone.

C. The fraud-check action will be forced to execute before the refund action in every conversation, because procedural instructions provide deterministic control over the execution order.

C.   The fraud-check action will be forced to execute before the refund action in every conversation, because procedural instructions provide deterministic control over the execution order.

Explanation:

In Agentforce Agent Script, procedural instructions (denoted by run @actions... and ordered sequentially) enforce deterministic execution order. This ensures that critical business logic—such as fraud checks—always runs before subsequent actions like issuing refunds.

Option A is incorrect:
Adding run does not merely "suggest" execution; it enforces it.

Option B is incorrect:
Procedural instructions do not affect conversational tone; they strictly control action execution order.

Option C is correct:
Procedural instructions guarantee that the fraud check will always execute before the refund action, eliminating inconsistency.

Reference:
Salesforce Documentation: Agentforce Procedural Instructions

Trailhead Module: Agentforce Script Basics

Salesforce Developer Guide: Action Execution Order in Agentforce

Agentforce-Specialist Exam Questions - Home Previous
Page 3 out of 76 Pages