Salesforce certification · Exam Agentforce-Specialist

Agentforce-Specialist Mock Exam Page 11

Salesforce Agentforce Specialist - AI-201

Free Agentforce-Specialist mock exam questions 101–110, each with the answer and an explanation.

20 questions · 35 minutes · free, no sign-up

Free Agentforce-Specialist questions

101–110 of 111 free
Question 101 Choose 1
Universal Containers built a Field Generation prompt template that worked for many records, but users are reporting random failures with token limit errors. What is the cause of the random nature of this error?
Show answerHide answer

Correct answer: B The number of tokens generated by the dynamic nature of the prompt template will vary by record.

Explanation

Explanation:

Token limit errors occur when the input (including grounding data) exceeds the LLM's maximum token capacity. The random nature of these errors is due to:

Variable Record Data

The prompt template likely uses record data grounding (e.g., {{Record.Field}}).
If some records have more populated fields or longer text values, they consume more tokens, pushing the prompt over the limit.

Why Not the Other Options?

A. Switching to Flex Template:
While Flex templates offer more flexibility, they don’t inherently solve token limits. The issue is data-dependent, not template-type-dependent.

C. LLM Token Demand Variability:
Salesforce’s LLM allocates a fixed token limit per prompt (e.g., ~3000 tokens for GPT-based models). It doesn’t fluctuate with user demand.
Question 102 Choose 1
Universal Containers (UC) has implemented Generative AI within Salesforce to enable summarization of a custom object called Guest. Users have reported mismatches in the generated information.
In refining its prompt design strategy, which key practices should UC prioritize?
Show answerHide answer

Correct answer: B Create concise, clear, and consistent prompt templates with effective grounding, contextual role- playing, clear instructions, and iterative feedback.

Explanation

Explanation:

To improve summarization accuracy for the Guest custom object, Universal Containers (UC) should focus on prompt engineering best practices:

Key Practices to Prioritize

1. Effective Grounding: Ensure prompts reference the correct Guest object fields (e.g., {{Guest.Preference__c}}).
2. Contextual Role-Playing: Define the AI’s role (e.g., "You are a concierge summarizing guest preferences...").
3. Clear Instructions: Specify format/length (e.g., "Summarize in 3 bullet points").
4. Iterative Feedback: Continuously refine prompts based on user-reported mismatches.

Why Not the Other Options?

A. "Prompt test mode & user subsets":
While useful for A/B testing, it doesn’t fix core prompt design issues like poor grounding.

C. "Submit to Salesforce & playground testing":
Playground testing is helpful, but UC must first optimize prompts internally (grounding, instructions).

Implementation Steps:

Audit current prompts for vague instructions or weak grounding.
Add role-playing context (e.g., "Act as a hotel manager...").
Test in Prompt Builder with sample Guest records.
Refine based on agent feedback.

Reference:
Salesforce Help - Prompt Template Best Practices
Question 103 Choose 1
Universal Containers wants support agents to use Agentforce to ask questions about its product tutorials and product guides.
What should the Agentforce Specialist do to meet this requirement?
Show answerHide answer

Correct answer: C Publish product tutorials and guides as Knowledge articles.

Explanation

Explanation

Context of the Question Universal Containers (UC) wants its support agents to use Agentforce to ask questions about product tutorials and product guides. Agentforce typically references knowledge sources to provide accurate and contextual responses.

Why Knowledge Articles?

Centralized Repository: Publishing product tutorials and guides as Knowledge articles in Salesforce ensures that the information is readily available and searchable by Agentforce.

AI Integration: Salesforce’s AI solutions, including Agentforce, can often be configured to pull content directly from Salesforce Knowledge articles, giving users on-demand answers without manual data duplication.

Maintenance & Updates: Storing content in Salesforce Knowledge simplifies content updates, versioning, and user permissions.

Why Not the Other Options?

Option A (Create a Prompt Template): Creating a prompt template alone does not solve how the underlying content (tutorials, guides) is stored or accessed by Agentforce. Prompt templates shape the queries/responses but do not provide the knowledge base.

Option B (Add an Answer Questions Custom Field): A single field on the product object is insufficient for the depth of information found in tutorials and guides. It also lacks the robust search and user-friendly interface that Knowledge articles provide.

Conclusion To ensure Agentforce can effectively retrieve and deliver accurate information about products, publishing product tutorials and guides as Knowledge articles is the recommended approach.

