Delta Lake Fundamentals: Schema, Streaming, and Optimization

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
full-widthPodcast
1
Card Sorting

1/67

encourage image

There's no tags or description

Looks like no tags are added yet.

68 Terms

1
New cards

What is schema enforcement in Delta Lake?

Protects the expected table structure by preventing data that violates the schema.

2
New cards

What is schema evolution in Delta Lake?

Allows controlled changes to a table's structure, such as adding a new column.

3
New cards

Can Delta Lake add a new column without rebuilding the dataset?

Yes. Schema evolution allows the table to include a new column without rebuilding the entire dataset.

4
New cards

What is the difference between schema enforcement and evolution?

Enforcement protects the expected structure; evolution allows controlled changes to it.

5
New cards

What does unified batch and streaming mean in Delta Lake?

The same Delta tables can be used for both batch and streaming workloads.

6
New cards

What is performance optimization in Delta Lake?

Techniques that improve how efficiently data is stored and read.

7
New cards

What are two performance optimization techniques in Delta Lake?

File compaction and data layout optimization.

8
New cards

What is file compaction?

Combining many small data files into fewer, larger files to improve efficiency.

9
New cards

What does scalability mean in Delta Lake?

Delta tables can manage datasets larger than one computer's memory using distributed engines like Spark.

10
New cards

What does it mean that Delta Lake is open source?

It is publicly available open-source technology, not a format exclusively usable by Databricks.

11
New cards

What is the Medallion Architecture?

A way to organize data into 3 layers based on how much it has been processed and cleaned.

12
New cards

What are the 3 Medallion layers, in order?

Bronze → Silver → Gold.

13
New cards

Does data flow from Gold to Bronze?

No. Data normally flows Bronze → Silver → Gold, even if diagrams put Gold at the top.

14
New cards

What does the Bronze layer store?

Raw data, kept close to how it originally arrived.

15
New cards

What happens to duplicate or missing records in Bronze?

They are typically preserved rather than immediately removed.

16
New cards

In the order example, what problems exist in Bronze?

Order 102 appears twice; order 103 has a NULL (missing) amount.

17
New cards

Why preserve raw data in Bronze?

So it can be cleaned, reprocessed, or investigated later.

18
New cards

What does the Silver layer store?

Data that has been cleaned, validated, and transformed.

19
New cards

Name 5 common Silver-layer operations.

Remove duplicates, standardize dates, correct/flag invalid values, handle missing values, and combine tables.

20
New cards

What happens to the example orders in Silver?

Duplicate order 102 is removed; incomplete order 103 is excluded from this cleaned table.

21
New cards

Which orders remain in the Silver example?

Order 101: Alice, $50; order 102: Bob, $80.

22
New cards

Should Silver automatically delete all invalid records?

No. Real pipelines define rules for handling invalid records.

23
New cards

What is the purpose of Silver?

Produce consistent, reliable data that can be reused for analysis.

24
New cards

What does the Gold layer store?

Business-ready data organized for specific analytical or reporting needs.

25
New cards

How might Gold transform individual orders?

It can summarize them into total revenue per customer.

26
New cards

What is the Gold revenue example?

Alice: $50 total revenue; Bob: $80 total revenue.

27
New cards

What other metrics can Gold calculate?

Daily sales, monthly revenue, average order value, and other business metrics.

28
New cards

What is an aggregation?

Combining multiple records into a calculated result, such as a sum, average, or count.

29
New cards

What is the purpose of Gold?

Provide data for dashboards, business reporting, and specific analytical applications.

30
New cards

What 3 types of consumers can use Gold data?

BI/reporting, ML/AI, and streaming analytics.

31
New cards

What is an example of BI using Gold?

A Power BI dashboard displaying monthly revenue.

32
New cards

What is an example of ML/AI using Gold?

A machine learning model predicting customer spending.

33
New cards

What is an example of streaming analytics using Gold?

A dashboard showing frequently refreshed sales metrics.

34
New cards

What does BI mean?

Business Intelligence: using data to understand business performance and support decisions.

35
New cards

Does machine learning always use Gold data?

No. Some models need detailed Silver records instead of aggregated Gold tables.

36
New cards

Why keep Bronze instead of cleaning everything immediately?

Raw records are preserved so you can reprocess them if cleaning code contains a mistake.

37
New cards

Why can multiple teams benefit from Silver?

They can reuse the same cleaned data without repeating the cleaning work.

38
New cards

Why keep Gold separate from Silver?

Gold can be customized for reports or applications without changing underlying cleaned data.

39
New cards

How does separating the 3 layers help pipelines?

It makes pipelines easier to maintain, audit, and troubleshoot.

40
New cards

What are 4 example external data sources?

PostgreSQL, CSV files, Salesforce, and Kafka.

41
New cards

What brings external data into Databricks?

LakeFlow Connect.

42
New cards

What ingestion methods can LakeFlow Connect use?

Batch, incremental batch, and streaming.

43
New cards

Where is ingested raw data stored in this example?

Bronze Delta tables.

44
New cards

What cleans data between Bronze and Silver?

Spark Declarative Pipelines.

45
New cards

Where is validated and cleaned data stored?

Silver Delta tables.

46
New cards

What happens between Silver and Gold?

Data is transformed and aggregated for business needs.

47
New cards

Where is business-ready data stored?

Gold Delta tables.

48
New cards

Who consumes the final processed data?

Dashboards, reports, and machine learning applications.

49
New cards

What governs data access in this pipeline?

Unity Catalog.

50
New cards

What orchestrates pipeline tasks?

LakeFlow Jobs.

51
New cards

Is the full 3-layer pipeline mandatory?

No. It is a typical design; small applications may not need all 3 Medallion layers.

52
New cards

What is data ingestion?

Bringing data from an external source into Databricks.

53
New cards

What is LakeFlow?

A collection of tools for ingesting, processing, and orchestrating data.

54
New cards

What is LakeFlow Connect?

A tool for ingesting data from files, cloud storage, databases, and applications.

55
New cards

What do Standard Connectors support?

Ingestion from sources such as cloud storage and Kafka.

56
New cards

What do Managed Connectors provide?

More automated ingestion from supported databases and SaaS applications.

57
New cards

What is batch ingestion?

Processing data at intervals, potentially rereading the entire dataset.

58
New cards

What is incremental batch ingestion?

Processing only new or changed data during each run.

59
New cards

What is streaming ingestion?

Processing incoming data continuously or in frequent small updates.

60
New cards

What is Apache Spark?

An engine for processing large datasets.

61
New cards

What is Delta Lake?

Reliable table storage using Parquet files and transaction logs.

62
New cards

What is Unity Catalog?

A system that organizes and governs access to data.

63
New cards

What does ACID describe?

Four properties that make database transactions reliable.

64
New cards

What is DML?

Data Manipulation Language: SQL operations like INSERT, UPDATE, DELETE, and MERGE.

65
New cards

What is Delta Lake time travel?

The ability to query or restore earlier versions of a table.

66
New cards

What is schema enforcement?

Checking that incoming data matches the expected table structure.

67
New cards

What is schema evolution?

Allowing controlled changes to a table's structure.

68
New cards

What is the key difference between Connect, Delta Lake, Unity Catalog, and Medallion?

Connect ingests; Delta Lake stores; Unity Catalog governs; Medallion organizes data.