A Cortex Agent must call an internal pricing service. What is the documented way to add that logic?
- Exam domain
- Agents with Cortex Agents
- Difficulty
- Medium
- In this mock
- 5 questions on this domainPractise this domain
Why C is the answer
Add a custom tool backed by a stored procedure or UDF
Snowflake lists custom tools as stored procedures and user-defined functions that implement your own business logic or call backend systems.
Remember: Custom logic as procedures or UDFs.
In detail
- Custom tools: procedures and UDFs.
- Keep logic in code.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Paste the pricing rules into the agent's nameWrong
A name is not logic.
B. Store the rules in a Cortex Search service, which runs them as codeWrong
Search returns text; it does not execute code.
C. Add a custom tool backed by a stored procedure or UDFRight
Custom logic as procedures or UDFs.
D. Ask the agent to guess pricesWrong
Guessing prices is unacceptable.
Use case
An illustrative scenario, not a real incident.
Illustrative: a quoting agent calls a procedure that reads the live price list.
See it in different ways
sequenceDiagram participant P0 as Agent participant P1 as Stored procedure participant P2 as Pricing service P0->>P1: get_price sku P1->>P2: call P2-->>P1: price P1-->>P0: result
How to read this chart
- 1. Agent sends "get_price sku" to Stored procedure.
- 2. Stored procedure sends "call" to Pricing service.
- 3. Stored procedure gets a reply from Pricing service: "price".
- 4. Agent gets a reply from Stored procedure: "result".
mindmap
root(("Tools"))
n1["Built in"]
n2["Cortex Analyst"]
n3["Cortex Search"]
n4["Code execution"]
n5["Custom"]
n6["Stored procedures"]
n7["UDFs"]
n8["External"]
n9["MCP connectors"]How to read this chart
- The centre is "Tools".
- "Built in" covers "Cortex Analyst", "Cortex Search", "Code execution".
- "Custom" covers "Stored procedures", "UDFs".
- "External" covers "MCP connectors".