ExamGecko
Question list
Search
Search

Question 259 - SnowPro Core discussion

Report
Export

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.)

A.
grant USAGE on all tables in schema DB1.SCHEMA to role MYROLE;
Answers
A.
grant USAGE on all tables in schema DB1.SCHEMA to role MYROLE;
B.
grant USAGE on future tables in schema DB1.SCHEMA to role MYROLE;
Answers
B.
grant USAGE on future tables in schema DB1.SCHEMA to role MYROLE;
C.
grant SELECT on all tables in schema DB1.SCHEMA to role MYROLE;
Answers
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;
Answers
D.
grant SELECT on future tables in schema DB1.SCHEMA to role MYROLE;
E.
grant SELECT on all tables in database DB1 to role MYROLE;
Answers
E.
grant SELECT on all tables in database DB1 to role MYROLE;
F.
grant SELECT on future tables in database DB1 to role MYROLE;
Answers
F.
grant SELECT on future tables in database DB1 to role MYROLE;
Suggested answer: C, D

Explanation:

To grant a role the privilege to select data from all current and future tables in a schema, two separate commands are needed.The first command grants theSELECTprivilege on all existing tables within the schema, and the second command grants theSELECTprivilege on all tables that will be created in the future within the same schema.

asked 23/09/2024
Paul A
38 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first