To enable streams on shared tables, which action must you perform?

Master Snowflake Data Engineer Exam. Study with flashcards and multiple choice questions, each question includes hints and explanations. Prepare for your success!

Multiple Choice

To enable streams on shared tables, which action must you perform?

Explanation:
Streams need a change-tracking mechanism on the base table to capture what has changed. On shared tables, that means you must turn on change tracking for the underlying table. Running an ALTER TABLE operation to set CHANGE_TRACKING to TRUE enables this, allowing a stream to be created on the table to track inserts, updates, and deletes. Without enabling change tracking, Snowflake cannot produce a stream for that table. The other options don’t enable streams: extending data retention affects how long past data can be accessed, enabling search virtualization isn’t related to change data capture, and creating a stage is about loading data from external locations rather than tracking changes in a shared table.

Streams need a change-tracking mechanism on the base table to capture what has changed. On shared tables, that means you must turn on change tracking for the underlying table. Running an ALTER TABLE operation to set CHANGE_TRACKING to TRUE enables this, allowing a stream to be created on the table to track inserts, updates, and deletes. Without enabling change tracking, Snowflake cannot produce a stream for that table. The other options don’t enable streams: extending data retention affects how long past data can be accessed, enabling search virtualization isn’t related to change data capture, and creating a stage is about loading data from external locations rather than tracking changes in a shared table.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy