View Full Snowflake SnowPro Core COF-C03 Exam Dumps and Practice Test Dumps.
Question 21
Which Snowflake feature is used to load data from files into Snowflake tables?
- Snowflake Tasks
- Stages
- Streams
- Roles
Correct Answer: 2
Explanation
Snowflake stages provide locations where data files can be stored temporarily or referenced before loading them into tables. Stages can be internal to Snowflake or reference external cloud storage locations. During a typical loading workflow, files are placed in a stage and then loaded into a target table using commands such as COPY INTO. Streams track changes to table data, Tasks automate SQL execution, and Roles manage access privileges. A stage therefore plays a central role in file-based data loading because it provides the source location from which Snowflake can retrieve the files.
Question 22
Which SQL command is commonly used to load staged files into a Snowflake table?
- COPY INTO
- INSERT STAGE
- LOAD TABLE
- IMPORT FILE
Correct Answer: 1
Explanation
The COPY INTO command is commonly used to load data from staged files into Snowflake tables. It supports loading files from internal stages as well as supported external storage locations and can work with defined file formats. Administrators and data engineers can use COPY INTO to specify the target table and source stage while applying options appropriate to the loading operation. Commands such as INSERT are used for inserting rows from query results or values, but they do not replace the file-loading workflow. Therefore, COPY INTO is the standard command associated with loading staged files into Snowflake tables.
Question 23
What is the purpose of a Snowflake file format object?
- To define how staged files should be interpreted
- To provide compute resources
- To control user authentication
- To store query results permanently
Correct Answer: 1
Explanation
A Snowflake file format object defines the format and structure of data files that Snowflake reads or writes during loading and unloading operations. Settings can describe formats such as CSV, JSON, Avro, ORC, and Parquet, along with relevant options for interpreting the files. File formats do not provide compute resources, authenticate users, or permanently store query results. Using a named file format can also simplify administration because the same parsing rules can be reused across multiple loading operations. This makes file format objects an important part of consistent and repeatable data ingestion workflows.
Question 24
A data engineer needs to unload query results into files stored in a stage. Which command should be used?
- COPY INTO
- CREATE FILE
- EXPORT TABLE
- SELECT INTO STAGE
Correct Answer: 1
Explanation
Snowflake uses COPY INTO with a location to unload table data or query results into files in an internal or external stage. The command can be combined with a SELECT statement to control which rows and columns are exported. This makes it useful for creating files for downstream systems, data exchange, or external processing. CREATE FILE and EXPORT TABLE are not standard Snowflake commands for this purpose. SELECT INTO STAGE is also not the normal syntax for unloading data. Understanding the distinction between loading with COPY INTO a table and unloading with COPY INTO a location is important for Snowflake data movement.
Question 25
Which stage type is managed and maintained within Snowflake?
- External stage
- Internal stage
- Network stage
- Database stage
Correct Answer: 2
Explanation
An internal stage is managed within Snowflake and can be used to store files for loading into or unloading from tables. Snowflake provides different internal staging options, including user, table, and named stages. External stages instead reference supported external cloud storage locations, such as storage services provided by cloud platforms. The distinction is important because it determines where files physically reside and how they are managed. Internal stages are convenient when users want Snowflake to manage the staging location, while external stages are useful when data already resides in an organization’s cloud storage environment.
Question 26
Which stage is associated directly with a specific user and can be used for that user’s files?
- User stage
- Table stage
- External stage
- Schema stage
Correct Answer: 1
Explanation
A user stage is a personal internal staging area associated with a specific Snowflake user. It can be used to temporarily store files that the user intends to load into Snowflake tables or use in related data workflows. A table stage is associated with a particular table, while an external stage references storage outside Snowflake. Schema stage is not a standard Snowflake stage type. User stages can be convenient for individual loading tasks because users do not need to create a separate named stage for every temporary file operation. Appropriate privileges and supported commands still govern how staged files are accessed.
Question 27
Which stage is automatically associated with a Snowflake table?
- User stage
- Table stage
- External stage
- Account stage
Correct Answer: 2
Explanation
A table stage is automatically associated with a particular Snowflake table and provides an internal location where files can be staged for loading into that table. Unlike a named stage, a table stage does not require a separate CREATE STAGE statement. User stages are associated with individual users, while external stages point to supported cloud storage locations. Account stage is not a standard stage category. Table stages are particularly useful when files are specifically related to a particular table and the organization does not need a reusable named staging object. This distinction helps administrators choose an appropriate staging approach.
Question 28
Which Snowflake object records change information for a table so that downstream processing can identify changed rows?
- Stream
- Stage
- File format
- Warehouse
Correct Answer: 1
Explanation
A Snowflake stream records metadata about changes made to supported source objects, allowing downstream processes to identify inserted, updated, or deleted rows since the stream’s offset. Streams are commonly used as part of change data capture workflows. A stage stores files, a file format defines how files are interpreted, and a warehouse provides compute resources. A stream does not itself execute transformations or automatically move data. Instead, it exposes change information that can be consumed by SQL statements or automated processes. This makes streams useful when building incremental data-processing pipelines that should process only changed data.
Question 29
Which Snowflake object can automate the execution of SQL statements on a schedule or when triggered by conditions?
- Stream
- Task
- Stage
- Share
Correct Answer: 2
Explanation
A Snowflake Task is designed to execute SQL statements or call supported procedures according to a schedule or as part of a task graph. Tasks can therefore automate recurring operations such as data transformations, maintenance activities, and pipeline processing. Streams can provide change information to identify newly changed data, but they do not schedule execution themselves. Stages store files, and shares provide controlled data access to other accounts. Tasks can be combined with streams to build incremental processing workflows in which a task executes when relevant changes are available. This combination supports automated data pipelines within Snowflake.
Question 30
A team wants to process only rows that changed since the previous processing cycle. Which combination is most appropriate?
- Stream and Task
- Stage and Role
- Warehouse and Share
- File format and Database
Correct Answer: 1
Explanation
A stream and task can work together to support incremental processing. The stream records change information for a source object, allowing downstream SQL to identify rows affected since the relevant stream offset. A task can then automate execution of that SQL according to a schedule or task dependency. A stage is primarily concerned with files, while roles control access. Warehouses provide compute and shares provide controlled data access. Combining a stream with a task is therefore useful for automated change-driven pipelines because one component tracks changes and the other controls when processing occurs.
Question 31
Which Snowflake object is designed to provide a virtual representation of data without storing a separate copy of the underlying rows?
- View
- Stage
- Sequence
- Warehouse
Correct Answer: 1
Explanation
A standard Snowflake view is a named query that presents data based on its underlying SQL definition rather than storing a separate physical copy of the result rows. Views can simplify complex queries, provide controlled access to selected columns or rows, and create logical abstractions for users. A stage stores files, a sequence generates sequential values, and a warehouse supplies compute resources. Because a view is defined by a query, changes to the underlying data can be reflected when the view is queried. This makes views useful for presenting consistent logical datasets without duplicating the underlying table data.
Question 32
Which type of view is designed to protect the view definition from being exposed to users?
- Temporary view
- Secure view
- Materialized view
- External view
Correct Answer: 2
Explanation
A secure view is designed to prevent unauthorized users from seeing sensitive information about the view definition and underlying implementation. Secure views are useful when organizations need to expose controlled data while limiting visibility into the SQL definition or underlying structures. A temporary view exists only for the duration of a session, while a materialized view stores maintained results to improve performance for eligible query patterns. External view is not the standard Snowflake object used for this security purpose. Secure views are particularly useful when data providers need to expose selected information without revealing implementation details.
Question 33
What is a key characteristic of a materialized view in Snowflake?
- It stores maintained results to improve query performance
- It replaces all source tables
- It is used only for user authentication
- It can only contain unstructured files
Correct Answer: 1
Explanation
A materialized view stores maintained results derived from its defining query, allowing eligible queries to access precomputed data rather than always recalculating the full underlying query. This can improve performance for certain workloads, although maintaining the materialized view also consumes resources. A materialized view does not replace its source tables and is unrelated to user authentication. It can operate on supported structured data rather than serving as a file-storage mechanism. Administrators should evaluate workload patterns before using materialized views because their maintenance and storage requirements need to be considered alongside the potential performance benefits.
Question 34
Which Snowflake data type is intended for semi-structured data such as JSON?
- NUMBER
- BOOLEAN
- VARIANT
- DATE
Correct Answer: 3
Explanation
VARIANT is a Snowflake data type designed to store semi-structured data, including JSON, Avro, ORC, and Parquet data when represented in Snowflake’s supported semi-structured structures. It allows different attributes and nested structures to be stored without requiring every element to fit a fixed relational schema. NUMBER stores numeric values, BOOLEAN stores true or false values, and DATE stores calendar dates. Snowflake also provides related types such as OBJECT and ARRAY for working with semi-structured data. VARIANT is especially useful when ingesting JSON documents whose structure may contain nested or changing attributes.
Question 35
Which Snowflake data type is most appropriate for storing an ordered collection of semi-structured values?
- ARRAY
- BOOLEAN
- BINARY
- INTEGER
Correct Answer: 1
Explanation
The ARRAY data type is designed to store an ordered collection of values and is commonly used when working with semi-structured data. Array elements can contain supported values and can be nested within other semi-structured structures. OBJECT is generally used for key-value pairs, while VARIANT can contain different types of semi-structured values. BOOLEAN represents true or false values, and integer or binary types serve different structured-data purposes. Understanding the distinction between ARRAY, OBJECT, and VARIANT helps users query and manipulate JSON-like structures effectively within Snowflake tables.
Question 36
Which Snowflake data type represents key-value pairs within semi-structured data?
- ARRAY
- OBJECT
- TIME
- FLOAT
Correct Answer: 2
Explanation
The OBJECT data type represents key-value pairs and is useful for storing semi-structured structures similar to JSON objects. Each key can be associated with a value, and values can themselves contain nested structures. ARRAY is intended for ordered collections, while VARIANT can hold values of different supported semi-structured types. TIME represents a time-of-day value, and FLOAT stores approximate numeric values. Snowflake’s semi-structured data capabilities allow organizations to ingest complex data without immediately flattening every attribute into separate relational columns. OBJECT is therefore the appropriate type when the data naturally consists of named attributes and values.
Question 37
A company wants to query JSON data while preserving its nested structure. Which approach is appropriate?
- Store the JSON as VARIANT
- Convert every value to BOOLEAN
- Store it only in a warehouse
- Convert the entire document to a DATE
Correct Answer: 1
Explanation
Storing JSON data in a VARIANT column allows Snowflake to preserve its semi-structured representation while still providing SQL capabilities for querying nested attributes. This approach is useful when source documents contain varying fields, arrays, nested objects, or other structures that may not fit a rigid relational schema immediately. Snowflake users can subsequently extract individual elements or flatten structures when needed for analytics. A warehouse provides compute rather than persistent table storage, while BOOLEAN and DATE are inappropriate for representing an entire JSON document. VARIANT therefore provides flexibility for ingesting and querying nested JSON data.
Question 38
Which function is commonly used to transform an ARRAY or other semi-structured structure into individual rows?
- FLATTEN
- COUNT
- ROUND
- COALESCE
Correct Answer: 1
Explanation
The FLATTEN table function is commonly used to expand semi-structured data such as arrays or objects into rows that can be queried more easily. It is especially useful when JSON documents contain nested arrays and analysts need to process individual elements. Functions such as COUNT calculate values, ROUND performs numeric rounding, and COALESCE returns the first non-null expression among its arguments. FLATTEN is therefore specifically relevant to navigating and expanding nested semi-structured structures. It can be used with lateral joins to combine flattened elements with information from the original row.
Question 39
Which Snowflake feature allows users to share selected data with another Snowflake account without copying the underlying data?
- Data sharing
- File format
- Warehouse resizing
- Stream
Correct Answer: 1
Explanation
Snowflake Secure Data Sharing allows providers to share selected database objects with other Snowflake accounts without requiring the provider to copy the underlying data into the consumer’s account. This approach can simplify data distribution and help keep shared information current because the consumer accesses the provider’s shared data according to the configured sharing model. File formats define file interpretation, warehouse resizing changes compute capacity, and streams track data changes. Data sharing is therefore the relevant Snowflake capability when the requirement is controlled cross-account access without traditional data duplication.
Question 40
What is a key benefit of Snowflake Secure Data Sharing?
- It requires every consumer to create a duplicate physical database
- It provides controlled access to shared data without traditional copying
- It automatically converts all data into JSON
- It eliminates the need for access controls
Correct Answer: 2
Explanation
Secure Data Sharing allows a provider to make selected data available to consumers without the traditional process of copying that data into another environment. The provider controls which objects are shared, and consumers access the shared data according to the permissions and sharing configuration. This can reduce duplication and simplify data distribution. Secure Data Sharing does not automatically convert data into JSON and does not eliminate the need for access controls. Consumers also do not necessarily need a physical duplicate of the provider’s shared data. The capability is therefore particularly useful for governed and efficient data exchange.