nerdexam
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)
  • A
    3% (1)
  • B
    10% (4)
  • C
    79% (31)
  • E
    3% (1)
  • F
    5% (2)

Community Discussion

No community discussion yet for this question.

Full COF-R02 Practice