Exam SnowPro Core All QuestionsBrowse all questions from this exam
Question 308

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

    Correct Answer: C, D

    To grant a role the privilege to select data from all current tables and any tables that will be created later in a schema, you need to use two commands: one for existing tables and one for future tables. The command 'grant SELECT on all tables in schema DB1.SCHEMA to role MYROLE' grants the SELECT privilege on all current tables in the schema. The command 'grant SELECT on future tables in schema DB1.SCHEMA to role MYROLE' ensures that the role will have the SELECT privilege on any tables that are created in the schema in the future.

Discussion
arpit_dataguyOptions: CD

Changing to C,D

examed11Options: CD

Asking two separate things

JtravismillerOptions: AC

A,C - You need Grant Usage before Grant Select. Grant Select will give you access to all current and future tables (without needing to specify future). Granting future is only when you need to restrict access to current tables.).

Apo1021Options: CD

I think C, D

Rob__C

https://community.snowflake.com/s/article/How-to-grant-select-on-all-future-tables-in-a-schema-and-database-level

_yyuktaOptions: CD

CD are correct

VenkataPhaniPavanKumarOptions: CD

Correct Answer: C & D GRANT SELECT ON ALL TABLES IN SCHEMA <SCHEMA NAME> TO ROLE <ROLENAME>; GRANT SELECT ON FUTURE TABLES IN SCHEMA <SCHEMA NAME> TO ROLE <ROLENAME>; Source : https://docs.snowflake.com/en/sql-reference/sql/grant-privilege

AfzyOptions: CD

They are asking for select only not modify so A will not be an answer, c & d os correct

MultiCloudIronManOptions: CD

Correct

sailooOptions: AD

A,D is the correct answer

sailoo

break this down into 1. select data from all current tables (A) 2. any tables that will be created later in a schema (D)

sailoo

changing to C,D

arpit_dataguyOptions: AD

Answer--A,D