最新的Snowflake SnowPro Advanced: Data Engineer (DEA-C02) - DEA-C02免費考試真題

問題1
You have a Snowpark DataFrame 'df_products' with columns 'product id', 'category', and 'price'. You need to perform the following transformations in a single, optimized query using Snowpark Python: 1. Filter for products in the 'Electronics' or 'Clothing' categories. 2. Group the filtered data by category. 3. Calculate the average price for each category. 4. Rename the aggregated column to 'average_price'. Which of the following code snippets demonstrates the most efficient way to achieve this?

正確答案: A
說明:(僅 VCESoft 成員可見)
問題2
A Snowflake table, contains product information in a VARIANT column named This column holds JSON structures. You need to create a view, , that exposes specific fields , and 'category') as structured columns, and should gracefully handle scenarios where may contain characters incompatible with VARCHAR, 'category' is nested inside an array called 'tags'. What is the BEST and the MOST robust approach?

正確答案: E
說明:(僅 VCESoft 成員可見)
問題3
A Snowflake table 'ORDERS' is clustered on the 'ORDER DATE column. After several months, you notice that many micro-partitions contain data from a wide range of 'ORDER DATE values, and query performance on date range filters is degrading. Which of the following actions could improve performance and reduce the overlap in micro-partitions?

正確答案: B,E
說明:(僅 VCESoft 成員可見)
問題4
You have a table 'EVENTS' containing application event data with columns 'EVENT ID, 'USER ID, 'EVENT TYPE, and EVENT DETAILS (VARCHAR). The 'EVENT DETAILS column contains comma-separated key-value pairs (e.g., 'location=USA,device=mobile,os=iOS'). Your objective is to transform this structured data into a VARIANT column named EVENT JSON' in a new table 'EVENTS JSON'. The data in EVENT DETAILS has inconsistent key-value pairs across different rows. Which of the following methods are the most efficient and scalable to parse the key-value pairs in 'EVENT DETAILS' and construct the JSON objects?

正確答案: A,B
說明:(僅 VCESoft 成員可見)
問題5
You are tasked with designing a solution to load semi-structured data (JSON) from an AWS S3 bucket into a Snowflake table using Snowpipe and the REST API. The data in S3 is constantly being updated, and you need to ensure that only new or modified files are loaded into Snowflake. Which of the following steps are essential for implementing an efficient and cost-effective solution?

正確答案: C,E
說明:(僅 VCESoft 成員可見)
問題6
You are designing a data governance strategy for a Snowflake data warehouse. You need to track data lineage for compliance purposes. Specifically, you need to identify all downstream tables that depend on a specific column in a source table. Which combination of Snowflake features and techniques would you use to achieve this goal effectively?

正確答案: A
說明:(僅 VCESoft 成員可見)
問題7
You are tasked with building a data pipeline using Snowpark to process sensor data from IoT devices. The data arrives in near real-time as JSON payloads, and you need to transform and load it into a Snowflake table named 'SENSOR DATA'. The transformation logic involves extracting specific fields, converting data types, and filtering out records based on a timestamp. Consider performance optimization for large data volumes. Which of the following approaches, in combination, would be MOST efficient for this scenario?

正確答案: C,D
說明:(僅 VCESoft 成員可見)
問題8
You are using the Snowflake Spark connector to update records in a Snowflake table based on data from a Spark DataFrame. The Snowflake table 'CUSTOMER' has columns 'CUSTOMER ID' (primary key), 'NAME, and 'ADDRESS'. You have a Spark DataFrame with updated 'NAME and 'ADDRESS' values for some customers. To optimize performance and minimize data transfer, which of the following strategies can you combine with a temporary staging table to perform an efficient update?

正確答案: A,B
說明:(僅 VCESoft 成員可見)
問題9
You are tasked with optimizing a data pipeline that loads data from an external cloud storage location into Snowflake, transforms it, and then loads it into reporting tables. The pipeline is experiencing intermittent performance issues. You want to proactively identify and address these issues. Which of the following monitoring techniques and Snowflake features would be MOST effective for continuous monitoring and performance optimization?

正確答案: B,D
說明:(僅 VCESoft 成員可見)
問題10
You are tasked with designing a data pipeline to load data from an Azure Blob Storage container into Snowflake using an external stage. The data is in CSV format, compressed using GZIP. The container contains millions of small CSV files. To optimize the data loading process and minimize cost, which of the following strategies would you implement, considering both stage configuration and COPY INTO options? Choose TWO that apply.

正確答案: C,D
說明:(僅 VCESoft 成員可見)
問題11
You are responsible for monitoring data quality in a Snowflake data warehouse. Your team has identified a critical table, 'CUSTOMER DATA, where the 'EMAIL' column is frequently missing or contains invalid entries. You need to implement a solution that automatically detects and flags these anomalies. Which of the following approaches, or combination of approaches, would be MOST effective in proactively monitoring the data quality of the 'EMAIL' column?

正確答案: B,C,E
說明:(僅 VCESoft 成員可見)
問題12
You are designing a data sharing solution in Snowflake where a provider account shares a view with a consumer account. The view is based on a table that undergoes frequent DML operations (inserts, updates, deletes). The consumer account needs to see a consistent snapshot of the data, even during these DML operations. Which of the following strategies, or combination of strategies, would be MOST effective in ensuring data consistency from the consumer's perspective, and what considerations should be made?

正確答案: A
說明:(僅 VCESoft 成員可見)
問題13
You're loading data into a Snowflake table using 'COPY INTO'. You notice that some rows are being rejected due to data validation errors (e.g., data type mismatch, uniqueness constraint violations). You want to implement a strategy to capture these rejected rows for further analysis and correction. Which of the following approaches offers the MOST efficient and reliable method for capturing and storing the rejected rows, minimizing performance impact during the data loading process? Assume no staging table exists before loading data to production table.

正確答案: E
說明:(僅 VCESoft 成員可見)
問題14
You have a Snowflake table named 'ORDERS clustered on 'ORDER DATE. After a significant data load, you want to evaluate the effectiveness of the clustering. Which of the following SQL queries, using Snowflake system functions, will provide insights into the clustering depth and overlap of micro-partitions in the 'ORDERS' table, specifically helping you identify whether re-clustering is necessary? Assume that the table

正確答案: E
說明:(僅 VCESoft 成員可見)