SALESFORCE AGENTFORCE

salesforce agentforce Practice Questions & Answers (Set 11) | CodeWme

📝 Instructions: Read the hint to know if you need to select one or multiple options.

#1 The Agentforce Specialist of Northern Trail Outfitters reviewed the organization's data masking settings within the Configure Data Masking menu within Setup. Upon assessing all of the fields, a few additional fields were deemed sensitive and have been masked within Einstein's Trust Layer. Which steps should the Agentforce Specialist take upon modifying the masked fields? Select 1

A. A. Turn off the Einstein Trust Layer and turn it on again.
B. B. Test and confirm that the responses generated from prompts that utilize the data and masked data do not adversely affect the quality of the generated response
C. C. Turn on Einstein Feedback so that end users can report if there are any negative side effects on AI features.

✅ Answer: B. Test and confirm that the responses generated from prompts that utilize the data and masked data do not adversely affect the quality of the generated response


Explanation:
After modifying masked fields in Einstein's Trust Layer, the next important step is to test and confirm that the responses generated by prompts utilizing the newly masked data still meet quality standards. This ensures that masking sensitive information does not negatively impact the usefulness or accuracy of the AI-generated content. Thorough testing helps identify any issues in prompt performance that could arise due to masking, and adjustments can be made if needed. ➤ Option B is correct because testing the effects of masking on AI responses is a critical step in ensuring Al continues to function as expected. ➤ Option A (turning off and on the Einstein Trust Layer) is unnecessary after changing the masked fields. Option C (turning on Einstein Feedback) allows for user feedback but is not a direct step following field masking modifications. References: ➤ Salesforce Einstein Trust Layer Overview: https://help.salesforce.com/s/articleView?id=sf. einstein_trust_layer.htm

#2 A developer is using the Salesforce CLI to deploy agent component to several topics, instructions, and actions. Which metadata component should the developer include in the page agent will interact with? Select 1

A. EinsteinAiPlannerBundle
B. BotBundle
C. genAiPlannerBundle

✅ Answer: genAiPlannerBundle


Explanation:
The GenAiPlannerBundle is the correct metadata type for defining an Agentforce Agent's planner configuration in recent API versions (v64.0 and later). It serves as a container that groups Topics, Instructions, and Actions.

#3 Booking failures verify customer eligibility, and finally create the booking. The current implementation allows the large Resorts needs to ensure its booking agent executes actions in a specific sequence. Which approach should an Agentforce Specialist implement? Select 1

A. Write comprehensive topic instructions detailing the exact sequence of actions using numbered steps ordering requirements for the reasoning engine to follow during booking workflows.
B. Create custom variables that store completion status for each step, then implement conditional logic.
C. Configure topic, classification description, and action instructions with priority levels and sequence indications.

✅ Answer: Write comprehensive topic instructions detailing the exact sequence of actions using numbered steps ordering requirements for the reasoning engine to follow during booking workflows.


Explanation:
In Salesforce Agentforce, the primary mechanism to guide the Planner (the reasoning engine) to execute actions in a specific order is through clear, numbered Topic Instructions.

#4 Universal Containers (UC) recently attended a major trade show and received thousands of new leads. Goals: Qualify and nurture leads 24/7, Provide accurate answers, Automatically book meetings. Which Agentforce capability should UC implement to meet these goals? Select 1

A. Commerce Agent
B. SDR Agent

✅ Answer: SDR Agent


Explanation:
The SDR (Sales Development Representative) Agent is purpose-built to handle top-of-funnel sales activities like qualifying leads, answering inquiries, and booking meetings 24/7.

#5 Universal Containers' administrator has developed a new agent in a sandbox and needs to deploy it to production. What should the administrator do to deploy an agent? Select 1

A. Export agent components as JSON files and manually import them into production.
B. Manually recreate the agent configuration, topics, and actions in production.
C. Create an outbound change set with all the necessary agent components, then upload.

