Salesforce Certified Agentforce Specialist Practice Test 35
Question 340
For an original Salesforce Agentforce Specialist Spring 26 educational study scenario, consider: A support assistant calls an existing approved Flow directly through a vague prompt and fails because the agent action inputs were never defined. Select TWO complementary steps: the targeted correction and its strongest prechange validation.
- Change: Use an approved Data 360 or Agentforce Data Library retriever to supply relevant current knowledge passages at execution.
- Check: Compare test inputs, rubric or expected outputs, retrieval traces, action results and manual review of representative failures.
- Check: Inspect Flow activation, input data types, agent action binding, runtime user permissions and result or fault handling.
- Change: Expose an approved Flow as a properly configured custom agent action with mapped inputs, outputs and explicit permissions.
- Assume any active Salesforce Flow is automatically callable by every agent and always runs with unrestricted system privileges.
Explanation
Correct Answer
C:Agent actions connect reasoning decisions to permitted business operations; a Flow must be packaged and invoked through supported action configuration. Required intervention: Expose an approved Flow as a properly configured custom agent action with mapped inputs, outputs and explicit permissions.
D:Agent actions connect reasoning decisions to permitted business operations; a Flow must be packaged and invoked through supported action configuration. Evidence: Inspect Flow activation, input data types, agent action binding, runtime user permissions and result or fault handling.
Incorrect Answers
A:This option addresses a different Agentforce Specialist configuration topic (Knowledge retrieval versus static instructions) rather than the documented Custom action backed by Flow decision.
B:Check: Compare test inputs, rubric or expected outputs, retrieval traces, action results and manual review of representative failures. Agent actions connect reasoning decisions to permitted business operations; a Flow must be packaged and invoked through supported action configuration.
E:Agent actions connect reasoning decisions to permitted business operations; a Flow must be packaged and invoked through supported action configuration.
Question 341
An Agentforce Specialist is reviewing this Agentforce environment scenario: A shipping agent needs a validated pricing calculation with several constraints that cannot be expressed by the selected standard action. An unsafe shortcut would be: Give the model direct unrestricted query execution because the Apex action needs to be flexible. What should the Agentforce administrator recommend as the narrowly scoped correction? Select ONE best answer.
- Ground the prompt with approved current Salesforce record fields or merge references and explicitly distinguish supplied values from model inference.
- Choose simple Data Library retrieval for supported unstructured material or advanced Data 360 configuration when structured harmonization or custom retrieval is required.
- Give the model direct unrestricted query execution because the Apex action needs to be flexible.
- Use a supported custom Apex-backed action with typed input validation and permission-safe execution for the specialized business operation.
Explanation
Correct Answer
D:Custom Apex actions add programmatic capabilities while retaining the need for authorization, input validation and careful transaction handling.
Incorrect Answers
A:Custom Apex actions add programmatic capabilities while retaining the need for authorization, input validation and careful transaction handling.
B:Custom Apex actions add programmatic capabilities while retaining the need for authorization, input validation and careful transaction handling. Use a supported custom Apex-backed action with typed input validation and permission-safe execution for the specialized business operation.
C:Custom Apex actions add programmatic capabilities while retaining the need for authorization, input validation and careful transaction handling.
Question 342
A Agentforce environment review finds: A shipping agent needs a validated pricing calculation with several constraints that cannot be expressed by the selected standard action. The team proposes: Use a supported custom Apex-backed action with typed input validation and permission-safe execution for the specialized business operation. Which Agentforce technical principle most strongly supports the proposed response? Select ONE best answer.
- MCP and A2A address different integration patterns: tools and context exposure versus agent-to-agent task coordination.
- Safe agent behavior includes accurate failure reporting and handoff; reasoning fluency should not be mistaken for completed execution.
- Custom Apex actions add programmatic capabilities while retaining the need for authorization, input validation and careful transaction handling.
- Chunking divides larger documents into search-ready units, and excessive or insufficient segmentation can hurt context relevance.
Explanation
Correct Answer
C:Demonstrable success requires: Valid eligible requests return the expected computation or external check and invalid inputs do not change protected records.
Incorrect Answers
A:MCP and A2A address different integration patterns: tools and context exposure versus agent-to-agent task coordination. Custom Apex actions add programmatic capabilities while retaining the need for authorization, input validation and careful transaction handling.
B:This option addresses a different Agentforce Specialist configuration topic (Human escalation and recovery path) rather than the documented Custom action backed by Apex decision.
D:Chunking divides larger documents into search-ready units, and excessive or insufficient segmentation can hurt context relevance. Custom Apex actions add programmatic capabilities while retaining the need for authorization, input validation and careful transaction handling.
Question 343
The Salesforce agent team has not approved a broad agent-wide change. Available evidence indicates: A shipping agent needs a validated pricing calculation with several constraints that cannot be expressed by the selected standard action. Which evidence best tests the Agentforce diagnosis before approving a disruptive change? Select ONE best answer.
- Inspect resolved prompt preview, active record ID, merge references, field permissions and generated facts against the record.
- Review method contract, action schema, permission boundaries, error response and secure integration test results.
- Examine index readiness, source passages, paraphrased query results and ranking quality for representative questions.
- Inspect incoming message association, customer match, conversation state, approval or escalation conditions and outbound response.
Explanation
Correct Answer
B:Custom Apex actions add programmatic capabilities while retaining the need for authorization, input validation and careful transaction handling. Confirm afterward that: Valid eligible requests return the expected computation or external check and invalid inputs do not change protected records.
Incorrect Answers
A:Inspect resolved prompt preview, active record ID, merge references, field permissions and generated facts against the record. Custom Apex actions add programmatic capabilities while retaining the need for authorization, input validation and careful transaction handling.
C:Examine index readiness, source passages, paraphrased query results and ranking quality for representative questions. Custom Apex actions add programmatic capabilities while retaining the need for authorization, input validation and careful transaction handling.
D:Inspect incoming message association, customer match, conversation state, approval or escalation conditions and outbound response. Custom Apex actions add programmatic capabilities while retaining the need for authorization, input validation and careful transaction handling.
Question 344
A candidate agent response has been piloted and stakeholders require a post-change acceptance check. Original problem: A shipping agent needs a validated pricing calculation with several constraints that cannot be expressed by the selected standard action. The accountable agent owner requires evidence that outcomes are met without disrupting planned work. Which acceptance result demonstrates that the agent response meets the intended outcome? Select ONE best answer.
- The agent uses the intended current indexed documents and does not silently answer from an unrelated library.
- Identical eligibility inputs yield the same allowed action decision while compliant conversational responses remain context-aware.
- The correct current authorized state is available to the necessary subagents and stale or unverified values cannot be reused.
- Valid eligible requests return the expected computation or external check and invalid inputs do not change protected records.
Explanation
Correct Answer
D:Custom Apex actions add programmatic capabilities while retaining the need for authorization, input validation and careful transaction handling. The result must be validated using the documented agent, data or conversation context.
Incorrect Answers
A:The agent uses the intended current indexed documents and does not silently answer from an unrelated library. Custom Apex actions add programmatic capabilities while retaining the need for authorization, input validation and careful transaction handling.
B:Identical eligibility inputs yield the same allowed action decision while compliant conversational responses remain context-aware. Custom Apex actions add programmatic capabilities while retaining the need for authorization, input validation and careful transaction handling.
C:The correct current authorized state is available to the necessary subagents and stale or unverified values cannot be reused. Custom Apex actions add programmatic capabilities while retaining the need for authorization, input validation and careful transaction handling.
Question 345
A production agent change review identifies the following problem: A shipping agent needs a validated pricing calculation with several constraints that cannot be expressed by the selected standard action. Which paired Agentforce action and verification should close the review? Select ONE best answer.
- Change: Use a supported custom Apex-backed action with typed input validation and permission-safe execution for the specialized business operation. Verify: Review method contract, action schema, permission boundaries, error response and secure integration test results.
- Change: Define appropriately scoped typed variables and update or clear them at the right stages so later subagents use verified current values. Verify: Trace variable initialization, update, transition and action arguments across a representative multi-turn session.
- Change: Design an authorized Prompt Builder template grounded in permitted Salesforce context for the repeated content-generation task. Verify: Identify the output use case, intended user, record context, required permissions and whether a supported template and invocation path exist.
- Change: Enforce mandatory eligibility or state transitions with Agent Script deterministic logic while reserving contextual conversational decisions for LLM reasoning. Verify: Inspect the rule's expression, variables, order of execution and a set of boundary-case test conversations.
Explanation
Correct Answer
A:Custom Apex actions add programmatic capabilities while retaining the need for authorization, input validation and careful transaction handling. This pair links the appropriate agent response with evidence of the underlying Agentforce issue.
Incorrect Answers
B:Change: Define appropriately scoped typed variables and update or clear them at the right stages so later subagents use verified current values. Custom Apex actions add programmatic capabilities while retaining the need for authorization, input validation and careful transaction handling.
C:Change: Design an authorized Prompt Builder template grounded in permitted Salesforce context for the repeated content-generation task. Custom Apex actions add programmatic capabilities while retaining the need for authorization, input validation and careful transaction handling.
D:Change: Enforce mandatory eligibility or state transitions with Agent Script deterministic logic while reserving contextual conversational decisions for LLM reasoning.
Question 346
An Agentforce Specialist is reviewing this Agentforce environment scenario: A service team creates an Apex-backed action for an external verification API but lets arbitrary untrusted chat text pass directly into privileged queries. An unsafe shortcut would be: Give the model direct unrestricted query execution because the Apex action needs to be flexible. What should the Agentforce administrator recommend as the narrowly scoped correction? Select ONE best answer.
- Plan deployment of supported agent metadata and separately validate dependent actions, prompts, permissions, retrieval sources and channels in production.
- Use a supported custom Apex-backed action with typed input validation and permission-safe execution for the specialized business operation.
- Give the model direct unrestricted query execution because the Apex action needs to be flexible.
- Identify the actual configured agent or user execution identity and enforce object, field and action permissions at runtime.
Explanation
Correct Answer
B:Custom Apex actions add programmatic capabilities while retaining the need for authorization, input validation and careful transaction handling.
Incorrect Answers
A:Custom Apex actions add programmatic capabilities while retaining the need for authorization, input validation and careful transaction handling.
C:Custom Apex actions add programmatic capabilities while retaining the need for authorization, input validation and careful transaction handling. Use this instead: Use a supported custom Apex-backed action with typed input validation and permission-safe execution for the specialized business operation.
D:Custom Apex actions add programmatic capabilities while retaining the need for authorization, input validation and careful transaction handling. Discriminating evidence: Review method contract, action schema, permission boundaries, error response and secure integration test results.
Question 347
A Agentforce environment review finds: A service team creates an Apex-backed action for an external verification API but lets arbitrary untrusted chat text pass directly into privileged queries. The team proposes: Use a supported custom Apex-backed action with typed input validation and permission-safe execution for the specialized business operation. Which Agentforce technical principle most strongly supports the proposed response? Select ONE best answer.
- Custom Apex actions add programmatic capabilities while retaining the need for authorization, input validation and careful transaction handling.
- The running security context controls what an agent's actions can read or change; prompt wording is not an access-granting mechanism.
- Focused subagent boundaries improve action selection and context management while preserving the common agent conversation entry point.
- Prompt template metadata, its runtime dependencies and the active version must align across environments to reproduce expected behavior.
Explanation
Correct Answer
A:Demonstrable success requires: Valid eligible requests return the expected computation or external check and invalid inputs do not change protected records.
Incorrect Answers
B:This option addresses a different Agentforce Specialist configuration topic (Agent runtime identity and security context) rather than the documented Custom action backed by Apex decision.
C:Focused subagent boundaries improve action selection and context management while preserving the common agent conversation entry point. Custom Apex actions add programmatic capabilities while retaining the need for authorization, input validation and careful transaction handling.
D:This option addresses a different Agentforce Specialist configuration topic (Prompt template deployment and activation) rather than the documented Custom action backed by Apex decision.
Question 348
The Salesforce agent team has not approved a broad agent-wide change. Available evidence indicates: A service team creates an Apex-backed action for an external verification API but lets arbitrary untrusted chat text pass directly into privileged queries. Which evidence best tests the Agentforce diagnosis before approving a disruptive change? Select ONE best answer.
- Compare stored field values, rendered expressions and conversation output for several identities including a missing-value case.
- Examine source selection, library setup, indexing progress, retriever availability, agent binding and a known-answer query.
- Compare source sections, produced chunks, retained titles, contextual adjacency and retrieval hits for precise user queries.
- Review method contract, action schema, permission boundaries, error response and secure integration test results.
Explanation
Correct Answer
D:Custom Apex actions add programmatic capabilities while retaining the need for authorization, input validation and careful transaction handling. This check evaluates the actual agent, access or automation-lifecycle issue before a risky agent-wide change.
Incorrect Answers
A:Compare stored field values, rendered expressions and conversation output for several identities including a missing-value case. Custom Apex actions add programmatic capabilities while retaining the need for authorization, input validation and careful transaction handling.
B:Examine source selection, library setup, indexing progress, retriever availability, agent binding and a known-answer query. Custom Apex actions add programmatic capabilities while retaining the need for authorization, input validation and careful transaction handling.
C:Compare source sections, produced chunks, retained titles, contextual adjacency and retrieval hits for precise user queries. Custom Apex actions add programmatic capabilities while retaining the need for authorization, input validation and careful transaction handling.
Question 349
A candidate agent response has been piloted and stakeholders require a post-change acceptance check. Original problem: A service team creates an Apex-backed action for an external verification API but lets arbitrary untrusted chat text pass directly into privileged queries. The accountable agent owner requires evidence that outcomes are met without disrupting planned work. Which acceptance result demonstrates that the agent response meets the intended outcome? Select ONE best answer.
- The agent answers permitted questions while ignoring instructions embedded in untrusted documents to bypass policy or expose records.
- Emails respond to the correct verified customer context without unauthorized cross-thread data leakage.
- Draft content reflects the correct authorized customer's current context and flags missing data rather than fabricating account details.
- Valid eligible requests return the expected computation or external check and invalid inputs do not change protected records.
Explanation
Correct Answer
D:Custom Apex actions add programmatic capabilities while retaining the need for authorization, input validation and careful transaction handling. The approved implementation step was: Use a supported custom Apex-backed action with typed input validation and permission-safe execution for the specialized business operation.
Incorrect Answers
A:This option addresses a different Agentforce Specialist configuration topic (Prompt injection and untrusted retrieval boundaries) rather than the documented Custom action backed by Apex decision.
B:Emails respond to the correct verified customer context without unauthorized cross-thread data leakage. Custom Apex actions add programmatic capabilities while retaining the need for authorization, input validation and careful transaction handling.
C:Draft content reflects the correct authorized customer's current context and flags missing data rather than fabricating account details. Custom Apex actions add programmatic capabilities while retaining the need for authorization, input validation and careful transaction handling.
Question 350
For an original Salesforce Agentforce Specialist Spring 26 educational study scenario, consider: A service team creates an Apex-backed action for an external verification API but lets arbitrary untrusted chat text pass directly into privileged queries. Select TWO complementary steps: the targeted correction and its strongest prechange validation.
- Change: Define appropriately scoped typed variables and update or clear them at the right stages so later subagents use verified current values.
- Give the model direct unrestricted query execution because the Apex action needs to be flexible.
- Check: Inspect start-agent classification, route traces, available actions and ambiguous utterance tests across neighboring topics.
- Check: Review method contract, action schema, permission boundaries, error response and secure integration test results.
- Change: Use a supported custom Apex-backed action with typed input validation and permission-safe execution for the specialized business operation.
Explanation
Correct Answer
D:Custom Apex actions add programmatic capabilities while retaining the need for authorization, input validation and careful transaction handling. Acceptance: Valid eligible requests return the expected computation or external check and invalid inputs do not change protected records.
E:Custom Apex actions add programmatic capabilities while retaining the need for authorization, input validation and careful transaction handling. Evidence: Review method contract, action schema, permission boundaries, error response and secure integration test results.
Incorrect Answers
A:Change: Define appropriately scoped typed variables and update or clear them at the right stages so later subagents use verified current values. A service team creates an Apex-backed action for an external verification API but lets arbitrary untrusted chat text pass directly into privileged queries.
B:Custom Apex actions add programmatic capabilities while retaining the need for authorization, input validation and careful transaction handling.
C:Check: Inspect start-agent classification, route traces, available actions and ambiguous utterance tests across neighboring topics. Custom Apex actions add programmatic capabilities while retaining the need for authorization, input validation and careful transaction handling.