AGENTFORCE-SPEC sample questions with answers

10 free practice questions for the Salesforce Certified Agentforce Specialist exam. Try each one, then open the answer to see why the right option wins and every other option loses.

Question 1Prompt Engineering

Barwick Insurance wants prompt authors to stop choosing one older model configuration in Prompt Builder and move to a newer one. The dozen templates already in production that use the older configuration must keep running unchanged until each is retested, and the provider's other models must stay available. What should the admin do?

  1. A.

    Hide the older model configuration in AI Models (formerly Einstein Studio)

  2. B.

    Turn off the model provider under Configure Model Providers in Einstein Setup

  3. C.

    Deactivate every production template that uses the older configuration

  4. D.

    Delete the older model configuration so that authors cannot select it

Show answer

Answer: A

Hiding a configuration removes it from Prompt Builder selection while templates already using it keep running.

  • A. Correct: hidden configurations disappear from Prompt Builder selection while existing templates keep running.
  • B. Incorrect: provider access blocks all the provider's models and can stop templates that use them.
  • C. Incorrect: deactivation removes the templates from users, which the requirement forbids.
  • D. Incorrect: deleting is irreversible and risks breaking dependents; hiding is the documented, reversible control.
Question 2Prompt Engineering

Kestrel Home Loans uses one prompt template in two places: in Einstein Service Replies for chat reps, and as a custom action in an employee agent. The Trust Layer is configured to mask names and email addresses. Audit data shows masking in the Service Replies prompts but not in the prompts sent when the agent runs the same template. What explains the difference?

  1. A.

    Masking applies only to templates invoked from Lightning pages, and agent actions invoke through flows

  2. B.

    Data masking is disabled for agents, so a template called through an agent action is sent unmasked

  3. C.

    The agent uses an older version of the template that was saved before masking was switched on

  4. D.

    The agent's running user lacks the permission set required for the Trust Layer to perform masking

Show answer

Answer: B

Einstein Trust Layer masking is disabled for agents; when a template runs through an agent action, masking is off.

  • A. Incorrect: masking is not limited to Lightning pages; direct uses such as service replies are masked.
  • B. Correct: masking is disabled for agents, so the agent-invoked template is sent unmasked by design.
  • C. Incorrect: masking is applied at run time by the Trust Layer, not saved into template versions.
  • D. Incorrect: no user permission set turns Trust Layer masking on or off.
Question 3Prompt Engineering

Garnet Legal grounds a Flex template on an account's Matters related list. Partners get summaries that include every matter, but paralegals running the same template on the same account get summaries with no matter details at all, and no error. Paralegals use a different account page layout and have Read access on the Matter object. What explains the difference?

  1. A.

    Related list grounding follows the user's parent page layout, and the paralegals' layout lacks the Matters list

  2. B.

    Related list grounding returns data only for records that were selected as the template's preview record

  3. C.

    Related list merge fields apply record-level sharing, so the paralegals see only matters that they own

  4. D.

    The paralegals lack Prompt Template Manager, which is needed to resolve related list merge fields

Show answer

Answer: A

When a user's parent page layout lacks the related list, Prompt Builder sends no related list data for that user.

  • A. Correct: no related list data is sent when the user's parent page layout lacks the list, even with Read access.
  • B. Incorrect: the preview record is a design-time test input; it doesn't restrict what resolves for users at run time.
  • C. Incorrect: Salesforce states record-level filters aren't applied to related list grounding, and here no matters appear at all.
  • D. Incorrect: Manager is an authoring permission set; running users don't need it to resolve related list data.
Question 4Prompt Engineering

At Glenavon Clinics, a prompt template grounds patient details two ways: a record merge field for Date of Birth and a flow merge field whose output text also includes the date of birth. The field is classified and field-based masking is on. In the Data 360 audit report, the date is masked where the record merge field appears but visible in the flow's text. What explains this?

  1. A.

    Field-based masking runs only after the response returns, so flow text is masked later during demasking

  2. B.

    Field-based masking supports only merge fields that reference record fields and related lists, not flow output

  3. C.

    Field-based masking needs the flow itself to be classified with a compliance category before it applies

  4. D.

    Field-based masking is disabled whenever a template contains a flow, so no fields should be masked at all

