Docsity

Snowflake SnowPro Core Practice Exam 3., Exams of Data Warehousing

Toggle sidebar
bg1
Snowflake SnowPro Core Practice Exam 3.
Save
Terms in this set (104)
A user created a transient table andThe transient table version cannot be retrieved made
several changes to it over theafter 24 hours course of several days. There days after the table
was created, the user would like to go back to the first version of the table.
How can this be accomplished?
Which Query Profile results indicatesBytes are spilling to external storage.
that a warehouse is sized too small?
If you want a dedicated virtualStandard
warehouse, which is the lowest
SnowFlake edition you should optIn Snowflake, all the Virtual Warehouses are
for?dedicated to the users. If you create a virtual
warehouse, you will only be the one using it.
Which Snowflake role can set up aACCOUNTADMIN
Snowflake Share by default?
Only the ACCOUNTADMIN role has the "CREATE
SHARE" privilege by default. The privilege can be
granted to additional roles as needed.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a

Partial preview of the text

Download Snowflake SnowPro Core Practice Exam 3. and more Exams Data Warehousing in PDF only on Docsity!

Snowflake SnowPro Core Practice Exam 3.

Save

Terms in this set (104)

A user created a transient table andThe transient table version cannot be retrieved made several changes to it over theafter 24 hours course of several days. There days after the table was created, the user would like to go back to the first version of the table.

How can this be accomplished?

Which Query Profile results indicatesBytes are spilling to external storage. that a warehouse is sized too small?

If you want a dedicated virtualStandard warehouse, which is the lowest SnowFlake edition you should optIn Snowflake, all the Virtual Warehouses are for?dedicated to the users. If you create a virtual warehouse, you will only be the one using it.

Which Snowflake role can set up aACCOUNTADMIN Snowflake Share by default? Only the ACCOUNTADMIN role has the "CREATE SHARE" privilege by default. The privilege can be granted to additional roles as needed.

How many credits will consume a14.

medium sized warehouse with 2 clusters running in auto-scaled modeA medium size warehouse

with one cluster for 3 hours, considering that the firstconsumes four credits per hour. The first

cluster will clusters runs continuously and therun continuously for three hours, consuming 12

second one runs for 30 minutes incredits. The second one will run for only 30

the second hour?minutes, consuming two credits. The total of the

warehouse will be 14 credits.

If a transaction disconnects and goes4 hours into a detached state, which cannot be committed or

rolled back, howIf the transaction is left open or not aborted by the long will Snowflake take to

abort theuser, Snowflake automatically rolls back the transaction?transaction after being idle for

four hours.

You can still abort a running transaction with the system function: SYSTEM$ABORT_TRANSACTION.

How can a producer share a tableReplicate your account to another region and with a

consumer located in acreate a share from that region. different region?

Data sharing works within the same region; however, you can replicate your account to another region and then share data from that replicated account within that account's region. This is also true across cloud platforms.

When can user session variables beWhen the procedure is defined to execute as accessed in a Snowflake scriptingCALLER procedure?

What are the main differencesSnowflake VPS provides a dedicated metadata between the

Virtual Privatestore and pool of computing resources, whereas Snowflake (VPS) and Businessit's

not included in the Business Critical Edition.

Critical Editions?Snowflake VPS provides a completely separate

Snowflake environment, isolated from all other Snowflake accounts, whereas it's not included in the Business Critical Edition

What is true about sharing data inA Snowflake account can both provide and

Snowflake?consume shared data.

The Data Consumer pays only for compute resources to query the shared data.

With Secure Data Sharing, no actual data is copied or transferred between accounts. The only charges to consumers are for the compute resources (i.e. virtual warehouses) used to query the shared data. Any full Snowflake account can both provide and consume shared data.

Which of the following is not a validSELECT CURRENT_PROVIDER(); context functions in Snowflake?

In Snowflake access control model,The role used to create the object.

which entity owns an object by

default?To own an object means that a role has the

OWNERSHIP privilege on the object. Each securable object is owned by a single role, which by default is the role used to create the object.

Which of the following significantlySearch Optimization Service improves the

performance of selective point lookup queries on aThe search optimization

service aims to

table?significantly improve the performance of certain

types of queries on tables, including: Selective point lookup queries on tables. A point lookup query returns only one or a small number of distinct rows.

What is the minimum Fail-safe0 days

retention time period for transient

tables?Transient tables are similar to permanent tables

with the key difference that they do not have a Failsafe period.

Which data types does SnowflakeARRAY and VARIANT support when querying semistructured data?

Which Snowflake feature allowsAccess history

administrators to identify unused data that may be archived orEach row in the ACCESS_HISTORY

view contains a

deleted?single record per SQL statement. The record

describes the columns the query accessed directly and indirectly (i.e. the underlying tables that the data for the query comes from). These records facilitate regulatory compliance auditing and provide insights on popular and frequently accessed tables and columns since there is a direct link between the user (i.e. query operator), the query, the table or view, the column, and the data.

What file format provides the fastestCSV load

performance?

When we talk about loading data, you get the most significant speed at loading CSV files. However, Snowflake is fast and flexible, and you can also use other formats like JSON or Parquet.

Which statements are correctData is live, ready-to-query, and can be concerning the

leveraging of third-personalized. party data from the Snowflake DataData is available

without copying or moving.

Marketplace?

Data in the Snowflake Data Marketplace is already formatted and ready to query, and can be personalized for specific business needs. Data from the Snowflake Data Marketplace is accessed through Snowflake's Secure Data Sharing technology, which allows users to access the data without copying or moving it to their own account. Loading data into a cloud provider as a consumer account is not required to leverage data from the Snowflake Data Marketplace, and the data can be accessed and used in a Snowflake account without restriction. Data transformations may not be required when combining Data Marketplace datasets with existing data in Snowflake, as it depends on the specific data being used and how it needs to be combined or analyzed.

What are best practiceAssign the ACCOUNTADMIN role to at least two

recommendations for using theusers, but as few as possible.

ACCOUNTADMIN system-definedEnsure all ACCOUNTADMIN roles use Multi-factor role in Snowflake?Authentication (MFA)

Why would a Snowflake user createEnd users are unable to see the view definition, and a secure view instead of a standardinternal optimizations differ with a secure view. view?

What is a limitation of a MaterializedA Materialized View cannot be defined with a JOIN View?

Materialized view can be joined with other tables. But you cannot include JOIN in a materialized view definition

What is a characteristic of a tagA tag can have only one masking policy for each associated with

a masking policy?data type.

The tag can support one masking policy for each data type that Snowflake supports.

What is the default Time Travel1 day retention period?

Which statement is true aboutA task allows a user to execute a single SQL running tasks in

Snowflake?statement/command using a predefined schedule.

A task can execute any one of the following types of SQL code: Single SQL statement Call to a stored procedure Procedural logic using Snowflake Scripting Developer Guide

Which command can be added toFORCE=TRUE

the COPY command to make it load all files, whether or not the loadTo load files whose metadata

has expired, set the status of the files is known?LOAD_UNCERTAIN_FILES copy option to true.

The

copy option references load metadata, if available, to avoid data duplication, but also attempts to load files with expired load metadata. Alternatively, set the FORCE option to load all files, ignoring load metadata if it exists. Note that this option reloads files, potentially duplicating data in a table.

Which Snowflake edition offers theVirtual Private Snowflake (VPS) highest level of security for

organizations that have the strictestVirtual Private Snowflake offers our highest level of

requirements?security for organizations that have the strictest

requirements

What is the MAXIMUM number of31 days

days that Snowflake resets the 24hour retention period for a query result every time the result is used?

A user needs to ingest 1 GB of dataSplit the file into smaller files of 100-250 MB each, that is

available in an external stagecompress and ingest each of the smaller files. using a COPY INTO

command.

How can this be done with MAXIMUM performance and the LEAST cost?

Which services does the SnowflakeMetadata and Authentication Cloud Services layer manage?

There are 300 concurrent users on aThe warehouse is queuing the queries, increasing

production Snowflake account usingthe overall query execution time. a single cluster virtual

warehouse.

The queries are small, but theHigh number of concurrent users with a single response time is very

slow.cluster virtual warehouse. This would be a good

use case for using multi cluster warehouse. This

What is causing this to occur?would be a good use case for using multi-cluster

warehouses, which are designed to handle concurrency problems.

What is a core benefit of clustering?To increase scan efficiency in queries by improving pruning

Which Snowflake edition supportsBusiness Critical private

communication between

Snowflake and your other VPCsAWS PrivateLink is an AWS service for creating through

AWS PrivateLink?private VPC endpoints that allow direct, secure

connectivity between your AWS VPCs and the Snowflake VPC without traversing the public Internet. This feature requires the Business Critical edition or higher.

What is the minimum SnowflakeEnterprise

edition required to use Dynamic Data Masking?

Which COPY INTO commandSINGLE=TRUE outputs the data into one file?

What computer language can bePython

selected when creating User-

Defined Functions (UDFs) using theSnowpark API supports: Python, Scala and Java Snowpark API?

Which possibilities give us SnowflakeUsing the Snowflake UI in the Warehouse to resize

a Warehouse?configuration.

Using SQL command ALTER WAREHOUSE SET warehouse_size=

Resizing a warehouse to a larger size is helpful to improve the performance of large, complex queries against large data sets; and improve performance while loading and unloading significant amounts of data.

