View Full Snowflake SnowPro Advanced Data Engineer Exam Dumps and Practice Test Dumps
Question 281
Which command creates a file format object?
- BUILD FILE FORMAT
- CREATE FILE FORMAT
- DEFINE FILE FORMAT
- MAKE FILE FORMAT
Correct Answer: 2
Explanation:
CREATE FILE FORMAT creates a reusable Snowflake file format object. File formats define how Snowflake interprets staged files during loading and unloading operations. They can specify settings such as delimiters, compression, field enclosure, null handling, and other format-specific behavior. Creating a named file format allows multiple pipelines to use consistent parsing rules rather than repeating configuration in every loading statement. Engineers should maintain file formats carefully because a configuration change can affect several ingestion workflows.
Question 282
Which file format property identifies a field delimiter?
- COLUMN_SEPARATOR
- FIELD_DELIMITER
- FIELD_SEPARATOR_TYPE
- COLUMN_BREAK
Correct Answer: 2
Explanation:
FIELD_DELIMITER specifies the character or sequence used to separate fields in delimited text files. This setting is important when loading formats such as CSV where columns are represented within a single record. Engineers should ensure that the delimiter matches the source-system convention. An incorrect delimiter can cause values to shift into unexpected columns or create column-count mismatches. File-format configuration should therefore be validated against representative source files before production ingestion begins.
Question 283
Which file format property identifies the record delimiter?
- RECORD_DELIMITER
- ROW_SEPARATOR_TYPE
- LINE_BREAK_VALUE
- RECORD_SEPARATOR_MODE
Correct Answer: 1
Explanation:
RECORD_DELIMITER identifies the character or sequence that separates records in supported delimited files. Correct record delimiting allows Snowflake to determine where one input row ends and the next begins. This setting can become particularly important when source systems use nonstandard line separators. Engineers should test file-format definitions against actual producer output because incorrect record boundaries can cause parsing failures or unexpected row structures during ingestion.
Question 284
Which option encloses fields containing delimiter characters?
- FIELD_WRAPPER
- QUOTE_FIELD
- FIELD_OPTIONALLY_ENCLOSED_BY
- ENCLOSE_COLUMNS
Correct Answer: 3
Explanation:
FIELD_OPTIONALLY_ENCLOSED_BY specifies a character that may surround fields in supported delimited files. This is commonly useful when values contain delimiters, quotation marks, or other characters that could otherwise interfere with parsing. Engineers should configure the setting according to the source format and verify how escaped enclosure characters are represented. Correct enclosure handling is especially important when ingesting CSV-style files generated by different applications.
Question 285
Which file format option skips leading records?
- SKIP_ROWS
- SKIP_HEADER
- IGNORE_LEADING_LINES
- OMIT_FIRST_RECORDS
Correct Answer: 2
Explanation:
SKIP_HEADER specifies how many header rows should be skipped when loading supported files. It is commonly used when the first line contains column names rather than actual data. Engineers should ensure the configured value matches the source-file structure because skipping too many records can discard valid data. Conversely, failing to skip a header can cause parsing or data-quality problems. This setting is therefore an important part of reliable structured-file ingestion.
Question 286
Which option replaces invalid UTF-8 characters during loading?
- REPLACE_INVALID_CHARACTERS
- FIX_UTF8
- CONVERT_BAD_ENCODING
- CLEAN_INVALID_TEXT
Correct Answer: 1
Explanation:
REPLACE_INVALID_CHARACTERS controls handling of invalid UTF-8 character sequences in supported file-loading scenarios. This can help ingestion continue when source files contain encoding problems that would otherwise interfere with processing. Engineers should use this option deliberately because replacing invalid characters can alter source values. For regulated or highly sensitive data, retaining evidence of source-quality issues may be preferable to silently transforming problematic text.
Question 287
Which file format option removes whitespace around fields?
- STRIP_WHITESPACE
- REMOVE_FIELD_SPACES
- TRIM_SPACE
- CLEAN_FIELD_PADDING
Correct Answer: 3
Explanation:
TRIM_SPACE controls whether leading and trailing whitespace is removed from fields during supported file loading and unloading operations. This can be useful when source systems produce padded values or inconsistent spacing. Engineers should consider whether whitespace is meaningful in the source data before enabling trimming. In some business datasets, spaces may intentionally form part of a value. File-format settings should therefore reflect the semantics of the source rather than applying normalization indiscriminately.
Question 288
Which file format option treats empty fields as NULL?
- EMPTY_FIELD_NULL
- NULL_EMPTY_FIELDS
- EMPTY_FIELD_AS_NULL
- BLANK_VALUES_NULL
Correct Answer: 3
Explanation:
EMPTY_FIELD_AS_NULL determines whether empty fields are interpreted as NULL during supported loading operations. This distinction matters because an empty string and a SQL NULL represent different concepts. Engineers should align the setting with the source system’s data semantics and downstream transformation requirements. Incorrect handling can affect filtering, aggregation, validation, and business-rule calculations. File-format settings should therefore be tested using representative files containing empty fields and explicit null representations.
Question 289
Which COPY option controls behavior for unmatched source files?
- PURGE
- FORCE
- OVERWRITE
- REPLACE_FILES
Correct Answer: 2
Explanation:
The FORCE option in COPY INTO can control whether files that have previously been loaded are considered again under supported circumstances. This can be useful for controlled reload scenarios, but it should be used carefully because repeated loading can create duplicate data when the target operation is not idempotent. Engineers should understand Snowflake’s load metadata and file-tracking behavior before forcing files to load again in production pipelines.
Question 290
Which COPY option removes successfully loaded files from a stage?
- DELETE_FILES
- PURGE
- CLEAN_STAGE
- REMOVE_LOADED
Correct Answer: 2
Explanation:
PURGE can remove successfully loaded files from the stage after a supported COPY INTO operation. This can help manage staged-file storage after ingestion has completed. Engineers should use the option carefully because deleting source files can affect troubleshooting, replay, and recovery workflows. Before enabling automatic purging, teams should determine whether the source files are retained elsewhere and whether downstream operational processes require continued access to the staged objects.
Question 291
Which COPY option validates files without loading them?
- VALIDATE_ONLY
- VALIDATION_MODE
- CHECK_LOAD
- DRY_RUN_LOAD
Correct Answer: 2
Explanation:
VALIDATION_MODE allows supported COPY INTO operations to validate data without actually loading the records into the target table. This is useful for testing source files and identifying parsing or data-quality problems before production ingestion. Engineers can use validation during pipeline development and troubleshooting. Validation should be performed against representative files because successful validation of one sample does not necessarily prove that every file produced by the source system follows the same structure.
Question 292
Which option specifies files matching a regular expression?
- FILE_FILTER
- MATCH_FILES
- PATTERN
- REGEX_FILES
Correct Answer: 3
Explanation:
PATTERN can be used in supported Snowflake loading operations to select staged files whose names or paths match a specified regular expression. This is useful when a stage contains multiple file types, dates, partitions, or unrelated objects. Engineers can use patterns to restrict ingestion to the intended source files. Regular expressions should be tested carefully because an overly broad pattern may ingest unintended files, while an overly narrow pattern may leave expected data unprocessed.
Question 293
Which function aggregates values into an array?
- ARRAY_CONSTRUCT
- ARRAY_AGG
- ARRAY_BUILD
- COLLECT_ARRAY_VALUES
Correct Answer: 2
Explanation:
ARRAY_AGG aggregates values from multiple rows into an array. It is useful when relational records need to be represented as a collection within a semi-structured result. Engineers can combine ARRAY_AGG with ordering or grouping logic to create structured outputs for downstream applications. The function differs from ARRAY_CONSTRUCT, which creates an array directly from supplied expressions rather than aggregating values across multiple rows.
Question 294
Which function removes duplicate values from an array?
- ARRAY_DISTINCT
- UNIQUE_ARRAY
- DEDUP_ARRAY
- ARRAY_UNIQUE_VALUES
Correct Answer: 1
Explanation:
ARRAY_DISTINCT removes duplicate elements from an array and returns an array containing distinct values. This can be useful when semi-structured transformations produce repeated elements that should appear only once in the final result. Engineers should consider the desired ordering and data semantics before applying deduplication. Removing duplicates is appropriate only when repeated values do not carry meaningful business information.
Question 295
Which function converts an array into delimited text?
- ARRAY_TEXT
- ARRAY_JOIN
- ARRAY_TO_STRING
- JOIN_ARRAY_VALUES
Correct Answer: 3
Explanation:
ARRAY_TO_STRING converts the elements of an array into a single string using a specified separator. It is useful when a semi-structured array needs to be represented in a conventional textual format for reporting, export, or downstream integration. Engineers should choose the delimiter carefully so that it does not create ambiguity within individual values. This function is particularly useful when transforming array-based attributes into a compact textual representation.
Question 296
Which function returns an array containing object keys?
- OBJECT_KEY_LIST
- OBJECT_KEYS
- GET_KEYS_ARRAY
- KEY_ARRAY
Correct Answer: 2
Explanation:
OBJECT_KEYS returns the keys from a Snowflake object as an array. This is useful when processing semi-structured records whose attributes may vary between rows. Engineers can inspect the returned keys to understand object structure or combine the result with other semi-structured processing techniques. Dynamic attribute inspection can be valuable when working with evolving JSON payloads where a fixed relational schema does not capture every possible property.
Question 297
Which function tests whether a VARIANT contains an array?
- IS_ARRAY
- CHECK_ARRAY
- ARRAY_TYPEOF
- VALUE_IS_ARRAY
Correct Answer: 1
Explanation:
IS_ARRAY determines whether an expression contains an array value. It is useful when processing VARIANT data whose underlying structure may differ between records. Engineers can use type-checking functions before applying array-specific operations such as ARRAY_SIZE or FLATTEN. This defensive approach can reduce transformation errors when source systems produce heterogeneous semi-structured payloads. Type checks are especially helpful when pipelines process data from multiple producers.
Question 298
Which function tests whether a VARIANT contains an object?
- IS_OBJECT
- OBJECT_CHECK
- CHECK_OBJECT_TYPE
- VALUE_IS_OBJECT
Correct Answer: 1
Explanation:
IS_OBJECT checks whether an expression represents an object value. This is useful when transforming VARIANT data that may contain objects, arrays, strings, or other supported types. Engineers can combine IS_OBJECT with conditional logic to apply object-specific processing only where appropriate. Such validation helps make semi-structured pipelines more resilient when source payloads are not perfectly uniform across records.
Question 299
Which function returns the current date?
- TODAY_VALUE
- CURRENT_DATE
- SYSTEM_DATE
- SESSION_DATE
Correct Answer: 2
Explanation:
CURRENT_DATE returns the current date according to Snowflake’s session and execution context. It is commonly used in data pipelines for partitioning, filtering, audit columns, and date-based transformations. Engineers should distinguish the current date from the current timestamp because the former represents a date without a time component. Session and time-zone behavior should be considered when date-based logic needs to align precisely with business operating regions.
Question 300
Which function returns the current timestamp?
- NOW_TIMESTAMP
- SYSTEM_TIMESTAMP
- CURRENT_TIMESTAMP
- ACTIVE_TIMESTAMP
Correct Answer: 3
Explanation:
CURRENT_TIMESTAMP returns the current timestamp in Snowflake. It is useful for audit fields, processing timestamps, incremental logic, and pipeline metadata. Unlike a date-only function, it includes time information and can therefore support more precise event tracking. Engineers should consider timestamp data types and time-zone semantics when storing operational timestamps because consistent temporal handling is important for distributed data pipelines and cross-region processing.