ApexSensei

All practice exams

Agentforce Specialist practice exam

Twelve original sample questions for Agentforce Specialist, with answers and short explanations. Sign in to take the full 90-question practice exam. Pair agent work with hands-on Apex drills when an action needs code.

Salesforce Certified Agentforce Specialist · 90 in-app questions · official pass mark 72%

Take the full 90-question practice exam

Sample questions

These samples are original ApexSensei items. They are not official Salesforce exam questions and they are not copied from the signed-in question bank.

1. Legal wants every Case.Subject rewritten in plain language and stored on that Case. Which Prompt Builder template type writes the result into a field?

Prompt Engineering

  • Field generation
  • A Flex template that is never wired to a field
  • A Sales Email template opened from a list view
  • A dashboard record-summary widget

Answer. Field generation

Field generation templates persist generated text to a specified field. Flex templates are reusable but do not themselves write a field until something else stores the output.

2. A flex prompt must include the current Account's SLA and three similar closed Cases. Which grounding mix belongs in the template?

Prompt Engineering

  • Merge fields for the Account SLA, plus a retriever or related-list grounding for similar Cases
  • Only the shopper's latest chat sentence, with no CRM data
  • A PDF left in the Documents tab and never indexed
  • Schema Builder relationships

Answer. Merge fields for the Account SLA, plus a retriever or related-list grounding for similar Cases

Prompt Builder grounding pulls trusted org data into the prompt. Merge fields cover the current record; retrievers or related lists bring similar Cases. Ungrounded chat text is not enough.

3. A hospital CIO will not allow Case text to be used to train a third-party model. Which Trust Layer guarantee do you cite?

Prompt Engineering

  • Zero data retention with the LLM provider; Salesforce keeps the audit trail
  • Turning off Shield Platform Encryption
  • Muting permission sets on the Case object
  • A sharing rule on the User object

Answer. Zero data retention with the LLM provider; Salesforce keeps the audit trail

The Trust Layer's contract with model providers is that prompts and completions are not retained for training. Encryption, muting, and user sharing do not answer the training question.

4. Product manuals are ingested so the agent can quote a paragraph. Why chunk the files before they are indexed?

Data 360 Fundamentals

  • Smaller chunks let a retriever return a tight passage instead of an entire manual
  • Chunking replaces the need for a retriever
  • Chunking encrypts the PDF automatically
  • Chunking compiles the PDF into an Apex class

Answer. Smaller chunks let a retriever return a tight passage instead of an entire manual

Chunking splits a document so indexing and retrieval can score relevant passages. You still need a retriever. Chunking is not encryption or a compiler.

5. You add a Knowledge site and a shared drive to the agent's Data Library. What does that library do at run time?

Data 360 Fundamentals

  • It packages those sources so retrievers can index them and return grounded passages
  • It replaces Profiles for the running user
  • It is only a folder label with no retrieval
  • It trains a new foundation model on those files

Answer. It packages those sources so retrievers can index them and return grounded passages

The Agentforce Data Library is the catalog of sources a retriever can search. It does not replace CRM security and it does not train a new foundation model.

6. Sales ops needs an agent in Slack that updates Opportunities they already own. Customers must never see it. Which agent type?

AI Agents

  • Employee agent
  • A Service agent on the public Experience Cloud site
  • An unauthenticated Agent API
  • A marketing-site Einstein Bot with no CRM session

Answer. Employee agent

Employee agents run in the internal user's security context (Slack, desktop). Service agents face customers. An open API without auth is the opposite of this requirement.

7. The agent must never offer a discount below list price, even if the model wants to be helpful. Where do you lock that rule?

AI Agents

  • Agent Script filters or variables, plus action-level instructions
  • A dashboard filter on Opportunity
  • Session Settings idle timeout
  • Soft-deleting the standard Price Book

Answer. Agent Script filters or variables, plus action-level instructions

Hybrid reasoning lets Agent Script enforce deterministic limits. Action instructions reinforce the same rule. Dashboards, session timeouts, and deleting a price book do not constrain the model mid-turn.

8. A mobile shopping app already has a shopper session and must start an agent turn without opening Salesforce chat UI. What do you call?

AI Agents

  • Agent API
  • Agent Builder Preview only
  • Testing Center
  • Setup Audit Trail

Answer. Agent API

Agent API is the programmatic channel. Preview is for builders. Testing Center runs scripted evaluations. Audit Trail records setup changes.

9. QA has 40 scripted utterances with expected topic and action outcomes. Where do they batch-run those before go-live?

Testing, Deployment, and Maintenance

  • Testing Center evaluations
  • The regular Case feed on a sample customer
  • Debug logs on an integration user
  • A SOQL query on Prompt Template

Answer. Testing Center evaluations

Testing Center is the batch evaluation tool for agents: utterances in, expected topic/action out. Case feeds, debug logs, and SOQL are not that harness.

10. The sandbox agent depends on a flex prompt template, a Data Library, and a Flow action. What must travel with the agent to production?

Testing, Deployment, and Maintenance

  • Those dependent templates, library or retriever metadata, and the Flow — not just the agent record
  • Only the agent display name
  • Every Knowledge article in production, as a change set
  • User passwords from the sandbox

Answer. Those dependent templates, library or retriever metadata, and the Flow — not just the agent record

An agent without its prompt templates, retrievers, and actions will not run. You deploy the dependency graph. You do not ship passwords or the entire article corpus as a substitute.

11. After launch, the CX lead wants to know how often the agent escalated and whether those chats still resolved. Which capability?

Governance and Observability

  • Agent analytics and observability dashboards
  • Schema Builder
  • Login History
  • Collaborative Forecasts

Answer. Agent analytics and observability dashboards

Governance and observability cover monitoring, analytics, and optimization of live agents. Schema Builder, login history, and forecasts do not measure escalation or resolution.

12. A claims agent must ask a separate fraud agent, built by another team and already speaking an open protocol, before it pays. What architecture fits?

Multi-Agent Orchestration

  • Multi-agent orchestration over A2A or MCP tools, not one mega-topic with every action
  • A single topic that lists 80 actions
  • Two unrelated Experience Cloud sites with no handshake
  • A scheduled Apex job that emails both teams

Answer. Multi-agent orchestration over A2A or MCP tools, not one mega-topic with every action

When specialists are separate systems, open protocols (A2A, MCP) let one agent call another with clear control. Stuffing every action into one topic does not scale or isolate fraud logic.

Hands-on Apex drills

A practice exam tests recall. Drills make you write Apex in your own Developer org. Related modules: Security & deployment · Asynchronous Apex · All Apex drills.

Take the full 90-question practice exam