Free Agentforce Specialist Practice Test Questions
380 questionsUpdated 23-Nov-20266 topics
TopicMulti-Agent Orchestration
Question 21Choose 1
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?
Correct answer:
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.
Salesforce Developer Guide: Action Execution Order in Agentforce
Question 22Choose 1
Universal Containers is designing an agent to assist with order management and dealer
support automation. The agent must verify a dealer’s credentials before granting access to
order details.
The team has already:
Declared a variable is_verified to track verification status.
Configured an action that verifies the dealer’s credentials.
They plan to restrict access to the order details subagent using a guard condition based on
is_verified.
What must the team do to ensure the order details subagent becomes available only after a
dealer is successfully verified?
Correct answer:
C. Update the is_verified variable to true after the verification action succeeds using
@utils.setVariables.
Explanation:
Why C is correct:
To implement a proper guard condition, the team must complete the full state management lifecycle. They have already completed two steps:
Declaring the variable (is_verified).
Configuring the verification action.
The missing piece is the runtime update of the variable. When the verification action successfully executes (e.g., the dealer's credentials are validated), the team must use @utils.setVariables within the agent's logic (typically in a follow-up action, within the verification action's output, or in the agent's response handling) to set @variables.is_verified = true.
This update ensures that:
The guard condition (available_when: @variables.is_verified == true) on the order details subagent evaluates to true at runtime.
The order details subagent becomes dynamically available to the Atlas Reasoning Engine only after successful verification.
The agent cannot attempt to access order details before verification completes.
Why A is incorrect:
This is only half the solution. Adding the available_when condition is necessary, but if the variable is never updated to true, the condition will never evaluate to true, and the subagent will remain permanently unavailable. The team must also implement the runtime variable update (Option C). Option A alone is insufficient.
Why B is incorrect:
Declaring is_verified as immutable (without the mutable keyword) would actually prevent the variable from being updated at runtime. Since the verification status starts as false and must change to true after verification, the variable must be mutable to support this state change. Making it immutable would break the intended workflow entirely.
References:
Salesforce Official Documentation: "Agent Script Guard Conditions and State Management" – explains that guard conditions evaluate runtime variables, and those variables must be explicitly updated using @utils.setVariables (or actions) to reflect state changes.
Trailhead Module: "Build Agentforce Agents with Agent Builder" > Unit: "Control Access with Guard Conditions" – demonstrates the full pattern: declare a mutable variable → set it via action/utility → evaluate it in an available_when condition.
Agentforce Exam Guide (AI-201): Under "Agent Configuration and Logic" – emphasizes that declaring a variable and adding a guard condition is insufficient without the corresponding runtime update logic to change the variable's value.
Question 23Choose 1
Universal Containers wants to incorporate the current order fulfillment status into a prompt for a large language model (LLM). The order status is stored in the external enterprise resource planning (ERP) system.
Which data grounding technique should the Agentforce Specialist recommend?
Correct answer:
B. External Services Merge Fields
Explanation:
When the data you want to ground into a prompt is stored in an external system (like an ERP), and you want to call that external service in real-time to get data, the correct grounding technique in Salesforce Agentforce is: External Services Merge Fields
A. Eternal Object Record Merge Fields
❌ Incorrect – There's a typo here (likely meant to be "External Object Record Merge Fields"). Even so, External Objects are used for Salesforce Connect, which virtually maps external data but does not call the external service in real-time during prompt execution. It also doesn't support dynamic fetch during prompt generation.
B. External Services Merge Fields
✅ Correct – This feature allows prompt templates to invoke an API call to an external system (like ERP) and use that data directly in the prompt context. It's real-time, secure, and the proper way to get dynamic external data into LLM prompts.
C. Apex Merge Fields
❌ Incorrect – Apex Merge Fields are useful for custom logic and custom data manipulation within Salesforce, but they don’t inherently connect to external systems unless you write custom callouts in Apex (which would then be abstracted behind an Apex class, not recommended for direct grounding unless needed).
Question 24Choose 1
Where should the Agentforce Specialist go to add/update actions assigned to a copilot?
Correct answer:
A. Copilot Actions page, the record page for the copilot action, or the Copilot Action Library tab
Explanation
Copilot Actions Page
Primary interface for managing all Copilot actions
"Use the Copilot Actions page to view, create, and manage actions for your copilot."
Record Page for Copilot Action
Edit specific action details and grounding
"Each action has its own record page where you can configure instructions, inputs, and outputs."
Copilot Action Library Tab
Browse and select from pre-built actions
"The Action Library provides reusable actions that can be assigned to your copilot."
Why Other Options Are Incorrect:
B. Global Actions
Global Actions are for page-level quick actions, not Copilot integration
"Global Actions appear across all pages in the global publisher layout."
C. Copilot Detail Page
Used for high-level settings, not action management
"The Copilot detail page shows basic information and activation status."
Implementation Note:
Always test actions in Sandbox first before deployment to production, as recommended in the Copilot Best Practices Guide.
Question 25Choose 1
An Al Specialist is tasked with configuring a generative model to create personalized sales emails using customer data stored in Salesforce. The AI Specialist has already fine-tuned a large language model (LLM) on the OpenAI platform. Security and data privacy are critical concerns for the client.
How should the Agentforce Specialist integrate the custom LLM into Salesforce?
Correct answer:
B. Add the fine-tuned LLM in Einstein Studio Model Builder.
Explanation:
To safely integrate a custom LLM into Salesforce while addressing security and privacy concerns, the AgentForce Specialist should:
Use Einstein Studio Model Builder
Why? Einstein Studio provides:
Secure, native integration with Salesforce data (no external callouts).
Compliance with the Einstein Trust Layer (data masking, audit trails).
Direct grounding in CRM data (e.g., {{Account.Name}}).
Steps:
Import the fine-tuned LLM into Einstein Studio.
Configure data access permissions.
Deploy as a Prompt Template in Salesforce.
Why Not the Other Options?
A. "iFrame embedding":
Security risk: Exposes Salesforce data to external systems.
Poor UX: iFrames are clunky and lack native integration.
C. "OpenAI callouts":
Violates data privacy: Raw customer data leaves Salesforce.
No Trust Layer protection: Masking/auditing isn’t automatic.
Reference:
Salesforce Help - Einstein Studio
Question 26Choose 1
Universal Containers’ data science team is hosting a generative large language model (LLM) on Amazon
Web Services (AWS).
What should the team use to access externally-hosted models in the Salesforce Platform?
Correct answer:
A. Model Builder
Explanation
To access externally-hosted models, such as a large language model (LLM) hosted on AWS, the Model Builder in Salesforce is the appropriate tool. Model Builder allows teams to integrate and deploy external AI models into the Salesforce platform, making it possible to leverage models hosted outside of Salesforce infrastructure while still benefiting from the platform's native AI capabilities.
Option B, App Builder, is primarily used to build and configure applications in Salesforce, not to integrate AI models.
Option C, Copilot Builder, focuses on building assistant-like tools rather than integrating external AI models.
Model Builder enables seamless integration with external systems and models, allowing Salesforce users to use external LLMs for generating AI-driven insights and automation.
Question 27Choose 1
Universal Containers (UC) has a legacy system that needs to integrate with Salesforce. UC wishes to create a digest of account action plans using the generative API feature.
Which API service should UC use to meet this requirement?
Correct answer:
A. REST API
Explanation:
To generate account action plans using Salesforce’s generative AI features, Universal Containers (UC) should use:
REST API
Why? The Einstein Generative API (part of Salesforce’s AI services) is REST-based and allows:
. Programmatic access to prompt templates and LLM-generated content.
. Integration with legacy systems via HTTP requests.
. Example: Call the API to generate an action plan from a prompt template grounded in Account data.
Why Not the Other Options?
B. "Metadata API":
Used for configuration management (e.g., deploying objects), not generative AI.
C. "SOAP API":
While functional, it’s less efficient for AI integrations compared to REST.
Implementation Steps:
Enable Einstein Generative API in Setup.
Use REST endpoints like:
POST /services/data/vXX.X/einstein/generativeai/prompts
Universal Containers’ administrator has developed a new agent in a sandbox environment and now wants to deploy it to production. What should the administrator do to deploy an agent?
Correct answer:
C. Create an outbound change set with all the necessary agent components, then upload to production.
Explanation:
Summary:
Einstein Agent components, including the agent configuration, topics, and actions, are fully supported by Salesforce's standard deployment tools. The most straightforward and recommended method for moving metadata from a sandbox to production is by using Change Sets, which provide a user-friendly interface for selecting and deploying components without needing code.
Correct Option:
C) 📤 Create an outbound change set with all the necessary agent components, then upload to production.
🔹 Change Sets are the standard, no-code deployment tool for moving customizations between Salesforce environments.
🔹 Einstein Agent components are packaged as metadata and can be added to a Change Set just like any other customizable feature (e.g., custom objects, fields).
🔹 This method is administered directly within the Salesforce Setup menu, making it the most accessible option for administrators.
Incorrect Option:
A) 🔄 Manually recreate the agent... because change sets cannot be used. This is incorrect. Agent components are deployable metadata. Manually recreating them is time-consuming, error-prone, and unnecessary.
B) 💾 Export agent components as JSON files and manually import them... using the Metadata API. While technically possible, this is a complex, developer-oriented approach. Using the Metadata API directly is not the standard administrative path when Change Sets are available and fully supported.
Universal Containers deploys a new Agentforce Service Agent into the company’s website but is getting feedback that the Agentforce Service Agent is not providing answers to customer questions that are found in the company's Salesforce Knowledge articles. What is the likely issue?
Correct answer:
C. The Agentforce Service Agent user was not given the Allow View Knowledge permission set.
Explanation:
Comprehensive and Detailed In-Depth Explanation:Universal Containers (UC) has deployed an Agentforce Service Agent on its website, but it’s failing to provide answers from Salesforce Knowledge articles. Let’s troubleshoot the issue.
Option A: The Agentforce Service Agent user is not assigned the correct Agent Type License.There’s no "Agent Type License" in Salesforce—agent functionality is tied to Agentforce licenses (e.g., Service Agent license) and permissions. Licensing affects feature access broadly, but the specific issue of not retrieving Knowledge suggests a permission problem, not a license type, making this incorrect.
Option B: The Agentforce Service Agent user needs to be created under the standard Agent Knowledge profile.No "standard Agent Knowledge profile" exists. The Agentforce Service Agent runs under a system user (e.g., "Agentforce Agent User") with a custom profile or permission sets. Profile creation isn’t the issue—access permissions are, making this incorrect.
Option C: The Agentforce Service Agent user was not given the Allow View Knowledge permission set.The Agentforce Service Agent user requires read access to Knowledge articles to ground responses. The "Allow View Knowledge" permission (typically via the "Salesforce Knowledge User" license or a permission set like "Agentforce Service Permissions") enables this. If missing, the agent can’t access Knowledge, even if articles are indexed, causing the reported failure. This is a common setup oversight and the likely issue, making it the correct answer.
Why Option C is Correct: Lack of Knowledge access permissions for the Agentforce Service Agent user directly prevents retrieval of article content, aligning with the symptoms and Salesforce security requirements.
References:
Salesforce Agentforce Documentation: Service Agent Setup > Permissions– Requires Knowledge access.
Trailhead: Set Up Agentforce Service Agents– Lists "Allow View Knowledge" need.
Salesforce Help: Knowledge in Agentforce– Confirms permission necessity.
Steps to Resolve:
Go to Setup → Permission Sets.
Assign the "Allow View Knowledge" permission set to the AgentForce Service Agent user.
Verify the Knowledge data sharing settings (if articles are restricted by visibility rules).
This ensures the AI can ground responses in Knowledge articles for accurate customer answers.
Question 30Choose 1
Which element in the Omni-Channel Flow should be used to connect the flow with the agent?
Correct answer:
A. Route Work Action
Explanation:
In an Omni-Channel Flow, the element used to connect the flow with the agent (or route the work to the correct queue or skill-based agent) is the:
✅ Route Work Action
This action is specifically designed to send work items (like chats, cases, or messaging sessions) to Omni-Channel routing, so they can be picked up by the most appropriate human agent based on availability, skills, or queue membership.
📘 Salesforce Reference:
Source: Salesforce Help – Route Work Action in Omni-Channel Flows
“Use the Route Work action in an Omni-Channel flow to assign work items to the most suitable agent or queue using Omni-Channel routing.”
🔍 Breakdown of Incorrect Options:
B. Assignment
❌ Incorrect – The Assignment element is used to set variables or values within the flow, but it doesn’t route or connect the work to an agent.
C. Decision
❌ Incorrect – The Decision element is used for conditional logic within the flow (like if/then branching), not for routing or assigning work to agents.
✅ Summary:
To connect a flow with an agent in Omni-Channel, use the Route Work Action, which initiates routing to the appropriate agent or queue.
Experience the real exam before you take it
Our timed 2026 Agentforce Specialist practice test mirrors the format, number of questions and time limit of the official exam.
The #1 challenge isn't just knowing the material, it's managing the clock. The simulation builds your speed and stamina, so you walk in knowing exactly what to expect.