0% found this document useful (0 votes)
49 views9 pages

Snowflake Snowpro Core

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
49 views9 pages

Snowflake Snowpro Core

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

1

Snowflake SnowPro Core - Practice


Exam 1

Q1

Is re-clustering in Snowflake only triggered if the table would benefit from the
operation?

A) True

B) False

Solution:

A) True

Explanation:

DML operations (INSERT, UPDATE, DELETE, MERGE, COPY) can make the data in the table
become less clustered. To solve that, Snowflake provides periodic & automatic re-clustering
to maintain optimal clustering.
It only reclusters a clustered table if it benefits from the operation.
2

Q2

What are the usual data loading steps in Snowflake?

A) Source → Snowflake Stage → Snowflake Table

B) Source → Snowflake Table → Snowflake Stage

C) Snowflake Table → Source → Snowflake Stage

Solution:

A) Source → Snowflake Stage → Snowflake Table

Explanation:

A source system (like a web application) loads the data into a Snowflake Stage (for example,
an external stage like Amazon S3). Then we can copy the data into a Snowflake table. You
can see this behavior in the following image:
3

Q3

How will you store JSON data in Snowflake?

A) Using a column of the JSON type

B) Using a column of the VARCHAR type

C) Using a column of the VARIANT type

D) Using a column of the NULL type

Solution:

C) Using a column of the VARIANT type

Explanation:

Semi-structured data is saved as VARIANT type in Snowflake tables, with a maximum limit
size of 16 MB of uncompressed data, and it can be queried using JSON notation.

A VARIANT can store a value of any other type, including OBJECT and ARRAY.

For example, you can store the following JSON in a VARIANT column:

{
"a":null,
"b":"test",
"c":[null, 2,3]
}
4

Q4

Do tables with Fail-Safe turned on incurs additional storage costs compared to


tables where Fail-Safe is turned off?

A) True

B) False

Solution:

A) True

Explanation:

Fail-safe ensures historical data is protected in the event of a system failure or other
catastrophic event, providing a (NON-CONFIGURABLE) 7-day period during which
Snowflake support may recover historical data. It requires additional storage (as other
functionalities like Time Travel), that's why it incurs additional storage costs.

You can see an example of how Fail-Safe works in the following image:
5

Q5

In which of the below scenarios is Snowpipe recommended to load data?

A) When we have a small volume of frequent data

B) When we have a huge volume of data generated as part of a batch schedule

C) In both of the previous scenarios

Solution:

A) When we have a small volume of frequent data

Explanation:

Snowpipe is a serverless service that enables loading data when the files are available in
any (internal/external) stage. It is used when you have a small volume of frequent data and
want to load it continuously (micro-batches).

In the following image, you can see how Snowpipe works:


6

Q6

What technique does Snowflake use to limit the number of micro-partitions


retrieved as part of a query?

A) Pruning

B) Clustering

C) Indexing

D) Computing

Solution:

A) Pruning

Explanation:

Query pruning consists of analyzing the smallest number of micro-partitions to solve a


query. This technique retrieves all the necessary data to give a solution without looking at
all the micro-partitions, saving a lot of time to return for the result.

You can find a real example at the following link.


7

Q7

Which command will we use to download the files from the stage/location
loaded through the COPY INTO <LOCATION> command?

A) GET

B) PUT

C) UNLOAD

D) INSERT INTO

Solution:

A) GET

Explanation:

We will use the GET command to DOWNLOAD files from a Snowflake internal stage (named
internal stage, user stage, or table stage) into a directory/folder on a client machine.

The command cannot be executed from the Snowflake Web Interface; you need to use
SnowSQL. For example, if we want to download data from an internal stage called
“my_int_stage” into our “data” folder, you can run the following command:

GET @my_int_stage file:///tmp/data/;


8

Q8

Can virtual warehouses be resized while they are running?

A) True

B) False

Solution:

A) True

Explanation:

A warehouse can be resized up or down (through the web interface or using SQL) at any
time, including while it is running and processing statements.

In the following image, you can see how to resize them using the web interface:

You can also resize them using SQL. For example:

ALTER WAREHOUSE my_warehouse SET WAREHOUSE_SIZE=SMALL;


Download the full Exam
in PDF format at
FullCertified.com
Now with a 20% discount off our annual
plan with code FULLEXAM20 at checkout.
Limited time only!

You might also like