Show answer

Answer: B

Field-based masking applies only to record-field and related-list merge fields; flow output is outside its scope.

  • A. Incorrect: masking happens before the model call; demasking only restores values in the response.
  • B. Correct: field-based masking is limited to record-field and related-list merge fields.
  • C. Incorrect: classification applies to fields, and flows have no compliance category to set.
  • D. Incorrect: the record merge field in the same prompt was masked, so masking was not disabled.
Question 5Prompt Engineering

Lakemont Travel's flex prompt template generates trip itineraries. Version 4 is active and customer-facing. The prompt engineer wants to trial a reworded instruction block and a different model against real booking records, while travellers keep receiving version 4 output until the new wording is approved. How should the engineer set up the trial?

  1. A.

    Edit version 4 directly and preview it, since the edits reach users only after the next activation

  2. B.

    Deactivate version 4 during testing so that no users receive output from the half-edited template

  3. C.

    Use Save as a New Version to create version 5, change it, and preview it without activating it

  4. D.

    Use Save as a New Template to copy the template, then test the copy while the original keeps running

Show answer

Answer: C

A new, inactive version can be edited and previewed while the active version keeps serving users.

  • A. Incorrect: an active version is immutable, so version 4 cannot be edited in place at all.
  • B. Incorrect: with no active version the template becomes unavailable, which interrupts travellers.
  • C. Correct: version 5 stays inactive while version 4 serves users, and it can use its own model configuration.
  • D. Incorrect: Save as a New Template is a sensible fork elsewhere, but it is not supported for flex templates.
Question 6Prompt Engineering

Reviewing previews of a candidate-outreach template, a specialist at Garnet Staffing notices two problems. Some drafts address candidates as 'Mr.' or 'Ms.' based only on first names, and one draft quotes a salary band that differs from the requisition record merged into the prompt. Which two evaluation topics from Salesforce's guidance do these findings fall under? (Choose 2 answers.)

Choose 2.

  1. A.

    Toxicity, which checks for offensive, disrespectful, or abusive language in the response

  2. B.

    Factual accuracy, which checks whether the response correctly incorporates the grounded data

  3. C.

    Bias, which checks for assumptions such as a person's gender identity based on their name alone

  4. D.

    Relevance, which checks whether the response fits the surrounding conversation or content

  5. E.

    Consistency, which checks how much the response changes when it is regenerated unchanged

Show answer

Answer: B, C

Gender assumed from a name is a bias finding; a salary that contradicts the merged record is a factual accuracy finding.

  • A. Incorrect: toxicity covers harmful or abusive language; a name-based honorific is a bias issue.
  • B. Correct: contradicting the merged requisition data is a factual accuracy failure.
  • C. Correct: assuming gender from a name is the bias example Salesforce gives.
  • D. Incorrect: relevance is about fit with surrounding content, not these two findings.
  • E. Incorrect: consistency is about variation across regenerations, not what one draft says.
Question 7Prompt Engineering

Dunstan Mortgage grounds a Flex template with borrowers' uploaded PDF bank statements, and the model supports PDF inputs. Security requires Einstein Trust Layer protections such as masking to apply to the statement contents before anything reaches the model. The Trust Layer is configured for the org. What must the design do?

  1. A.

    Store the PDFs as classic Attachments, because the Trust Layer scans attachments before grounding

  2. B.

    Extract the needed statement text into the prompt first, because uploaded file contents bypass Trust Layer protections

  3. C.

    Nothing more, because the Trust Layer masks sensitive values inside every uploaded PDF automatically

  4. D.

    Convert each PDF into a PNG image first, because the Trust Layer applies masking to image file inputs

Show answer

Answer: B

