SOL-C01 · Question #6
A Snowflake administrator needs to determine the default collation setting for a newly created database. Which of the following methods can be used to identify the default collation of the database…
The correct answer is A. DESCRIBE DATABASE MY DATABASE. DESCRIBE DATABASE MY_DATABASE is the correct Snowflake DDL inspection command that returns a detailed metadata row for the specified database, including its default collation property - making it the most direct and reliable method. Why the distractors fail: B - SHOW DATABASES…
Question
A Snowflake administrator needs to determine the default collation setting for a newly created database. Which of the following methods can be used to identify the default collation of the database named 'MY DATABASE?
Options
- ADESCRIBE DATABASE MY DATABASE;
- BSHOW DATABASES LIKE 'MY DATABASE';
- CSELECT followed by SELECT collation FROM INFORMATION_SCHEMA.DATABASES WHERE
- DSELECT FROM WHERE option_name = 'COLLATION';
- ESELECT DATABASE COLLATION FROM INFORMATION SCHEMA.DATABASES WHERE
How the community answered
(27 responses)- A85% (23)
- B7% (2)
- D4% (1)
- E4% (1)
Explanation
DESCRIBE DATABASE MY_DATABASE is the correct Snowflake DDL inspection command that returns a detailed metadata row for the specified database, including its default collation property - making it the most direct and reliable method.
Why the distractors fail:
- B -
SHOW DATABASES LIKE 'MY DATABASE'lists databases with high-level metadata (owner, creation time, etc.) but does not expose the collation setting in its output columns. - C - The
INFORMATION_SCHEMA.DATABASESview does not include a column namedcollation; querying a non-existent column causes an error. - D - This references a vague
option_namefilter that doesn't correspond to any standard Snowflake system table for database-level collation; the syntax is also incomplete. - E -
DATABASE_COLLATIONis not a valid column inINFORMATION_SCHEMA.DATABASES, so this query would also fail.
Memory tip: Think "DESCRIBE = Details" - whenever you need granular configuration properties (collation, data retention, default warehouse) for a Snowflake object, DESCRIBE <object_type> <name> is your go-to command, while SHOW gives breadth (lists) and INFORMATION_SCHEMA gives relational query power but only for columns that actually exist in the view.
Topics
Community Discussion
No community discussion yet for this question.