Praxis Academy
Home › Agentforce Specialist › Testing, Deployment, and Maintenance

Agentforce Specialist practice questions: Testing, Deployment, and Maintenance

Testing, Deployment, and Maintenance is 10% of the Salesforce Certified Agentforce Specialist exam. It covers Testing Center, sandboxes, deployment and activation. Try these 10 free questions, then open each answer to see why every option is right or wrong.

01

Northwind Freight is about to launch an AI agent that answers questions about parcel tracking and delivery delays. QA must check the agent's answers against several hundred scripted scenarios before go-live, in a way that can be rerun after every change and needs no manual review. What should the team do?

  1. Release the agent to a pilot group of customers, gather reports of wrong answers for a few weeks, and then adjust the agent's instructions by hand.
  2. Upload a batch of test cases with inputs and expected outcomes in Testing Center and run them to get automated pass/fail results for each case.
  3. Have experienced QA analysts chat with the agent in the builder's preview panel and sign off on every conversation path one at a time.
Show answer

Answer: B

A. Release the agent to a pilot group of customers, gather reports of wrong answers for a few weeks, and then adjust the agent's instructions by hand.A pilot happens after launch, so customers see the wrong answers first, and the feedback is neither controlled nor repeatable.
B. Upload a batch of test cases with inputs and expected outcomes in Testing Center and run them to get automated pass/fail results for each case. ✓Correct. A batch test set with expected results is executed automatically and returns objective pass/fail metrics for every case, and it can be rerun after each change.
C. Have experienced QA analysts chat with the agent in the builder's preview panel and sign off on every conversation path one at a time.Manual preview testing depends on human judgment, does not scale to hundreds of cases and is hard to repeat consistently for regression checks.

Why: Batch testing in Testing Center runs a defined set of utterances with expected outcomes and scores each one automatically. That makes pre-launch validation repeatable, objective and scalable to hundreds of scenarios.

02

A bakery chain built an agent in a sandbox to answer rewards balance questions using an Apex action that calls an external loyalty API. After deploying the agent, Apex class and permission sets to production with a metadata deployment, the agent does not respond at all. The Apex action is active and the API is reachable. What is the most likely missing step?

  1. Selecting a 'Production Ready' checkbox on the agent in the sandbox before deploying.
  2. Activating the agent in production, because deployment does not carry over the agent's active status.
  3. Uploading a new authentication certificate for the external API and updating the named credential.
Show answer

Answer: B

A. Selecting a 'Production Ready' checkbox on the agent in the sandbox before deploying.Agents have no 'Production Ready' checkbox.
B. Activating the agent in production, because deployment does not carry over the agent's active status. ✓Correct. Deployment does not preserve activation, so the agent must be activated in production.
C. Uploading a new authentication certificate for the external API and updating the named credential.The API is reachable and the agent does not respond at all, which points to an inactive agent rather than authentication.

Why: Agents arrive in the target org inactive no matter how they were deployed. They must be activated in production before they can handle conversations.

03

A telehealth provider wants Testing Center to check whether its patient support agent follows an internal 'Supportive Conversation Framework' before suggesting any care resources. The quality team must verify both emotional sensitivity and that every step of the framework is followed. Where should the specialist implement an LLM-as-judge evaluation for this?

  1. Change the scoring thresholds of the built-in Coherence evaluation so it penalizes responses lacking sensitivity or skipping steps.
  2. Turn on the built-in instruction adherence evaluation and map each framework step to the existing subagent instructions.
  3. Create a custom evaluation with a purpose-written prompt that defines the framework's criteria for the LLM judge.
Show answer

Answer: C

A. Change the scoring thresholds of the built-in Coherence evaluation so it penalizes responses lacking sensitivity or skipping steps.Coherence assesses grammar and logical flow and cannot be repurposed to judge empathy or a proprietary framework.
B. Turn on the built-in instruction adherence evaluation and map each framework step to the existing subagent instructions.Built-in adherence checks instructions in general; it does not define the framework's specific, subjective criteria.
C. Create a custom evaluation with a purpose-written prompt that defines the framework's criteria for the LLM judge. ✓Correct. A custom evaluation with a tailored judge prompt can score both sensitivity and framework adherence.

