DAA-C01 · Question #47
How do constraints contribute to ensuring data integrity in Snowflake?
The correct answer is D. Constraints ensure data consistency and accuracy.. Constraints in Snowflake are rules applied to columns or tables that enforce data consistency and accuracy - for example, NOT NULL, UNIQUE, PRIMARY KEY, and FOREIGN KEY constraints prevent invalid or inconsistent data from entering the system, making D correct. A is wrong because
Question
How do constraints contribute to ensuring data integrity in Snowflake?
Options
- AConstraints enforce data uniqueness only.
- BConstraints solely control data deletion.
- CThey limit data access for users.
- DConstraints ensure data consistency and accuracy.
How the community answered
(32 responses)- A3% (1)
- B3% (1)
- D94% (30)
Explanation
Constraints in Snowflake are rules applied to columns or tables that enforce data consistency and accuracy - for example, NOT NULL, UNIQUE, PRIMARY KEY, and FOREIGN KEY constraints prevent invalid or inconsistent data from entering the system, making D correct.
A is wrong because constraints do far more than enforce uniqueness - NOT NULL prevents missing values, FOREIGN KEY enforces referential integrity, and CHECK constraints validate value ranges. B is wrong because constraints have nothing to do with deletion control - that falls under access control policies and DML permissions. C is wrong because limiting user access is the role of role-based access control (RBAC) and grants, not constraints.
Memory tip: Think of constraints as data rules baked into the schema itself - they guard the quality and relationships of data at the structure level, not the security or deletion level.
Topics
Community Discussion
No community discussion yet for this question.