Noos
PT EN
RAN-DBDEA-00055
Ranvier · DBDEA

Exam DBDEA Topics: transformation Difficulty: hard

JSON event files land continuously in cloud storage. The gold table catalog.analytics.gold_site_events must be built incrementally inside a Lakeflow Spark Declarative Pipeline: every refresh must process only the newly arrived files, exactly once, with the pipeline tracking how far it has read. Which declaration meets these requirements?

Options (Reading Mode) Click to filter discussion →
  1. A. CREATE MATERIALIZED VIEW catalog.analytics.gold_site_events AS SELECT * FROM STREAM(read_files('s3://company-raw/site_events/', format => 'json'));
  2. B. CREATE VIEW catalog.analytics.gold_site_events AS SELECT * FROM STREAM(read_files('s3://company-raw/site_events/', format => 'json'));
  3. C. CREATE TABLE catalog.analytics.gold_site_events AS SELECT * FROM read_files('s3://company-raw/site_events/', format => 'json'); — then a scheduled job runs INSERT INTO ... SELECT * FROM read_files(...) to append new files
  4. D. CREATE OR REFRESH STREAMING TABLE catalog.analytics.gold_site_events AS SELECT * FROM STREAM(read_files('s3://company-raw/site_events/', format => 'json'));
Reveal answer

Correct answer: CREATE OR REFRESH STREAMING TABLE catalog.analytics.gold_site_events AS SELECT * FROM STREAM(read_files('s3://company-raw/site_events/', format => 'json'));

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 (D): CREATE OR REFRESH STREAMING TABLE catalog.analytics.gold_site_events AS SELECT * FROM STREAM(read_files('s3://company-raw/site_events/', format => 'json'));

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.