Noos
PT EN
RAN-DBDEA-00057
Ranvier · DBDEA

Exam DBDEA Topics: transformation Difficulty: medium

The analytics team defines a gold materialized view in SQL over silver tables. Its data quality rule: margin_pct must be between 0 and 100. Rows that violate the rule must be excluded from the materialized view, and the number of violations must still be recorded as expectation metrics in the event log. The refresh itself must not fail because of bad rows. Which clause implements this rule?

Options (Reading Mode) Click to filter discussion →
  1. A. CONSTRAINT valid_margin EXPECT (margin_pct BETWEEN 0 AND 100) ON VIOLATION FAIL UPDATE
  2. B. CONSTRAINT valid_margin EXPECT (margin_pct BETWEEN 0 AND 100) ON VIOLATION DROP ROW
  3. C. CONSTRAINT valid_margin EXPECT (margin_pct BETWEEN 0 AND 100)
  4. D. CONSTRAINT valid_margin CHECK (margin_pct BETWEEN 0 AND 100)
Reveal answer

Correct answer: CONSTRAINT valid_margin EXPECT (margin_pct BETWEEN 0 AND 100) ON VIOLATION DROP ROW

Reference: https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-syntax-ddl-create-materialized-view

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): CONSTRAINT valid_margin EXPECT (margin_pct BETWEEN 0 AND 100) ON VIOLATION DROP ROW

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.