Why: Custom evaluations let you write the judging prompt yourself, so the LLM judge scores responses against your organization's own criteria such as empathy and required framework steps.

04

A surfboard retailer wants its Agentforce Service Agent on its Experience Cloud site to help logged-in customers with order tracking and returns. Each customer's loyalty number is already captured in a pre-chat variable and must reach the agent when the Enhanced Chat session starts. What is a required step to connect the agent to the site?

  1. Add the Enhanced Chat messaging component to the site page, configured for the agent's messaging deployment, and map the loyalty number pre-chat variable to the session.
  2. Build a custom REST integration between the site and the agent to send the loyalty number when the session starts.
  3. Create an Omni-Channel flow with a pre-chat step that collects the loyalty number before routing to the agent.
Show answer

Answer: A

A. Add the Enhanced Chat messaging component to the site page, configured for the agent's messaging deployment, and map the loyalty number pre-chat variable to the session. ✓Correct. The standard messaging component plus pre-chat mapping connects the agent and passes the loyalty number.
B. Build a custom REST integration between the site and the agent to send the loyalty number when the session starts.A custom integration is unnecessary because the standard component already passes pre-chat data.
C. Create an Omni-Channel flow with a pre-chat step that collects the loyalty number before routing to the agent.An Omni-Channel flow routes the session but does not place the chat on the site.

Why: The site needs the Enhanced Chat component for the agent's messaging deployment. It renders the chat and passes mapped pre-chat values into the session.

05

What are the key steps to let employees talk to an Agentforce agent directly in the company's Slack workspace?

  1. Turn on the default Agentforce Slack channel and assign user access.
  2. Set up the Slack connection for the agent, install the agent in Slack and then give the right Slack users access.
  3. Create a Slack workflow that calls the Agentforce API through webhooks.
Show answer

Answer: B

A. Turn on the default Agentforce Slack channel and assign user access.There is no default Agentforce Slack channel; the connection and installation must be configured.
B. Set up the Slack connection for the agent, install the agent in Slack and then give the right Slack users access. ✓Correct. Connect, install and assign access are the standard steps.
C. Create a Slack workflow that calls the Agentforce API through webhooks.A webhook workflow is a custom integration, not the standard way to deploy an agent to Slack.

Why: Deploying an agent to Slack requires connecting Salesforce to Slack for the agent, installing the agent in the workspace and granting access to the intended users.

06

A company is deploying a Service Agent on its customer portal (an Experience Cloud site) through a messaging widget, and must pass the member number from a pre-chat form to the agent. Which component routes the incoming messaging sessions from the portal to the agent?

  1. A MuleSoft API gateway that creates a secure tunnel between the portal and the agent.
  2. A messaging web component for agents placed on the portal page.
  3. An Omni-Channel flow that receives the messaging session and routes it to the Service Agent.
Show answer

Answer: C

A. A MuleSoft API gateway that creates a secure tunnel between the portal and the agent.MuleSoft is not needed for standard messaging.
B. A messaging web component for agents placed on the portal page.The web component displays the chat, but it does not route the session to the agent.
C. An Omni-Channel flow that receives the messaging session and routes it to the Service Agent. ✓Correct. The Omni-Channel flow routes the session to the Service Agent.

Why: Messaging sessions reach the agent through Omni-Channel routing, and an Omni-Channel flow directs them to the Service Agent. Pre-chat values such as the member number are passed into the session as variables.

07

A developer at a utility company previews an Agent Script agent locally with sf agent preview and notices that conversations that should hand off to a human never escalate. The escalation logic looks correct. How should she test escalation?

  1. Run the preview again with --use-live-actions, because escalation only runs when actions are live.
  2. Add a mock output for @utils.escalate in the script, because simulated previews need a mocked result for utilities.
  3. Publish the agent and test escalation on the target endpoint, because local previews do not support escalation.
Show answer

Answer: C

A. Run the preview again with --use-live-actions, because escalation only runs when actions are live.Live mode runs real actions, but CLI and VS Code previews still do not support escalation.
B. Add a mock output for @utils.escalate in the script, because simulated previews need a mocked result for utilities.Mocking does not apply here; the preview environment does not support escalation at all.
C. Publish the agent and test escalation on the target endpoint, because local previews do not support escalation. ✓Correct. Previews in VS Code or the CLI do not support escalation, so it must be tested on the published agent's endpoint.

Why: Agentforce DX previews (CLI and VS Code) are useful for fast iteration, but they don't strictly enforce connection endpoint configuration and don't support escalation. Test escalation after publishing, on the channel where the agent is deployed.

08

A developer wants to preview a local Agent Script agent in live mode so the agent calls the real flows and Apex classes in his development org. What must be in place?

  1. Local changes to those flows and classes must be deployed to the org, and default_agent_user must be set to a real user.
  2. The agent must be activated in the org, because live mode only works with activated published agents.
  3. Every action must have a mock output defined, because live mode falls back to mocks when an action fails.
Show answer

Answer: A

A. Local changes to those flows and classes must be deployed to the org, and default_agent_user must be set to a real user. ✓Correct. Live mode uses the org's actual Apex, flows, prompt templates and users, so local changes must be deployed and a real agent user set.
B. The agent must be activated in the org, because live mode only works with activated published agents.Live preview works with a local authoring bundle; activation is not required to preview it in live mode.
C. Every action must have a mock output defined, because live mode falls back to mocks when an action fails.Mocks belong to simulated mode; live mode runs the real actions.

Why: Simulated mode mocks all actions using only the Agent Script file, which is safe when backend code isn't ready. Live mode runs the real Apex classes, flows and prompt templates in the org, so deploy local changes first and set default_agent_user to a real user.

09

Before go-live, the service director of a parcel company wants each agent test run to report how long the agent takes to reply to every test utterance. Which metric should be included in the test spec?

  1. coherence, because it measures how smoothly and quickly the agent's response is delivered.
  2. conciseness, because shorter responses are scored higher and therefore reflect faster replies.
  3. output_latency_milliseconds, which returns the time from sending the request until the response is received.
Show answer

Answer: C

A. coherence, because it measures how smoothly and quickly the agent's response is delivered.Coherence measures whether the response is easy to understand and free of grammatical errors, not speed.
B. conciseness, because shorter responses are scored higher and therefore reflect faster replies.Conciseness evaluates brevity of content, not the time until the response arrives.
C. output_latency_milliseconds, which returns the time from sending the request until the response is received. ✓Correct. This metric reports response latency in milliseconds for each test case.

Why: Agent test metrics include coherence, completeness, conciseness and output_latency_milliseconds. Quality metrics judge the response content, while latency measures how long the agent takes to respond.

10

A moving company's agent should handle 'yes, go ahead' correctly only when the previous turn offered to reschedule a move. QA wants a test that checks this second-turn behavior without rebuilding the first turn each time. What should the test case include?

  1. A contextVariables entry named previous_turn that holds the text of the agent's earlier reschedule offer.
  2. A conversationHistory section with the earlier user and agent messages, with the agent entry including its topic.
  3. An expectedOutcome that says the agent must remember the reschedule offer from an earlier session.
Show answer

Answer: B

A. A contextVariables entry named previous_turn that holds the text of the agent's earlier reschedule offer.contextVariables pass values such as MessagingSession fields; they are not the way to supply prior conversation turns.
B. A conversationHistory section with the earlier user and agent messages, with the agent entry including its topic. ✓Correct. conversationHistory supplies prior role/message pairs for multi-turn tests, and agent entries also require a topic.
C. An expectedOutcome that says the agent must remember the reschedule offer from an earlier session.expectedOutcome describes what the response should be; it does not provide the earlier turns the agent needs.

Why: Test specs support multi-turn testing through conversationHistory, a list of prior user and agent messages. This lets a test check how the agent handles a follow-up utterance in context, such as a confirmation.

Find out if you're ready to pass

Take the free Agentforce Specialist diagnostic: 20 questions, no account needed. Then unlock all 300 questions, full practice exams and the study guide.

Start the free diagnosticSee plans

Other sections of this exam