Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam SnowPro Core All Questions

View all questions & answers for the SnowPro Core exam

Exam SnowPro Core topic 1 question 181 discussion

Actual exam question from Snowflake's SnowPro Core
Question #: 181
Topic #: 1
[All SnowPro Core Questions]

Which SQL commands, when committed, will consume a stream and advance the stream offset? (Choose two.)

  • A. UPDATE TABLE FROM STREAM
  • B. SELECT FROM STREAM
  • C. INSERT INTO TABLE SELECT FROM STREAM
  • D. ALTER TABLE AS SELECT FROM STREAM
  • E. BEGIN COMMIT
Show Suggested Answer Hide Answer
Suggested Answer: AC 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Mallikharjuna452
4 months ago
A and C are correct
upvoted 1 times
...
pranalig
5 months, 1 week ago
correct answer:AC
upvoted 1 times
...
_yyukta
8 months, 4 weeks ago
Selected Answer: AC
A and C are correct
upvoted 1 times
...
Colourseun
1 year ago
The following SQL commands, when committed, will consume a stream and advance the stream offset: A: SELECT FROM STREAM B: UPDATE TABLE FROM STREAM
upvoted 1 times
...
ludaka
1 year, 2 months ago
Selected Answer: AC
A and C
upvoted 2 times
...
SushY18
1 year, 6 months ago
https://docs.snowflake.com/en/user-guide/streams-intro To advance the offset of a stream to the current table version without consuming the change data in a DML operation, complete either of the following actions: Recreate the stream (using the CREATE OR REPLACE STREAM syntax). Insert the current change data into a temporary table. In the INSERT statement, query the stream but include a WHERE clause that filters out all of the change data (e.g. WHERE 0 = 1).
upvoted 1 times
SushY18
1 year, 6 months ago
choose CD
upvoted 2 times
...
...
Raju039
1 year, 8 months ago
AC The stream position (i.e. offset) is advanced when the stream is used in a DML statement. The position is updated at the end of the transaction to the beginning timestamp of the transaction. The stream describes change records starting from the current position of the stream and ending at the current transactional timestamp. To ensure multiple statements access the same change records in the stream, surround them with an explicit transaction statement (BEGIN .. COMMIT). An explicit transaction locks the stream, so that DML updates to the source object are not reported to the stream until the transaction is committed.
upvoted 4 times
...
EmiB
1 year, 8 months ago
Selected Answer: AC
Could be ACE: A, C - The stream position (i.e. offset) is advanced when the stream is used in a DML statement. E - To ensure multiple statements access the same change records in the stream, surround them with an explicit transaction statement (BEGIN .. COMMIT).
upvoted 1 times
...
psilvabr
1 year, 8 months ago
Selected Answer: AC
DMLs advance Stream, so it is A and C.
upvoted 1 times
...
KarBiswa
1 year, 9 months ago
Selected Answer: AD
If committed after update it will move the offset position and same for insert
upvoted 1 times
...
mlaus
1 year, 9 months ago
Selected Answer: AC
Insert, Delete, Update, so its AC
upvoted 1 times
...
Mubin_Sikilkar
1 year, 10 months ago
Selected Answer: AC
The stream position is advanced in DML statements i.e (Update,Insert) Hence A&C is the correct answer
upvoted 4 times
...
SV1122
1 year, 10 months ago
The stream position (i.e. offset) is advanced when the stream is used in a DML statement. Insert, Update
upvoted 2 times
...
paknadeem
1 year, 11 months ago
Selected Answer: AC
https://docs.snowflake.com/en/sql-reference/sql/create-stream.html
upvoted 3 times
...
halol
1 year, 11 months ago
A&C DML
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...