All Salesforce exams

Free Salesforce Certified Agentforce Specialist practice test: 30 questions with answers

30 original questions for Salesforce Certified Agentforce Specialist, drawn from every topic area. Answer each one to see whether you got it right and why. No sign-up.

Free questions
30
Full bank
112 questions
Real exam
60 scored questions, 105 min
Passing score
73%

Salesforce Certified Agentforce Specialist exam guide: topics, cost and format

All 30 Salesforce Certified Agentforce Specialist questions with answers

The same questions as the test above, grouped by exam topic. Open any question to see the answer and explanation.

AI Agents (8 questions)

  1. Question 1

    A retailer wants an Agentforce agent on its website that answers order-status questions and can start a return for an order. The team wants the agent to use approved business steps rather than free-form decisions. Which configuration fits best?

    1. AGive the agent unrestricted access to every object and let it decide which records to change without any defined actions
    2. BAn agent with topics for order status and returns, plus Flow actions for each step
    3. CWrite a single prompt template that answers every question and turn off all actions so the agent only replies with text
    4. DBuild one Apex class that handles all customer chats in a single method with no topics or instructions for the agent
    Show answer and explanation
    Correct answer: B

    Topics define the scope of what the agent handles, and actions expose approved steps such as flows, which keeps behaviour bounded. Unrestricted access removes the control the team wants, a text-only prompt cannot perform the return, and a single Apex method with no topics gives no structure for the agent.

  2. Question 2

    An agent's instructions tell it to never share pricing for enterprise contracts, but the agent sometimes does. Which change addresses the problem most directly?

    1. ADelete the pricing data from every object in the org so the agent cannot find it, even for legitimate sales conversations
    2. BRemove all actions from the agent so that it cannot read any data, which also stops the agent from answering other questions
    3. CMake the restriction explicit in the topic and guardrails, then test with pricing prompts
    4. DIncrease the agent's temperature setting so that it becomes more cautious when it answers pricing questions
    Show answer and explanation
    Correct answer: C

    Explicit instructions and guardrails in the topic, verified by testing with adversarial prompts, address the behaviour where it is defined. Deleting pricing data breaks legitimate uses, raising temperature makes outputs less predictable rather than more cautious, and removing all actions blocks valid tasks.

  3. Question 3

    A service agent should hand a conversation to a human when a customer asks to cancel a contract. The business wants the handoff to pass the case context to the queue. Which feature should be configured?

    1. AA rule that closes the conversation automatically so the customer must open a new chat to reach a human
    2. BA canned message that tells the customer to call the main number and start the conversation again from the beginning
    3. CA background job that emails the contract manager the customer's full chat transcript once a week after the event
    4. DAn escalation action that routes the conversation to a live agent queue with a summary of the case context
    Show answer and explanation
    Correct answer: D

    An escalation action routes the conversation to a queue with the context, so the human agent does not start from zero. A canned message forces the customer to repeat everything, automatic closure leaves the customer without help, and a weekly email is far too slow.

  4. Question 4

    A team is building an agent that must check a customer's eligibility before offering an upgrade. The eligibility rules are complex and change each quarter. Where should the rules live so that they can be changed without rewriting the agent?

    1. AWritten into every topic's instructions as a long list of conditions that the team copies into each new topic by hand
    2. BHard-coded in the prompt of the agent's greeting message, which the agent repeats before each answer it gives
    3. CStored in a notes field on the customer's contact record that the agent reads but nobody maintains over time
    4. DIn a Flow or Apex action that the agent calls, so the rules can be updated in one place without changing the agent's topics
    Show answer and explanation
    Correct answer: D

    Putting the rules in a Flow or Apex action keeps them in one maintainable place that the agent calls. Copying conditions into every topic, hard-coding them in a greeting and an unmaintained notes field all create drift that a quarterly change would break.

  5. Question 5

    An agent answers policy questions from HR documents, and it must cite the source document in each answer. Which capability supports this?

    1. ACopying every policy document into the agent's instructions, so that the agent quotes the instructions directly when asked
    2. BAsking the agent to answer from its general training data only, and to mention the policy name it remembers from memory
    3. CGrounding the agent in a knowledge source, with the retrieved document cited in the reply
    4. DTurning off the agent's reasoning, so that it returns the first sentence of the most recent email from the HR mailbox
    Show answer and explanation
    Correct answer: C

    Grounding in a knowledge source retrieves relevant documents and lets the reply cite them, which supports verifiable answers. Answering from general training data invents or misremembers policies, copying everything into instructions is unmanageable, and turning off reasoning does not retrieve policies.

  6. Question 6

    A team tests an agent before launch and finds that it sometimes gives answers that are factually correct but use inappropriate language for a customer-facing channel. Which control should be applied?

    1. AUse the Einstein Trust Layer toxicity detection and the instructions that set tone and style for the channel
    2. BLet the agent respond in any tone, since customers will not notice the language used in a factual answer
    3. CTurn off the agent for the channel until the language issue is resolved by the vendor's own engineering team
    4. DShorten every answer to a single word so that there is no room for any language problem to appear in the reply
    Show answer and explanation
    Correct answer: A

    Toxicity detection in the Einstein Trust Layer and instructions on tone for the channel address inappropriate language directly. Disabling the agent for the channel is unnecessary, ignoring tone is a poor customer experience, and one-word answers are unhelpful.

  7. Question 7

    A support agent needs to create a case in Service Cloud when it cannot resolve an issue. The team wants the case to contain the customer, the product and a summary. Which design works best?

    1. AAn action that opens a blank case screen for the customer to fill in alone, with no fields pre-filled from the chat
    2. BAn instruction that asks the agent to type the case details into the chat window, which the customer then copies into a form
    3. CAn action that calls an invocable Flow with the customer, product and summary as inputs, and creates the case from those inputs
    4. DAn email from the agent to the support mailbox that lists the details in free text for a person to enter later manually
    Show answer and explanation
    Correct answer: C

    A Flow action with inputs creates the case with the right fields populated reliably. A blank screen makes the customer re-enter details, copying from chat is error-prone, and a free-text email requires manual entry later.

  8. Question 8

    An Agentforce agent answers questions for logged-in customers only. The team wants the agent to know the customer's account without asking for an identifier each time. Which approach fits?

    1. AAsk every customer to type their account number at the start of each conversation before the agent is allowed to answer
    2. BPass the authenticated user's record context to the agent through the messaging session, and use it in the actions it runs
    3. CDisable authentication entirely, so that the agent can answer for any customer who opens a chat without any check
    4. DStore the account numbers in the agent's public instructions so that every visitor can look up any customer's account
    Show answer and explanation
    Correct answer: B

    Passing the authenticated record context through the session lets the agent act for the right customer without repeated prompts and without exposing data. Repeated identifiers add friction, public account numbers leak data, and disabling authentication exposes every customer's records.

