COF-C02 · Question #552
Which command can be used to list all network policies available in an account?
The correct answer is D. SHOW NETWORK POLICIES. SHOW NETWORK POLICIES lists all network policies defined in the current account. SHOW commands in Snowflake are used to list multiple objects of a given type. DESCRIBE (or DESC) NETWORK POLICY is used to show the details of a single, specific network policy - not to list all of…
Question
Which command can be used to list all network policies available in an account?
Options
- ADESCRIBE SESSION POLICY
- BDESCRIBE NETWORK POLICY
- CSHOW SESSION POLICIES
- DSHOW NETWORK POLICIES
How the community answered
(27 responses)- A4% (1)
- C7% (2)
- D89% (24)
Explanation
SHOW NETWORK POLICIES lists all network policies defined in the current account. SHOW commands in Snowflake are used to list multiple objects of a given type. DESCRIBE (or DESC) NETWORK POLICY is used to show the details of a single, specific network policy - not to list all of them. SHOW/DESCRIBE SESSION POLICY applies to session policies, not network policies.
Topics
Community Discussion
No community discussion yet for this question.