Free Salesforce Agentforce Specialist practice — 6 questions on AI Agents, with explanations. No sign-up.
Full 12-question mixed test →
Question 1 of 6 · AI Agents
A financial services company uses an Agentforce Agent to process loan applications. The agent must invoke a Salesforce Flow to calculate credit scores, then call an external API to verify employment, and finally update the Application record. The agent occasionally fails when the external API times out after 25 seconds. Which solution ensures the agent completes the workflow reliably while maintaining data consistency?
Splitting into two agents with Platform Event coordination is the correct architecture pattern. The first agent handles synchronous Salesforce operations (Flow execution, record updates) ensuring immediate data consistency. The second agent handles the external API call asynchronously, with Platform Events providing durable messaging between agents. This pattern isolates timeout failures to the external integration without blocking the primary workflow, and Platform Events provide guaranteed delivery and retry capabilities.
Question 2 of 6 · AI Agents
An Agentforce Agent is configured with 8 Topics covering different product categories. Users report that the agent frequently misroutes inquiries about 'wireless keyboards' to the 'Computer Accessories' Topic instead of the 'Keyboards & Mice' Topic, despite both Topics having detailed classification instructions. What is the MOST effective way to improve Topic routing accuracy?
Adding explicit positive examples in the correct Topic and negative examples in the competing Topic directly addresses the classification confusion. Agentforce uses the Topic instructions, including examples, as context for the LLM during intent routing. Positive examples ('wireless keyboards' specifically) strengthen the 'Keyboards & Mice' Topic signal, while negative examples in 'Computer Accessories' explicitly exclude the overlapping category, creating clearer boundaries between Topics. This is the standard pattern for resolving Topic routing ambiguity.
Question 3 of 6 · AI Agents
A healthcare provider's Agentforce Agent allows patients to schedule appointments. The agent must access a custom object 'Provider_Schedule__c' with field-level security restricting certain providers' schedules to internal staff only. When patients interact with the agent, they should only see available slots for their insurance-approved providers. Which configuration ensures proper data access control?
System Context with custom Apex filtering is the correct approach for this security requirement. The agent needs to access restricted schedule data (bypassing field-level security) but must still enforce business logic about which records patients can see. By running in System Context, the agent can read all Provider_Schedule__c records including restricted fields. The custom Apex action then implements the insurance-eligibility business rule to filter records appropriately before returning results. This separates technical security (FLS) from business logic (insurance matching), which is the recommended pattern for complex security scenarios.
Question 4 of 6 · AI Agents
An Agentforce Agent uses a custom Apex action that queries Contact records and returns a List<Contact> to display customer history. During testing with a high-volume customer database, the agent fails with 'Exceeded maximum response size' errors when customers have more than 50 related contacts. The business requires showing all contacts. What is the correct solution?
Pagination is the correct architectural pattern for handling large result sets in agent actions. By adding 'limitResults' and 'offsetResults' input parameters, the agent can request contacts in manageable chunks of 50 records per call. The action returns metadata (total count, current page) allowing the agent to inform the user ('Showing 50 of 150 contacts') and offer to load more. This respects the response size limits while still providing complete data access. Pagination is a standard pattern for Agentforce actions dealing with large datasets.
Question 5 of 6 · AI Agents
A company's Agentforce Agent is integrated with Einstein Trust Layer for grounding. The agent assists sales reps with competitive intelligence by answering questions about competitor products. Sales leadership is concerned that the agent occasionally provides outdated competitor information from old Knowledge articles. The Knowledge base is updated weekly with fresh competitive research. Which configuration ensures the agent always uses the most current information?
Adding a date-based instruction in the Topic configuration directly tells the LLM to filter grounding results by article recency during retrieval. When the agent performs grounding searches via Einstein Trust Layer, the instruction becomes part of the retrieval prompt, causing the system to prioritize or exclusively use recent articles. This is the simplest and most direct method that leverages the agent's natural language understanding to apply business rules (recency requirements) to grounding queries. The '30 days' window provides buffer beyond the weekly update cycle.
Question 6 of 6 · AI Agents
An Agentforce Agent handles customer service inquiries and uses a Topic to process returns. The Topic includes an Action that calls an external REST API to generate a return shipping label. After the label is created, the agent must store the tracking number in a custom field 'Return_Tracking__c' on the Case object. The API returns JSON: {'trackingNumber':'1Z999AA10123456784','labelUrl':'https://...'} How should the agent extract and store the tracking number?
Using native agent action chaining with variable mapping is the correct declarative approach. The external API action's output can be configured to extract specific JSON fields (trackingNumber) into a variable within the Topic context. A subsequent Update Record action then references that variable to populate Case.Return_Tracking__c. This approach uses Agentforce's built-in capabilities without custom code, maintains the agent's understanding of the workflow (for conversation continuity), and keeps the operation synchronous so the agent confirms the tracking number was stored before responding to the customer.
Ready for the real thing?
The full course: two full-length practice tests, video lessons for every exam domain, hands-on labs and detailed explanations.
$199.99$34.99 with code FREETEST33 — valid through September 1.