
Answer-first summary for fast verification
Answer: Database role
According to Snowflake documentation and the community discussion with 100% consensus and upvoted comments, only database roles can be granted to shares. The GRANT DATABASE ROLE command specifically allows granting database roles to shares, enabling secure data sharing. Account roles are used for user access management, custom roles are not a distinct role type in Snowflake (they're typically account roles), and secondary roles are used for role switching within a session - none of these can be granted to shares.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.