✅ Answer: Create an outbound change set with all the necessary agent components, then upload.


Explanation:
Agentforce Agents are metadata. The standard path is to use deployment tools like Change Sets, DevOps Center, or Salesforce CLI to move the agent and its dependencies (Topics, Actions) to Production.

#6 Universal Containers (UC) has registered an external service to fetch data from a REST API. UC now needs to use the data in a prompt template as a merge field. How should UC meet this requirement? Select 1

A. Use External Service Record merge fields.
B. Use the 'Add Prompt Instructions' flow element.
C. Convert the JSON to an XML merge field.

✅ Answer: Use External Service Record merge fields.


Explanation:
External Services generate Apex-defined types. By creating a Template-Triggered Prompt Flow that calls the External Service, the output record can be used directly as a merge field in the prompt.

#7 Universal Containers (UC) is building a Flex prompt template. Which flow element should UC use to pass data to the prompt? Select 1

A. Add Flow Instructions
B. Add Prompt Instructions
C. Add Flex Instructions

✅ Answer: Add Prompt Instructions


Explanation:
The 'Add Prompt Instructions' element is the specific Flow element designed to pass text and data from a Template-Triggered Prompt Flow back to the Prompt Builder context.

#8 Universal Containers deploys a new Agentforce Service Agent into the company's website but the Agent is not providing answers to customer questions that are found in the company's Knowledge base. What is the likely issue? Select 1

A. The Agentforce Service Agent user is not assigned the correct Agent Type License.
B. The Agentforce Service Agent user was not given the Allow View Knowledge permission set.
C. The Agentforce Service Agent user needs to be created under the standard Agent Knowledge profile.

✅ Answer: The Agentforce Service Agent user was not given the Allow View Knowledge permission set.


Explanation:
Agents run as a specific user. If that user does not have permission to read Knowledge articles (via a Permission Set), the agent cannot retrieve or search that data.

#9 Universal Containers wants to answer questions based on similar cases that have been resolved. What should UC consider when implementing this approach? Select 1

A. No action is needed, as past cases are used to answer the question.
B. Create an unstructured data model object (UDMO) based on Case object and create an index on it.
C. Create a data model object (DMO) based on Case object and create an index on it.

✅ Answer: Create an unstructured data model object (UDMO) based on Case object and create an index on it.


Explanation:
For semantic search (finding 'similar' content), data must be mapped to an Unstructured Data Model Object (UDMO) and indexed in Data Cloud.

#10 Universal Containers is setting up the data library configuration. What is true regarding Agentforce Data Libraries? Select 1

A. Only data library owners can assign it to the agent.
B. Each data category can only have one data library.
C. An agent can have only one data library assigned to it.

✅ Answer: An agent can have only one data library assigned to it.


Explanation:
In the standard configuration, an Agentforce Agent is typically restricted to a single Data Library assignment to ground its responses.

#11 Universal Containers (UC) wants to empower its marketing team to surface relevant information, generate creative content, and manage project tasks directly in Salesforce. Which AI solution should UC implement? Select 1

A. Service Agent
B. Employee Agent
C. Sales Coach Agent

✅ Answer: Employee Agent


Explanation:
The Employee Agent is designed for internal users (like marketing or HR) to enhance productivity by generating content and managing tasks within the flow of work.

#12 Universal Containers (UC) needs to capture and store detailed interaction logs to get a full view of the agent's actions, prompt and gateway inputs/outputs, and error messages. Which feature should they use? Select 1

A. Agentforce Session Tracing
B. Agentforce Analytics
C. Utterance Analysis

✅ Answer: Agentforce Session Tracing


Explanation:
Agentforce Session Tracing provides granular logs of the reasoning process, inputs, outputs, and errors for debugging specific interactions.

#13 Universal Containers has multiple Salesforce orgs. They need to ensure customer identity is persistent across agent handoffs without exposure to large language model (LLM) alteration. What is the most appropriate configuration? Select 1

A. Store customer identity information in conversation variables.
B. Use the Agent API to start the downstream agent's session and pass the verified customer context variable.

✅ Answer: Use the Agent API to start the downstream agent's session and pass the verified customer context variable.


Explanation:
Using the Agent API to pass immutable Context Variables ensures that critical data like identity is verified and cannot be hallucinated or altered by the LLM.

#14 A company wants to retrieve patient history details to augment Cloud search index feature. What is best practice when considering retrieval-augmented generation (RAG) and personally identifiable information (PII)? Select 1

A. Depend on the agent's prompt to avoid exposing PII.
B. Mask sensitive fields and index only non-PII data.
C. Encrypt embeddings, but still index PII records.

✅ Answer: Mask sensitive fields and index only non-PII data.


Explanation:
The best practice is to mask or remove high-risk PII before it enters the vector search index to minimize the attack surface and prevent accidental retrieval.

#15 What does it mean when a prompt template version is described as immutable? Select 1

A. Every modification on a template will be saved as a new version automatically.
B. Only the latest version of a template can be activated.
C. After a prompt template version is activated, no further changes can be saved to that version.

✅ Answer: After a prompt template version is activated, no further changes can be saved to that version.


Explanation:
Activation 'locks' a Prompt Template version to ensure stability for running processes. Any further edits must be saved as a new version.

#16 Universal Containers (UC) is considering using a Field Generation prompt. What should UC check before creating the Field Generation prompt to ensure the feature works on the page? Select 1

A. That the field chosen is a rich text field with 255 characters or more.
B. That the org is set to API version 59 or higher.
C. That the Lightning page layout where the field will reside has been upgraded to Dynamic Forms.

✅ Answer: That the Lightning page layout where the field will reside has been upgraded to Dynamic Forms.


Explanation:
To add the generative AI button to a specific field, the Lightning page must be upgraded to Dynamic Forms so the field component's properties can be configured.

#17 Coral Cloud Resorts is uploading thousands of reviews to ensure Agentforce retrieves accurate responses. Which chunking strategy is best? Select 1

A. Semantic-based passage extraction
B. Conversation-based chunking
C. Section-aware chunking

✅ Answer: Section-aware chunking


Explanation:
Section-aware chunking respects the structural hierarchy of documents (headers, logical breaks), ensuring retrieved chunks represent complete thoughts, which is ideal for structured knowledge articles or reviews.

#18 An Agentforce Specialist at Universal Containers (UC) needs to help the sales team prep for calls by summarizing past purchases, displaying interests, and recapping conversations. Which approach should they use? Select 1

A. Fine-tune the standard foundational model
B. Use a prompt template grounded on CRM and Data Cloud data
C. Deploy UC's own custom foundational model

✅ Answer: Use a prompt template grounded on CRM and Data Cloud data


Explanation:
Grounding allows the model to retrieve real-time data (purchases, emails) from the CRM to answer specific questions without the need for resource-intensive fine-tuning or custom models.

#19 An Agentforce Specialist is creating a custom action. Which option is available for the Agentforce Specialist to choose? Select 1

A. Flows
B. SOQL
C. Apex trigger

✅ Answer: Flows


Explanation:
Autolaunched Flows are a supported custom action type in Agentforce. SOQL and Apex triggers cannot be directly selected as standalone actions in the agent configuration.

#20 Universal Containers (UC) wants to deploy a Digital Experience site and enable messaging to the agent with pre-chat variables. What is a required step? Select 1

A. Configure a messaging Lightning web component
B. Create an Omni-Channel flow that routes messages to the agent
C. Configure MuleSoft to establish a secure connection

✅ Answer: Create an Omni-Channel flow that routes messages to the agent


Explanation:
In Messaging for In-App and Web (MIAW), an Omni-Channel Flow is required to handle routing logic and map pre-chat variables to the agent.