ADA-C01 exam dumps

ADA-C01 practice question 53 of 565

SnowPro® Advanced: Administrator. Professional level, Snowflake. Free question with the correct answer and a full explanation.

ADA-C01 Question 53

Select 2Monitor granted privileges to users and roles, and on objects

A Snowflake security administrator must validate whether the role ANALYST_READONLY can currently query data in the FINANCE_DB database, and also determine whether a specific user, JLEE, inherits that access through role grants. The administrator wants the most direct SQL commands to inspect both the privileges granted on the database and the role hierarchy affecting the user. Which TWO commands should the administrator use?

  1. A

    SHOW GRANTS ON DATABASE FINANCE_DB;

  2. B

    SHOW GRANTS TO ROLE ANALYST_READONLY;

  3. C

    SHOW ROLES LIKE 'ANALYST_READONLY';

  4. D

    SHOW GRANTS TO USER JLEE;

  5. E

    DESCRIBE DATABASE FINANCE_DB;

Show answer and explanation

Correct answers: A, D

Explanation

To monitor granted privileges in Snowflake, administrators commonly use SHOW GRANTS variants depending on the inspection target: ON to see who has privileges on an object, TO ROLE to see what a role has been granted, and TO USER to see which roles a user holds. In this scenario, the requirement is twofold: inspect grants on the FINANCE_DB object itself and verify whether JLEE inherits access through role assignment. SHOW GRANTS ON DATABASE FINANCE_DB directly answers the object-privilege portion, while SHOW GRANTS TO USER JLEE confirms which roles are assigned to the user. A role such as ANALYST_READONLY can only enable querying if it has the necessary privileges in the chain, typically including USAGE on the database and schema plus SELECT on tables or views. Snowflake documentation for access control and SHOW GRANTS statements supports using these commands to audit grants to users, roles, and objects.

  • A. Correct.

    Correct. SHOW GRANTS ON DATABASE FINANCE_DB returns the privileges granted directly on the database object, including which roles have privileges such as USAGE, OWNERSHIP, or imported privileges where applicable. This is the most direct way to inspect who has been granted access on that specific object.

  • B. Incorrect.

    Incorrect. SHOW GRANTS TO ROLE ANALYST_READONLY lists privileges granted to the role, as well as roles granted to the role, which is useful for reviewing the role overall. However, by itself it does not directly answer both parts of the scenario because the administrator also needs to determine whether the specific user JLEE inherits access. It is useful, but not sufficient for the combined requirement when only two commands are being selected.

  • C. Incorrect.

    Incorrect. SHOW ROLES LIKE 'ANALYST_READONLY' only confirms that the role exists and returns basic metadata about matching roles. It does not show object privileges granted to the role or user-to-role inheritance.

  • D. Correct.

    Correct. SHOW GRANTS TO USER JLEE returns roles granted to the user. This allows the administrator to verify whether JLEE has been assigned ANALYST_READONLY directly or through granted roles visible in the user's grants, which is necessary to determine inherited access from role assignments.

  • E. Incorrect.

    Incorrect. DESCRIBE DATABASE FINANCE_DB returns database properties and metadata such as retention settings and other attributes, not the access control grants on the object. It is commonly confused with grant inspection, but it is not a privilege-monitoring command.

Timed practice exam

Take a ADA-C01 practice test under exam conditions

65 questions in 115 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam