Chapter 5: Data Pipelines Flashcards

1
Q

Which of the following is a way to view task execution history for tasks that use a user-managed virtual warehouse?

SELECT task_execution_history from the session.
Query the task_execution_history table in the system schema.
Query the information_schema.task_history() table function.
It is not possible to view the task execution history.

A

Query the information_schema.task_history() table function.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which of the following privileges is required to set a task to resumed state?

EDIT TASK privilege
EXECUTE TASK privilege
RESUME TASK privilege
ADMIN TASK privilege

A

EXECUTE TASK privilege

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Which of the following are valid scheduling approaches for tasks? (Choose all that apply.)

ON EVENT
Using CRON

<num> MINUTE
ON DATE
</num>

A

Using CRON

<num> MINUTE
</num>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

You have just created a new task. What would be the initial state of this task?

Suspended
Active
Resumed
Running

A

Suspended

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which of the following is true regarding task trees? (Choose all that apply.)

Multiple tasks connected in a parent-child relationship form a task tree.
Only the root node can have a schedule in a task tree.
Tasks can have multiple parents.
All tasks in a tree of tasks must have the same task owner.

A

Multiple tasks connected in a parent-child relationship form a task tree.
Only the root node can have a schedule in a task tree.
All tasks in a tree of tasks must have the same task owner.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Which of the following is true regarding serverless tasks? (Choose all that apply.)

Serverless tasks use Snowflake-managed compute resources.
Serverless tasks are billed differently and have a 1.5 multiplier when calculating credit usage.
Snowflake scales the compute up and down for serverless tasks as per workload requirements.
Serverless tasks cannot have any child tasks.

A

Serverless tasks use Snowflake-managed compute resources.
Serverless tasks are billed differently and have a 1.5 multiplier when calculating credit usage.
Snowflake scales the compute up and down for serverless tasks as per workload requirements.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Streams are a Snowflake mechanism that provides which of the following functionalities?

Message queue capabilities
Change data capture
Data archival
Scheduled execution of SQL

A

Change data capture

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Streams can capture which of the following changes in a table? (Choose all that apply.)

INSERTs
UPDATEs
DELETEs
Table structure changes
Table name changes

A

INSERTs
UPDATEs
DELETEs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Which of the following is true regarding streams? (Choose all that apply.)

Streams can be queried like a table.
Once a stream is created, it cannot be dropped unless the whole table is dropped.
Multiple streams can be created on the same table.
Streams don’t contain any data but are bookmarks to the data changes.

A

Streams can be queried like a table.
Multiple streams can be created on the same table.
Streams don’t contain any data but are bookmarks to the data changes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly