Snowflake
COF-R02 · Question #326
Which commands should be used to grant the privilege allowing a role to select data from all current tables and any tables that will be created later in a schema? (Choose two.)
The correct answer is C. grant SELECT on all tables in schema DB1.SCHEMA to role MYROLE; D. grant SELECT on future tables in schema DB1.SCHEMA to role MYROLE. See the full explanation below for the reasoning.
Question
Which commands should be used to grant the privilege allowing a role to select data from all current tables and any tables that will be created later in a schema? (Choose two.)
Options
- Agrant USAGE on all tables in schema DB1.SCHEMA to role MYROLE;
- Bgrant USAGE on future tables in schema DB1.SCHEMA to role MYROLE;
- Cgrant SELECT on all tables in schema DB1.SCHEMA to role MYROLE;
- Dgrant SELECT on future tables in schema DB1.SCHEMA to role MYROLE;
- Egrant SELECT on all tables in database DB1 to role MYROLE;
- Fgrant SELECT on future tables in database DB1 to role MYROLE;
How the community answered
(39 responses)- A3% (1)
- B10% (4)
- C79% (31)
- E3% (1)
- F5% (2)
Community Discussion
No community discussion yet for this question.