Which of the following ACCOUNT_USAGE views should a security auditor query to determine the specific columns that were projected (returned) in a SELECT query executed against a sensitive table, and NOT just that the table was accessed?
- A. ACCOUNT_USAGE.LOGIN_HISTORY
- B. ACCOUNT_USAGE.ACCESS_HISTORY✓ Correct
- C. ACCOUNT_USAGE.QUERY_HISTORY
- D. ACCOUNT_USAGE.OBJECT_DEPENDENCIES
Explanation
ACCESS_HISTORY (available on Business Critical and higher) records the base objects accessed by each query, including the specific columns that were read (projected), not just the table. It captures direct object access and lineage down to the column level, making it the correct view for this use case. QUERY_HISTORY records query text and metadata (execution time, bytes scanned, etc.) but does not enumerate which specific columns were accessed. LOGIN_HISTORY tracks authentication events, not data access. OBJECT_DEPENDENCIES tracks compile-time dependencies between objects (e.g., views referencing tables), not runtime column-level access.