Snowflake SnowPro Advanced: Data Engineer Exam-style mock test
Snowflake SnowPro Advanced Data Engineer Practice Exams|Practice test
Full explanations
Exam format
Pass line 70%
33 USD One-time · lifetime access
Enroll →
Sample questions
Example1 · Data Movement, Ingestion, and Loading (COPY, Snowpipe)
A B2B SaaS analytics platform receives small JSON event files in an S3 bucket every few seconds and needs them available in Snowflake within about a minute, without running a warehouse continuously. Which ingestion approach best fits this requirement?
✓Snowpipe triggered automatically by cloud storage event notifications on arrival
Correct. Snowpipe uses event notifications for serverless, continuous micro-batch loading that meets near-real-time latency without a user-managed warehouse.
・A scheduled hourly bulk COPY INTO running on a dedicated large virtual warehouse
Incorrect. An hourly bulk COPY on a large warehouse adds latency far beyond one minute and keeps compute provisioned unnecessarily for tiny files.
・A manual COPY INTO command that an analyst runs each time new files arrive
Incorrect. Relying on an analyst to manually run COPY each time files arrive cannot deliver reliable per-minute latency and does not scale.
・An external table refreshed only on a nightly schedule for direct file queries
Incorrect. A nightly-refreshed external table exposes data only once per day, which is far slower than the required near-real-time freshness.
Explanation
Snowpipe's serverless, event-driven micro-batch model is the standard choice for continuous low-latency ingestion of frequent small files.
Example2 · Performance Optimization and Query Tuning
A data engineer at a B2B SaaS analytics firm investigates a slow dashboard query. The Query Profile shows a single TableScan node consuming 85% of execution time with a very low 'Partitions scanned / Partitions total' ratio being high (nearly all partitions scanned). What is the most likely root cause of the slowness?
✓Poor partition pruning, so the selective filter failed to eliminate micro-partitions and nearly the whole table was read
Correct. A high ratio of partitions scanned to total means the filter did not eliminate micro-partitions, so pruning failed and the full table was read.
・The warehouse was undersized and had to spill intermediate results to local and remote storage
Incorrect. Spilling appears as bytes spilled to local/remote storage on other operators, not as a TableScan dominating time with near-total partition scanning.
・The result cache was disabled at the account level, forcing every run to recompute everything
Incorrect. A disabled result cache would cause recomputation but would not by itself force every partition to be scanned when a selective filter is present.
・A Cartesian product formed because the join predicate used columns with mismatched collation settings
Incorrect. A Cartesian product shows as an exploding Join operator with huge row counts, not as a TableScan reading most partitions of one table.
Explanation
A TableScan reading almost all partitions despite a filter indicates failed partition pruning, which is the classic signal of a clustering or predicate issue.
Example3 · Storage, Data Protection, and Time Travel and Cloning
A data engineer at a B2B SaaS company accidentally ran an UPDATE that corrupted the SUBSCRIPTIONS table 20 minutes ago. The table has the default retention period. Which approach restores the correct prior state most directly?
✓Use Time Travel AT with an OFFSET just before the UPDATE, then recreate or swap the recovered table
Correct. Time Travel AT(OFFSET) returns rows as they existed before the UPDATE, letting you recreate or swap the table.
・Restore the data from the most recent Fail-safe copy through Snowflake Support
Incorrect. Fail-safe is a 7-day recovery handled only by Snowflake Support and is not used for routine self-service recovery.
・Replay the raw ingestion files from the external stage into a staging table
Incorrect. Replaying raw files rebuilds ingestion but loses any post-load transformations and is far slower than Time Travel.
・Rebuild the table from the downstream reporting mart that holds yesterday's figures
Incorrect. A downstream aggregated mart lacks the row-level detail needed to reconstruct the base table accurately.
Explanation
Within the retention window, Time Travel AT(OFFSET) is the direct, self-service path to recover pre-mutation data.
Example4 · Security, Access Control, and Data Governance
A healthcare services firm wants analysts to query the CLAIMS schema without being able to insert, update, or delete rows. A data engineer is designing the role that will be granted to the analyst group. Which approach correctly grants the needed access following RBAC best practices?
✓Grant USAGE on the database and schema, and grant SELECT on the tables to a functional role assigned to analysts
Correct. USAGE on the database and schema plus SELECT on the tables, assigned to a functional role, gives read-only access with least privilege.
・Grant the ACCOUNTADMIN system role directly to every individual analyst user in the healthcare services firm
Incorrect. ACCOUNTADMIN is the most powerful account role and granting it broadly to analysts is an unacceptable security and governance risk.
・Grant OWNERSHIP on each table in the CLAIMS schema directly to each individual analyst user account that needs read access
Incorrect. OWNERSHIP confers full control including DDL and DML, which far exceeds read-only needs and should not be granted per user.
・Grant ALL PRIVILEGES on the entire database to a shared role and then revoke the write privileges one table at a time
Incorrect. Granting ALL PRIVILEGES then revoking is error-prone, violates least privilege, and leaves write access until each revoke completes.
Explanation
RBAC best practice is to grant the minimum set of privileges (USAGE for traversal, SELECT for reads) to a functional role, not elevated or ownership privileges per user.
Example5 · Transformations, Streams, Tasks, and Snowpark Pipelines
At a healthcare services firm, an engineer tracks a PATIENT_ADMISSIONS table where rows are only ever inserted and never updated or deleted. The downstream pipeline must process only newly inserted rows with the least metadata overhead. Which stream type should the engineer create?
✓An insert-only stream
Correct. An append-only (insert-only) stream tracks only inserted rows and ignores updates and deletes, giving the lowest metadata overhead for an insert-only table.
・A standard delta stream that surfaces inserts, updates, and deletes through its metadata columns
Incorrect. A standard stream tracks all DML including updates and deletes, adding unnecessary metadata overhead for an insert-only workload.
・An append-only stream that records inserted rows and also emits records whenever existing rows are later deleted
Incorrect. An append-only stream does not record deletes; the added delete behavior described here is wrong.
・A standard stream configured with the SHOW_INITIAL_ROWS parameter enabled to capture the full table snapshot first
Incorrect. SHOW_INITIAL_ROWS affects only the first consumption and does not make a standard stream insert-only or reduce ongoing overhead.
Explanation
Append-only (insert-only) streams track only inserts, which perfectly matches an insert-only table and minimizes metadata.
Example6 · Data Movement, Ingestion, and Loading (COPY, Snowpipe)
A data engineer at a healthcare services firm runs COPY INTO to load a batch of nightly patient-encounter CSV files from an internal stage. A few files contain occasional malformed rows, but the team wants the entire batch rejected if any file is bad so it can be reprocessed cleanly. Which ON_ERROR setting meets this requirement?
✓ON_ERROR = ABORT_STATEMENT
Correct. ABORT_STATEMENT stops and rolls back the entire COPY on the first error, so no partial batch is loaded and the whole set can be reprocessed.
・ON_ERROR = CONTINUE, which loads every valid row and silently skips only the specific malformed rows it encounters
Incorrect. CONTINUE loads the good rows and skips bad ones, leaving a partial load rather than rejecting the whole batch as required.
・ON_ERROR = SKIP_FILE, which skips any file containing at least one malformed row but still loads all the other files
Incorrect. SKIP_FILE only drops the offending files while loading the rest, so the batch is not rejected as a unit.
・ON_ERROR = SKIP_FILE_10, which skips only those files whose malformed-row count reaches ten or more during loading
Incorrect. SKIP_FILE_n skips a file once its error count reaches n, again producing a partial load instead of a full rejection.
Explanation
ABORT_STATEMENT is the only option that fails the entire statement on any error, ensuring an all-or-nothing batch load.
Example7 · Data Movement, Ingestion, and Loading (COPY, Snowpipe)
The retailer UrbanThread lands small JSON clickstream files into an S3 bucket every few seconds and needs them loaded into Snowflake within about a minute of arrival, without managing a schedule or a running warehouse. Which ingestion approach best fits this requirement?
✓Snowpipe with auto-ingest
Correct. Snowpipe auto-ingest uses event notifications to load new files serverlessly within about a minute, with no warehouse or schedule to manage.
・A task scheduled every minute that runs a COPY INTO statement using a dedicated XSMALL warehouse that is suspended between runs
Incorrect. A one-minute task with a user-managed warehouse adds scheduling overhead and warehouse management that Snowpipe removes for near-real-time micro-batches.
・A manual COPY INTO statement executed from a stored procedure that an analyst triggers whenever files are available in the bucket
Incorrect. Manual analyst-triggered COPY cannot meet a continuous sub-minute latency target and requires constant human intervention.
・An external table refreshed hourly by a scheduled task so downstream queries read the newest partitions on demand
Incorrect. An hourly external table refresh gives hourly, not near-real-time, visibility and does not physically load the data as required here.
Explanation
Snowpipe auto-ingest is purpose-built for continuous, low-latency loading of frequently arriving files without managing warehouses or schedules.
Example8 · Data Movement, Ingestion, and Loading (COPY, Snowpipe)
UrbanThread created a pipe on an S3 stage with AUTO_INGEST = TRUE, but files that land in the bucket are never loaded even though a manual COPY INTO against the same stage works correctly. The data engineer confirms the pipe is running and the stage credentials are valid. What is the most likely cause that must be corrected so auto-ingest begins working?
✓The S3 bucket event notification is not configured to send object-created events to the SQS queue that corresponds to the pipe's notification channel ARN returned by SHOW PIPES
Correct. Auto-ingest requires the bucket to publish object-created events to the SQS queue identified by the pipe's notification_channel ARN; without that wiring, no files trigger loads.
・The pipe definition is missing a FILE_FORMAT clause
Incorrect. A missing file format would cause load errors, not a complete absence of ingestion, and a manual COPY would also fail rather than succeed.
・The warehouse assigned to the pipe is suspended
Incorrect. Snowpipe is serverless and uses Snowflake-managed compute, so no user warehouse needs to be running.
・The stage uses a storage integration instead of inline credentials
Incorrect. A storage integration is a supported and recommended credentials method and does not by itself prevent event-driven loading.
Explanation
Auto-ingest depends on cloud event notifications reaching the pipe's SQS channel; a working manual COPY proves access and format are fine, isolating the problem to the notification wiring.
Example9 · Data Movement, Ingestion, and Loading (COPY, Snowpipe)
UrbanThread loads a nightly batch of supplier CSV files with COPY INTO. A few rows per file contain malformed numeric fields, and the team wants every valid row loaded while the specific bad rows are skipped rather than failing the whole file. Which ON_ERROR setting meets this goal?
✓Use ON_ERROR = CONTINUE so the load skips each offending row and proceeds to load all remaining valid rows from the file
Correct. ON_ERROR = CONTINUE skips only the individual error rows and loads the remaining valid rows from each file, exactly matching the requirement.
・Use ON_ERROR = ABORT_STATEMENT
Incorrect. ABORT_STATEMENT stops the entire load on the first error, discarding valid rows the team wants to keep.
・Use ON_ERROR = SKIP_FILE_5 only
Incorrect. SKIP_FILE_5 skips the whole file once 5 errors occur, which can drop many valid rows rather than only the bad ones.
・Use VALIDATION_MODE = RETURN_ERRORS
Incorrect. VALIDATION_MODE only inspects data and returns errors without actually loading any rows.
Explanation
ON_ERROR = CONTINUE is the row-level skip option that preserves all valid rows while discarding only the malformed ones.
Example10 · Data Movement, Ingestion, and Loading (COPY, Snowpipe)
A financial services firm receives small trade-confirmation files landing in S3 continuously, every few seconds, throughout market hours. The data team wants each file loaded within a minute of arrival without running a warehouse around the clock. Which loading approach best fits this pattern?
✓Snowpipe configured with auto-ingest to load files continuously
Correct. Snowpipe with auto-ingest uses event notifications to load small files continuously and serverlessly, with no dedicated warehouse running.
・A scheduled bulk COPY INTO command that a cron-triggered task runs against the same stage once every hour of trading
Incorrect. Hourly batch COPY introduces up to an hour of latency, far beyond the required one-minute freshness for the trade confirmations.
・A single large daily COPY INTO executed on an extra-large warehouse after the market closes each evening
Incorrect. A once-daily close-of-market COPY cannot deliver the near-real-time latency that the streaming confirmation files require.
・An external table queried directly over the files so that the raw S3 objects are never physically loaded at all
Incorrect. An external table avoids loading but adds query-time scan cost and does not satisfy the goal of ingesting files into Snowflake promptly.
Explanation
Snowpipe auto-ingest is designed for frequent, small-file, low-latency continuous loading without a persistent warehouse.
Example11 · Data Movement, Ingestion, and Loading (COPY, Snowpipe)
A payments company sets up Snowpipe auto-ingest for an external stage on S3. The pipe is created and files are arriving, but nothing is being loaded. Which configuration step is the most likely one that was missed and must be completed for auto-ingest to trigger?
✓Configuring an S3 event notification that publishes object-created events to the SQS queue ARN reported by the pipe so new files trigger it
Correct. Auto-ingest requires the cloud bucket to publish object-created events to the SQS queue ARN exposed by the pipe; without this wiring, nothing triggers loads.
・Setting the pipe's AUTO_INGEST parameter to TRUE when creating it
Incorrect. AUTO_INGEST=TRUE is set at pipe creation, but by itself it does not deliver the bucket events the pipe needs to fire.
・Granting the USAGE privilege on the pipe to the loading role
Incorrect. USAGE privilege affects who can reference the pipe, not whether cloud notifications reach it to drive ingestion.
・Resuming the newly created auto-ingest pipe object before files arrive
Incorrect. A newly created auto-ingest pipe is already running, so resuming it does not address the missing event notification wiring.
Explanation
Auto-ingest depends on the cloud storage event notification being routed to the pipe's SQS queue ARN; a missing notification is the classic cause of silent non-loading.
Example12 · Data Movement, Ingestion, and Loading (COPY, Snowpipe)
A manufacturing distributor drops small shipment-event files into S3 every few seconds and needs them queryable within a minute or two without running a warehouse continuously. Which ingestion approach best fits this continuous, low-latency micro-batch pattern?
✓Snowpipe auto-ingest, which loads files continuously as they arrive
Correct. Snowpipe auto-ingest loads files continuously as they arrive with serverless compute, giving near-real-time availability that matches the few-seconds arrival cadence.
・A scheduled task that runs hourly COPY INTO statements against the staged files
Incorrect. Hourly scheduled COPY batches introduce up to an hour of latency, which fails the one-to-two-minute freshness requirement for shipment events.
・A single large COPY INTO run once per day after files accumulate
Incorrect. A once-per-day bulk COPY maximizes latency and defeats the continuous low-latency goal the distributor needs for event data.
・An external table refreshed manually by an operator each morning
Incorrect. A manually refreshed external table depends on human action each morning and cannot deliver continuous minute-level freshness for streaming files.
Explanation
Snowpipe auto-ingest is designed for continuous, low-latency loading of frequently arriving files using serverless compute.
Example13 · Data Movement, Ingestion, and Loading (COPY, Snowpipe)
A data engineer at the distributor creates a pipe with AUTO_INGEST = TRUE so that new inventory files in an S3 stage load automatically, but no files are ever ingested even though files keep arriving. Which configuration step is the most likely missing piece that must be completed for auto-ingest to actually trigger loads?
・The warehouse assigned to the pipe was suspended and must be resumed first
Incorrect. Snowpipe uses serverless compute, not a user warehouse, so a suspended warehouse is irrelevant to whether auto-ingest files are picked up.
✓The S3 event notification must be configured to publish object-created events to the pipe's SQS queue ARN
Correct. Auto-ingest relies on the cloud provider sending object-created notifications to the pipe's SQS queue ARN; without that notification wiring, Snowflake is never told files arrived.
・The file format object referenced by the pipe should be recreated to match the layout
Incorrect. A delimiter mismatch would produce load errors on attempted loads, not a complete absence of any ingestion activity.
・The pipe owner role needs the MONITOR privilege granted on the target schema
Incorrect. MONITOR controls visibility into usage and history, not the event-driven triggering of Snowpipe auto-ingest loads.
Explanation
Auto-ingest depends on cloud event notifications routed to the pipe's notification channel (SQS for S3); missing notification setup means no loads fire.
Example14 · Data Movement, Ingestion, and Loading (COPY, Snowpipe)
A telecom operator stages millions of call-detail-record (CDR) files in an external S3 stage and must load every staged file into a target table even those a prior COPY already marked as loaded. Which COPY INTO option forces reloading of all files regardless of prior load history?
✓FORCE = TRUE
Correct. FORCE = TRUE ignores the load metadata and reloads every staged file, even those already loaded.
・PURGE = TRUE removes the files from the external stage after a successful load completes
Incorrect. PURGE = TRUE deletes files post-load and does not override the duplicate-skip behavior.
・RETURN_FAILED_ONLY = TRUE returns only the rows for files that failed during this load
Incorrect. RETURN_FAILED_ONLY only changes returned result rows, not which files are reloaded.
・LOAD_UNCERTAIN_FILES = TRUE reloads only files whose load metadata status is uncertain
Incorrect. LOAD_UNCERTAIN_FILES addresses only ambiguous metadata, not a full unconditional reload.
Explanation
FORCE = TRUE is the explicit control that bypasses Snowflake's load metadata so all files are loaded again.
Example15 · Data Movement, Ingestion, and Loading (COPY, Snowpipe)
A telecom operator wants new network-telemetry files dropped into an S3 bucket to load into Snowflake within about a minute, with no scheduled task and no manual COPY commands. Which configuration should the data engineer implement to satisfy this continuous, event-driven ingestion requirement with minimal operational overhead?
・A recurring serverless TASK that executes a COPY INTO statement once every sixty seconds against the external stage
Incorrect. A polling task adds latency and overhead and is not the event-driven pattern Snowpipe auto-ingest provides.
✓A pipe created with AUTO_INGEST = TRUE whose SQS or SNS notification is wired to the bucket's S3 event notifications so each new object triggers the pipe automatically
Correct. AUTO_INGEST = TRUE with cloud event notifications routed through the pipe's queue delivers low-latency, hands-off loading.
・An external function invoked by the application that calls the Snowpipe insertFiles REST endpoint for every uploaded object
Incorrect. The REST insertFiles endpoint is the push model requiring the client to call it, not auto-ingest from bucket events.
・A stream on the external stage combined with a task that merges newly detected files into the target
Incorrect. Streams track table changes, not arbitrary new files in an external stage, so this does not auto-ingest.
Explanation
Snowpipe auto-ingest links the pipe to cloud storage event notifications so objects load automatically as they arrive.
▶ Try 10 free questions (graded)