Snowflake SnowPro Advanced Data Engineer Practice Test Questions and Exam Dumps Part2 Q21-40

View Full Snowflake SnowPro Advanced Data Engineer Exam Dumps and Practice Test Dumps

 

Question 21

Which object records metadata about staged files?

  1. Task
  2. Stream
  3. Pipe
  4. External Table

Correct Answer: 4

Explanation:

An external table can expose metadata associated with files located in an external stage. Snowflake maintains metadata such as file names and related information that can be used when querying external data. This allows data engineers to work with data-lake files through a table-like interface without first loading the underlying data into standard Snowflake table storage. Tasks automate execution, Streams track table changes, and Pipes support automated file ingestion. External tables are therefore useful when querying externally stored datasets is part of the architecture.

Question 22

Which command validates staged files without loading them?

  1. VALIDATE
  2. MERGE
  3. COPY
  4. DESCRIBE

Correct Answer: 1

Explanation:

The VALIDATE function can be used to retrieve information about errors encountered during a previous COPY operation. It helps data engineers investigate loading problems without having to reload the files solely for diagnostic purposes. This is particularly useful when pipelines process many files and administrators need to identify problematic records or files. MERGE performs data manipulation, COPY handles loading and unloading, and DESCRIBE returns object metadata. Validation is an important part of developing reliable ingestion workflows.

Question 23

Which operation combines source changes into a target table?

  1. DELETE
  2. MERGE
  3. TRUNCATE
  4. GRANT

Correct Answer: 2

Explanation:

MERGE combines conditional insert, update, and delete logic into a single DML operation. It is frequently used in data engineering pipelines when incoming records must be reconciled with an existing target table. For example, a pipeline can match records using a business key and then update existing rows while inserting new ones. DELETE removes qualifying rows, TRUNCATE removes table contents, and GRANT manages privileges. MERGE is especially useful when processing incremental datasets captured from change streams or upstream systems.

Question 24

What does a stream offset represent?

  1. Warehouse size
  2. File compression
  3. Change-consumption position
  4. User authentication state

Correct Answer: 3

Explanation:

A Stream maintains information that allows downstream processing to identify changes relative to a point in the source object’s change history. When changes are consumed as part of a transaction, the stream advances its position accordingly. This supports incremental processing because a pipeline does not need to repeatedly process all historical rows. Warehouse size, file compression, and authentication state are unrelated to stream offsets. Understanding stream consumption behavior is important when designing Tasks and other processes that depend on captured changes.

Question 25

Which command removes all rows while retaining table structure?

  1. DROP
  2. ALTER
  3. TRUNCATE
  4. RENAME

Correct Answer: 3

Explanation:

TRUNCATE removes all rows from a table while retaining the table object and its defined structure. This differs from DROP, which removes the object itself. ALTER modifies object definitions, while RENAME changes an object’s name. TRUNCATE can therefore be useful when a pipeline needs to clear a staging or working table before repopulating it. Data engineers should distinguish between clearing data and removing the underlying object because the operational and recovery implications are different.

Question 26

Which SQL operation is commonly used for deduplicating rows?

  1. Window function
  2. Storage integration
  3. File format
  4. Resource monitor

Correct Answer: 1

Explanation:

Window functions such as ROW_NUMBER can help identify duplicate records according to defined business keys and ordering criteria. A data engineer can partition rows by selected columns, assign sequence numbers, and retain only the desired record from each duplicate group. This provides a flexible approach to deduplication when source systems produce repeated events or records. Storage integrations manage external access, file formats describe file structure, and Resource Monitors manage credit usage. Deduplication logic should reflect the business definition of a valid record.

Question 27

Which function converts semi-structured data into relational columns?

  1. FLATTEN
  2. HASH
  3. COALESCE
  4. CURRENT_DATE

Correct Answer: 1

Explanation:

The FLATTEN table function expands elements from semi-structured data into individual rows, making nested arrays and objects easier to process with relational SQL. It is frequently used with VARIANT data when pipelines need to transform nested JSON structures into a more tabular representation. HASH generates hash values, COALESCE selects the first non-null expression, and CURRENT_DATE returns the current date. FLATTEN is therefore an important transformation tool for data engineers working with nested semi-structured datasets.

Question 28

Which data type stores semi-structured values natively?

  1. NUMBER
  2. VARIANT
  3. DATE
  4. BOOLEAN

Correct Answer: 2

Explanation:

VARIANT is Snowflake’s flexible data type for storing semi-structured values such as JSON, Avro, and Parquet-derived structures. It can contain objects, arrays, and scalar values while allowing SQL expressions to navigate nested elements. Data engineers commonly use VARIANT when source schemas are evolving or when preserving nested source structures is useful during ingestion. NUMBER represents numeric values, DATE represents calendar dates, and BOOLEAN represents true or false values. VARIANT is particularly useful in raw ingestion layers.

Question 29

What does a transient table primarily omit?

  1. Standard time travel retention
  2. Query execution
  3. Column definitions
  4. Data storage

Correct Answer: 1

Explanation:

Transient tables are designed for data that does not require the same data-protection features associated with permanent tables. In particular, transient tables have limited Time Travel retention and do not provide Fail-safe. They can therefore be appropriate for intermediate, reproducible, or temporary-style datasets where extended recovery is not required. Transient tables still support normal querying and defined columns and still store data. Choosing between permanent, transient, and temporary tables should reflect data lifecycle and recovery requirements.

Question 30

Which feature protects against accidental data changes using historical versions?

  1. Search Optimization
  2. Time Travel
  3. Query Acceleration
  4. Warehouse Clustering

Correct Answer: 2

Explanation:

Snowflake Time Travel allows authorized users to access historical versions of data within the applicable retention period. This can help recover from accidental deletes, updates, or other unwanted changes. Historical querying can also support investigation and comparison of previous table states. Search Optimization and Query Acceleration address query performance, while warehouse clustering is not the mechanism used for historical recovery. Data engineers should understand retention settings because historical accessibility depends on the applicable object type and configured retention period.

Question 31

Which statement helps reconcile changed source rows?

  1. MERGE
  2. COMMENT
  3. USE
  4. SHOW

Correct Answer: 1

Explanation:

MERGE is commonly used to reconcile changed source records with a target dataset. Matching conditions determine whether an incoming record corresponds to an existing target row, after which configured clauses can update, insert, or delete data. This makes MERGE useful for incremental ELT patterns and slowly changing data workflows. COMMENT adds descriptive metadata, USE changes the current context, and SHOW lists object information. Proper MERGE design requires carefully defined matching keys to avoid unintended updates or duplicate target records.

Question 32

Which technique reduces repeated scanning of unchanged data?

  1. Full table refresh
  2. Incremental processing
  3. Manual reloading
  4. Static archiving

Correct Answer: 2

Explanation:

Incremental processing focuses computation on newly arrived or changed records instead of repeatedly processing an entire dataset. In Snowflake, patterns involving Streams, Tasks, Dynamic Tables, or other change-aware mechanisms can support this approach. Reducing unnecessary scans can lower compute consumption and shorten pipeline execution time, especially as datasets grow. Full refreshes intentionally process broader datasets, manual reloading requires operator involvement, and static archiving does not itself provide incremental transformation behavior.

Question 33

What does a secure view primarily restrict?

  1. Query result exposure
  2. Warehouse availability
  3. File compression
  4. Task scheduling

Correct Answer: 4

Explanation:

A secure view is designed to prevent certain underlying view-definition details from being exposed to users who query the view. This can be useful when organizations need to share derived data while limiting visibility into the view’s implementation or underlying sensitive logic. Secure views are particularly relevant to controlled data-sharing architectures. Warehouse availability, file compression, and task scheduling are separate concerns. Data engineers should combine secure views with appropriate privileges and governance controls when exposing curated datasets.

Question 34

Which feature can optimize highly selective point lookups?

  1. Search Optimization Service
  2. File Format
  3. Storage Integration
  4. Snowpipe

Correct Answer: 1

Explanation:

The Search Optimization Service can improve performance for certain highly selective queries by maintaining additional search access structures. It is useful when queries frequently look for a small number of matching rows within large tables. The feature can be particularly valuable for equality predicates and other supported search patterns. File formats control how staged data is interpreted, Storage Integrations manage external access, and Snowpipe handles automated file ingestion. Search Optimization should be evaluated against workload characteristics and its additional storage and maintenance considerations.

Question 35

Which feature can accelerate supported complex analytical queries?

  1. Stream
  2. Query Acceleration Service
  3. File format
  4. External stage

Correct Answer: 2

Explanation:

Query Acceleration Service can provide additional compute resources for eligible query processing, particularly for workloads involving large scans or computationally demanding operations. It can help certain queries complete more efficiently without requiring every workload to run on a permanently larger warehouse. Eligibility and effectiveness depend on query characteristics and Snowflake configuration. Streams track data changes, file formats describe staged files, and external stages reference external storage. Query acceleration should therefore be considered as part of broader workload-performance optimization.

Question 36

What does clustering depth help indicate?

  1. Data overlap across micro-partitions
  2. Number of database users
  3. Warehouse credit balance
  4. File compression ratio

Correct Answer: 3

Explanation:

Clustering depth provides information related to how overlapping the micro-partitions are for a table’s clustering dimensions. Greater overlap can indicate that pruning may be less effective for queries using those dimensions. Data engineers can use clustering information to assess whether a table’s physical organization aligns with important query patterns. User counts, credit balances, and file compression ratios describe unrelated characteristics. Clustering analysis should consider workload patterns, table size, data distribution, and the ongoing maintenance cost of improving clustering.

Question 37

Which feature automatically maintains a target data freshness?

  1. Dynamic Table
  2. Permanent Stage
  3. Resource Monitor
  4. Secure View

Correct Answer: 1

Explanation:

Dynamic Tables allow data engineers to specify a target freshness requirement while Snowflake manages the processing needed to keep the resulting dataset updated. This provides a declarative alternative to manually orchestrating every incremental transformation step. The system determines refresh processing based on dependencies and freshness requirements. Stages provide file locations, Resource Monitors govern credit usage, and Secure Views control how view information is exposed. Dynamic Tables are therefore useful for pipelines where predictable data freshness is more important than manually managing every refresh operation.

Question 38

Which object can trigger processing when new data changes?

  1. File format
  2. Stream
  3. Task
  4. Database role

Correct Answer: 3

Explanation:

A Task can execute SQL or procedural logic based on configured schedules or supported trigger conditions. When combined with a Stream, a task-driven pipeline can process newly captured changes rather than repeatedly scanning an entire source table. This combination is commonly used for incremental transformation workflows. A Stream captures change information, while the Task performs the processing. File formats describe staged data and database roles manage privileges. Effective task orchestration also requires consideration of dependencies, execution frequency, and error handling.

Question 39

Which technique helps preserve source data before transformations?

  1. Raw landing layer
  2. Immediate aggregation
  3. Direct overwrite
  4. Permanent deletion

Correct Answer: 1

Explanation:

A raw landing layer preserves source data before downstream transformations modify or reshape it. Keeping an initial representation can improve traceability, troubleshooting, replayability, and the ability to rebuild downstream models when transformation logic changes. Data engineers often use staged or raw tables as an initial pipeline layer before applying cleansing and business transformations. Immediate aggregation and direct overwrites can remove useful source detail, while permanent deletion eliminates the possibility of replaying from the original dataset.

Question 40

Which Snowflake capability supports sharing data without copying it?

  1. External function
  2. Data Sharing
  3. File staging
  4. Query history

Correct Answer: 4

Explanation:

Snowflake Secure Data Sharing enables providers to share selected data with other Snowflake accounts without requiring traditional data-copy workflows. The consumer can access shared objects according to the provider’s configuration and granted privileges. This approach can simplify controlled distribution of datasets while reducing duplication. External Functions provide integration with external services, file staging supports file-based movement, and Query History provides execution information. Data engineers should still apply appropriate governance, object permissions, and data-sharing controls when publishing shared datasets.