How is the data storage costBased on the average daily amount of compressed computed for

Snowflake?data stored.

Storage costs benefit from the automatic compression of all data stored, and the total compressed file size is used to calculate the storage bill for an account.

What criteria does Snowflake use toIf no role was specified as part of the connection determine

the current role whenand a default role has been defined for the initiating a session?Snowflake

user, that role becomes the current role.

If a role was specified as part of the connection and that role has been granted to the Snowflake user, the specified role becomes the current role.

The Snowflake Search OptimizationSelective point lookup queries Services supports improved performance of which kind of query?Keyword: selective

Which of the following objects canSchema and Table be directly

restored using the

UNDROP command?Account Objects:

UNDROP DATABASE

Database Objects: UNDROP SCHEMA UNDROP TABLE UNDROP TAG

You have the following data in aSELECT src:favouriteTechnology FROM myTable; variant

column from the table "myTable". How can you query the favorite technology that Gonzalo

uses?

"name": "Chris Snow",

"favouriteTechnology": Snowflake,

"hobbies":[

{"name": "soccer"},

{"name": "music"},

{"name": "hiking"}

]}

Using COPY INTO Local Drive.

command, to which locations is not possible to unload data from aOnce the data is in the

internal stage, you can

table?download them into your local drive using the GET command.

For how long are we billed if our1 minute warehouse runs

for 48 seconds?

When compute resources are provisioned for a warehouse, the minimum billing charge for provisioning compute resources is 1 minute. Even if your warehouse runs for less than a minute, we will be billed for a minute.

Which of the following file formatsCSV, XML, Avro are supported by Snowflake?

Which Snowflake tool would be

BESTSnowCD to troubleshoot network

connectivity?SnowCD (i.e. Snowflake Connectivity Diagnostic

Tool) helps users to diagnose and troubleshoot their network connection to Snowflake.

Snowflake's approach to accessDiscretionary Access Control (DAC) control

combines aspects of two different models. One modelDiscretionary Access Control (DAC)

remarks that remarks, "each object has an owner,"each object has an owner, who can, in turn,

grant who can in turn grant access to thataccess to that object". In contrast, the Role-

based object". What is the name of thisAccess Control (RBAC) remarks that "access

model?privileges are assigned to roles, which are in turn

assigned to users".

Which of the following features,Fail-safe associated with

Continuous DataTime Travel

Protection (CDP), require additional

Snowflake-provided data storage?Both Time Travel and Fail-safe require additional

data storage, which has associated fees

Where can a user find and review theThe LOGIN_HISTORY view in ACCOUNT_USAGE failed logins of a specific user for the past 30 days?

What action can a Resource MonitorNotify & Increase the limit.

not take when it hits the limit?

  • Notify --> It performs no action but sends an alertnotification (email/web UI).
  • Notify & Suspend --> It sends a notification andsuspends all assigned warehouses after all statements being executed by the warehouse (s) have been completed.
  • Notify & Suspend Immediately --> It sends anotification and suspends all assigned warehouses immediately.

Which of the following accuratelyTables, secure views, and secure UDFs can be

describes shares?shared

Snowflake enables sharing of data through named Snowflake objects called shares which supports data sharing by sharing tables, secure views, and secure UDFs in our Snowflake database (Data Provider) with other Snowflake accounts (Data Consumer).

Which statements about SnowflakeA task can execute a call to a Stored Procedure. tasks are

true?A task can execute a single SQL Statement.

Only one SQL statement is allowed to be executed through a task. If you need to execute multiple statements, build a procedure.

Which feature is integrated toDuo Security

support Multi-Factor Authentication

(MFA) at Snowflake?MFA support is provided as an integrated

Snowflake feature, powered by the Duo Security service, which is managed completely by Snowflake.

How does a Snowflake userSELECT * FROM DIRECTORY(@myStage) reference a directory table created on stage mystage in a SQL query?

Column level security in SnowflakeExternal tokenization allows the application of a

maskingDynamic Data Masking policy to a column within a table or view. Which two features are

relatedDynamic Data Masking is a security feature in to column-level security?Snowflake that

enables you to mask sensitive data (for example, credit card numbers or passwords) in real-

time, based on the user's permissions and role. When a user with restricted access attempts to

access the masked data, the data is replaced with a masked value or redacted to ensure that

sensitive information is not exposed. You can see how it works in the image below.

External Tokenization is a data protection method in Snowflake that allows organizations to tokenize sensitive data before loading that data into Snowflake and dynamically detokenize data at query runtime using masking policies with Writing External Functions. Both features require Enterprise Edition (or higher).

When cloning a database containingThe stored procedures and views will refer to stored procedures and regulartables in the source database. views, that have fully qualified table references, which of the following will occur?