Courseiva
← Back to SnowPro Advanced: Data Engineer questions

Scenario-based practice

Hard Difficulty Questions

Practise SnowPro Advanced: Data Engineer practice questions — original exam-style scenarios covering every exam domain, with detailed explanations, wrong-answer analysis, and common exam traps.

20
scenario questions
DEA-C02
exam code
Snowflake
vendor

Scenario guide

How to approach hard difficulty questions

These are the questions most candidates get wrong. They require connecting multiple concepts, reading tricky output, or knowing edge-case behaviour that isn't on most study cards. Practising them trains you to operate under uncertainty — a necessary skill on the real exam.

Quick answer

Hard Difficulty Questions questions test whether you can apply the concept in context, not just recognise a definition.

How the topic appears in realistic exam-style scenarios.

Which detail in the question changes the correct answer.

How to eliminate plausible but wrong options.

How to connect the question back to the wider exam objective.

Related practice questions

Related DEA-C02 topic practice pages

Scenario questions usually connect to one or more exam topics. Use these links to review the underlying concepts behind the scenario.

Practice set

Practice scenarios

Question 1hardmultiple choice
Full question →

Refer to the exhibit. A security administrator executes this query to audit access to a sensitive table. What specific information is captured in the 'base_objects_accessed' column regarding the data lineage of this query?

Exhibit

SELECT 
    query_id, 
    user_name, 
    base_objects_accessed 
FROM SNOWFLAKE.ACCOUNT_USAGE.ACCESS_HISTORY
WHERE EXISTS (
    SELECT 1 
    FROM TABLE(FLATTEN(input => base_objects_accessed))
    WHERE value:"objectName"::string = 'PROD_DB.FINANCE.SALARY_DATA'
);
Question 2hardmultiple choice
Full question →

A data engineer wants to share a subset of data with a third party while ensuring sensitive columns are masked. Which governance combination is best?

Question 3hardmulti select
Full question →

When unloading data from Snowflake to an external stage, which TWO of the following are supported file formats?

Question 4hardmultiple choice
Full question →

A data engineer is building a transformation pipeline that must replace sensitive values in a VARCHAR column with a consistent pseudonym across multiple tables. The pseudonym must be deterministic for the same input value and must not be reversible without a secret. Which Snowflake function should be used to generate the pseudonym?

Question 5hardmultiple choice
Full question →

A data engineer is building a transformation pipeline that must handle late-arriving data. The source table has a column 'event_time' of type TIMESTAMP_NTZ. The engineer needs to create a new column 'event_date' that reflects the date in the 'America/New_York' timezone, and also a column 'event_hour' that represents the hour of day in that timezone. Which Snowflake expression correctly produces both columns?

Question 6hardmultiple choice
Full question →

A data engineer is transforming a large fact table that contains billions of rows. The transformation requires calculating a moving average over a 7-day window for each product, and the result must be stored in a new table. The engineer wants to minimize the amount of data processed and avoid repeated scans of the base table. Which approach is most efficient in Snowflake?

Question 7hardmultiple choice
Full question →

A data engineer needs to transform a large dataset by applying a complex JavaScript user-defined function (UDF) to each row. The UDF is computationally expensive and the dataset is several terabytes. The engineer wants to minimize cost and execution time. Which Snowflake feature should be used to process the data efficiently?

Question 8hardmultiple choice
Full question →

A data engineer is building a transformation pipeline that must process streaming data from a Snowpipe. The pipeline needs to apply a series of transformations, including filtering, joining with a dimension table, and aggregating results. The engineer wants to minimize latency and cost. Which Snowflake feature is most appropriate for this scenario?

Question 9hardmultiple choice
Full question →

A data engineer needs to transform a table by replacing NULL values in a numeric column with the average of the non-NULL values from the same column, partitioned by a category column. The engineer wants to achieve this in a single SQL statement without using a subquery. Which Snowflake function should be used?

Question 10hardmultiple choice
Full question →

A data engineer is optimizing a query that performs a large aggregation over a clustered table. The Query Profile shows that the aggregation step is spilling to local disk. The warehouse size is currently Medium. The engineer wants to reduce spilling without increasing warehouse size. Which action is most likely to improve performance?

Question 11hardmulti select
Full question →

A data engineer is designing a transformation that uses the PIVOT operator to convert rows into columns. The source table 'sales' has columns 'product', 'month', and 'revenue'. The engineer wants to pivot on 'month' and aggregate 'revenue' using SUM. Which TWO statements are true regarding the behavior of the PIVOT operator in Snowflake? (Choose two.)

Question 12hardmulti select
Full question →

A data engineer is designing a transformation pipeline that uses a Snowflake stream on a table to capture changes. The stream will feed a task that merges changes into a target table. Which TWO statements about stream consumption and transformation are correct? (Choose two.)

Question 13hardmultiple choice
Full question →

A data engineer is analyzing a Query Profile for a query that joins two large tables. The profile shows a significant amount of time spent in the 'Remote Disk Spilling' step. The warehouse is a 2XL. The engineer wants to reduce remote spilling without increasing warehouse size. Which optimization is most likely to be effective?

Question 14hardmultiple choice
Full question →

A data engineer notices that a recurring batch query joining a 2 TB fact table with a 200 GB dimension table consistently spills to local disk. The Query Profile shows a HashJoin operator with a large number of bytes spilled. The warehouse is an X-Large. The join key on the dimension table is not the clustering key. Which change is most likely to eliminate the local spilling while keeping credit usage reasonable?

Question 15hardmulti select
Full question →

A data engineer is optimizing a Snowflake environment where multiple users run concurrent queries on the same large table. The table is frequently filtered on a high-cardinality column, and queries often scan large portions of the table. The engineer wants to reduce the amount of data scanned and improve overall concurrency. Which two actions should the engineer take? (Choose two.)

Question 16hardmultiple choice
Full question →

A data engineer is tuning a query that joins a 10-billion-row fact table to a small 5,000-row dimension table. The Query Profile shows a broadcast join with high network transfer and long execution time. The dimension table has a reliable primary key and is updated only once per day. Which approach best reduces the join cost?

Question 17hardmultiple choice
Full question →

A data engineer notices that a query joining two large tables is performing a remote disk spill. The Query Profile shows that the build side of the join is much larger than the probe side. The engineer wants to reduce remote spilling without increasing warehouse size. Which action is most appropriate?

Question 18hardmultiple choice
Full question →

A data engineer is optimizing a query that joins a large fact table 'sales' with a small dimension table 'products'. The query filters on 'products.category' and aggregates sales amounts. The engineer notices that the join is a broadcast join in the query profile. Which action would most likely improve performance by enabling a more efficient join strategy?

Question 19hardmultiple choice
Full question →

A data engineer is investigating a slow query that joins a 5 billion row fact table to a 200 million row dimension table. The Query Profile shows a single join node with a very high percentage of time in 'Bytes spilled to remote storage' and a high cardinality on the join key. The fact table is clustered by a different column than the join key. Which optimization is most likely to reduce remote spilling for this join?

Question 20hardmulti select
Full question →

A data engineer is optimizing a Snowflake environment where several long-running queries frequently spill to remote storage. The engineer has already confirmed that the queries cannot be rewritten. Which TWO actions should the engineer take to reduce remote spilling and improve performance? (Choose two.)

These DEA-C02 practice questions are part of Courseiva's free Snowflake certification practice question bank. Courseiva provides original exam-style DEA-C02 questions with detailed explanations, topic-based practice, mock exams, readiness tracking, and study analytics.