Salesforce Agentforce Specialist References & Documents Salesforce Documentation: Set Up Salesforce Knowledge Discusses how to publish articles for easy access by AI-driven assistants and support teams.

Salesforce Agentforce Specialist Study Guide Explains best practices for feeding knowledge sources to generative AI and Agentforce.
Question 104 Choose 1
An Agentforce wants to include data from the response of external service invocation (REST API callout) into the prompt template.
How should the Agentforce Specialist meet this requirement?
Show answerHide answer

Correct answer: B Use External Service Record merge fields.

Explanation

Explanation:

To include external REST API response data in a Prompt Template, the External Service Record merge fields feature is the correct approach. Here’s why:

External Service Record Merge Fields
When you configure an External Service in Salesforce (via Named Credentials + OpenAPI spec), the response data can be directly referenced in Prompt Templates using merge fields like: {{ExternalService.MyAPIResponse.Data}}
This dynamically injects the API response into the prompt without manual JSON parsing.

Why Not the Other Options?

A. Convert JSON to XML merge fields:
Unnecessary complexity. Salesforce supports native JSON parsing via External Services, eliminating the need for manual conversion.

C. "Add Prompt Instructions" flow element:
This is used to statically add instructions to a prompt (e.g., rules for AI behavior), not to inject dynamic API data.
Question 105 Choose 1
How does Secure Data Retrieval ensure that only authorized users can access necessary Salesforce data for dynamic grounding?
Show answerHide answer

Correct answer: B Retrieves Salesforce data based on the user’s permissions executing the prompt.

Explanation

Explanation:

Secure Data Retrieval is a Salesforce generative AI grounding feature that ensures any data used in prompts (such as via record snapshots or dynamic queries) is subject to normal Salesforce security controls, particularly object- and field-level security.

Why B is Correct:

When a prompt is executed in Agentforce, Secure Data Retrieval evaluates data access based on the permissions of the user executing the prompt. This means:

If the user doesn’t have access to a field or record, the AI will not see or use that data.
It ensures data privacy, compliance, and contextual relevance.

A. Retrieves Salesforce data based on the 'Run As" user's permissions
❌ Incorrect – While "Run As" can be used in flows or scheduled jobs, Secure Data Retrieval for prompts is tied to the user actively executing the prompt (e.g., the agent's context user or interacting end user), not a generic "Run As" setup.

C. Retrieves Salesforce data based on the Prompt Template’s object permissions
❌ Incorrect – Prompt templates themselves do not have object-level permissions. They define how data is used in prompts, but access is enforced per the executing user's permissions, not the template’s configuration.
Question 106 Choose 1
Universal Containers is rolling out a new generative AI initiative.
Which Prompt Builder limitations should the Agentforce Specialist be aware of?
Show answerHide answer

Correct answer: C Custom objects are supported only for Flex template types.

Explanation

Explanation

ThePrompt Builder in Salesforce has some specific limitations, one of which is that custom objects are supported only for Flex template types. This means that users must rely on Flex templates to integrate custom objects into their prompts.

Option A: While rich text area fields have certain restrictions, this does not pertain to the core limitation of integrating custom objects.

Option B: Updates and creations for prompt templates are indeed recorded in the Setup Audit Trail, so this statement is incorrect.

Option C: This is the correct answer as it reflects a documented limitation of the Prompt Builder.
Question 107 Choose 1
An Agentforce at Universal Containers is working on a prompt template to generate personalized emails for product demonstration requests from customers. It is important for the Al-generated email to adhere strictly to the guidelines, using only associated opportunity information, and to encourage the recipient to take the desired action.

How should the Agentforce Specialist include these instructions on a new line in the prompt template?
Show answerHide answer

Correct answer: A Surround them with triple quotes (""").

Explanation

Explanation:

To ensure the AI-generated email adheres to guidelines while staying personalized and actionable, the AgentForce Specialist should:

Use Triple Quotes (""") for Instructions
Triple quotes clearly separate instructions from grounded fields in the prompt template.

Example:

"""
- Use only Opportunity fields (no external data).
- Tone: Professional but enthusiastic.
- Include a clear call-to-action (e.g., 'Schedule your demo today!').
"""
Hi {{Contact.FirstName}},
Thank you for your interest in {{Opportunity.Product_Name__c}}!

Benefit: The LLM treats these as rules, not part of the output.

Why Not the Other Options?

B. "Merged fields":
While necessary for personalization ({{Opportunity.CloseDate}}), they don’t enforce guidelines.

C. "Curly brackets {}":
These are for merge fields, not instructions. The LLM would treat {instructions} as literal text.

Reference:
Salesforce Help - Prompt Template Instructions
Question 108 Choose 1
An Agentforce wants to use the related lists from an account in a custom prompt template.
What should the Agentforce Specialist consider when configuring the prompt template?
Show answerHide answer

Correct answer: B The maximum number of related list merge fields

Explanation

Explanation

Let’s clarify how related lists work in Einstein Copilot (Agentforce) prompt templates:

✅ When grounding a prompt template:
You can include related lists from the parent object (e.g. Account).

For example:
Opportunities related to an Account.
Cases related to an Account.

These related lists are exposed to the LLM through merge fields in the prompt template.

✅ Considerations:
Salesforce limits the number of related list merge fields that can be used in a single prompt template to:

Ensure prompt size remains manageable.
Avoid excessive token consumption.
Prevent model context window overflows.

While the precise limits may vary by tenant or release, Salesforce’s documentation confirms that:

“Each prompt template has a maximum number of related list merge fields you can add.”

Hence, Option B is correct because the Specialist must consider the maximum number of related list merge fields when designing their prompt template.

Why the other options are incorrect:

Option A (Text encoding):

Text encoding (e.g. UTF-8) is not relevant when configuring related list merge fields.
All merge field values in prompts are handled as plain text strings in Salesforce’s native encoding.

Option C (XML vs. JSON rendering):

The related lists are injected into prompts as plain text tables or formatted lists, not structured XML or JSON.
Prompt templates do not support toggling between XML or JSON rendering formats for related lists.

Therefore, the key consideration is:
B. The maximum number of related list merge fields.


🔗 Reference
Salesforce Developer Docs — Prompt Template Best Practices
Question 109 Choose 1
An administrator wants to check the response of the Flex prompt template they've built, but the preview button is greyed out. What is the reason for this?
Show answerHide answer

Correct answer: A The records related to the prompt have not been selected.

Explanation


Explanation

When the preview button is greyed out in a Flex prompt template, it is often because the records related to the prompt have not been selected. Flex prompt templates pull data dynamically from Salesforce records, and if there are no records specified for the prompt, it can't be previewed since there is no content to generate based on the template.

Option B, not saving or activating the prompt, would not necessarily cause the preview button to be greyed out, but it could prevent proper functionality.

Option C, missing a merge field, would cause issues with the output but would not directly grey out the preview button.

Ensuring that the related records are correctly linked is crucial for testing and previewing how the prompt will function in real use cases.
Question 110 Choose 1
An administrator is responsible for ensuring the security and reliability of Universal Containers' (UC) CRM data. UC needs enhanced data protection and up-to-date AI capabilities. UC also needs to include relevant information from a Salesforce record to be merged with the prompt. Which feature in the Einstein Trust Layer best supports UC's need?
Show answerHide answer

Correct answer: B Dynamic grounding with secure data retrieval

Explanation

Explanation:

The Einstein Trust Layer provides enterprise-grade security for AI in Salesforce. For UC’s requirements, the best fit is:

Dynamic Grounding with Secure Data Retrieval
Safely pulls CRM data (e.g., Case/Account details) into prompts without exposing raw data to the LLM.
Uses real-time, permission-aware grounding to ensure only authorized fields are included (e.g., {{Record.Field}}).
Encrypts data in transit and adheres to Salesforce’s sharing model.

Why Not the Other Options?

A. Data Masking:
Hides sensitive data (e.g., PII) but doesn’t address dynamic record merging for prompts.

C. Zero-Data Retention:
Ensures LLM providers don’t store prompts, but doesn’t solve secure data retrieval from Salesforce records.

How It Works:

The Trust Layer dynamically injects record data into prompts (e.g., {{Account.Name}}).
Data is filtered by field-level security (FLS) and never stored externally.

This balances AI functionality with CRM data protection.
Full mock exam

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.

Get full Agentforce-Specialist mock exam
  • 60questions per mock
  • 105 mintime limit
  • 380questions in the bank
  • Newmock on every attempt