Limited-Time Offer: Enjoy 50% Savings! Coupon code: 50OFF Use it at checkout
Skip to content

Free Snowflake SnowPro Core Certification Exam COF-C02 Exam Questions

Last updated: · 13 practice questions with answers and explanations

Page: 1 / 52 Total 778 questions

Want more questions? Get Premium Access.

Question 1

New Single answer

Topic: Domain 1.0: Snowflake Cloud Data Platform Features and Architecture

Skill tested: Choose Snowflake storage and compute layers for independent workload scaling.

A retailer runs overnight revenue reconciliation and daytime interactive dashboards against the same curated tables. The reconciliation job often occupies the warehouse for hours, causing dashboard queues. The company wants to isolate performance and scale compute independently, but it does not want duplicate copies of the tables or separate data pipelines. Which design best meets these requirements?

Correct Answer: D. Create a separate virtual warehouse for each workload and have both query the same database tables.
Explanation:

Snowflake separates persistent data storage from virtual warehouse compute. Independent virtual warehouses can query the same stored tables, allowing the reconciliation workload and dashboard workload to scale and operate without competing for the same compute resources. Cloning is unnecessary and does not isolate warehouse contention if both workloads still use one warehouse. A larger shared warehouse may add capacity but does not provide workload isolation, and resource monitors do not assign query priority. Separate synchronized databases add data-management complexity.

Question 2

New Single answer

Topic: Domain 1.0: Snowflake Cloud Data Platform Features and Architecture

Skill tested: Select an appropriate Snowflake architecture for sharing data with a consumer.

A market-data provider needs to give a partner read-only access to a frequently refreshed dataset. The provider must retain control of the source data, avoid creating and maintaining a second dataset for the partner, and permit the partner to run queries using its own compute resources. Which approach most directly satisfies these constraints?

Correct Answer: D. Create a secure share of the relevant objects and have the partner consume it through a database.
Explanation:

A Snowflake share provides controlled access to selected provider objects without copying the shared data into a separate provider-maintained dataset. The consumer creates a database from the share and uses its own virtual warehouse to query the shared data. Periodic file exports introduce copies and refresh operations. A clone creates a separate dataset that must be managed for freshness, while granting an external partner a role in the provider account is not the normal cross-account data-sharing model and does not meet the independent-compute requirement.

Question 3

New Single answer

Topic: Domain 1.0: Snowflake Cloud Data Platform Features and Architecture

Skill tested: Distinguish virtual warehouse compute scaling from persistent storage scaling.

A data engineering team receives a sudden increase in concurrent ELT queries. Query runtimes rise because statements are waiting for warehouse resources, but the stored tables remain within expected size and query plans show no unusual data-access problems. The team wants to increase capacity during the peak and return to its prior cost level afterward without changing table storage. Which action is the best fit?

Correct Answer: A. Resize the virtual warehouse for the peak and restore its prior size when demand subsides.
Explanation:

Virtual warehouse size controls compute resources for executing queries, so resizing the warehouse addresses resource pressure and can be reversed when peak demand ends. Persistent storage is managed separately and is not the remedy for queued compute workloads. Larger tables do not create additional execution capacity, and Time Travel provides access to historical data rather than compute. The scenario identifies warehouse resource waits, not a storage or data-retention issue.

Question 4

New Single answer

Topic: Domain 2.0: Account Access and Security

Skill tested: Grant the minimum database, schema, and table privileges needed for querying.

An analyst must run SELECT queries against one existing table in a shared reporting schema. The analyst should not create objects, modify data, or access other schemas. An administrator wants to assign a dedicated role using least privilege. Which set of access changes is sufficient, assuming the role will be granted to the analyst and the warehouse is already usable by that role?

Correct Answer: A. Grant USAGE on the database and schema, and SELECT on the specific table.
Explanation:

To query a table, the role needs USAGE on its containing database and schema, plus SELECT on the table. These grants provide the required navigation and read access without allowing object creation or data modification. Snowflake does not use SELECT on a database or USAGE on a table as substitutes for the required privileges. Schema OWNERSHIP is excessive and grants broad control, while INSERT does not authorize reading table rows.

Question 5

New Multiple answers

Topic: Domain 2.0: Account Access and Security

Skill tested: Configure role inheritance and warehouse privileges for controlled query access.