Development Lifecycle (7 questions)

  1. Question 9

    A team is moving an agent from a sandbox to production. The team wants the change to be repeatable, reviewed and reversible. Which approach fits best?

    1. ARecreate the agent by hand in production each time, copying settings from the sandbox screen by screen, with no record of the changes
    2. BEdit the agent directly in production, since the sandbox copy is always out of date and cannot be trusted at all
    3. CPackage the agent's configuration in source control and deploy through a reviewed pipeline
    4. DDeploy the agent once and never change it again, so that no change ever needs to be reviewed or reversed in the future
    Show answer and explanation
    Correct answer: C

    Packaging the configuration in source control and deploying through a reviewed pipeline with a rollback path makes the change repeatable and reversible. Manual recreation and direct production edits are error-prone and unrecorded, and never changing the agent prevents needed fixes.

  2. Question 10

    After release, users report that the agent's answers have become less accurate. The team wants to find the cause quickly. Which practice supports this?

    1. ADelete the conversation logs once a week so that the storage stays small and the team focuses only on new conversations
    2. BReview conversation logs and the agent's session traces, comparing failing cases with the configuration changes made before release
    3. CAsk users to stop using the agent until the team has finished a full redesign of every topic from scratch
    4. DAssume that the model has become worse over time, and switch models without checking whether the configuration changed
    Show answer and explanation
    Correct answer: B

    Reviewing logs and traces alongside recent configuration changes finds the cause from evidence. Deleting logs removes the evidence, a full redesign stops service without a diagnosis, and switching models without checking causes may fix nothing.

  3. Question 11

    A team plans to change an agent's topics during a busy season. The business wants to limit the risk to customers during the change. Which rollout approach fits best?

    1. ASwitch every user to the new topics at midnight without a test, and wait for complaints to decide whether to roll back
    2. BLaunch the change to all channels at once and disable logging, so that the change looks seamless to customers
    3. CKeep the old topics live and ask each customer to type a special code to use the new ones, with no monitoring
    4. DRoll out the change to a small group of users first, monitor the results, and expand only after the results are acceptable
    Show answer and explanation
    Correct answer: D

    A staged rollout to a small group with monitoring limits the impact of a faulty change and allows expansion when results are acceptable. An untested switch-over relies on complaints, codes add friction without monitoring, and disabling logging hides problems.

  4. Question 12

    A company needs an audit trail showing who changed an agent's instructions, and when. Which capability provides this?

    1. AA weekly screenshot of the setup pages, saved in a shared folder by whoever is on duty that week for the team
    2. BA shared login used by the whole team for all configuration changes, so that changes are attributed to the team as a whole
    3. CSetup audit trail and version history for the agent configuration, which records changes with the user and time
    4. DA note in the agent description that says the instructions were last reviewed, with no record of who made the changes
    Show answer and explanation
    Correct answer: C

    The setup audit trail and version history record each change with the user and time, which is the evidence the company needs. A shared login removes individual attribution, screenshots are incomplete, and a note does not show who changed what.

  5. Question 13

    Which TWO are good practices for testing an agent before release? (Choose two.)

    1. ATest with realistic utterances that include ambiguous and off-topic requests
    2. BTest only the happy path where the customer asks exactly the expected question
    3. CReview test results against expected outcomes and record failures for fixing
    4. DSkip testing for minor changes to instructions, since they cannot affect behaviour
    5. ETest in production only, so that results reflect real use by customers
    Show answer and explanation
    Correct answer: A, C

    Realistic utterances including ambiguous requests and reviewed results against expected outcomes reveal real weaknesses. Happy-path-only tests miss failures, skipping minor changes ignores real effects, and production-only testing exposes customers.

  6. Question 14

    A team needs to deploy an agent to a second org with the same configuration. The configuration includes topics, actions and prompts. Which approach is most reliable?

    1. APackage the configuration from the first org and deploy it to the second, then verify the deployed components
    2. BCopy the first org's database into the second org, which copies all of the configuration along with the customer data
    3. CRecreate every topic, action and prompt in the second org by hand, checking each screen against the first org
    4. DAsk a user in the second org to describe the agent's topics from memory, and rebuild the agent from that description
    Show answer and explanation
    Correct answer: A

    Packaging and deploying the configuration, then verifying it, is repeatable and checkable. Manual recreation is error-prone, copying a database would also move customer data, and rebuilding from memory is unreliable.

  7. Question 15

    A team wants to know whether an agent change improved results before it is released to everyone. Which method provides the best evidence?

    1. AA count of how many people have opened the agent's configuration page since the change was made by the developer
    2. BAn informal impression from the team lead after reading two conversations in which the new version looked better
    3. CA review of the number of changes made to the agent in the month, since more changes mean the agent has improved
    4. DA controlled comparison of the old and new versions on the same test scenarios, with metrics recorded for each
    Show answer and explanation
    Correct answer: D

    A controlled comparison of old and new versions on the same scenarios, with recorded metrics, gives reliable evidence. Impressions from two conversations, counts of changes and page views do not show improvement.

