DEA-C02 · Question #127
A tag named DEPARTMENT has two values, MARKETING and FINANCE. Which command will add a third value, ENGINEERING, to the tag?
The correct answer is A. ALTER TAG DEPARTMENT ADD ALLOWED_VALUES 'ENGINEERING'. Option A uses the correct ADD ALLOWED_VALUES clause, which appends a new value to the existing allowed values list without touching MARKETING or FINANCE - exactly what the question asks for. Why the distractors fail: B uses MODIFY, which is not valid syntax for tag allowed…
Question
A tag named DEPARTMENT has two values, MARKETING and FINANCE. Which command will add a third value, ENGINEERING, to the tag?
Options
- AALTER TAG DEPARTMENT ADD ALLOWED_VALUES 'ENGINEERING';
- BALTER TAG DEPARTMENT MODIFY ALLOWED_VALUES 'ENGINEERING';
- CALTER TAG DEPARTMENT SET TAG DEPARTMENT = 'ENGINEERING';
- DALTER TAG DEPARTMENT DROP ALLOWED VALUES 'MARKETING', 'FINANCE' ADD
How the community answered
(35 responses)- A89% (31)
- B6% (2)
- C3% (1)
- D3% (1)
Explanation
Option A uses the correct ADD ALLOWED_VALUES clause, which appends a new value to the existing allowed values list without touching MARKETING or FINANCE - exactly what the question asks for.
Why the distractors fail:
- B uses
MODIFY, which is not valid syntax for tag allowed values in Snowflake;MODIFYapplies to other object properties like column definitions. - C uses
SET TAG, which is the syntax for applying a tag to a database object (e.g., a table or column), not for editing the tag's own allowed values. - D would first
DROPthe existing values, destroyingMARKETINGandFINANCE, and the statement is also syntactically incomplete - wrong approach and wrong result.
Memory tip: Think "ADD adds, SET applies." ADD ALLOWED_VALUES manages what values a tag can hold; SET TAG puts a tag on an object. When you see a question about expanding a tag's value list, reach for ALTER TAG ... ADD ALLOWED_VALUES.
Topics
Community Discussion
No community discussion yet for this question.