exam questions

Exam SnowPro Core All Questions

View all questions & answers for the SnowPro Core exam

Exam SnowPro Core topic 1 question 504 discussion

Actual exam question from Snowflake's SnowPro Core
Question #: 504
Topic #: 1
[All SnowPro Core Questions]

What is the recommended way to obtain a cloned table with the same grants as the source table?

  • A. Clone the table with the COPY GRANTS command.
  • B. Use an ALTER TABLE command to copy the grants.
  • C. Clone the schema then drop the unwanted tables.
  • D. Create a script to extract grants and apply them to the cloned table.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
PrasantSadangi
1 month ago
Selected Answer: A
CLONE command syntax supports the COPY GRANTS parameter. When the COPY GRANTS parameter is specified in a CREATE TABLE statement, the create operation copies all privileges, except OWNERSHIP, from the source table to the new table. The same behavior is true for other CREATE commands that support the COPY GRANTS clause.
upvoted 1 times
...
_yyukta
8 months ago
Selected Answer: A
A. Clone the table with the COPY GRANTS command
upvoted 1 times
...
MultiCloudIronMan
1 year, 3 months ago
Selected Answer: A
correct
upvoted 1 times
...
dmitriypo
1 year, 5 months ago
Selected Answer: A
A https://docs.snowflake.com/en/user-guide/object-clone#:~:text=When%20the%20COPY%20GRANTS%20parameter%20is%20specified%20in%20a%20CREATE%20TABLE%20statement%2C%20the%20create%20operation%20copies%20all%20privileges%2C%20except%20OWNERSHIP%2C%20from%20the%20source%20table%20to%20the%20new%20table.
upvoted 2 times
...
EmiB
1 year, 7 months ago
Selected Answer: A
CREATE <object> … CLONE statements for most objects do not copy grants on the source object to the object clone. However, CREATE <object> commands that support the COPY GRANTS clause (e.g. CREATE TABLE, CREATE VIEW) enable you to optionally copy grants to object clones. For example, the CREATE TABLE … CLONE command syntax supports the COPY GRANTS parameter. When the COPY GRANTS parameter is specified in a CREATE TABLE statement, the create operation copies all privileges, except OWNERSHIP, from the source table to the new table. The same behavior is true for other CREATE commands that support the COPY GRANTS clause.
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago