Noos
PT EN
RAN-DBDEA-00196
Ranvier · DBDEA

Exam DBDEA Topics: ingestion Difficulty: medium

A bronze streaming table in a Lakeflow pipeline ingests device events. Rows with a null device_id arrive occasionally; they must never reach the table, but the team wants the failure counts visible in pipeline metrics. The current definition is: ```sql CREATE OR REFRESH STREAMING TABLE main.bronze.device_events AS SELECT * FROM STREAM read_files('/Volumes/main/bronze/devices/'); ``` How should the pipeline handle the invalid rows?

Options (Reading Mode) Click to filter discussion →
  1. A. Add an expectation with the default warn action: invalid rows still land in the table, and only failure counts appear as metrics
  2. B. Add a CONSTRAINT ... EXPECT (device_id IS NOT NULL) ON VIOLATION DROP ROW clause: invalid rows are dropped and their count is logged
  3. C. Leave the definition as is and filter WHERE device_id IS NOT NULL in every downstream dashboard and query that reads the table
  4. D. Direct all raw events into a separate quarantine table and have an on-call engineer delete the invalid rows manually after every pipeline refresh
Reveal answer

Correct answer: Add a CONSTRAINT ... EXPECT (device_id IS NOT NULL) ON VIOLATION DROP ROW clause: invalid rows are dropped and their count is logged

Reference: https://docs.databricks.com/aws/en/ldp/concepts/streaming-tables

02 — The Myelin Layer · Canonical Discussion

Where the exam tries to trick you — and how those who passed solved it.

0 Passed

contributed to this question

Answer Distractor Matrix Click an option to filter or open its dissection.
✦ Consolidated Synthesis (Wiki) rev. #1 (baseline) · CC BY-SA 4.0
Start synthesis for this question →

No community synthesis consolidated for this question yet. Below is the verifiable official starting point — if you passed the exam, open the option dissection.

Official Answer (B): Add a CONSTRAINT ... EXPECT (device_id IS NOT NULL) ON VIOLATION DROP ROW clause: invalid rows are dropped and their count is logged

Ranvier · DBDEA

Contribute to this Question

Your contribution builds your Orbital Sheath

Peer contributions

No public contribution yet. Be the first who passed to explain why the distractors trick candidates — your contribution builds your Orbital Sheath.