Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Snowflake ARA-R01 Exam - Topic 3 Question 5 Discussion

Posted by Bea on Apr 20, 2024 at 05:48 PM

Role A has the following permissions:

. USAGE on db1

. USAGE and CREATE VIEW on schemal in db1

. SELECT on tablel in schemal

Role B has the following permissions:

. USAGE on db2

. USAGE and CREATE VIEW on schema2 in db2

. SELECT on table2 in schema2

A user has Role A set as the primary role and Role B as a secondary role.

What command will fail for this user?

Suggested Answer: B

This command will fail because while the user has USAGE permission on db2 and schema2 through Role B, and can create a view in schema2, they do not have SELECT permission on db1.schemal.table1 with Role B. Since Role A, which has SELECT permission on db1.schemal.table1, is not the currently active role when the view v2 is being created in db2.schema2, the user does not have the necessary permissions to read from db1.schemal.table1 to create the view. Snowflake's security model requires that the active role have all necessary permissions to execute the command.


Get Premium ARA-R01 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
25 comments · newest first
CL
Clement 11 months ago
Just a fact, Role A has no permissions on db2.
FA
Fanny 11 months ago
B looks tricky, but I think it’s fine.
MI
Mila 11 months ago
Wait, why can't they access db2? Seems odd.
TH
Theodora 11 months ago
Totally agree, D is the one that won't work.
TA
Tayna 11 months ago
Role A can't access db2, so D will fail.
SO
Soledad 12 months ago
I’m leaning towards option B failing because it uses db2, but I’m not confident about the specifics of the permissions.
LI
Linette 12 months ago
I practiced a similar question, and I feel like option D might fail since it tries to select from a table in db2 without the right permissions.
RA
Rana 12 months ago
I'm not entirely sure, but I remember something about needing permissions on both databases for creating views.
EV
Eva 1 year ago
I think the command that will fail is A because Role A doesn't have access to db2.
SY
Sylvie 1 year ago
Hmm, I'm not sure. I think I need to double-check the permissions for each role and make sure I fully understand how the primary and secondary roles interact. This is a tricky one.
DE
Devora 1 year ago
I'm pretty confident that option B is the correct answer. The user doesn't have permission to create a view that selects from db1.schema1.table1 since their primary role only gives them SELECT on that table, not CREATE VIEW.
JE
Jerilyn 1 year ago
Okay, I think I've got this. The user has Role A as the primary role, which gives them USAGE on db1, CREATE VIEW on schema1 in db1, and SELECT on table1 in schema1. But they also have Role B as a secondary role, which gives them USAGE on db2, CREATE VIEW on schema2 in db2, and SELECT on table2 in schema2.
TY
Tyisha 1 year ago
Hmm, I'm a bit confused by the different databases and schemas. Let me re-read the question and try to break it down step-by-step.
EZ
Ezekiel 1 year ago
This looks like a tricky permissions question. I'll need to carefully analyze the roles and permissions to determine which command will fail.
AN
Antione 1 year ago
This looks straightforward, I'll just need to identify the three key benefits of Tanzu Mission Control from the options provided.
BR
Brandon 1 year ago
I feel pretty confident about this one. The global and local commodity assignments are the tricky part, but I think I understand the concept.
RO
Rosalind 1 year ago
This looks like a tricky one. I'd want to carefully review the logs and file details to determine if this is a legitimate activity or a potential security incident.
DO
Dorothy 2 years ago
I'm confused, but if Role A is primary, shouldn't db2 commands be tricky? I'll go with A failing.
TY
Tyra 2 years ago
I think D won't fail since it's only selecting from db2. My guess is A or B as well.
RE
Reita 2 years ago
But A involves using db1 and accessing table2 in db2.
TU
Tula 2 years ago
B sounds right. Role A doesn't have permissions on db2.
AR
Aretha 2 years ago
Really? I'm leaning towards B because it involves accessing db1 from db2.
RE
Reita 2 years ago
This question is tricky. I think the command that will fail is A.
MO
Mona 3 years ago
That's correct. The user does not have permission to select from different databases
MI
Mila 3 years ago
The command that will fail is option C
0/2000 characters

Save Cancel