Exam SnowPro Advanced Data Engineer All QuestionsBrowse all questions from this exam
Question 24

A stream called TRANSACTIONS_STM is created on top of a TRANSACTIONS table in a continuous pipeline running in Snowflake. After a couple of months, the TRANSACTIONS table is renamed TRANSACTIONS_RAW to comply with new naming standards.

What will happen to the TRANSACTIONS_STM object?

    Correct Answer: A

    Renaming a source object does not break a stream or cause it to go stale. The stream will still point to the original table, even though its name has changed. Therefore, the TRANSACTIONS_STM will continue to work as expected after the TRANSACTIONS table is renamed to TRANSACTIONS_RAW.

Discussion
drunk_goat82Option: A

I think it's A. Renaming a source object does not break a stream or cause it to go stale. In addition, if a source object is dropped and a new object is created with the same name, any streams linked to the original object are not linked to the new object

stopthisnowOption: A

Renaming a source object does not break a stream or cause it to go stale. In addition, if a source object is dropped and a new object is created with the same name, any streams linked to the original object are not linked to the new object. https://docs.snowflake.com/en/user-guide/streams-intro

acapone001Option: A

A should be the correct answer here. From Snowflake: "Renaming a source object does not break a stream or cause it to go stale. In addition, if a source object is dropped and a new object is created with the same name, any streams linked to the original object are not linked to the new object."

MultiCloudGuruOption: A

Important Recreating an object (using the CREATE OR REPLACE TABLE syntax) drops its history, which also makes any stream on the table or view stale. In addition, recreating or dropping any of the underlying tables for a view makes any stream on the view stale. Currently, when a database or schema that contains a stream and its source table (or the underlying tables for a source view) is cloned, any unconsumed records in the stream clone are inaccessible. This behavior is consistent with Time Travel for tables. If a table is cloned, historical data for the table clone begins at the time/point when the clone was created. Renaming a source object does not break a stream or cause it to go stale. In addition, if a source object is dropped and a new object is created with the same name, any streams linked to the original object are not linked to the new object.

randreagOption: B

but will the stream work as expected if there is no more changes in the table(old) to record? After a while it will become stale, doesn't it?