A stream can be queried multiple times to update multiple objects in the same transaction and it will return the same data.

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

Multiple Choice

A stream can be queried multiple times to update multiple objects in the same transaction and it will return the same data.

Explanation:
Streams provide a change-tracking view that reflects edits since the last consumption, and within a single transaction Snowflake presents a single, consistent snapshot to all statements. Because of this transactional consistency, the data you read from a stream in multiple queries within the same transaction won’t change between reads. You can use the same stream data to drive updates to multiple objects in that transaction, and you’ll see the identical set of changes each time. Once the transaction commits, the stream’s offset advances for that consumer, and future reads will reflect newer changes. This stability within a transaction is why the statement is true.

Streams provide a change-tracking view that reflects edits since the last consumption, and within a single transaction Snowflake presents a single, consistent snapshot to all statements. Because of this transactional consistency, the data you read from a stream in multiple queries within the same transaction won’t change between reads. You can use the same stream data to drive updates to multiple objects in that transaction, and you’ll see the identical set of changes each time. Once the transaction commits, the stream’s offset advances for that consumer, and future reads will reflect newer changes. This stability within a transaction is why the statement is true.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy