# Snowflake SnowPro Core (COF-C02) — Cloud Data Platform Architecture, Performance, Governance & Data Sharing

> High-yield Snowflake SnowPro Core (COF-C02) certification flashcards covering the 3-layer architecture, micro-partitions, Virtual Warehouses, caching layers, Time Travel & Fail-safe, Zero-Copy Cloning, COPY INTO vs. Snowpipe, Streams & Tasks, Secure Data Sharing, Dynamic Data Masking, and RBAC.

- **Canonical URL:** https://flashcards.world/flashcards/sets/c624b52b-8044-4493-a6a4-2b3ae699b6b4/
- **Markdown URL:** https://flashcards.world/flashcards/sets/c624b52b-8044-4493-a6a4-2b3ae699b6b4.md
- **Category:** Project Management, Agile & AI/Data Certifications — PMI PMP, PRINCE2 7th Ed., Scrum (PSM/CSPO) & ITIL 4 + AWS AI/ML, Databricks & Snowflake
- **Level:** advanced
- **Languages:** en → en
- **Total Cards:** 32

## Flashcards (32 Cards)

| # | Front (Term / Prompt) | Back (Definition / Answer) | Example | Multiple-Choice Options |
| :--- | :--- | :--- | :--- | :--- |
| 1 | How does the Query Acceleration Service (QAS) differ from Multi-Cluster Warehouses in Snowflake? | Query Acceleration Service offloads large table scans from outlier queries to serverless compute pools, whereas Multi-Cluster Warehouses add clusters for high user concurrency. | Instead of resizing an S warehouse to XL all day just for two unpredictable ad-hoc scan queries, an admin runs `ALTER WAREHOUSE bi_wh SET ENABLE_QUERY_ACCELERATION = TRUE QUERY_ACCELERATION_MAX_SCALE_FACTOR = 8`. | A) Query Acceleration Service offloads large table scans from outlier queries to serverless compute pools, whereas Multi-Cluster Warehouses add clusters for high user concurrency. ✓; B) QAS dynamically rents serverless compute to accelerate outlier scan-heavy queries; Multi-Cluster Warehouses add clusters to handle high concurrency.; C) Check `SYSTEM$ESTIMATE_QUERY_ACCELERATION` or `QUERY_ACCELERATION_ELIGIBLE` view to identify queries that benefit from QAS. |
| 2 | Compare Bulk Loading (`COPY INTO <table>`) and Continuous Loading (`Snowpipe`) in Snowflake across compute model, load history deduplication, and billing. | Bulk `COPY INTO` uses customer Virtual Warehouses (64-day load history); Snowpipe (`AUTO_INGEST = TRUE`) uses serverless compute triggered by cloud events (14-day load history). | Snowpipe bills 1.25× serverless compute credits plus 0.06 credits per 1,000 files notified, making file sizes of 100–250 MB compressed optimal for both Snowpipe and `COPY INTO`. | A) Bulk `COPY INTO` uses customer Virtual Warehouses (64-day load history); Snowpipe (`AUTO_INGEST = TRUE`) uses serverless compute triggered by cloud events (14-day load history). ✓; B) `COPY INTO`: Virtual Warehouse compute, 64-day load metadata retention; Snowpipe: Serverless compute, event/REST-driven micro-batches, 14-day load metadata retention.; C) Snowpipe Streaming (`Snowflake Ingest SDK` / Kafka Connector) writes rows directly into tables with sub-second latency without staging files first. |
| 3 | In Snowflake Virtual Warehouses, when should you Scale Up (resize XS -> 6XL) versus Scale Out (Multi-Cluster Warehouse min/max clusters), and how does billing work? | Scale Up (larger T-shirt size, doubling credits/hr) for complex queries or disk spilling; Scale Out (Multi-Cluster) for concurrency queues; billed per second (60s minimum). | If a Medium warehouse (4 credits/hr) starts, runs a 15-second query, and suspends, it is billed for the 60-second minimum; if it runs for 75 seconds, it is billed for exactly 75 seconds. | A) Scale Up (larger T-shirt size) fixes slow complex queries and disk spilling; Scale Out (Multi-Cluster Warehouse) fixes queued concurrent user queries.; B) Scale Up (larger T-shirt size, doubling credits/hr) for complex queries or disk spilling; Scale Out (Multi-Cluster) for concurrency queues; billed per second (60s minimum). ✓; C) Each warehouse size step doubles compute and credits/hr (XS=1, S=2, M=4, L=8, XL=16...); billed per second after a 60-second minimum. |
| 4 | In Snowpark (Python, Java, Scala) and Snowflake Stored Procedures vs. UDFs, how does execution Rights (`EXECUTE AS OWNER` vs. `EXECUTE AS CALLER`) work? | Snowpark pushes DataFrames down as SQL into Virtual Warehouses; Stored Procedures default to `EXECUTE AS OWNER` (creator privileges), whereas `EXECUTE AS CALLER` uses caller privileges. | Unlike UDFs (which must return a single scalar or tabular expression and can be called inside a `SELECT` statement), Stored Procedures are invoked via `CALL proc()` and can execute DDL/DML and administrative commands. | A) Snowpark pushes DataFrames down as SQL into Virtual Warehouses; Stored Procedures default to `EXECUTE AS OWNER` (creator privileges), whereas `EXECUTE AS CALLER` uses caller privileges. ✓; B) Stored Procedures default to `EXECUTE AS OWNER` (can run DDL/DML via `CALL`); UDFs/UDTFs are called inside `SELECT` queries and always run with the privileges of the query caller (while accessing underlying objects via owner references).; C) Snowpark DataFrames are lazily evaluated on the client and compiled into optimized SQL executed inside Snowflake Virtual Warehouses (or Snowpark-Optimized Warehouses with 16× memory per node for ML training). |
| 5 | How does the Snowflake Search Optimization Service (SOS) differ from Clustering Keys? | Search Optimization builds a persistent secondary search access path for selective point lookups (`=`, `IN`), substring, geospatial, and `VARIANT` queries without re-sorting micro-partitions. | When an operational API runs thousands of sub-second lookups like `WHERE user_uuid = 'a8f9...'` on a 20 TB table already clustered by `event_date`, enabling `ALTER TABLE t ADD SEARCH OPTIMIZATION ON EQUALITY(user_uuid)` prunes micro-partitions instantly. | A) Search Optimization builds a persistent secondary search access path for selective point lookups (`=`, `IN`), substring, geospatial, and `VARIANT` queries without re-sorting micro-partitions. ✓; B) Clustering Keys physically sort micro-partitions for range scans (`BETWEEN`, `>=`); Search Optimization Service builds a secondary access path for selective point lookups (`=`, `IN`), `VARIANT`, and text searches.; C) SOS incurs additional storage for the search access path and serverless compute credits for background maintenance. |
| 6 | What is the difference between Database Replication (`REPLICATION GROUP`) and Account Failover (`FAILOVER GROUP`) in Snowflake Business Continuity? | Replication Groups (all editions) replicate read-only databases across regions/clouds; Failover Groups (Business Critical+) add read-write promotion of databases, users, roles, warehouses, and Client Redirect. | During a regional AWS us-east-1 outage, an enterprise with Business Critical Edition runs `ALTER FAILOVER GROUP fg_prod PRIMARY` in Azure East US 2 and updates the `CONNECTION` primary so BI applications reconnect seamlessly. | A) Replication is available on all editions (secondary is read-only unless promoted in Business Critical+); Failover Groups + Client Redirect require Business Critical Edition or higher.; B) Replication incurs data transfer costs across regions/clouds and Serverless/Warehouse compute credits on the target account.; C) Replication Groups (all editions) replicate read-only databases across regions/clouds; Failover Groups (Business Critical+) add read-write promotion of databases, users, roles, warehouses, and Client Redirect. ✓ |
| 7 | What are the six standard system-defined roles in Snowflake Role-Based Access Control (RBAC), and what is the recommended role hierarchy? | `ORGADMIN`, `ACCOUNTADMIN` (top account role), `SECURITYADMIN` (global grants, inherits `USERADMIN`), `USERADMIN` (users/roles), `SYSADMIN` (warehouses/databases; parent for custom roles), and `PUBLIC`. | If an engineer creates a database while using `ACCOUNTADMIN` or a custom role not granted to `SYSADMIN`, system administrators under `SYSADMIN` cannot manage that database unless ownership or privileges are explicitly granted. | A) `ACCOUNTADMIN` sits above `SECURITYADMIN` (which inherits `USERADMIN`) and `SYSADMIN`; `PUBLIC` is inherited by all roles; `ORGADMIN` manages multi-account organization operations.; B) `ORGADMIN`, `ACCOUNTADMIN` (top account role), `SECURITYADMIN` (global grants, inherits `USERADMIN`), `USERADMIN` (users/roles), `SYSADMIN` (warehouses/databases; parent for custom roles), and `PUBLIC`. ✓; C) Follow DAC (Discretionary Access Control) + RBAC best practices: never create production objects as `ACCOUNTADMIN`, enable MFA on `ACCOUNTADMIN`, and wire all custom functional roles up to `SYSADMIN`. |
| 8 | In Snowflake RBAC, how do Secondary Roles (`USE SECONDARY ROLES ALL`), Managed Access Schemas (`WITH MANAGED ACCESS`), and Future Grants work? | `USE SECONDARY ROLES ALL` activates privileges across all granted roles; Managed Access Schemas restrict `GRANT` authority to the Schema Owner and `SECURITYADMIN`. | In a Managed Access Schema (`CREATE SCHEMA fin WITH MANAGED ACCESS`), even if Role A owns table `t1`, Role A cannot grant `SELECT` on `t1`—only the schema owner or `SECURITYADMIN` can issue grants. | A) Managed Access Schemas prevent decentralized privilege sprawl by restricting grant management to the schema owner; Future Grants (`GRANT SELECT ON FUTURE TABLES IN SCHEMA ...`) automatically apply to newly created tables (schema-level future grants override database-level future grants).; B) `USE SECONDARY ROLES ALL` activates privileges across all granted roles; Managed Access Schemas restrict `GRANT` authority to the Schema Owner and `SECURITYADMIN`. ✓; C) `USE SECONDARY ROLES ALL` lets a user query objects across multiple granted functional roles simultaneously without switching primary roles. |
| 9 | What responsibilities reside in Snowflake's Cloud Services layer, and how is Cloud Services compute billed? | Cloud Services handles authentication, RBAC, metadata, query optimization, and the Result Cache; it is billed only when exceeding 10% of daily warehouse compute credits. | Running `SELECT COUNT(*) FROM sales` or `SHOW TABLES` is answered purely from Cloud Services metadata without starting a Virtual Warehouse, and costs zero credits unless daily Cloud Services usage exceeds 10% of daily compute. | A) Cloud Services handles authentication, RBAC, metadata, query optimization, and the Result Cache; it is billed only when exceeding 10% of daily warehouse compute credits. ✓; B) Handles authentication, RBAC, query compilation/optimization, transaction management, metadata, and Result Cache; billed only when exceeding 10% of daily warehouse credits.; C) Stateless, multi-tenant control plane running across availability zones that coordinates queries, security, and micro-partition metadata. |
| 10 | How are Snowflake Micro-Partitions structured, sized, and pruned during query execution? | Tables are automatically divided into immutable, compressed columnar micro-partitions (50–500 MB uncompressed) with per-column min/max metadata enabling horizontal and vertical pruning. | Because micro-partitions are immutable, updating a single row in a 16 MB micro-partition causes Snowflake to mark the old micro-partition as historical (for Time Travel) and write a brand-new micro-partition. | A) Tables are automatically divided into immutable, compressed columnar micro-partitions (50–500 MB uncompressed) with per-column min/max metadata enabling horizontal and vertical pruning. ✓; B) Immutable columnar files of 50–500 MB uncompressed data managed automatically by Snowflake with rich column min/max metadata stored in Cloud Services.; C) Snowflake uses micro-partition metadata to prune unneeded partitions (horizontal pruning) and reads only referenced columns (vertical pruning). |
| 11 | How does Zero-Copy Cloning (`CREATE ... CLONE`) work in Snowflake regarding storage costs, micro-partitions, and privileges? | Cloning creates new metadata pointers to existing immutable micro-partitions at zero initial storage cost; storage is billed only as new micro-partitions are written. | When `CREATE DATABASE dev_db CLONE prod_db` runs, child tables inside `dev_db` retain their grants, whereas a standalone cloned table requires `COPY GRANTS` to inherit privileges. | A) Metadata-only operation sharing immutable micro-partitions (Copy-on-Write); Temporary/Transient tables cannot be cloned to Permanent tables, and External tables/Internal Named Stages cannot be cloned.; B) Cloning creates new metadata pointers to existing immutable micro-partitions at zero initial storage cost; storage is billed only as new micro-partitions are written. ✓; C) Use `CREATE TABLE t_clone CLONE t_src COPY GRANTS` if you want a standalone table clone to retain the source table's access privileges. |
| 12 | In Snowflake data loading, what are the three types of Internal Stages vs. External Stages, and which prefixes reference them in SQL? | User Stage (`@~`), Table Stage (`@%table`), Named Internal Stage (`@stage`), and Named External Stage (`@ext_stage` referencing S3/ADLS/GCS via a Storage Integration). | Running `PUT file:///tmp/data.csv @%orders;` uploads a local file via SnowSQL into the `orders` Table Stage, whereas production pipelines use a Named External Stage backed by a `STORAGE INTEGRATION` (avoiding hard-coded cloud keys). | A) User Stage (`@~`), Table Stage (`@%table`), Named Internal Stage (`@stage`), and Named External Stage (`@ext_stage` referencing S3/ADLS/GCS via a Storage Integration). ✓; B) `@~` = User Stage, `@%table` = Table Stage, `@stage` = Named Internal or External Stage; only Named Stages are first-class database objects that support `FILE_FORMAT` definitions and multi-table loads.; C) Use a `STORAGE INTEGRATION` object when creating an External Stage so Snowflake accesses S3/ADLS/GCS via IAM roles without storing secret keys. |
| 13 | How does Snowflake Secure Data Sharing (`SHARE` objects, Reader Accounts, and the Snowflake Marketplace) work? | Providers share live read-only databases, tables, and Secure Views via a `SHARE` with zero data copy; Consumers pay for compute (Providers pay for Reader Accounts). | If a Consumer does not have a Snowflake account, the Provider creates a managed Reader Account (`CREATE MANAGED ACCOUNT`), in which case the Provider pays for both storage and Reader Account compute. | A) Zero-copy read-only sharing within the same cloud/region (Consumer pays compute; Provider pays storage); for Reader Accounts, the Provider pays for the Consumer's compute; only **Secure Views** and **Secure Materialized Views** (not standard views) can be added to a Share.; B) Why must shared views be `SECURE VIEW`? Because Snowflake hides the view definition and prevents the query optimizer from pushing user filter functions before the view's security filter, blocking side-channel data inference.; C) Providers share live read-only databases, tables, and Secure Views via a `SHARE` with zero data copy; Consumers pay for compute (Providers pay for Reader Accounts). ✓ |
| 14 | When should you define a Clustering Key on a Snowflake table, and how does Automatic Clustering work? | Define Clustering Keys (1–4 columns ordered low-to-high cardinality) only on multi-terabyte tables with slow pruning; serverless Automatic Clustering maintains them in the background. | Inspecting `SYSTEM$CLUSTERING_INFORMATION('fact_events', '(event_date)')` reveals a high `average_depth`, prompting the team to run `ALTER TABLE fact_events CLUSTER BY (event_date, region)`. | A) Recommended only for multi-terabyte tables with slow query pruning; order keys from lower cardinality (e.g., date/region) to higher cardinality, avoiding high-precision timestamps unless truncated (`TO_DATE`).; B) Use `SYSTEM$CLUSTERING_INFORMATION` or `SYSTEM$CLUSTERING_DEPTH` to diagnose micro-partition overlap before adding a Clustering Key.; C) Define Clustering Keys (1–4 columns ordered low-to-high cardinality) only on multi-terabyte tables with slow pruning; serverless Automatic Clustering maintains them in the background. ✓ |
| 15 | How do the `INFORMATION_SCHEMA` and the `SNOWFLAKE.ACCOUNT_USAGE` views differ in query latency, retention period, and dropped objects? | `INFORMATION_SCHEMA` has 0 latency, 7d–6m retention, and excludes dropped objects; `ACCOUNT_USAGE` has 45m–3h latency, 365-day retention, and includes dropped objects. | To audit Virtual Warehouse credit usage over the past 9 months or inspect tables dropped last month, query `SNOWFLAKE.ACCOUNT_USAGE.WAREHOUSE_METERING_HISTORY` and `SNOWFLAKE.ACCOUNT_USAGE.TABLES`. | A) `INFORMATION_SCHEMA` has 0 latency, 7d–6m retention, and excludes dropped objects; `ACCOUNT_USAGE` has 45m–3h latency, 365-day retention, and includes dropped objects. ✓; B) `INFORMATION_SCHEMA` = real-time (0 latency), 7d–6m retention, no dropped objects; `ACCOUNT_USAGE` = 45m–3h latency, 365-day retention, includes dropped objects.; C) Grant the `SNOWFLAKE.GOVERNANCE_VIEWER`, `OBJECT_VIEWER`, `USAGE_VIEWER`, or `SECURITY_VIEWER` database roles to allow non-`ACCOUNTADMIN` users to query `SNOWFLAKE.ACCOUNT_USAGE`. |
| 16 | How do Snowflake Resource Monitors control credit spend, and what are the three trigger actions? | Created by `ACCOUNTADMIN`, Resource Monitors track warehouse credit quotas and trigger `NOTIFY`, `NOTIFY & SUSPEND` (finishes running queries), or `NOTIFY & SUSPEND IMMEDIATELY` (aborts queries). | Configuring a monthly Resource Monitor with `TRIGGERS ON 80 PERCENT DO NOTIFY ON 100 PERCENT DO SUSPEND ON 110 PERCENT DO SUSPEND_IMMEDIATE` protects the account from runaway warehouse queries. | A) `NOTIFY`, `SUSPEND` (waits for active queries to complete), and `SUSPEND_IMMEDIATE` (kills active queries immediately); only `ACCOUNTADMIN` can create a Resource Monitor, and a warehouse can belong to only one warehouse-level monitor (plus the account-level monitor).; B) Resource Monitors control user-managed Virtual Warehouses; to cap Serverless Task or Automatic Clustering spend, configure task/table-level budgets or Snowsight Budgets.; C) Created by `ACCOUNTADMIN`, Resource Monitors track warehouse credit quotas and trigger `NOTIFY`, `NOTIFY & SUSPEND` (finishes running queries), or `NOTIFY & SUSPEND IMMEDIATELY` (aborts queries). ✓ |
| 17 | How does Snowflake store and query semi-structured data (`VARIANT`, `OBJECT`, `ARRAY`), and how do `:`, `.`, `[]`, and `LATERAL FLATTEN` work? | Semi-structured data is stored in `VARIANT` columns (16 MB max); query paths via `col:key.subkey::TYPE` and explode nested arrays into rows using `LATERAL FLATTEN(INPUT => ...)`. | Querying `SELECT v:customer.name::STRING, f.value:sku::STRING FROM raw_orders, LATERAL FLATTEN(INPUT => v:items) f` extracts the customer name as a native `VARCHAR` (stripping JSON quotes) and flattens the nested `items` array. | A) Sub-elements accessed via `col:field` return `VARIANT` (keeping double quotes around strings) unless explicitly cast with `::VARCHAR` / `::NUMBER` or `AS_VARCHAR()`.; B) `LATERAL FLATTEN(INPUT => ..., OUTER => TRUE, RECURSIVE => TRUE)` unnests JSON arrays and objects into relational columns (`SEQ`, `KEY`, `PATH`, `INDEX`, `VALUE`, `THIS`).; C) Semi-structured data is stored in `VARIANT` columns (16 MB max); query paths via `col:key.subkey::TYPE` and explode nested arrays into rows using `LATERAL FLATTEN(INPUT => ...)`. ✓ |
| 18 | What are the three caching layers in Snowflake, where does each live, and when is each invalidated? | Metadata Cache (Cloud Services, persistent), Result Cache (Cloud Services, 24-hour TTL up to 31 days), and Local SSD Data Cache (Virtual Warehouse, cleared on suspend). | When a dashboard runs the exact same SQL query with no non-deterministic functions (`CURRENT_TIMESTAMP()`) and no underlying table changes, the Cloud Services Result Cache returns the answer in milliseconds without waking a suspended Virtual Warehouse. | A) Metadata Cache (Cloud Services), Query Result Cache (Cloud Services, 24h TTL reset on each hit up to 31 days, zero compute cost), and Local SSD Data Cache (Warehouse node SSD, wiped on suspend).; B) Metadata Cache (Cloud Services, persistent), Result Cache (Cloud Services, 24-hour TTL up to 31 days), and Local SSD Data Cache (Virtual Warehouse, cleared on suspend). ✓; C) Disable Result Cache usage during performance benchmarking via `ALTER SESSION SET USE_CACHED_RESULT = FALSE`. |
| 19 | How do Dynamic Data Masking, Row Access Policies, Projection Policies, and Aggregation Policies enforce column- and row-level security in Snowflake (Enterprise Edition+)? | Masking Policies redact column values; Row Access Policies filter rows; Projection Policies block `SELECT` projection; Aggregation Policies enforce a minimum group size. | In a Data Clean Room, attaching an Aggregation Policy with `MIN_GROUP_SIZE => 100` and a Projection Policy on `email` lets a partner run demographic cohort counts without ever isolating an individual customer's record. | A) Dynamic Data Masking (column value redaction), Row Access Policy (row-level filtering), Projection Policy (blocks `SELECT col` while allowing `WHERE`/`JOIN`), and Aggregation Policy (enforces minimum aggregation group size).; B) Use `IS_ROLE_IN_SESSION('PII_ADMIN')` rather than `CURRENT_ROLE()` inside Masking and Row Access Policies so role hierarchy inheritance and Secondary Roles are respected.; C) Masking Policies redact column values; Row Access Policies filter rows; Projection Policies block `SELECT` projection; Aggregation Policies enforce a minimum group size. ✓ |
| 20 | Compare Standard Views, Secure Views, and Materialized Views in Snowflake. | Standard Views are logical definitions; Secure Views hide DDL and optimizer pushdowns (required for Shares); Materialized Views pre-compute single-table query results physically. | Because a Materialized View in Snowflake can query only a single base table (no joins with other tables), engineers use **Dynamic Tables** when they need pre-computed materialized results across multi-table joins. | A) Standard View (logical, optimizer-transparent), Secure View (hides DDL + enforces security filter before user predicates, required for Shares), Materialized View (Enterprise+, physical storage + serverless maintenance, single-table only).; B) Standard Views are logical definitions; Secure Views hide DDL and optimizer pushdowns (required for Shares); Materialized Views pre-compute single-table query results physically. ✓; C) If a complex multi-table join needs pre-computation in Snowflake, use a Dynamic Table instead of a Materialized View. |
| 21 | What is Snowflake Cortex AI, and which built-in LLM/ML functions are tested on modern Snowflake exams? | Snowflake Cortex provides serverless SQL/Python LLM functions (`COMPLETE`, `SUMMARIZE`, `SENTIMENT`, `TRANSLATE`, `EXTRACT_ANSWER`, `EMBED_TEXT`), Cortex Search (RAG), and Cortex Analyst (text-to-SQL). | An analyst runs `SELECT SNOWFLAKE.CORTEX.SENTIMENT(review_text), SNOWFLAKE.CORTEX.SUMMARIZE(review_text) FROM product_reviews` directly in SQL using serverless Cortex credits without exporting customer text to external APIs. | A) Serverless LLM functions (`COMPLETE`, `SUMMARIZE`, `SENTIMENT`, `TRANSLATE`, `EXTRACT_ANSWER`, `EMBED_TEXT`), Cortex Search (managed hybrid vector + keyword RAG), and Cortex Analyst (semantic YAML text-to-SQL).; B) Snowflake Cortex provides serverless SQL/Python LLM functions (`COMPLETE`, `SUMMARIZE`, `SENTIMENT`, `TRANSLATE`, `EXTRACT_ANSWER`, `EMBED_TEXT`), Cortex Search (RAG), and Cortex Analyst (text-to-SQL). ✓; C) Also includes built-in SQL ML functions (`SNOWFLAKE.ML.FORECAST`, `ANOMALY_DETECTION`, `CLASSIFICATION`, and `TOP_INSIGHTS`) trained directly on Snowflake tables. |
| 22 | Compare Permanent, Transient, Temporary, and External tables in Snowflake across Time Travel and Fail-safe retention. | Permanent tables have 0–90 days Time Travel plus 7-day Fail-safe; Transient and Temporary tables have 0–1 day Time Travel and 0 Fail-safe. | To avoid paying for 7 days of Fail-safe storage on 5 TB of nightly staging tables that can be easily reloaded from S3, engineers create them as `CREATE TRANSIENT TABLE raw_stg (...)`. | A) Permanent: 0-90d Time Travel + 7d Fail-safe; Transient: 0-1d Time Travel + 0d Fail-safe; Temporary: session-scoped, 0-1d Time Travel + 0d Fail-safe.; B) Permanent tables have 0–90 days Time Travel plus 7-day Fail-safe; Transient and Temporary tables have 0–1 day Time Travel and 0 Fail-safe. ✓; C) Fail-safe (7 days on Permanent tables) is non-configurable and can only be recovered by contacting Snowflake Support after Time Travel expires. |
| 23 | How do Snowflake Streams (Change Data Capture) work, what metadata columns do they add, and how is a Stream's offset advanced? | Streams track CDC offsets using `METADATA$ACTION`, `METADATA$ISUPDATE`, and `METADATA$ROW_ID`; the offset advances ONLY when the stream is consumed inside a committed DML transaction. | In a Standard (delta) Stream, an `UPDATE` to a single row appears as two records—one `DELETE` and one `INSERT`—both with `METADATA$ISUPDATE = TRUE`; running a plain `SELECT * FROM my_stream` does NOT advance the offset. | A) Standard Streams track inserts, updates, and deletes; Append-Only Streams (`APPEND_ONLY = TRUE`) track only inserts; Insert-Only Streams (`INSERT_ONLY = TRUE`) are required for External Tables.; B) Streams track CDC offsets using `METADATA$ACTION`, `METADATA$ISUPDATE`, and `METADATA$ROW_ID`; the offset advances ONLY when the stream is consumed inside a committed DML transaction. ✓; C) Check `SYSTEM$STREAM_HAS_DATA('my_stream')` inside a Task `WHEN` condition so the Task skips execution and saves warehouse credits when no CDC changes exist. |
| 24 | How do Snowflake Tasks (`CREATE TASK`) and Dynamic Tables (`CREATE DYNAMIC TABLE`) compare for building automated data pipelines? | Tasks schedule procedural SQL/DAGs (starting `SUSPENDED` by default); Dynamic Tables declaratively materialize a SQL query and automatically refresh incrementally to meet a `TARGET_LAG`. | After creating a DAG of Tasks, a developer must explicitly run `ALTER TASK child_task RESUME` and then `ALTER TASK root_task RESUME` (or `SYSTEM$TASK_DEPENDENTS_ENABLE`) because newly created Tasks always start in a `SUSPENDED` state. | A) Tasks are imperative/procedural DAG schedulers (created `SUSPENDED` by default); Dynamic Tables are declarative materialized pipelines refreshed automatically to meet a `TARGET_LAG`.; B) Tasks schedule procedural SQL/DAGs (starting `SUSPENDED` by default); Dynamic Tables declaratively materialize a SQL query and automatically refresh incrementally to meet a `TARGET_LAG`. ✓; C) Combine `WHEN SYSTEM$STREAM_HAS_DATA('s')` on a Task to run incremental `MERGE` statements only when new stream data arrives. |
| 25 | What is Tag-Based Masking in Snowflake Object Tagging? | Tag-Based Masking attaches a `MASKING POLICY` per data type directly to a `TAG`, automatically masking any column, table, or schema assigned that tag. | When Snowsight Data Classification automatically tags 400 new `VARCHAR` columns across 50 tables with `privacy_category = 'IDENTIFIER'`, Tag-Based Masking immediately protects every column without running 400 individual `ALTER COLUMN` statements. | A) Tag-Based Masking attaches a `MASKING POLICY` per data type directly to a `TAG`, automatically masking any column, table, or schema assigned that tag. ✓; B) Links a Masking Policy to a Tag by data type so tagging a column, table, schema, or database automatically applies the masking policy to all matching columns.; C) A single Tag can hold one Masking Policy per data type (e.g., one for `VARCHAR`, one for `TIMESTAMP`, one for `NUMBER`). |
| 26 | How do Network Policies (`CREATE NETWORK POLICY`) and Multi-Factor Authentication (MFA / Duo) secure Snowflake account access? | Network Policies filter IPv4/PrivateLink access using Allowed and Blocked lists (`BLOCKED` evaluated first), and User-level Network Policies override Account-level Network Policies. | If the Account Network Policy allows `10.0.0.0/8` while a service account (`svc_etl`) has a User-Level Network Policy allowing only `192.168.1.50/32`, `svc_etl` can connect ONLY from `192.168.1.50` because user-level policies override account-level policies. | A) Network Policies can be applied at the Account, Security Integration, or User level; User-level Network Policies take precedence over Account-level policies.; B) Snowflake natively integrates with Duo Security for MFA (recommended for all human users, especially `ACCOUNTADMIN`), while service accounts should use Key-Pair Authentication or OAuth.; C) Network Policies filter IPv4/PrivateLink access using Allowed and Blocked lists (`BLOCKED` evaluated first), and User-level Network Policies override Account-level Network Policies. ✓ |
| 27 | How do the four Snowflake Editions (Standard, Enterprise, Business Critical, and Virtual Private Snowflake / VPS) progress in capabilities? | Standard (1-day Time Travel); Enterprise (Multi-Cluster Warehouses, 90-day Time Travel, Masking/Row Policies); Business Critical (PrivateLink, Tri-Secret Secure, Failover); VPS (isolated environment). | If an organization requires Multi-Cluster Warehouses for BI concurrency and 45-day Time Travel, the minimum required edition is Enterprise; if it requires AWS PrivateLink or Customer-Managed Keys (Tri-Secret Secure), it needs Business Critical. | A) Standard (1-day Time Travel) -> Enterprise (Multi-Cluster Warehouses, 90-day Time Travel, Masking/Row Policies) -> Business Critical (PrivateLink, Tri-Secret Secure, Database Failover) -> VPS.; B) Standard (1-day Time Travel); Enterprise (Multi-Cluster Warehouses, 90-day Time Travel, Masking/Row Policies); Business Critical (PrivateLink, Tri-Secret Secure, Failover); VPS (isolated environment). ✓; C) Enterprise Edition unlocks Multi-Cluster Warehouses and 90-day Time Travel; Business Critical Edition unlocks PrivateLink, Tri-Secret Secure, and cross-region failover/failback. |
| 28 | What SQL clauses and commands does Snowflake Time Travel provide (`AT \| BEFORE` and `UNDROP`)? | Query past states via `AT` or `BEFORE` (`TIMESTAMP`, `OFFSET`, or `STATEMENT`), and restore dropped tables, schemas, or databases via `UNDROP`. | If an ETL script accidentally drops the `dim_customers` table, running `UNDROP TABLE dim_customers;` immediately restores the table and its metadata without scanning storage. | A) `AT` or `BEFORE` with `TIMESTAMP`, `OFFSET` (negative seconds), or `STATEMENT` (query UUID), plus `UNDROP` for dropped tables, schemas, databases, and tags.; B) Query past states via `AT` or `BEFORE` (`TIMESTAMP`, `OFFSET`, or `STATEMENT`), and restore dropped tables, schemas, or databases via `UNDROP`. ✓; C) Combine Time Travel with Zero-Copy Cloning via `CREATE TABLE restored CLONE prod_tbl BEFORE (STATEMENT => '01b2...')`. |
| 29 | What is the official exam format, duration, passing score, and 3-layer architecture tested on the Snowflake SnowPro Core (COF-C02) exam? | 100 questions in 115 minutes (750/1000 pass); Snowflake separates Database Storage, Query Processing (MPP Virtual Warehouses), and Cloud Services. | Because Storage (S3/Blob/GCS) and Compute (MPP Virtual Warehouses) are completely decoupled, 10 different Virtual Warehouses can query the exact same table simultaneously without resource contention. | A) 100 questions in 115 minutes (750/1000 pass); Snowflake separates Database Storage, Query Processing (MPP Virtual Warehouses), and Cloud Services. ✓; B) 100 questions in 115 minutes (750/1000 pass); three decoupled layers: Cloud Services, Query Processing (Compute), and Centralized Database Storage.; C) A hybrid of shared-disk (centralized cloud object storage) and shared-nothing (independent MPP Virtual Warehouses with local SSD caches) coordinated by Cloud Services. |
| 30 | How do you unload data from a Snowflake table to cloud storage (`COPY INTO <location>`), and how do you export a single file or exceed the 16 MB default max file size? | Run `COPY INTO @stage FROM table`; Snowflake unloads parallel files capped at 16 MB unless `SINGLE=TRUE` or `MAX_FILE_SIZE` (up to 5 GB) is set. | To export a daily customer extract as a single Parquet file with column headers, run `COPY INTO @ext_stage/cust.parquet FROM customers FILE_FORMAT = (TYPE = PARQUET) SINGLE = TRUE HEADER = TRUE`. | A) Run `COPY INTO @stage FROM table`; Snowflake unloads parallel files capped at 16 MB unless `SINGLE=TRUE` or `MAX_FILE_SIZE` (up to 5 GB) is set. ✓; B) Use `COPY INTO @stage FROM tbl` with `SINGLE = TRUE` for a single file, `HEADER = TRUE` for column names, `OVERWRITE = TRUE` to replace existing files, and `PARTITION BY` for directory partitioning.; C) `GET @stage file:///local/path` downloads files from an Internal Stage to a local machine (note: `PUT` and `GET` are not supported on External Stages). |
| 31 | What are the `ON_ERROR` options for `COPY INTO <table>`, and what does `VALIDATION_MODE` do? | `ON_ERROR` supports `ABORT_STATEMENT` (bulk default), `CONTINUE`, and `SKIP_FILE` (Snowpipe default); `VALIDATION_MODE` dry-runs the load to return parsing errors without inserting rows. | Running `COPY INTO sales FROM @my_stage VALIDATION_MODE = 'RETURN_ALL_ERRORS'` parses staged CSVs and returns every rejected row and line number without modifying the `sales` table. | A) Bulk `COPY INTO` defaults to `ON_ERROR = ABORT_STATEMENT` while Snowpipe defaults to `SKIP_FILE`; `VALIDATION_MODE` tests staged files for parsing errors without loading rows (`VALIDATION_MODE` does not support transformations in `COPY`).; B) After a partial load with `ON_ERROR = CONTINUE`, run `SELECT * FROM TABLE(VALIDATE(sales, JOB_ID => '_last'))` to inspect rejected records.; C) `ON_ERROR` supports `ABORT_STATEMENT` (bulk default), `CONTINUE`, and `SKIP_FILE` (Snowpipe default); `VALIDATION_MODE` dry-runs the load to return parsing errors without inserting rows. ✓ |
| 32 | What are Snowflake Iceberg Tables and Hybrid Tables (Unistore), and what workloads do they solve? | Iceberg Tables query open Parquet/Iceberg files on external storage (`EXTERNAL_VOLUME`); Hybrid Tables provide row-based storage with enforced primary keys and row locking for OLTP. | An application state service uses a Snowflake Hybrid Table to execute sub-10ms single-row `INSERT`/`UPDATE` point transactions with enforced foreign keys while joining that live operational state directly with analytical fact tables. | A) Iceberg Tables store open Parquet + Iceberg metadata on an `EXTERNAL_VOLUME` (Snowflake-managed catalog or external catalog); Hybrid Tables provide indexed, row-locked OLTP transactional storage inside Snowflake.; B) Note that standard Snowflake Permanent/Transient tables enforce only `NOT NULL` constraints (storing `PRIMARY KEY`/`UNIQUE`/`FOREIGN KEY` as informational metadata only), whereas **Hybrid Tables actively enforce** `PRIMARY KEY`, `UNIQUE`, and `FOREIGN KEY` constraints.; C) Iceberg Tables query open Parquet/Iceberg files on external storage (`EXTERNAL_VOLUME`); Hybrid Tables provide row-based storage with enforced primary keys and row locking for OLTP. ✓ |

---
Study this deck interactively with FSRS-6 spaced repetition, audio review, and multiple-choice mode at [Flashcards World](https://flashcards.world/flashcards/sets/c624b52b-8044-4493-a6a4-2b3ae699b6b4/).
