ExamGecko
Question list
Search
Search

Question 444 - COF-C02 discussion

Report
Export

What criteria does Snowflake use to determine the current role when initiating a session? (Select TWO).

A.
If a role was specified as part of the connection and that role has been granted to the Snowflake user, the specified role becomes the current role.
Answers
A.
If a role was specified as part of the connection and that role has been granted to the Snowflake user, the specified role becomes the current role.
B.
If no role was specified as part of the connection and a default role has been defined for the Snowflake user, that role becomes the current role.
Answers
B.
If no role was specified as part of the connection and a default role has been defined for the Snowflake user, that role becomes the current role.
C.
If no role was specified as part of the connection and a default role has not been set for the Snowflake user, the session will not be initiated and the log in will fail.
Answers
C.
If no role was specified as part of the connection and a default role has not been set for the Snowflake user, the session will not be initiated and the log in will fail.
D.
If a role was specified as part of the connection and that role has not been granted to the Snowflake user, it will be ignored and the default role will become the current role.
Answers
D.
If a role was specified as part of the connection and that role has not been granted to the Snowflake user, it will be ignored and the default role will become the current role.
E.
If a role was specified as part of the connection and that role has not been granted to the Snowflake user, the role is automatically granted and it becomes the current role.
Answers
E.
If a role was specified as part of the connection and that role has not been granted to the Snowflake user, the role is automatically granted and it becomes the current role.
Suggested answer: A, B

Explanation:

When initiating a session in Snowflake, the system determines the current role based on the user's connection details and role assignments. If a user specifies a role during the connection, and that role is already granted to them, Snowflake sets it as the current role for the session. Alternatively, if no role is specified during the connection, but the user has a default role assigned, Snowflake will use this default role as the current session role. These mechanisms ensure that users operate within their permissions, enhancing security and governance within Snowflake environments.

References:

Snowflake Documentation: Understanding Roles

asked 23/09/2024
Yesaldine Salazar
42 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first