Agentforce-Specialist Practice Test Questions

204 Questions


Universal Containers (UC) implements a custom retriever to improve the accuracy of AI-generated responses. UC notices that the retriever is returning too many irrelevant results, making the responses less useful. What should UC do to ensure only relevant data is retrieved?


A. Define filters to narrow the search results based on specific conditions.


B. Change the search index to a different data model object (DMO).


C. Increase the maximum number of results returned to capture a broader dataset.





A.
  Define filters to narrow the search results based on specific conditions.


Explanation:

Comprehensive and Detailed In-Depth Explanation: In Salesforce Agentforce, acustom retriever is used to fetch relevant data (e.g., from Data Cloud’s vector database or Salesforce records) to ground AI responses. UC’s issue is that their retriever returns too many irrelevant results, reducing response accuracy. The best solution is to define filters(Option A) to refine the retriever’s search criteria. Filters allow UC to specify conditions (e.g., "only retrieve documents from the ‘Policy’ category” or “records created after a certain date”) that narrow the dataset, ensuring the retriever returns only relevant results. This directly improves the precision of AI-generated responses by excluding extraneous data, addressing UC’s problem effectively.

Option B: Changing the search index to a different data model object (DMO) might be relevant if the retriever is querying the wrong object entirely (e.g., Accounts instead of Policies). However, the question implies the retriever is functional but unrefined, so adjusting the existing setup with filters is more appropriate than switching DMOs.

Option C: Increasing the maximum number of results would worsen the issue by returning even more data, including more irrelevant entries, contrary to UC’s goal of improving relevance.

Option A: Filters are a standard feature in custom retrievers, allowing precise control over retrieved data, making this the correct action.

✅ The best practice in Salesforce for refining retrievers is to define filters.
Filters allow you to:

1. Narrow the retriever’s search results to a subset of the data.

2. Specify conditions like:
. Record type
. Status fields
. Date ranges
. Specific keywords or tags

3. Ensure the retriever only searches highly relevant records.

For example:

You might add a filter to only include:
Knowledge articles with status = “Published”
Documents tagged with a specific category
Records updated within the past 12 months

This significantly reduces irrelevant results and improves the grounding quality of AI-generated responses. Hence, Option A is correct.

Steps to Implement:

1. In Einstein Studio, edit the custom retriever.
2. Add dynamic filters (e.g., date ranges, record types).
3. Test with sample queries to validate precision.

This ensures the AI grounds responses in high-quality data.

🔗 Reference

Salesforce Help — Configure Search Index Filters for Einstein Copilot
Salesforce Developer Docs — Copilot Retriever Design
Salesforce Blog — How Retrieval-Augmented Generation (RAG) Improves Copilot Responses

Universal Containers’ Agent Action includes several Apex classes for the new Agentforce Agent. What is an important consideration when deploying Apex that is invoked by an Agent Action?


A. The Apex classes must have at least 75% code coverage from unit tests, and all dependencies must be in the deployment package.


B. Apex classes invoked by an Agent Action may be deployed with less than 75% test coverage as long as the agent is not activated in production.


C. The Apex classes may bypass the 75% code coverage requirement as long as they are only used by the agent.





A.
  The Apex classes must have at least 75% code coverage from unit tests, and all dependencies must be in the deployment package.

Explanation:

When deploying Apex code in Salesforce, including Apex classes invoked by Agentforce Agent Actions, the standard Salesforce deployment requirements still apply:

1. At least 75% code coverage is required across all Apex classes.
2. All dependent components (classes, triggers, objects, etc.) must be included in the deployment package if they are not already present in the target org.
3. This ensures the reliability and integrity of the code being introduced into production, regardless of whether it’s used by an agent or another part of the platform.

❌ Why the other options are incorrect:

B. Apex classes invoked by an Agent Action may be deployed with less than 75% test coverage as long as the agent is not activated in production
❌ Incorrect – Salesforce enforces the 75% coverage rule for all production deployments, regardless of whether the code is currently "active" or tied to an active agent.

C. The Apex classes may bypass the 75% code coverage requirement as long as they are only used by the agent
❌ Incorrect – There is no exemption from the 75% requirement based on usage by agents or other features. All code going into a production org must meet this requirement.

✅ Summary:

When deploying Apex used by Agentforce Agent Actions, ensure:
✅ 75% or greater code coverage
✅ All required dependencies are included

These are standard Salesforce deployment requirements that apply to all Apex code, including that used in Agentforce.

Universal Containers (UC) wants to enable its sales team to get insights into product and competitor names mentioned during calls. How should UC meet this requirement?


A. Enable Einstein Conversation Insights, connect a recording provider, assign permission sets, and customize insights with up to 25 products.


B. Enable Einstein Conversation Insights, assign permission sets, define recording managers, and customize insights with up to 50 competitor names.


C. Enable Einstein Conversation Insights, enable sales recording, assign permission sets, and customize insights with up to 50 products.





C.
  Enable Einstein Conversation Insights, enable sales recording, assign permission sets, and customize insights with up to 50 products.

Explanation

Universal Containers wants insights into mentions of products and competitors in sales calls. That’s exactly what Einstein Conversation Insights (ECI) is built for. Let’s break down how to configure it:

Steps to meet UC’s requirement:

1. Enable Einstein Conversation Insights (ECI)
This feature uses AI to analyze call transcripts and audio to detect:
Product mentions
Competitor mentions
Next steps
Pricing discussions
Custom keywords

2. Enable Sales Call Recording
To analyze conversations, Salesforce needs:
. Call recordings from integrated tools (like Zoom, Dialpad, Sales Engagement tools).
. Or transcription files.
Enabling sales recording ensures these calls are captured for AI analysis.

3. Assign Permission Sets
Users need the correct permissions to:
. View Conversation Insights.
. Access call summaries, keyword highlights, and analytics dashboards.

4. Customize Insights for Products and Competitors
1. Einstein Conversation Insights allows you to define:
. Up to 50 custom products.
. Up to 50 custom competitors.

2. When any of these terms are mentioned in a call:
. ECI highlights them in the transcript.
. Displays analytics for frequency and trends.

Hence, Option C is correct because it:

✅ Enables Einstein Conversation Insights.
✅ Enables sales call recording (required for insights).
✅ Assigns permission sets.
✅ Supports up to 50 custom product names for keyword detection.

Why the others are incorrect:

Option A (up to 25 products):

Incorrect limit. Salesforce supports up to 50 products in custom keywords for Conversation Insights.

Option B (up to 50 competitor names only):

Only mentions competitors and leaves out products.
The requirement includes both products and competitors.
Also, defining recording managers is optional, not a core step for enabling insights.

Therefore, the correct configuration for UC is:
C. Enable Einstein Conversation Insights, enable sales recording, assign permission sets, and customize insights with up to 50 products.


🔗 Reference

Salesforce Help — Einstein Conversation Insights Overview
Salesforce Help — Customize Keywords for Conversation Insights
Salesforce Blog — How Einstein Conversation Insights Boosts Sales Productivity

Universal Containers (UC) wants to make a sales proposal and directly use data from multiple unrelated objects (standard and custom) in a prompt template. How should UC accomplish this?


A. Create a prompt template passing in a special custom object that connects the records temporarily.


B. Create a prompt template-triggered flow to access the data from standard and custom objects.


C. Create a Flex template to add resources with standard and custom objects as inputs.


D. Use a Record Snapshot to combine data from unrelated objects into a single prompt.





B.
  Create a prompt template-triggered flow to access the data from standard and custom objects.

Explanation:

To combine data from multiple unrelated objects (standard and custom) in a prompt template, Universal Containers (UC) should:

Use a Flow with Prompt Template Integration

Why? Flows can:
Query multiple unrelated objects (e.g., Opportunity, Custom_Product_Spec__c).
Transform/format data (e.g., JSON, concatenated text).
Pass the processed data to the prompt template via merge fields.

Implementation Steps:

Create an autolaunched Flow to:
1. Query records from all required objects.
2. Structure the data (e.g., combine fields into a summary).
3. Call the prompt template with the merged data.

Trigger the Flow via Quick Action or Process Builder.

Why Not the Other Options?

A. "Custom object to connect records":
Overly complex. Requires maintaining a temporary object.

C. "Flex template with resources":
Flex templates don’t directly query objects—they rely on pre-processed inputs.

D. "Record Snapshot":
Snapshots only ground data from a single record, not multiple unrelated objects.

Reference:
Salesforce Help - Flows with Prompt Templates

Universal Containers recently added a custom flow for processing returns and created a new Agent Action. Which action should the company take to ensure the Agentforce Service Agent can run this new flow as part of the new Agent Action?


A. Recreate the flow using the Agentforce agent user.


B. Assign the Manage Users permission to the Agentforce Agent user.


C. Assign the Run Flows permission to the Agentforce Agent user.





C.
  Assign the Run Flows permission to the Agentforce Agent user.

Explanation:

For the Agentforce Service Agent to successfully execute a Flow (like the one created for processing returns), the underlying agent user (the system or integration user tied to the agent) must have the appropriate permissions.

✅ The Run Flows permission allows a user (or agent) to execute autolaunched flows, which is required for Agent Actions that invoke Salesforce Flows.

This permission should be included in the permission set assigned to the Agentforce agent user.

❌ Why the other options are incorrect:

A. Recreate the flow using the Agentforce agent user
❌ Incorrect – The user who created the flow doesn’t impact whether another user or system (like the agent) can run it. Access is controlled by permissions, not authorship.

B. Assign the Manage Users permission to the Agentforce Agent user
❌ Incorrect – Manage Users is a powerful admin-level permission that allows user management. It is not related to flow execution and is unnecessary (and risky) in this context.

✅ Summary:

To allow an Agentforce Service Agent to run a custom flow from an Agent Action, assign the Run Flows permission to the Agentforce agent user.

Universal Containers (UC) wants to use Generative AI Salesforce functionality to reduce Service Agent handling time by providing recommended replies based on the existing Knowledge articles. On which AI capability should UC train the service agents?


A. Service Replies


B. Case Replies


C. Knowledge Replies





C.
  Knowledge Replies


Explanation:

Comprehensive and Detailed In-Depth Explanation: Salesforce Agentforce leverages generative AI to enhance service agent efficiency, particularly through capabilities that generate recommended replies. In this scenario, Universal Containers aims to reduce handling time by providing replies based on existing Knowledge articles, which are a core component of Salesforce Knowledge. The Knowledge Replies capability is specifically designed for this purpose—it uses generative AI to analyze Knowledge articles, match them to the context of a customer inquiry (e.g., a case or chat), and suggest relevant, pre-formulated responses for service agents to use or adapt. This aligns directly with UC’s goal of leveraging existing content to streamline agent workflows.

Option A (Service Replies): While "Service Replies" might sound plausible, it is not a specific, documented capability in Agentforce. It appears to be a generic distractor and does not tie directly to Knowledge articles.

Option B (Case Replies): "Case Replies" is not a recognized AI capability in Agentforce either. While replies can be generated for cases, the focus here is on Knowledge article integration, which points to Knowledge Replies.

Option C (Knowledge Replies): This is the correct capability, as it explicitly connects generative AI with Knowledge articles to produce recommended replies, reducing agent effort and handling time.
Training service agents on Knowledge Replies ensures they can effectively use AI-suggested responses, review them for accuracy, and integrate them into their workflows, fulfilling UC’s objective.

💡 To reduce agent handling time by generating AI-powered responses based on Knowledge Articles, train agents on how to use and leverage Knowledge Replies.

🔗 Reference>
Salesforce Help — Einstein Knowledge Replies
Salesforce Release Notes — Knowledge Replies Overview

Universal Containers wants to leverage the Record Snapshots grounding feature in a prompt template. What preparations are required?


A. Configure page layout of the master record type.


B. Create a field set for all the fields to be grounded.


C. Enable and configure dynamic form for the object.





B.
  Create a field set for all the fields to be grounded.

Explanation:

Record Snapshots grounding in Salesforce's Einstein for Agentforce (or more broadly, for generative AI features in Salesforce) allows AI prompts to include real-time data from Salesforce records. To control which fields are included when grounding a prompt with a record snapshot, you use a field set.
Here's a breakdown of the options:

A. Configure page layout of the master record type
❌ Incorrect – Page layouts control UI, not AI data grounding. They don’t influence what data is used in prompt templates.

B. Create a field set for all the fields to be grounded
✅ Correct – Salesforce uses field sets to define which fields from the record are included in the prompt context. This is a key step when configuring Record Snapshots grounding for prompt templates.

C. Enable and configure dynamic form for the object
❌ Incorrect – Dynamic forms also relate to UI behavior and layout on Lightning pages. They don't control what data is used for AI grounding.

Universal Containers wants to implement a solution in Salesforce with a custom UX that allows users to enter a sales order number. Subsequently, the system will invoke a custom prompt template to create and display a summary of the sales order header and sales order details. Which solution should an Agentforce Specialist implement to meet this requirement?


A. Create an autolaunched flow and invoke the prompt template using the standard "Prompt Template" flow action.


B. Create a template-triggered prompt flow and invoke the prompt template using the standard "Prompt Template" flow action.


C. Create a screen flow to collect the sales order number and invoke the prompt template using the standard "Prompt Template" flow action.





C.
  Create a screen flow to collect the sales order number and invoke the prompt template using the standard "Prompt Template" flow action.


Explanation:

Comprehensive and Detailed In-Depth Explanation: Universal Containers (UC) requires a solution with a custom UXfor users to input a sales order number, followed by invoking a custom prompt template to generate and display a summary. Let’s evaluate each option based on this requirement and Salesforce Agentforce capabilities.

Option A:
Create an auto launched flow and invoke the prompt template using the standard "Prompt Template" flow action. An auto launched flow is a background process that runs without user interaction, triggered by events like record updates or platform events. While it can invoke a prompt template using the "Prompt Template" flow action (available in Flow Builder to integrate Agentforce prompts), it lacks a user interface. Since UC explicitly needs a custom UX for users to enter a sales order number, an auto launched flow cannot meet this requirement, as it doesn’t provide a way for users to input data directly.

Option B:
Create a template-triggered prompt flow and invoke the prompt template using the standard "Prompt Template" flow action. There’s no such thing as a "template-triggered prompt flow" in Salesforce terminology. This appears to be a misnomer or typo in the original question. Prompt templates in Agentforce are reusable configurations that define how an AI processes input data, but they are not a type of flow. Flows (like auto launched or screen flows) can invoke prompt templates, but "template-triggered" is not a recognized flow type in Salesforce documentation. This option is invalid due to its inaccurate framing.

Option C:
Create a screen flow to collect the sales order number and invoke the prompt template using the standard "Prompt Template" flow action. A screen flow provides a customizable user interface within Salesforce, allowing users to input data (e.g., a sales order number) via input fields. The "Prompt Template" flow action, available in Flow Builder, enables integration with Agentforce by passing user input (the sales order number) to a custom prompt template. The prompt template can then query related data (e.g., sales order header and details) and generate a summary, which can be displayed back to the user on a subsequent screen. This solution meets UC’s need for a custom UX and seamless integration with Agentforce prompts, making it the best fit.

Why Option C is Correct:

Screen flows are ideal for scenarios requiring user interaction and custom interfaces, as outlined in Salesforce Flow documentation. The "Prompt Template" flow action enables Agentforce’s AI capabilities within the flow, allowing UC to collect the sales order number, process it via a prompt template, and display the result—all within a single, user-friendly solution. This aligns with Agentforce best practices for integrating AI-driven summaries into user workflows.

Reference:
Salesforce Help - Flows with Prompt Templates

Universal Containers implements Custom Agent Actions to enhance its customer service operations. The development team needs to understand the core components of a Custom Agent Action to ensure proper configuration and functionality. What should the development team review in the Custom Agent Action configuration to identify one of the core components of a Custom Agent Action?


A. Action Triggers


B. Instructions


C. Output Types





B.
  Instructions

Explanation:

When configuring a Custom Agent Action, one of the core components the development team must review is:

Instructions
Define how users invoke the action in natural language (e.g., "Check order status" or "Escalate this case").
Guide the LLM in mapping user requests to the correct action.

Example:

"Use this action to check shipping status. Try phrases like:
- 'Where is my order?'
- 'Has this been shipped yet?'"

Why Not the Other Options?

A. "Action Triggers":
Triggers determine when an action runs (e.g., record-triggered), but aren’t a core configurable component of the action itself.

C. "Output Types":
While important, outputs (e.g., text, record updates) are secondary to the instructions that define the action’s purpose.

Reference:
Salesforce Help - Custom Agent Actions

Universal Containers (UC) is creating a new custom prompt template to populate a field with generated output. UC enabled the Einstein Trust Layer to ensure AI Audit data is captured and monitored for adoption and possible enhancements. Which prompt template type should UC use and which consideration should UC review?


A. Field Generation, and that Dynamic Fields is enabled


B. Field Generation, and that Dynamic Forms is enabled


C. Flex, and that Dynamic Fields is enabled





A.
  Field Generation, and that Dynamic Fields is enabled


Explanation:

Comprehensive and Detailed In-Depth Explanation: Salesforce Agentforce provides various prompt template types to support AI-driven tasks, such as generating text or populating fields. In this case, UC needs a custom prompt template to populate a field with generated output, which directly aligns with the Field Generation prompt template type. This type is designed to use generative AI to create field values (e.g., summaries, descriptions) based on input data or prompts, making it the ideal choice for UC’s requirement.

Additionally, UC has enabled the Einstein Trust Layer, a governance framework that ensures AI outputs are safe, explainable, and auditable, capturing AI Audit data for monitoring adoption and identifying improvement areas. The consideration UC should review is whether Dynamic Fields is enabled. Dynamic Fields allow the prompt template to incorporate variable data from Salesforce records (e.g., case details, customer info) into the prompt, ensuring the generated output is contextually relevant to each record. This is critical for field population tasks, as static prompts wouldn’t adapt to record-specific needs. The Einstein Trust Layer further benefits from this, as it can track how dynamic inputs influence outputs for audit purposes.

Option A: Correct. "Field Generation" matches the use case, and "Dynamic Fields" is a key consideration to ensure flexibility and auditability with the Trust Layer.

Option B: "Field Generation" is correct, but "Dynamic Forms" is unrelated. Dynamic Forms is a UI feature for customizing page layouts, not a prompt template setting, making this option incorrect.

Option C: "Flex" templates are more general-purpose and not specifically tailored for field population tasks. While Dynamic Fields could apply, Field Generation is the better fit for UC’s stated goal.

Option A is the best choice, as it pairs the appropriate template type (Field Generation) with a relevant consideration (Dynamic Fields) for UC’s scenario with the Einstein Trust Layer.

Universal Containers (UC) wants to build an Agentforce Service Agent that provides the latest, active, and relevant policy and compliance information to customers. The agent must:

Semantically search HR policies, compliance guidelines, and company procedures. Ensure responses are grounded on published Knowledge. Allow Knowledge updates to be reflected immediately without manual reconfiguration. What should UC do to ensure the agent retrieves the right information?


A. Enable the agent to search all internal records and past customer inquiries.


B. Set up an Agentforce Data Library to store and index policy documents for AI retrieval.


C. Manually add policy responses into the AI model to prevent hallucinations.





B.
  Set up an Agentforce Data Library to store and index policy documents for AI retrieval.


Explanation:

Comprehensive and Detailed In-Depth Explanation: UC requires an Agentforce Service Agent to deliver accurate, up-to-date policy and compliance info with specific criteria. Let’s evaluate.

Option A: Enable the agent to search all internal records and past customer inquiries. Searching all records and inquiries risks irrelevant or outdated responses, conflicting with the need for published Knowledge grounding and immediate updates. This lacks specificity, making it incorrect.

Option B: Set up an Agentforce Data Library to store and index policy documents for AI retrieval. The Agentforce Data Library integrates with Salesforce Knowledge, indexing HR policies, compliance guidelines, and procedures for semantic search. It ensures grounding in published Knowledge articles, and updates (e.g., new article versions) are reflected instantly without reconfiguration, as the library syncs with Knowledge automatically. This meets all UC requirements, making it the correct answer.

Option C: Manually add policy responses into the AI model to prevent hallucinations. Manually embedding responses into the model isn’t feasible—Agentforce uses pretrained LLMs, not custom training. It also doesn’t support real-time updates, making this incorrect.

Why Option B is Correct: The Data Library meets all criteria—semantic search, Knowledge grounding, and instant updates—per Salesforce’s recommended approach.

Steps to Implement:

1. Upload policy documents to the Data Library (e.g., PDFs, FAQs).
2. Configure semantic search (Einstein Search) for natural language queries.
3. Ground the Agent’s prompts in the Data Library (e.g., {{DataLibrary.HR_Policies}}).

This ensures trusted, self-updating responses aligned with company standards.

What should Universal Containers consider when deploying an Agentforce Service Agent with multiple topics and Agent Actions to production?


A. Deploy agent components without a test run in staging, relying on production data for reliable results. Sandbox configuration alone ensures seamless production deployment.


B. Ensure all dependencies are included, Apex classes meet 75% test coverage, and configuration settings are aligned with production. Plan for version management and post-deployment activation.


C. Deploy flows or Apex after agents, topics, and Agent Actions to avoid deployment failures and potential production agent issues requiring complete redeployment.





B.
  Ensure all dependencies are included, Apex classes meet 75% test coverage, and configuration settings are aligned with production. Plan for version management and post-deployment activation.

Explanation

Deploying an Agentforce Service Agent into production—especially with multiple topics and custom Agent Actions—is a complex deployment. Here’s why Option B is correct:

Key considerations when deploying Agentforce Service Agents:

Dependencies and References:
Agents, topics, and Agent Actions often reference:
. Flows
. Apex classes
. Prompt templates
. Search indexes
. Custom metadata
All referenced components must be deployed together or the agent will fail to execute in production.

Apex Test Coverage:
Salesforce requires a minimum of 75% test coverage for all Apex classes and triggers in production.
This is especially critical if your custom Agent Actions call Apex.

Environment Parity:
Ensure that settings and connected services (e.g. Data Cloud, Copilot indexes) in the sandbox/staging are mirrored in production.

Version Management:
You may need to manage different versions of:
. Prompt templates
. Agent configurations
. Flows
Deploying new versions without proper version management could break existing functionality.

Post-deployment Activation:
After deployment, Agentforce Agents are inactive by default in production.
You must manually activate the agent and test in production.

Hence, Option B is the correct and complete answer for real-world deployments.

Why the other options are incorrect:

Option A (Deploy without a test run in staging):
This is risky and not a best practice.
Testing in a sandbox or staging environment is critical to avoid production issues.

Option C (Deploy flows or Apex after agents):
That’s backwards.
Agent Actions depend on:
. Flows
. Apex classes
Those dependencies must be deployed first before the Agent can function.
Deploying agents before their supporting components would result in errors.

Therefore, Universal Containers should:
B. Ensure all dependencies are included, Apex classes meet 75% test coverage, and configuration settings are aligned with production. Plan for version management and post-deployment activation.

🔗 Reference
Salesforce Help — Deploy Copilot Components to Production
Salesforce Developer Docs — Agentforce Deployment Best Practices
Salesforce Blog — Avoid Deployment Pitfalls for Einstein Copilot


Page 3 out of 17 Pages
Previous