exam questions

Exam SnowPro Advanced Data Engineer All Questions

View all questions & answers for the SnowPro Advanced Data Engineer exam

Exam SnowPro Advanced Data Engineer topic 1 question 52 discussion

Actual exam question from Snowflake's SnowPro Advanced Data Engineer
Question #: 52
Topic #: 1
[All SnowPro Advanced Data Engineer Questions]

A Data Engineer enables a result cache at the session level with the following command:
ALTER SESSION SET USE_CACHED_RESULT = TRUE;
The Engineer then runs the following SELECT query twice without delay:
SELECT *
FROM SNOWFLAKE_SAMPLE_DATA.TPCH_SF1.CUSTOMER
SAMPLE(10) SEED (99);
The underlying table does not change between executions.
What are the results of both runs?

  • A. The first and second run returned the same results, because SAMPLE is deterministic.
  • B. The first and second run returned the same results, because the specific SEED value was provided.
  • C. The first and second run returned different results, because the query is evaluated each time it is run.
  • D. The first and second run returned different results, because the query uses * instead of an explicit column list.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
stopthisnow
1 month, 1 week ago
Selected Answer: B
If a table does not change, and the same seed and probability are specified, SAMPLE generates the same result.
upvoted 1 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago