Pass the Snowflake SnowPro Advanced Certification DEA-C01 Questions and answers with CertsForce

Viewing page 2 out of 2 pages
Viewing questions 11-20 out of questions
Questions # 11:

A Data Engineer is building a pipeline to transform a 1 TD tab e by joining it with supplemental tables The Engineer is applying filters and several aggregations leveraging Common TableExpressions (CTEs) using a size Medium virtual warehouse in a single query in Snowflake.

After checking the Query Profile, what is the recommended approach to MAXIMIZE performance of this query if the Profile shows data spillage?

Options:

A.

Enable clustering on the table


B.

Increase the warehouse size


C.

Rewrite the query to remove the CTEs.


D.

Switch to a multi-cluster virtual warehouse


Expert Solution
Questions # 12:

A table is loaded using Snowpipe and truncated afterwards Later, a Data Engineer finds that the table needs to be reloaded but the metadata of the pipe will not allow the same files to be loaded again.

How can this issue be solved using the LEAST amount of operational overhead?

Options:

A.

Wait until the metadata expires and then reload the file using Snowpipe


B.

Modify the file by adding a blank row to the bottom and re-stage the file


C.

Set the FORCE=TRUE option in the Snowpipe COPY INTO command


D.

Recreate the pipe by using the create or replace pipe command


Expert Solution
Questions # 13:

A Data Engineer enables a result cache at the session level with the following command:

ALTER SESSION SET USE CACHED RESULT = TRUE;

The Engineer then runs the following select query twice without delay:

Question # 13

The underlying table does not change between executions

What are the results of both runs?

Options:

A.

The first and second run returned the same results because sample is deterministic


B.

The first and second run returned the same results, because the specific SEEDvalue was provided.


C.

The first and second run returned different results because the query is evaluated each time it is run.


D.

The first and second run returned differentresults because the query uses *instead of an explicit column list


Expert Solution
Questions # 14:

The following is returned fromSYSTEMCLUSTERING_INFORMATION () for a tablenamed orders with adate column named O_ORDERDATE:

Question # 14

What does the total_constant_partition_count value indicate about this table?

Options:

A.

The table is clustered very well on_ORDERDATE, as there are 493 micro-partitions that could not be significantly improved by reclustering


B.

The table is not clustered well on O_ORDERDATE, as there are 493 micro-partitions where the range of values in that column overlap with every other micro partition in

the table.


C.

The data inO_ORDERDATEdoes not change very often as there are 493 micro-partitionscontaining rows where that column has not been modified since the row was

created


D.

The data inO_ORDERDATEhas a very low cardinality as there are 493 micro-partitions where there is only a single distinct value in that column for all rows in the

micro-partition


Expert Solution
Questions # 15:

A Data Engineer wants to create a new development database (DEV) as a clone of the permanent production database (PROD) There is a requirement to disable Fail-safe for all tables.

Which command will meet these requirements?

Options:

A.

CREATE DATABASE DEV

CLONE PROD

FAIL_SAFE=FALSE;


B.

CREATE DATABASE DEV

CLONE PROD;


C.

CREATE TRANSIENT DATABASE DEV

CLONE RPOD


D.

CREATE DATABASE DEV

CLOSE PROD

DATA_RETENTION_TIME_IN_DAYS =0L


Expert Solution
Questions # 16:

Database XYZ has the data_retention_time_in_days parameter set to 7 days and table xyz.public.ABC has the data_retention_time_in_daysset to 10 days.

A Developer accidentally dropped the database containing this single table 8 days ago and just discovered the mistake.

How can the table be recovered?

Options:

A.

undrop database xyz;


B.

create -able abc_restore as select * from xyz.public.abc at {offset => -60*60*24*8};


C.

create table abc_restore clone xyz.public.abc at (offset => -3€0G*24*3);


D.

Create a Snowflake Support case lo restore the database and tab e from "a i-safe


Expert Solution
Questions # 17:

Which output is provided by both theSYSTEM$CLUSTERING_DEPTHfunction and theSYSTEM$CLUSTERING_INFORMATIONfunction?

Options:

A.

average_depth


B.

notes


C.

average_overlaps


D.

total_partition_count


Expert Solution
Questions # 18:

A Data Engineer is investigating a query that is taking a long time to return The Query Profile shows the following:

Question # 18

What step should the Engineer take to increase the query performance?

Options:

A.

Add additional virtual warehouses.


B.

increasethe size of the virtual warehouse.


C.

Rewrite the query using Common Table Expressions (CTEs)


D.

Change the order of the joins and start with smaller tables first


Expert Solution
Questions # 19:

Within a Snowflake account permissions have been defined with custom roles and role hierarchies.

To set up column-level masking using a role in the hierarchy of the current user, what command would be used?

Options:

A.

CORRECT_ROLE


B.

IKVOKER_ROLE


C.

IS_RCLE_IN_SESSION


D.

IS_GRANTED_TO_INVOKER_ROLE


Expert Solution
Viewing page 2 out of 2 pages
Viewing questions 11-20 out of questions