Which roles let a user call a Cortex Agent, along with privileges on the agent and its tools' objects?
- Exam domain
- Gen AI in Snowflake: access and governance
- Difficulty
- Medium
- In this mock
- 5 questions on this domainPractise this domain
Why B is the answer
SNOWFLAKE.CORTEX_USER or SNOWFLAKE.CORTEX_AGENT_USER
Snowflake documents that calling an agent needs the CORTEX_USER or CORTEX_AGENT_USER database role, privileges on the agent object, and privileges on the objects its tools use.
Remember: Role, agent and tool privileges.
In detail
- Database role, agent privilege, tool privileges.
- All three are needed.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. SYSADMIN onlyWrong
SYSADMIN is not the documented requirement.
B. SNOWFLAKE.CORTEX_USER or SNOWFLAKE.CORTEX_AGENT_USERRight
Role, agent and tool privileges.
C. Any role that owns a warehouse, since agents bill compute to itWrong
Owning a warehouse does not grant agent access.
D. PUBLIC is always enoughWrong
PUBLIC does not carry these privileges by default.
Use case
An illustrative scenario, not a real incident.
Illustrative: a support team gets CORTEX_AGENT_USER plus usage on one agent and its search service.
See it in different ways
mindmap
root(("Calling an agent"))
n1["Role"]
n2["CORTEX_USER or CORTEX_AGENT_USER"]
n3["Agent"]
n4["Usage on the agent"]
n5["Tools"]
n6["Access to their objects"]How to read this chart
- The centre is "Calling an agent".
- "Role" covers "CORTEX_USER or CORTEX_AGENT_USER".
- "Agent" covers "Usage on the agent".
- "Tools" covers "Access to their objects".
flowchart LR S0["Grant the database role"] --> S1["Grant usage on the agent"] --> S2["Grant tool objects"]
How to read this chart
- Read it in order: Grant the database role, then Grant usage on the agent, then Grant tool objects.