Study FAQ
Which Snowflake history should I use to investigate an account activity event?
Also asked as 2
- How do I tell who signed in, ran a statement, or accessed a Snowflake object?
- Which history shows Snowflake logins, data access, task runs, or data loads?
Answer
Choose the history that records the event you need to explain. Use LOGIN_HISTORY for authentication attempts, QUERY_HISTORY for statement, user, and role information, and ACCESS_HISTORY for supported object access and lineage. Account Usage ACCESS_HISTORY requires Enterprise Edition or higher and appropriate access to the shared database views. Each history has its own latency, retention, and visibility.
For an investigation, start with the account, actor or object, and bounded time range. Capture a query ID when available. It can connect a statement to corresponding access records. Use grant and policy metadata for permission changes, and inspect TASK_HISTORY or load and pipe histories for the execution status of a specific scheduled or ingestion workflow. Query tags can help identify an application when the workload supplies them.
Normalize timestamps before correlating sources. If evidence is missing, check edition, coverage of the operation, time window, ingestion delay, and the monitoring role’s visibility before drawing a conclusion. Grant investigators only the relevant views.
QUERY_HISTORY · ACCESS_HISTORY · LOGIN_HISTORY · TASK_HISTORY · COPY_HISTORY · Account Usage view roles and latency
Full explanation
Monitoring Queries, Warehouses, Storage, and Account Activity
Study guide · COF-C03
Read the full explanation