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?
Show answerHide answer
Correct answer: CThe 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
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 2Choose 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?
Show answerHide answer
Correct answer: CUpdate the is_verified variable to true after the verification action succeeds using
@utils.setVariables.
Explanation
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 3Choose 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?
Show answerHide answer
Correct answer: BExternal Services Merge Fields
Explanation
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 4Choose 1
Where should the Agentforce Specialist go to add/update actions assigned to a copilot?
Show answerHide answer
Correct answer: ACopilot Actions page, the record page for the copilot action, or the Copilot Action Library tab
Explanation
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 5Choose 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?
Show answerHide answer
Correct answer: BAdd the fine-tuned LLM in Einstein Studio Model Builder.
Explanation
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 6Choose 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?
Show answerHide answer
Correct answer: AModel Builder
Explanation
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 7Choose 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?
Show answerHide answer
Correct answer: AREST API
Explanation
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 wants to use an external large language model (LLM) in Prompt Builder.
What should An Agentforce recommend?
Show answerHide answer
Correct answer: BUse BYO-LLM functionality in Einstein Studio.
Explanation
Explanation
Bring Your Own Large Language Model (BYO-LLM)functionality in Einstein Studio allows organizations to integrate and use external large language models (LLMs) within the Salesforce ecosystem. Universal Containers can leverage this feature to connect and ground prompts with external LLMs, allowing for custom AI model use cases and seamless integration with Salesforce data.
Option B is the correct choice as Einstein Studio provides a built-in feature to work with external models.
Option A suggests using Apex, but BYO-LLM functionality offers a more streamlined solution.
Option C focuses on Flow and External Services, which is more about data integration and isn't ideal for working with LLMs.
Question 9Choose 1
What is the primary function of the planner service in the Agent system?
Show answerHide answer
Correct answer: CIdentifying copilot actions to respond to user utterances
Explanation
Explanation:
The Planner Service in the Agent system is responsible for:
Action Identification & Execution
1. Analyzes user input (e.g., "Update the case priority") to:
. Match intent to the most relevant Copilot action (e.g., "Change Case Priority").
. Determine execution order if multiple actions are needed.
2. Orchestrates workflows, ensuring actions run in the correct sequence.
Why Not the Other Options?
A. "Generating record queries":
Handled by retrievers or flows, not the Planner.
B. "Real-time translation":
This is a language model feature, not the Planner’s role.
That's the last free question in Multi-Agent Orchestration
You've seen the free 30% (9 of 31 questions). Full access unlocks every question and full-length Agentforce-Specialist mock exams (60 questions, 105 minutes), a different mock on every attempt.
Sit the Agentforce-Specialist exam before exam day
Full-length mocks with the same number of questions and the same time limit as the real Agentforce-Specialist exam. Every attempt draws a new set of questions from the full bank, so you can keep going until you pass comfortably.