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 9 discussion

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

Which query will show a list of the 20 most recent executions of a specified task, MYTASK, that have been scheduled within the last hour that have ended or are still running?

  • A.
  • B.
  • C.
  • D.
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
claudiamilena11
9 months, 3 weeks ago
Selected Answer: B
https://docs.snowflake.com/en/sql-reference/functions/task_history#examples Note To retrieve only tasks that are completed or still running, filter the query using WHERE query_id IS NOT NULL. Note that this filter is applied after RESULT_LIMIT already reduces the results returned, so the query could return 9 tasks if 1 task was scheduled but had not started yet.
upvoted 1 times
...
BigDataBB
1 year, 1 month ago
Selected Answer: B
This is a really a Bast*** Inside question, because all the stases are: SCHEDULED: scheduled for execution. EXECUTING: currently executing. SUCCEEDED: execution successful. FAILED: execution failed. FAILED_AND_AUTO_SUSPENDED: task failed, and was automatically suspended. CANCELLED: execution cancelled. SKIPPED
upvoted 2 times
...
Gemnidhi17
1 year, 2 months ago
B because of reason listed by @stopthisnow (c point)
upvoted 1 times
...
stopthisnow
1 year, 2 months ago
Selected Answer: B
B To query only those tasks that have already completed or are currently running, include WHERE query_id IS NOT NULL as a filter. The QUERY_ID column in the TASK_HISTORY output is populated only when a task has started running. https://docs.snowflake.com/en/sql-reference/functions/task_history A - will give all the schedules even the ones that have not run yet C - A schedule could be skipped, cancelled so it won't give all the runs D - It won't return the most recent tasks.
upvoted 3 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 ...