Prompt Engineering (7 questions)

  1. Question 16

    A team builds a Prompt Builder template that drafts follow-up emails from case records. The drafts sometimes include a customer's full credit card number that was stored in a note. What should the team change first?

    1. AAsk the model to hide any numbers it sees by writing a note in the prompt that says not to show numbers to anyone
    2. BSend the drafts to a public blog so that customers can see the content and report any sensitive data they find
    3. CTurn the template into a free-text prompt that includes every field on the case record, so that the model sees everything
    4. DRemove or mask sensitive fields from the data passed to the prompt, and use the Einstein Trust Layer's data masking
    Show answer and explanation
    Correct answer: D

    The safest fix is to keep sensitive fields out of the prompt and use masking, so the model never receives them. A note asking the model to hide numbers is unreliable, passing every field increases exposure, and publishing drafts is a serious leak.

  2. Question 17

    A prompt template produces inconsistent summaries of support cases. The team wants the output to follow the same structure each time. Which technique helps most?

    1. ASpecify the required sections, their order and the length in the prompt, and include an example of the expected output
    2. BAsk for a summary without any structure, since the model produces the most creative summary when it is given freedom
    3. CUse a longer prompt that repeats the same sentence many times, so that the model is more certain of what is wanted
    4. DChange the model every time a summary is produced, so that the team can compare the outputs side by side for quality
    Show answer and explanation
    Correct answer: A

    Explicit structure, order, length and an example make the output predictable. Leaving structure open increases variation, repeating a sentence adds noise without clarity, and changing the model each time adds inconsistency.

  3. Question 18

    A team wants a prompt to classify support emails into five categories. The model sometimes returns a category name that is not in the list. Which change reduces this most reliably?

    1. AAsk the model to invent a new category whenever an email does not fit one of the existing names in the list
    2. BRemove the list of names so that the model chooses the category names it thinks are most useful for the business
    3. CProvide the allowed category names, ask for exactly one, and include a fallback category
    4. DRun the classification twice and keep whichever answer is longer, since a longer category name is likely to be more accurate
    Show answer and explanation
    Correct answer: C

    Listing the allowed values, asking for exactly one, and providing a fallback constrains the output to valid categories. Inventing categories, removing the list and choosing by length all produce values the business cannot use.

  4. Question 19

    A prompt template uses a field from a related record that is empty for some cases. The generated text then reads awkwardly with missing words. Which design handles this best?

    1. AAsk users to type a value in the field each time they generate the text, even when the field has no real value
    2. BRemove the field from every template, so that no case can ever have an empty value for the sentence to depend on
    3. CInclude the empty field anyway and let the model fill the gap with whatever it guesses about the missing value
    4. DUse a conditional section in the template that includes the sentence only when the field has a value
    Show answer and explanation
    Correct answer: D

    A conditional section includes the sentence only when there is data, which avoids awkward text without inventing values. Letting the model guess invents facts, removing the field loses information, and forcing users to type placeholder values adds work and errors.

  5. Question 20

    A generated answer cites a product feature that does not exist. Which practice reduces the chance of this kind of error in production?

    1. AMake the prompt longer by asking the model to be more confident in its answers, so that it avoids admitting uncertainty
    2. BGround the prompt in verified product data, and require answers from provided sources only
    3. CPublish the generated answers directly to customers, since errors will be reported by customers and fixed the next day
    4. DRemove all product data from the prompt, so that the model is forced to make the answer up from its general knowledge
    Show answer and explanation
    Correct answer: B

    Grounding in verified data and restricting answers to provided sources reduces invented features, and sampled review catches what remains. Asking for more confidence encourages overstatement, removing data invites invention, and publishing unreviewed answers exposes customers.

  6. Question 21

    A prompt template includes a long list of product features, and the generated answers often ignore the feature the customer asked about. Which change helps most?

    1. AAsk the model to read the list of features aloud before every answer, which forces it to consider every feature
    2. BAdd the entire product catalogue to the prompt in a random order each time, so that the model sees everything equally
    3. CPut the customer's question first and include only the features that relate to it, with the rest removed from the prompt
    4. DRemove the customer's question from the prompt, so that the model answers the list of features instead of guessing
    Show answer and explanation
    Correct answer: C

    Placing the question first and including only relevant features focuses the model on what the customer asked. Random full catalogues add noise, reading the list aloud is not useful, and removing the question stops the answer from addressing the request.

  7. Question 22

    A team wants a prompt to produce short summaries of 50 words or fewer for mobile customers. Which instruction is most effective?

    1. AAsk for a summary of ten paragraphs, since longer summaries are always more useful to a mobile customer on the move
    2. BState the length limit explicitly in the prompt, for example no more than 50 words, and check sample outputs against it
    3. CAsk for a very long summary and let the mobile app cut it off wherever the text happens to stop on the screen
    4. DAsk for a summary that is as long as the model thinks is needed, since the length will adjust itself to fit mobile screens
    Show answer and explanation
    Correct answer: B

    An explicit length limit in the prompt, checked against samples, produces the required length. Leaving length to the model is unpredictable, asking for long text and letting the app cut it off breaks sentences, and long summaries do not suit mobile use.

