Noos
PT EN
RAN-DBDEA-00233
Ranvier · DBDEA

Exam DBDEA Topics: transformation Difficulty: hard

A late-arrival job rebuilds only yesterday's slice of the events table, which is partitioned by event_date. In a single write, it must atomically replace only the rows whose event_date equals '2026-07-02' and leave every other day of the table untouched; the job's output DataFrame contains just the rebuilt day. Which write approach meets both requirements?

Options (Reading Mode) Click to filter discussion →
  1. A. Run DELETE on the day's rows and then INSERT the corrected batch afterwards — each statement is atomic on its own, and together they cover the day
  2. B. Write with mode('overwrite') and no further options — the whole table is replaced atomically, which also refreshes yesterday's rows
  3. C. Write with mode('overwrite') and option('replaceWhere', "event_date = '2026-07-02'") — only the matching rows are replaced, in one atomic commit
  4. D. Convert the table to external storage first, because replaceWhere cannot operate on Unity Catalog managed tables
Reveal answer

Correct answer: Write with mode('overwrite') and option('replaceWhere', "event_date = '2026-07-02'") — only the matching rows are replaced, in one atomic commit

Reference: https://docs.databricks.com/aws/en/delta/best-practices

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 (C): Write with mode('overwrite') and option('replaceWhere', "event_date = '2026-07-02'") — only the matching rows are replaced, in one atomic commit

⚓ Official Documentation Anchor: https://docs.databricks.com/aws/en/delta/best-practices
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.