A support analyst already has the privileges required to read a specific table through role REPORT_READER. The analyst also needs to execute queries on warehouse SUPPORT_WH. The security team wants to preserve the existing table-access design and avoid granting the analyst broad account-level roles. Select TWO changes that meet the requirement. (Select TWO.)

Correct Answer: B. Grant the REPORT_READER role to the analyst's user.; E. Grant USAGE on SUPPORT_WH to REPORT_READER.
Explanation:

The role needs USAGE on the virtual warehouse to use it, and the user needs the REPORT_READER role to inherit the table-access privileges already assigned to that role. These two changes provide the intended access with least privilege. Warehouse OWNERSHIP is unnecessary and overly broad; SYSADMIN would grant far more authority than required. SELECT is not the privilege used to authorize warehouse usage.

Question 6

New Single answer

Topic: Domain 2.0: Account Access and Security

Skill tested: Identify role ownership and grant authority needed to delegate object access.

A team lead must grant another role SELECT access to a table owned by the team's application role. The team lead can currently query the table through an inherited role, but cannot administer its grants. The security administrator wants to delegate only the authority needed for this grant-management task, without transferring table ownership. What is the most appropriate action?

Correct Answer: D. Grant the team lead a role that has the required grant authority on the table, such as the owning role.
Explanation:

Having SELECT through an inherited role permits querying but does not by itself confer authority to grant that privilege to others. Granting an appropriate role with the required object grant authority, such as the role that owns the table, enables the task while avoiding an ownership transfer or account-wide administration. Snowflake table SELECT grants are not delegated using the stated WITH GRANT OPTION mechanism. ACCOUNTADMIN is far broader than this object-level responsibility requires.

Question 7

New Single answer

Topic: Domain 3.0: Performance Concepts

Skill tested: Use Query Profile operators and metrics to diagnose local disk spilling.

A monthly aggregation query scans its input successfully, but its runtime grows sharply as the number of groups increases. In Query Profile, the join completes without notable spill, while a downstream aggregate operator reports bytes spilled to local storage and has a much longer execution time than comparable operators. What should the engineer investigate first?

Correct Answer: A. Whether the aggregate's working set exceeds available memory and whether a larger warehouse is warranted.
Explanation:

The Query Profile local-spill metric on the aggregate indicates that the operator's intermediate working data exceeded available memory and was written to local storage. The engineer should inspect the aggregation cardinality and query shape, and determine whether more warehouse resources or a reduced intermediate result can address the pressure. Micro-partition counts and result-cache behavior do not explain an operator-specific spill metric. A stream is a change-data-capture object, not a replacement for an aggregation.

Question 8

New Single answer

Topic: Domain 3.0: Performance Concepts

Skill tested: Interpret remote spilling in Query Profile to locate memory pressure.

A transformation query performs a large repartitioning join. Query Profile shows substantial bytes spilled to remote storage at the join, while scanning accounts for only a small portion of execution time. The SQL already filters the source rows correctly, and the operation must process the full matching dataset. Which next step is most appropriate for addressing the observed bottleneck?

Correct Answer: A. Investigate increasing the virtual warehouse size to provide more memory for the join.
Explanation:

Remote spilling at the join indicates that intermediate join data exceeded the memory available to the executing warehouse, and remote spill is generally more costly than keeping that data in memory or local storage. Since the full matching dataset must be processed and filtering is already appropriate, evaluating a larger warehouse is a relevant next step. Time Travel retention does not provide join memory, automatic clustering is not a spill-control setting, and the result cache does not retain intermediate operator data.

Question 9

New Single answer

Topic: Domain 4.0: Data Loading and Unloading

Skill tested: Choose a named external stage and COPY options for staged CSV loading.

A company receives daily CSV files in its cloud object-storage bucket. The files have a header row, comma delimiters, and quoted fields; the loading pipeline should use Snowflake's bulk-loading mechanism and the bucket should remain the source of the files. The team can configure the required cloud access integration and wants a reusable location and parsing configuration. Which approach is best?

Correct Answer: C. Define a named external stage for the bucket and a CSV file format with header and quote handling, then use COPY INTO the target table.
Explanation:

A named external stage provides a reusable reference to the cloud storage location, and a CSV file format captures parsing settings such as field delimiter, quote character, and header handling. COPY INTO is the bulk-loading command for ingesting staged files. An internal stage would require moving the files into Snowflake-managed staging, contrary to the stated source-location requirement. GET transfers staged files out to a client; it does not load rows. A file format alone does not provide a staged location or perform loading.

Question 10

New Multiple answers

Topic: Domain 4.0: Data Loading and Unloading

Skill tested: Select COPY INTO options for reliable CSV loads and controlled file handling.

A scheduled pipeline bulk-loads CSV files from a named stage into a Snowflake table. Each file has a header row. The source system may occasionally send a malformed row, but operations staff need rejected-row details and do not want one bad row to prevent valid rows from loading. Files should remain available in cloud storage for the source system's normal lifecycle. Which TWO configuration choices are appropriate? (Select TWO.)

Correct Answer: A. Use COPY INTO with an ON_ERROR policy that continues loading valid rows and reports rejected records.; D. Use a CSV file format with SKIP_HEADER set to 1.
Explanation:

SKIP_HEADER = 1 configures the CSV parser to ignore the header row. An appropriate ON_ERROR policy, such as CONTINUE, allows load processing to continue past problematic records; COPY load results provide details that operators can use to inspect errors. PURGE = TRUE conflicts with retaining the files for the source system's lifecycle. FORCE = TRUE can reload files that Snowflake would otherwise recognize as already loaded, risking duplicates. A JSON format does not parse CSV correctly.

Question 11

New Multiple answers

Topic: Domain 5.0: Data Transformation

Skill tested: Flatten nested arrays into relational rows while retaining parent-record context.

A landing table contains one VARIANT column named PAYLOAD. Each row represents an order with an order_id and an items array; each array element contains sku and quantity. Analysts need one relational output row per item, with the parent order_id alongside the item attributes. They must retain the original landing table unchanged and should not split an array into a single scalar value. Which TWO SQL design choices satisfy the requirement? (Select TWO.)

Correct Answer: A. Select the parent order_id from PAYLOAD and extract sku and quantity from each flattened VALUE.; D. Use LATERAL FLATTEN on PAYLOAD:items to produce one row per array element.
Explanation:

LATERAL FLATTEN expands an array into rows while keeping each generated row correlated with its originating order record. The parent order_id can be selected from the original VARIANT value, and the flattened element in VALUE can supply sku and quantity through path extraction or appropriate casts. ARRAY_TO_STRING produces a scalar string rather than relational item rows. GET by index retrieves only a particular element, and updating the landing data would both lose information and violate the unchanged-source requirement.

Question 12

New Single answer

Topic: Domain 5.0: Data Transformation

Skill tested: Write lateral FLATTEN SQL that expands nested objects and extracts typed fields.

A telemetry table stores one VARIANT column, EVENT. Each event has a device identifier and a readings array containing objects with metric and value properties. Analysts need a row for every reading, including the device identifier, metric name, and numeric reading value. The source table must remain unchanged, and readings can vary in array length. Which query pattern is most appropriate?

Correct Answer: C. Select EVENT:device_id, f.VALUE:metric, and f.VALUE:value::NUMBER from the table, using LATERAL FLATTEN(INPUT => EVENT:readings) AS f.
Explanation:

LATERAL FLATTEN with INPUT set to the readings array generates one output row per array element and preserves access to the parent EVENT row. Each flattened object is available through f.VALUE, from which the metric and value fields can be extracted; casting the value to NUMBER yields a relational numeric column when its contents are compatible. Selecting index zero misses other readings, flattening the device identifier targets the wrong value, and OBJECT_KEYS is for object keys rather than expanding array elements.

Question 13

New Single answer

Topic: Domain 5.0: Data Transformation

Skill tested: Preserve parent columns while flattening nested VARIANT arrays in SQL.

A product catalog stores a VARIANT document in column DOC. Each document contains a product_id and a categories array. A report needs one row per category while retaining product_id and the category's array index for traceability. Some products have several categories, so selecting only a fixed array position is unacceptable. Which SQL approach produces the required result?

Correct Answer: B. Use LATERAL FLATTEN(INPUT => DOC:categories) and select DOC:product_id, the flattened VALUE, and the flattened INDEX.
Explanation:

LATERAL FLATTEN expands every category-array element into its own row and exposes both VALUE and INDEX, while the parent DOC remains available for selecting product_id. This meets the requirement for variable array length and traceability without modifying the source. A fixed index returns only one category, flattening product_id targets a scalar rather than the array, and converting the array into a delimited string does not create one relational row per category.