Data Cloud for Agentforce (7 questions)

  1. Question 23

    An agent must answer questions using customer purchase history, which lives in several source systems. Data Cloud should bring the data together for the agent. Which Data Cloud step creates a unified view of each customer?

    1. ACreating a dashboard that displays each source system in its own tab, with no matching of customers across systems
    2. BIdentity resolution, which matches records from the source systems to one unified individual profile
    3. CExporting every source table to a spreadsheet once a year, which the agent reads when a question arrives
    4. DTurning off the source systems so that all customer data is only ever read from the agent's own cache
    Show answer and explanation
    Correct answer: B

    Identity resolution matches records across sources into one unified profile that the agent can use. A dashboard does not unify records, a yearly spreadsheet is stale, and turning off source systems destroys the data.

  2. Question 24

    A Data Cloud admin wants the agent to retrieve relevant knowledge articles when a customer asks a question. The articles change every week. Which setup keeps the answers current?

    1. AA static copy of the articles inside the agent's instructions, updated once a year by the engineering team by hand
    2. BA retriever that searches an indexed knowledge source, so that new or updated articles are included after the index refreshes
    3. CA link in the agent's reply to the public website's search page, which the customer must search manually themselves
    4. DA prompt that tells the agent to remember every article it has ever read, with no refresh of the knowledge source
    Show answer and explanation
    Correct answer: B

    A retriever over an indexed knowledge source returns current content as the index refreshes. A yearly copy in instructions is stale within weeks, remembering articles does not update them, and sending customers to search manually abandons the agent's purpose.

  3. Question 25

    A company's Data Cloud data includes personal data that must be used only for approved purposes. Which feature helps enforce the limits on how data is used?

    1. AData governance controls, such as data use purposes and policies, applied to the data the agent may access
    2. BA note in the Data Cloud documentation that asks users to use the data only for approved purposes, with no enforcement
    3. CGiving every user in the org access to all personal data, so that the company can see how it is used in practice
    4. DCopying the personal data into a public dataset so that the purpose restrictions no longer apply to the copy
    Show answer and explanation
    Correct answer: A

    Data governance controls and data use purposes enforce which data can be used for which purpose. A documentation note is advisory, universal access breaks the limits, and copying to a public dataset removes the controls.

  4. Question 26

    A team wants an agent to use a calculated customer score from Data Cloud, such as lifetime value. The score must be computed from the unified data and kept current. Which Data Cloud capability creates it?

    1. AA calculated insight that computes the metric from the unified profile data and refreshes on a schedule
    2. BA formula typed into a text field on each contact record that someone updates by hand each month
    3. CA chart that shows the score for one customer at a time, which the agent can read from a screenshot
    4. DA list of customer names sorted alphabetically, which the agent reads to estimate each customer's value
    Show answer and explanation
    Correct answer: A

    A calculated insight computes metrics from unified data and refreshes on a schedule, keeping the score current. Manual fields go stale, sorted names do not give a value, and screenshots are not a data source the agent can use.

  5. Question 27

    A customer's data is in Data Cloud, but the agent returns an outdated address. The team checks and finds that a source system updated the address, but the change has not reached Data Cloud. What should the admin check first?

    1. AThe data stream or connector for the source system, to confirm that updates are ingested on the expected schedule
    2. BThe agent's topic description, since an outdated address means the topic has been written with the wrong wording
    3. CThe colour of the address field on the contact page, since a different colour indicates that the value is out of date
    4. DThe number of agents in the org, since adding more agents usually refreshes the address data across every source
    Show answer and explanation
    Correct answer: A

    Checking the data stream or connector confirms whether the update is being ingested, which is where the gap is. Topic wording, field colour and agent count do not control whether source updates reach Data Cloud.

  6. Question 28

    Which THREE practices improve the quality of data that an agent uses from Data Cloud? (Choose three.)

    1. AValidate and map source fields to a consistent data model before the agent relies on them
    2. BRemove duplicate customer records through identity resolution rules that the team has reviewed
    3. CLet every source system define its own field names so that the agent sees the richest possible set of fields
    4. DMonitor data ingestion for failures and stale data, and alert the team when a source stops updating
    5. EKeep old and unverified records in the unified profile so that the agent never misses a historical detail
    Show answer and explanation
    Correct answer: A, B, D

    Consistent mapping, reviewed identity resolution and monitoring of ingestion all improve data quality for the agent. Inconsistent field names, and keeping unverified old records, make answers less reliable.

  7. Question 29

    A marketing team wants to segment customers using a combination of purchase history and web activity from Data Cloud. Which Data Cloud object provides the unified customer profile that segmentation uses?

    1. AThe Salesforce Contact record alone, which holds only the customer's name and does not include any web activity
    2. BA spreadsheet of the customers' names that marketing exports each month and matches by hand to the web data
    3. CA dashboard that lists the segment counts for the previous quarter, with no link to the underlying profiles
    4. DThe individual profile in the unified data model, which is built by identity resolution across the sources
    Show answer and explanation
    Correct answer: D

    The unified individual profile in the unified data model, built by identity resolution, combines purchase and web data for segmentation. Spreadsheets are manual, the Contact record lacks web activity, and a dashboard of past counts is not a profile source.

Multi-Agent Interoperability (1 question)

  1. Question 30

    An organization wants a sales agent to hand work to a separate service agent built by another team, with each agent keeping its own responsibilities. Which TWO practices support this design? (Choose two.)

    1. ADefine a clear contract for the handoff, including the inputs, outputs and the expected result of the work
    2. BGive one agent full access to the other agent's data and actions so that handoffs never fail for any reason
    3. CUse a documented interface, such as an API or an agent-to-agent protocol, for the communication between the agents
    4. DMerge both agents into one large agent so that there are no handoffs and no interfaces to maintain at all
    5. ELet each agent change the other's instructions at runtime so that the two agents always stay aligned with each other
    Show answer and explanation
    Correct answer: A, C

    A clear handoff contract and a documented interface keep the agents interoperable while each keeps its responsibilities. Full access to another agent's data, merging agents and runtime changes to each other's instructions break separation of responsibility and create unpredictable behaviour.