ExamGecko
Question list
Search
Search

List of questions

Search

Question 111 - ARA-C01 discussion

Report
Export

An Architect needs to automate the daily Import of two files from an external stage into Snowflake. One file has Parquet-formatted data, the other has CSV-formatted data.

How should the data be joined and aggregated to produce a final result set?

A.
Use Snowpipe to ingest the two files, then create a materialized view to produce the final result set.
Answers
A.
Use Snowpipe to ingest the two files, then create a materialized view to produce the final result set.
B.
Create a task using Snowflake scripting that will import the files, and then call a User-Defined Function (UDF) to produce the final result set.
Answers
B.
Create a task using Snowflake scripting that will import the files, and then call a User-Defined Function (UDF) to produce the final result set.
C.
Create a JavaScript stored procedure to read. join, and aggregate the data directly from the external stage, and then store the results in a table.
Answers
C.
Create a JavaScript stored procedure to read. join, and aggregate the data directly from the external stage, and then store the results in a table.
D.
Create a materialized view to read, Join, and aggregate the data directly from the external stage, and use the view to produce the final result set
Answers
D.
Create a materialized view to read, Join, and aggregate the data directly from the external stage, and use the view to produce the final result set
Suggested answer: B

Explanation:

According to the Snowflake documentation, tasks are objects that enable scheduling and execution of SQL statements or JavaScript user-defined functions (UDFs) in Snowflake. Tasks can be used to automate data loading, transformation, and maintenance operations. Snowflake scripting is a feature that allows writing procedural logic using SQL statements and JavaScript UDFs. Snowflake scripting can be used to create complex workflows and orchestrate tasks. Therefore, the best option to automate the daily import of two files from an external stage into Snowflake, join and aggregate the data, and produce a final result set is to create a task using Snowflake scripting that will import the files using the COPY INTO command, and then call a UDF to perform the join and aggregation logic. The UDF can return a table or a variant value as the final result set.Reference:

Tasks

Snowflake Scripting

User-Defined Functions

asked 23/09/2024
jonathan Smallwood
33 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first