QuestionQ83

VerifiedDevelopment and Ingestion

A Data Engineer is creating a simple Databricks Delta Live Tables (DLT) pipeline to ingest customer data. The raw customer data is kept in a cloud-storage location in JSON format. The task is to build a DLT pipeline that reads the raw JSON data and writes it to a Delta table for additional processing.

Which code snippet correctly ingests the raw JSON data and creates a Delta table with DLT?

Explanation

The legacy DLT @dlt.table decorator defines a table from the DataFrame returned by the function, and spark.read.json(...) reads JSON data from the storage path. The resulting DLT dataset is stored as a Delta table for downstream processing.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!