General - Snowpipe Flashcards

1
Q

what is snow pipe used for?

A

continuous data load - loading new or delta files to target from source based on notification

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

what is the end to end workflow in setting up snow pipe?

A
  1. new files coming into the source
  2. SNS notifications
  3. SQS queue
  4. SF pipe copies data from SQS queue to the target
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

does snowpipe need active WH?

A

no it is serverless computing and charged accordingly.

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

is snowpipe micro batch or real time streaming?

A

is is more of a micro batches - minute level processing

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

is AWS SNS the only way to trigger notifications for new file in snowpipe?

A

No, we can use custom Python code as well.

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

What is the SQL construct of snowpipe?

A

CREATE OR REPLACE PIPE

AS COPY INTO

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

When pipe is created is it automatically activated or started?
If not how will you resume?

A

it is not automatically activated…you have to resume it using alter command
ALTER PIPE resume

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

how do you monitor pipe whether it is running?

And how do you check if pipe has any data loaded or not for load history?

A

SYSTEM$PIPESTATUS
SYSTEM$validatepipe

you can also use LOAD_HISTORY, COPY_HISTORY and METERING_HISTORY in account usage view to understand pipes loading and credit taken

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

Does pipe will load data to target automatically as soon as a source file is placed? Do you need any other components?

A

No, it needs notifications and queue…SNS and SQS or a python code

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

Will snowpipe load if same file is placed ?

A

no generally it will not load if same files come in.

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

what are the _HISTORY views in ACCOUNT_USAGE?

A

COPY_HISTORY
LOAD_HISTORY
METERING_HISTORY

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

what is METERING_HISTORY view in ACCOUNT_USAGE?

A

this is for checking credit usage in general

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

Does pipe guarantee order of how file is loaded?

A

nope..it does not guarantee file load order.

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

Can you tell pipe what data to consume if there are multiple files? if yes what is the command?

A

yes you can….you can mention when resuming using ALTER command like pipe name and modified after etc.

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