Data classification in Snowflake is the process of organizing data into categories based on its sensitivity, importance, or compliance requirements to help manage and protect it effectively.
Click to reveal answer
beginner
What is the purpose of tagging data in Snowflake?
Tagging data in Snowflake means attaching labels or metadata to database objects to identify their characteristics, such as sensitivity or ownership, which helps in governance and access control.
Click to reveal answer
intermediate
How does Snowflake enforce policies based on data classification tags?
Snowflake uses tags to apply masking policies or access controls automatically, ensuring that users see only the data they are authorized to access based on the classification labels.
Click to reveal answer
intermediate
Which Snowflake feature allows you to create and manage tags?
Snowflake provides the CREATE TAG command to define tags and the ALTER TAG and DROP TAG commands to manage them. Tags can then be assigned to tables, columns, or other objects.
Click to reveal answer
beginner
Give an example of a tag you might assign to a column in Snowflake.
An example tag could be 'PII' with values like 'Yes' or 'No' to indicate if a column contains Personally Identifiable Information, helping to enforce stricter access controls.
Click to reveal answer
What is the main benefit of tagging data in Snowflake?
ATo delete old data
BTo speed up query performance
CTo backup data automatically
DTo organize data for better governance and security
✗ Incorrect
Tagging helps organize data by adding metadata, which improves governance and security.
Which Snowflake command is used to create a new tag?
ACREATE METADATA
BCREATE LABEL
CCREATE TAG
DCREATE CLASSIFICATION
✗ Incorrect
The correct command to create a tag in Snowflake is CREATE TAG.
What type of data might be tagged as 'Sensitive' in Snowflake?
APublic marketing data
BCustomer credit card numbers
CSystem logs
DArchived data
✗ Incorrect
Customer credit card numbers are sensitive data and should be tagged accordingly.
How can Snowflake use tags to protect data?
ABy applying masking policies based on tags
BBy compressing tagged data
CBy moving tagged data to cold storage
DBy deleting tagged data automatically
✗ Incorrect
Snowflake can apply masking policies to data based on tags to protect sensitive information.
Which object types in Snowflake can have tags assigned?
ATables and columns
BOnly tables
COnly databases
DOnly users
✗ Incorrect
Tags can be assigned to tables, columns, and other database objects in Snowflake.
Explain how data classification and tagging help improve data security in Snowflake.
Think about how labels guide who can see or use data.
You got /4 concepts.
Describe the steps to create and assign a tag to a column in Snowflake.
Start with creating the tag, then attach it to the data.
You got /3 concepts.
Practice
(1/5)
1. What is the main purpose of data classification and tagging in Snowflake?
easy
A. To speed up query performance by indexing data
B. To convert data into different file formats
C. To automatically delete old data after a set time
D. To organize and protect data by labeling it with tags
Solution
Step 1: Understand data classification and tagging
Data classification and tagging help label data to organize and protect it.
Step 2: Identify the purpose in Snowflake context
Tags are used to mark data for governance and security, not for performance or deletion.
Final Answer:
To organize and protect data by labeling it with tags -> Option D
Quick Check:
Data classification = Organize and protect data [OK]
Hint: Tags label data to organize and protect it [OK]
Common Mistakes:
Confusing tagging with indexing for performance
Thinking tags delete data automatically
Assuming tags change data format
2. Which of the following is the correct syntax to create a tag in Snowflake?
easy
A. CREATE TAG tag_name COMMENT = 'description';
B. CREATE TAG tag_name WITH 'description';
C. MAKE TAG tag_name COMMENT 'description';
D. NEW TAG tag_name SET COMMENT = 'description';
Solution
Step 1: Recall Snowflake tag creation syntax
The correct syntax uses CREATE TAG followed by the tag name and COMMENT clause.
Step 2: Compare options with syntax
Only CREATE TAG tag_name COMMENT = 'description'; matches the correct syntax: CREATE TAG tag_name COMMENT = 'description';
Final Answer:
CREATE TAG tag_name COMMENT = 'description'; -> Option A
Quick Check:
CREATE TAG ... COMMENT = ... is correct syntax [OK]
Hint: Use CREATE TAG with COMMENT = 'text' [OK]
Common Mistakes:
Using MAKE or NEW instead of CREATE
Missing equal sign in COMMENT clause
Using WITH instead of COMMENT
3. Given the following commands, what will be the result of querying the tags on the customers table?
CREATE TAG pii COMMENT = 'Personally Identifiable Information';
ALTER TABLE customers SET TAG pii = 'true';
SHOW TAGS ON TABLE customers;
medium
A. It will show the tag 'pii' with value 'true' assigned to the customers table
B. It will show an error because tags cannot be set on tables
C. It will show the tag 'pii' but with no value assigned
D. It will show no tags because SHOW TAGS is invalid syntax
Solution
Step 1: Understand tag creation and assignment
The tag 'pii' is created and then assigned to the 'customers' table with value 'true'.
Step 2: Check SHOW TAGS syntax and output
SHOW TAGS ON TABLE customers; lists tags assigned to the table, showing 'pii' = 'true'.
Final Answer:
It will show the tag 'pii' with value 'true' assigned to the customers table -> Option A
Quick Check:
SHOW TAGS ON TABLE shows assigned tags [OK]
Hint: SHOW TAGS ON TABLE lists assigned tags and values [OK]
Common Mistakes:
Thinking tags cannot be assigned to tables
Assuming SHOW TAGS syntax is invalid
Expecting tags without values to appear
4. You run the following command but get an error:
ALTER TABLE orders SET TAG sensitive = 'yes';
What is the most likely cause of the error?
medium
A. ALTER TABLE cannot be used to set tags
B. The value 'yes' is not allowed for tags
C. The tag 'sensitive' was not created before assigning it
D. Tags can only be assigned to columns, not tables
Solution
Step 1: Check if tag exists before assignment
Tags must be created with CREATE TAG before assigning to tables or columns.
Step 2: Analyze error cause
If 'sensitive' tag was not created, assigning it causes an error.
Final Answer:
The tag 'sensitive' was not created before assigning it -> Option C
Quick Check:
Tags must exist before assignment [OK]
Hint: Create tags before assigning them [OK]
Common Mistakes:
Assuming any value is invalid
Thinking ALTER TABLE can't set tags
Believing tags only apply to columns
5. You want to classify columns in a payments table as either 'confidential' or 'public' using tags. Which approach correctly applies tags to columns and supports data governance?
hard
A. Create tags and assign them to database schemas instead of columns
B. Create tags 'confidential' and 'public', then assign them to each column with ALTER TABLE ... ALTER COLUMN ... SET TAG
C. Use column comments instead of tags to classify data sensitivity
D. Create tags and assign them only to the table, not columns, to simplify management
Solution
Step 1: Understand tagging granularity
Tags can be assigned to columns to classify data precisely, supporting governance.
Step 2: Identify correct tagging method
Using ALTER TABLE ... ALTER COLUMN ... SET TAG applies tags to columns, enabling classification.
Final Answer:
Create tags 'confidential' and 'public', then assign them to each column with ALTER TABLE ... ALTER COLUMN ... SET TAG -> Option B
Quick Check:
Column-level tags enable precise data classification [OK]
Hint: Tag columns directly for precise classification [OK]
Common Mistakes:
Tagging only tables loses column-level detail
Using comments instead of tags for governance
Assigning tags to schemas instead of columns
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.