Courseiva
Data Engineering →mediumMultiple Choice

ARA-C01 Data Engineering Practice Question

A Snowflake architect is designing a pipeline that ingests semi-structured JSON events from an internal stage and needs to write them into a VARIANT column. The events contain nested keys that vary in depth and casing across sources, and the team wants to flatten only a fixed set of known top-level keys while preserving the remaining structure for later analysis. Which approach best satisfies these requirements?

⚠ Common exam trap

The trap here is assuming that flattening semi-structured data must be destructive, when Snowflake path notation lets you project selected keys while leaving the original VARIANT untouched.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

Create a view that exposes the fixed top-level keys with colon path notation (for example, src:payload:eventType) and leave the raw VARIANT column available for ad hoc queries.

Projecting known fields with colon path notation keeps the raw VARIANT column intact, so unknown keys and deeper nesting remain available. This satisfies both requirements: a stable interface for the fixed top-level keys and full retention of the original semi-structured payload for later analysis. Recursive flattening, inferred relational schemas, and key-name extraction all either destroy structure or fail to surface values.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✓

    Create a view that exposes the fixed top-level keys with colon path notation (for example, src:payload:eventType) and leave the raw VARIANT column available for ad hoc queries.

    Why this is correct

    Colon path notation accesses specific keys of a VARIANT without destroying the rest of the document. The base column remains queryable, so unknown or deeply nested attributes stay available for later analysis, while consumers get stable projections of the known top-level keys. This is the standard Snowflake pattern for selectively surfacing semi-structured fields without losing fidelity.

  • ✗

    Use LATERAL FLATTEN with the RECURSIVE argument set to TRUE on the raw VARIANT column to expand every nested key into separate rows, then filter the resulting KEY column to the known top-level keys.

    Why it's wrong here

    RECURSIVE TRUE recursively expands all nested arrays and objects, producing a row per leaf rather than preserving the remaining structure. Filtering afterward still materializes the full recursive explosion, which is wasteful and does not keep the untouched structure intact in a single VARIANT value. This contradicts the goal of flattening only selected top-level keys while retaining the rest.

  • ✗

    Load the JSON into a relational table with one column per possible nested key, using the INFER_SCHEMA option of COPY INTO to auto-detect every attribute at load time.

    Why it's wrong here

    INFER_SCHEMA produces a column layout from the files it samples, but it does not guarantee coverage of keys that appear later or vary in casing across sources. Committing to a fixed relational shape discards attributes not detected during inference and breaks when new keys arrive. It also does not preserve the original structure for downstream exploration.

  • ✗

    Store each event as a separate row using the PARSE_JSON function and then apply OBJECT_KEYS to return only the known top-level keys as an array column.

    Why it's wrong here

    OBJECT_KEYS returns the names of keys in an object, not their values, so this yields a list of key names rather than the desired projected attributes. The remaining nested values are not conveniently exposed, and downstream queries would still need path traversal. It also does not preserve the full document alongside the fixed key set.

About these practice questions

This ARA-C01 question is part of Courseiva's 209-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official Snowflake exam blueprint

This ARA-C01 practice question is part of Courseiva's free Snowflake certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the ARA-C01 exam.