A user calls a Cortex Agent whose tools include a semantic view the user's role cannot read. What happens?
- Exam domain
- Gen AI in Snowflake: access and governance
- Difficulty
- Medium
- In this mock
- 5 questions on this domainPractise this domain
Why A is the answer
The run can continue with the tools the role can access
Snowflake says permissions come from the caller's context. If the caller's role cannot use a configured tool, the run can continue with the tools it can access.
Remember: Agents run with the caller's rights.
In detail
- Caller's role decides.
- No privilege escalation.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. The run can continue with the tools the role can accessRight
Agents run with the caller's rights.
B. The agent reads the view anyway with the owner's rightsWrong
Agents do not bypass the caller's permissions.
C. Snowflake copies the view to the user's schema, so the agent can read it from thereWrong
Snowflake does not copy objects to work around access.
D. The agent is deletedWrong
Nothing is deleted.
Use case
An illustrative scenario, not a real incident.
Illustrative: a sales rep gets answers from documents but not from the finance view their role cannot see.
See it in different ways
sequenceDiagram participant P0 as User role participant P1 as Cortex Agent participant P2 as Semantic view P0->>P1: question P1->>P2: no access for this role P1-->>P0: answer from allowed tools
How to read this chart
- 1. User role sends "question" to Cortex Agent.
- 2. Cortex Agent sends "no access for this role" to Semantic view.
- 3. User role gets a reply from Cortex Agent: "answer from allowed tools".
flowchart TD
Q{"Does the caller's role allow it?"}
Q -->|"Yes"| A0["Tool runs"]
Q -->|"No"| A1["Continue without it"]How to read this chart
- At "Does the caller's role allow it?": if "Yes", go to "Tool runs"; if "No", go to "Continue without it".