ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 67 - ADA-C01 discussion

Report
Export

Review the output of the SHOW statement below which displays the current grants on the table DB1. S1. T1:

This statement is executed:

USE ROLE ACCOUNTADMIN;

DROP ROLE A;

What will occur?

A.
The table object DB1. S1. T1 will be dropped.
Answers
A.
The table object DB1. S1. T1 will be dropped.
B.
The OWNERSHIP privilege on table DB1. S1. T1 will be transferred to the ACCOUNTADMIN role.
Answers
B.
The OWNERSHIP privilege on table DB1. S1. T1 will be transferred to the ACCOUNTADMIN role.
C.
The SELECT privilege on table DB1. S1. T1 to role B will be shown as GRANTED_BY the role ACCOUNTADMIN.
Answers
C.
The SELECT privilege on table DB1. S1. T1 to role B will be shown as GRANTED_BY the role ACCOUNTADMIN.
D.
The SELECT privileges for roles B and C will remain.
Answers
D.
The SELECT privileges for roles B and C will remain.
Suggested answer: D

Explanation:

Dropping role A does not affect the SELECT privileges granted to roles B and C on the table DB1.S1.T1. According to theSnowflake documentation, dropping a role revokes all privileges granted to the role, but does not revoke any privileges granted by the role. Therefore, the OWNERSHIP privilege on the table DB1.S1.T1 will be revoked from role A, but the SELECT privileges granted by role A to role B and by role B to role C will remain. The GRANTED_BY column will still show the original grantor of the privilege, not the ACCOUNTADMIN role.

asked 23/09/2024
Yenziwe Yengwa
43 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first