ExamGecko
Question list
Search
Search

Question 616 - COF-C02 discussion

Report
Export

When does a materialized view get suspended in Snowflake?

A.
When a column is added to the base table
Answers
A.
When a column is added to the base table
B.
When a column is dropped from the base table
Answers
B.
When a column is dropped from the base table
C.
When a DML operation is run on the base table
Answers
C.
When a DML operation is run on the base table
D.
When the base table is reclustered
Answers
D.
When the base table is reclustered
Suggested answer: B

Explanation:

A materialized view in Snowflake gets suspended when structural changes that could impact the view's integrity are made to the base table, such as B. When a column is dropped from the base table. Dropping a column from the base table on which a materialized view is defined can invalidate the view's data, as the view might rely on the column that is being removed. To maintain data consistency and prevent the materialized view from serving stale or incorrect data, Snowflake automatically suspends the materialized view.

Upon suspension, the materialized view does not reflect changes to the base table until it is refreshed or re-created. This ensures that only accurate and current data is presented to users querying the materialized view.

References:

Snowflake Documentation on Materialized Views: Materialized Views

asked 23/09/2024
George Sanchez
40 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first