Uploaded JPEG, PNG, and PDF files travel as binary content without Trust Layer protections; extract text into the prompt to protect it.

  • A. Incorrect: classic Attachments aren't supported for grounding, and they provide no Trust Layer scanning.
  • B. Correct: file contents go to the model as binary without Trust Layer protection, so extract the text into the prompt.
  • C. Incorrect: Salesforce states Trust Layer protections aren't applied to uploaded binary file contents.
  • D. Incorrect: PNG is also uploaded as a binary file, so its contents are equally unprotected.
Question 8Prompt Engineering

Two prompt authors at Kirkby Travel keep undoing each other's changes to a complex itinerary template. One proposes adding notes such as '/* changed tone per legal, 12 May */' inside the template body so everyone can see why each line exists. What does Salesforce's troubleshooting guidance recommend instead?

  1. A.

    Add the notes as inline comments, because Prompt Builder strips comment syntax before calling the model

  2. B.

    Put the notes inside a triple-quoted block, because text in triple quotes is excluded from the prompt

  3. C.

    Save a new version before each significant edit and keep a short record of what changed in each version

  4. D.

    Record the notes in Setup Audit Trail, which logs every edit made to a prompt template's instructions

Show answer

Answer: C

Prompt Builder doesn't support inline comments; use versions to compare changes and keep a short change record.

  • A. Incorrect: Prompt Builder does not support inline comments in the template body.
  • B. Incorrect: text in triple quotes is treated as data or context and is sent to the model.
  • C. Correct: versions plus a short change record is the documented way to document template changes.
  • D. Incorrect: Setup Audit Trail does not track creating or updating prompt templates.
Question 9Prompt Engineering

Morrow Software's outreach template includes a short sample email showing the tone and structure the team likes. The model keeps copying the sample's company name and pain point into real emails instead of using the prospect's merge field data. The prospect data is already in a triple-quoted block. How should the author structure the prompt?

  1. A.

    Put the sample in its own separate triple-quoted block labelled as an example of tone and structure

  2. B.

    Paste the sample several times so the model learns the tone and treats the content as a pattern

  3. C.

    Delete the sample, because Salesforce advises against giving the model any example text at all

  4. D.

    Merge the sample into the prospect data block so all context sits inside a single set of triple quotes

Show answer

Answer: A

Salesforce shows multiple triple-quote sections for complex prompts: one for variable data and another for a static example.

  • A. Correct: a separate, labelled triple-quote block keeps the example apart from the prospect's data.
  • B. Incorrect: repetition leads to inconsistent results and makes copying more likely.
  • C. Incorrect: Salesforce's own guidance shows static examples used to guide tone and structure.
  • D. Incorrect: one combined block blurs data and illustration, which is why the sample's details leak.
Question 10Prompt Engineering

Loxley Home Insurance's admin drafts a rollout plan for changing an active flex prompt template, version 2, that a flow and an agent both reference. Which two steps in the plan will not work as written? (Choose 2 answers.)

Choose 2.

  1. A.

    Use Save as a New Version to create version 3 and preview it while version 2 stays active

  2. B.

    Review the references modal before deactivating any version that the flow or agent uses

  3. C.

    Activate version 3 when it is approved, which makes version 3 the one active version

  4. D.

    Use Save as a New Template to fork the flex template for a pilot group of users

  5. E.

    Deactivate version 2, correct its wording in place, and then activate version 2 again

Show answer

Answer: D, E

An ever-active version can't be edited, and Save as a New Template isn't supported for flex templates.

  • A. Incorrect (works): a new version stays inactive and can be previewed while version 2 serves users.
  • B. Incorrect (works): the references modal exists to show dependencies before deactivation.
  • C. Incorrect (works): only one version can be active, so activating version 3 replaces version 2.
  • D. Correct (fails): Save as a New Template is not supported for flex prompt templates.
  • E. Correct (fails): a version that was ever active is immutable, even after deactivation.

Keep going with 660 more AGENTFORCE-SPEC questions

Free papers every day, in the real exam formats, with progress by exam domain. Unlock every paper and timed mock exam when you are ready.

AGENTFORCE-SPEC sample questions with answers (10 free) · CertifyAIx