Exam Name: | SnowPro Core Certification Exam | ||
Exam Code: | COF-C02 Dumps | ||
Vendor: | Snowflake | Certification: | SnowPro Core Certification |
Questions: | 693 Q&A's | Shared By: | bea |
A user is loading JSON documents composed of a huge array containing multiple records into Snowflake. The user enables the strip__outer_array file format option
What does the STRIP_OUTER_ARRAY file format do?
Options:
It removes the last element of the outer array.
It removes the outer array structure and loads the records into separate table rows,
It removes the trailing spaces in the last element of the outer array and loads the records into separate table columns
It removes the NULL elements from the JSON object eliminating invalid data and enables the ability to load the records
Answer:
BExplanation:
The STRIP_OUTER_ARRAY file format option in Snowflake is used when loading JSON documents that are composed of a large array containing multiple records. When this option is enabled, it removes the outer array structure, which allows each record within the array to be loaded as a separate row in the table. This is particularly useful for efficiently loading JSON data that is structured as an array of records1.
References:
Snowflake Documentation on JSON File Format
[COF-C02] SnowPro Core Certification Exam Study Guide
Which Snowflake objects track DML changes made to tables, like inserts, updates, and deletes?
Options:
Pipes
Streams
Tasks
Procedures
Answer:
BExplanation:
In Snowflake, Streams are the objects that track Data Manipulation Language (DML) changes made to tables, such as inserts, updates, and deletes. Streams record these changes along with metadata about each change, enabling actions to be taken using the changed data. This process is known as change data capture (CDC)2.
Which of the following can be executed/called with Snowpipe?
Options:
A User Defined Function (UDF)
A stored procedure
A single copy_into statement
A single insert__into statement
Answer:
CExplanation:
Snowpipe is used for continuous, automated data loading into Snowflake. It uses a COPY INTO