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 Exam DSA-C02 Topic 1 Question 21 Discussion

Actual exam question for Snowflake's DSA-C02 exam
Question #: 21
Topic #: 1
[All DSA-C02 Questions]

A Data Scientist as data providers require to allow consumers to access all databases and database objects in a share by granting a single privilege on shared databases. Which one is incorrect SnowSQL command used by her while doing this task?

Assuming:

A database named product_db exists with a schema named product_agg and a table named Item_agg.

The database, schema, and table will be shared with two accounts named xy12345 and yz23456.

1. USE ROLE accountadmin;

2. CREATE DIRECT SHARE product_s;

3. GRANT USAGE ON DATABASE product_db TO SHARE product_s;

4. GRANT USAGE ON SCHEMA product_db. product_agg TO SHARE product_s;

5. GRANT SELECT ON TABLE sales_db. product_agg.Item_agg TO SHARE product_s;

6. SHOW GRANTS TO SHARE product_s;

7. ALTER SHARE product_s ADD ACCOUNTS=xy12345, yz23456;

8. SHOW GRANTS OF SHARE product_s;

Show Suggested Answer Hide Answer
Suggested Answer: D

All are correct except a standard-only stream tracks row inserts only.

A standard (i.e. delta) stream tracks all DML changes to the source object, including inserts, up-dates, and deletes (including table truncates).


Contribute your Thoughts:

Julieta
8 days ago
I'm not sure, but I think option B) CREATE DIRECT SHARE product_s; could also be incorrect because it doesn't specify the database to be shared.
upvoted 0 times
...
Alana
9 days ago
Wait, I thought we were granting privileges on the product_db database, not the sales_db database. This looks like a typo in the question.
upvoted 0 times
...
Lynelle
12 days ago
I agree with Niesha. The correct command should be A) GRANT USAGE ON DATABASE product_db TO SHARE product_s;
upvoted 0 times
...
Niesha
16 days ago
I think the incorrect SnowSQL command is D) ALTER SHARE product_s ADD ACCOUNTS=xy12345, yz23456;
upvoted 0 times
...

Save Cancel