
Answer-first summary for fast verification
Answer: Use the GRANT privilege ... TO SHARE command to grant the necessary privileges.
The correct answer is D because in Snowflake, to make a newly created object available to consumers through secure data sharing, you must explicitly grant the necessary privileges to the share using the GRANT <privilege> ... TO SHARE command. This is the standard and recommended practice for adding objects to existing shares. Option A is incorrect because automatic sharing does not exist for newly created objects; manual granting is required. Option B is inefficient and unnecessary, as dropping and recreating objects is not required for sharing. Option C is also incorrect because recreating objects with different names is not needed and adds unnecessary complexity. The community discussion confirms this with 100% consensus on answer D and upvoted comments explaining that explicit granting is mandatory.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
What should a user do to grant access on a newly created database object to consumers?
A
Use the automatic sharing feature for seamless access.
B
Drop the object and then re-add it to the database to trigger sharing.
C
Recreate the object with a different name in the database before sharing.
D
Use the GRANT privilege ... TO SHARE command to grant the necessary privileges.
No comments yet.