Last Updated On : 18-Oct-2026
Salesforce Certified Agentforce Specialist (AI-201) Spring 26 Update Practice Test
Prepare with our free Salesforce Certified Agentforce Specialist (AI-201) Spring 26 Update sample questions and pass with confidence. Our Agentforce-Specialist practice test is designed to help you succeed on exam day.
Salesforce 2026
Prompt Engineering
Universal Containers has configured an agent to handle customer return requests. When a customer initiates a return, the agent must calculate a specific restocking fee. The agent needs to quote this exact fee to the customer and then reuse that same fee amount when summarizing the final refund. The Agentforce Specialist needs to ensure the agent uses deterministic logic to calculate the fee and consistently reuses the exact same value without guessing or hallucinating. How should the specialist configure the agent to achieve this behavior?
A. Execute a flow as an agent action to calculate the fee, and make the flow’s output directly available to the agent response. The agent will be able to continue to use this value from memory
B. Define a context variable for the fee. Execute a flow as an agent action to calculate the fee, assign the flow’s output to that context variable, and have the agent reference that variable in its responses
C. Provide the mathematical formula for the restocking fee in the agent’s system instructions and instruct it to remember the result for reuse
Explanation:
The requirement has two key parts:
Calculate the restocking fee using deterministic business logic.
Reuse the exact same value later in the conversation without recalculating or relying on the LLM's memory.
The best approach is to:
Use a Flow as an agent action to perform the fee calculation according to business rules.
Store the calculated value in a context variable.
Reference that context variable whenever the fee needs to be mentioned again (for example, when presenting the refund summary).
This ensures the fee remains consistent throughout the session and prevents the LLM from generating or altering the value.
Why the Other Options Are Incorrect
A. ❌ Execute a flow as an agent action to calculate the fee, and make the flow’s output directly available to the agent response. The agent will be able to continue to use this value from memory.
While the Flow provides a deterministic calculation, relying on the agent's conversational memory is not guaranteed for exact value reuse.
The requirement explicitly calls for deterministic reuse of the same value, which is what context variables are designed for.
C. ❌ Provide the mathematical formula for the restocking fee in the agent’s system instructions and instruct it to remember the result for reuse.
System instructions are not a substitute for deterministic business logic.
Having the LLM perform calculations and "remember" the result can lead to inconsistencies or hallucinations.
Business calculations should be implemented in Flows or Apex, not delegated to the LLM.
Reference
Salesforce Agentforce documentation on Context Variables for storing and reusing values across an agent session.
Salesforce Agentforce documentation on Agent Actions and Flow integration for deterministic business logic.
Salesforce Certified Agentforce Specialist (AI-201) Exam Guide – context variables, agent actions, and Flow integration.
Exam Tip
When you see requirements such as:
"Use the exact same value later"
"Deterministic"
"Without guessing or hallucinating"
"Calculate once and reuse"
look for this pattern:
✅ Flow (or Apex) for deterministic calculation
✅ Context variable to persist the value
✅ Agent references the context variable in subsequent responses
A helpful rule of thumb for the AI-201 exam is:
Business logic → Flow or Apex
Persistent session values → Context variables
Natural language generation → LLM
Northern Trail Outfitters is testing an agent connected to an Agentforce Data Library. The agent successfully retrieves the correct data from the library, but delivers the response to the user as raw JSON structures instead of grammatically correct conversational language. Which quality evaluation scores poorly in this scenario?
A. Coherence
B. Conciseness
C. Completeness
Explanation:
Option A (Coherence) scores poorly here. In Agentforce's quality evaluation framework (used in the Testing Center and LLM-as-judge evaluations), Coherence measures whether the response is:
Easy to understand and logically structured.
Grammatically correct and natural (conversational language).
Free of jarring artifacts like raw JSON, code dumps, or unstructured data.
The agent retrieves the right data (from the Agentforce Data Library) but fails to transform it into proper conversational output. This directly impacts coherence.
Why not the others?
B (Conciseness): This evaluates whether the response is brief but still comprehensive. The issue here isn’t excessive length or wordiness — it’s the format/style of the output.
C (Completeness): This checks if all essential information is present. The scenario states the agent “successfully retrieves the correct data,” so completeness is likely fine; the problem is how it’s delivered.
Key References
Agentforce Testing & Evaluation: Standard metrics include Coherence, Completeness, and Conciseness (among others like factuality and instruction adherence). Coherence specifically flags responses that are not user-friendly or natural.
This relates to Agent Capabilities and Optimization and testing/monitoring best practices in the exam.
Tip for similar scenarios:
Improve this by refining instructions/prompt templates (e.g., "Always respond in clear, conversational language. Never output raw JSON."), using response formatting options, or post-processing actions.
Universal Containers is implementing a Retrieval-Augmented Generation (RAG) solution where the knowledge store contains Spanish articles, but users will query the agent in French and English. The Agentforce Specialist needs to ensure the retriever can accurately find relevant articles despite the language differences. What should the specialist do to meet this requirement?
A. Use the multilingual-e5-large embedding model for French and Spanish language users.
B. Use the multilingual-e5-large embedding model for French and English language users.
C. Use the multilingual-e5-large embedding model to handle all languages.
Explanation:
In a RAG architecture, the retriever relies on embeddings to match user queries with relevant documents in the knowledge store. If the knowledge base contains Spanish articles but queries are in French or English, a multilingual embedding model is required to normalize semantic meaning across languages.
Option A is incorrect because it only mentions French and Spanish, leaving out English queries.
Option B is incorrect because it only covers French and English, leaving out Spanish documents.
Option C is correct because the multilingual-e5-large embedding model supports multiple languages simultaneously, ensuring that queries in French or English can still retrieve Spanish articles accurately. This is the intended solution for multilingual retrieval scenarios.
Reference:
Salesforce Documentation: Agentforce RAG Integration
Hugging Face Model Card: multilingual-e5-large embeddings
Trailhead Module: Agentforce AI Retrieval Basics
Which scenario best demonstrates when an Agentforce Data Library is most useful for improving an AI agent’s response accuracy?
A. When the AI agent must provide answers based on a curated set of policy documents that are stored, regularly updated, and indexed in the data library.
B. When the AI agent needs to combine data from disparate sources based on mutually common data, such as Customer Id and Product Id for grounding.
C. When data is being retrieved from Snowflake using zero-copy for vectorization and retrieval.
Explanation:
The primary purpose of the Agentforce Data Library (more commonly known in the context of Einstein as the Data Library or Knowledge Base) is to provide a centralized, managed, and optimized repository of information that an AI agent can draw from to generate accurate and contextually relevant responses.
Here's why option A is the best fit:
Curated and Managed Content: The scenario describes a "curated set of policy documents." A Data Library is designed for exactly this—storing approved, high-quality content like policy docs, FAQs, and manuals. This curation is crucial for "improving response accuracy" because it prevents the AI from using outdated or unverified information.
Stored and Indexed: The Data Library isn't just a file storage system. It actively indexes the content, making it searchable and retrievable by the AI's natural language processing (NLP) engine. When a customer asks a question, the AI can quickly find the most relevant article from this indexed library.
Regularly Updated: The mention of "regularly updated" documents highlights a key strength. Maintaining accuracy over time requires the knowledge base to be a living system. The Data Library provides the tools to review, update, version, and retire content, ensuring the AI's answers remain correct.
Why the other options are not the best fit:
B. When the AI agent needs to combine data from disparate sources based on mutually common data, such as Customer Id and Product Id for grounding.
This scenario describes data unification and grounding, which is a function of the Data Cloud (formerly Customer Data Platform). While Data Cloud can be a source for the Data Library, the act of combining disparate data using common keys is its core function, not the Library's. The Library is for finalized, article-like content, not for dynamically joining raw data tables.
C. When data is being retrieved from Snowflake using zero-copy for vectorization and retrieval.
This is a very specific scenario describing the technical implementation of data sharing and vectorization. "Zero-copy" from Snowflake is a feature of Data Cloud. Vectorization is the process of converting text into numerical representations (vectors) for AI models. While the Data Library's content is used for this purpose, the scenario describes the underlying data pipeline mechanics, not the high-level use case for the Library itself. The Library is the source of the data, but the process described is handled by Data Cloud and the Einstein AI platform.
Reference
This aligns with the core concepts of Einstein AI and Knowledge Management in Salesforce. The official Salesforce documentation on Einstein Bots and Knowledge emphasizes that feeding your bot from a well-maintained Knowledge base is the primary method for ensuring it provides accurate, helpful answers to customer inquiries.
Trailhead Module: "Get Started with Einstein Bots" (Look for the units on configuring knowledge)
Help Article: "Add Articles to Your Einstein Bot" (This directly shows the linkage between the bot and the Knowledge base/data library).
A company built a custom Apex action invoked by an Employee Agent to fetch data from an external API. The callout method uses the current user’s Salesforce session ID to authenticate the callout. The external callout works perfectly in the UI, but silently fails when the agent triggers it. What is the architectural best practice to fix this?
A. Explicitly extend the Apex class security to the logged-in user’s profile.
B. Ensure the Employee Agent is assigned the Agentforce Service Agent User permission set group.
C. Replace the session ID retrieval with a Named Credential.
Explanation:
When an Apex action is invoked by an Agentforce agent (whether Employee or Service Agent), it typically executes in a context that doesn't carry the same user session as an interactive UI session. Relying on UserInfo.getSessionId() for the callout works fine when a user is actively logged into the UI (since a valid session ID exists), but this pattern is fragile and fails silently in automated/agent-triggered contexts — because agent execution often runs asynchronously or in a context where the session ID is not available, not populated, or not valid for callout authentication.
The architectural best practice is to decouple authentication from the interactive user session entirely by using a Named Credential (ideally with an appropriate authentication protocol like OAuth 2.0, or a dedicated integration user's credentials). Named Credentials:
Provide a stable, reusable authentication mechanism that works regardless of execution context (UI, batch, agent-triggered, API).
Are the Salesforce-recommended pattern for external callouts in general — not just for agent-related contexts.
Eliminate the fragility and security anti-pattern of hardcoding or dynamically fetching session IDs for external authentication.
Why the other options are incorrect:
A: Explicitly extend the Apex class security to the logged-in user's profile: This addresses Apex class access (who can execute the class), not the root cause, which is the authentication mechanism for the external callout itself. Even with correct class access, the session ID approach would still fail in the agent execution context.
B: Ensure the Employee Agent is assigned the Agentforce Service Agent User permission set group: This permission set group relates to the Service Agent context (customer-facing), not the Employee Agent, and even if correctly assigned, permission sets control object/field/feature access — they don't fix the underlying issue of an invalid or unavailable session ID during agent-triggered execution.
Reference:
Salesforce Apex Developer Guide — "Named Credentials as Callout Endpoints"; Agentforce best practices for custom Apex actions (avoid session-ID-based auth for actions invoked outside interactive UI sessions).
| Agentforce-Specialist Exam Questions - Home | Previous |
| Page 7 out of 76 Pages |