Data Ingestion with Lakeflow Connect

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

1/79

encourage image

There's no tags or description

Looks like no tags are added yet.

80 Terms

1
New cards

What is lakeflow?

databrick's collection of tools for building and running data pipelines

2
New cards

What is a data pipeline

a series of steps that moves and processes data automatically

3
New cards

what are lakeflow's three main components?

lakeflow connect

spark declarative pipelines

lakeflow jobs

4
New cards

describe lakeflow connect

collects data

brings data into databricks from external sources -> postgresql, salesforce, csv files, kafka

this is known as data ingestion

5
New cards

Describe spark declarative pipelines

process data

uses apache spark to clean and transform collected data (part of ETL)

6
New cards

describe lakeflow jobs

schedule and coordinate work

runs tasks in the correct order automatically

monitors whether these tasks succeed.

7
New cards

what technology makes traditional data ingestion less complicated?

lakeflow connect

brings many of these ingestion tasks into one platform

(configuration, monitoring system, permissions, and maintenance requirements)

8
New cards

why is traditional data ingestion complicated?

companies need separate tools for different data sources

One program to import CSV files.

Another to retrieve records from Salesforce.

Another to copy data from PostgreSQL.

Another to process Kafka messages.

9
New cards

what 4 things might each ingestion tool require

1) configuration

2) monitoring system

3) permissions

4) maintenance

10
New cards

How does lakeflow connect simplify ingestion?

it brings many ingestion tasks into one platform instead of using separate tools

11
New cards

what are the 3 major benefits of lakeflow connect

1) managed and efficient solution

2) self-service interfaces

3) unified observability and governance

12
New cards

what does 'managed solution' mean? (by lakeflow connect)

databricks lakeflow connect handles more of the setup and maintenance of supported connectors

-> the technical work needed to connect to external data sources (like postgres or salesforce) and keep those connections working

13
New cards

what 3 things can a managed solution reduce? (lakeflow connect)

1. engineering effort

2. infrastructure costs

3. time to make data available

14
New cards

what are self-service interfaces? (benefits of lakeflow connect)

they let users configure supported ingestion without writing every part of a custom ingestion program

15
New cards

what is observability? (benefit of lakeflow connect) List 4 things

seeing:

what a pipeline is doing

whether it succeeded

how much data is processed

what went wrong

16
New cards

what is data governance? (benefit of lakeflow connect)

controlling:

who can access data

how its managed

how its use is tracked

17
New cards

What is a connector?

software that knows how to communicate with a particular type of data source

18
New cards

what are the three categories of lakeflow connect connectors? (What are the 3 ways to ingest data into Databricks)

upload files, standard connectors, managed connectors

19
New cards

When should you use Upload Files?

When you have a file saved on your computer that you want to import into Databricks.

20
New cards

Give an example of uploading a file.

Uploading customers.csv from your computer into Databricks.

21
New cards

What are the 2 destinations for an uploaded file?

1. A volume

2. A table created directly from the file.

22
New cards

What is a volume in Databricks?

A Unity Catalog-managed location for storing files.

23
New cards

What are Standard Connectors used for?

Ingesting data from supported sources, such as cloud object storage and Kafka.

24
New cards

What is cloud object storage?

Services that store files in the cloud, such as Amazon S3 and Azure Blob Storage.

25
New cards

What is Kafka?

A system that receives and distributes streams of events, such as website clicks or financial transactions.

26
New cards

What 3 ingestion methods do Standard Connectors support?

Batch, incremental batch, and streaming ingestion.

27
New cards

What are Managed Connectors used for?

Ingesting data from supported databases and SaaS applications.

28
New cards

What does SaaS stand for?

Software as a Service: software accessed over the internet, such as Salesforce.

29
New cards

What does Databricks manage with Managed Connectors?

More of the ingestion process, including efficiently retrieving data changes.

30
New cards

How do Managed Connectors avoid unnecessary copying?

They retrieve changes instead of repeatedly copying all records.

31
New cards

What is the main difference between standard and managed connectors?

how much of the ingestion process Databricks manages for you.

32
New cards

what do you have to do with standard connectors?

configure more of the reading and processing logic yourself

33
New cards

what does databricks do with managed connectors?

provide more built-in logic for retrieving and updating data from supported applications and databases.

(higher level of automation)

34
New cards

what are the 3 main ways to bring data into databricks (data ingestion)

batch, incremental batch, streaming

35
New cards

bringing data into databricks is...

data ingestion

36
New cards

What is batch ingestion?

Processing a collection of records at once, usually on a schedule.

37
New cards

What is traditional full-batch ingestion?

Every run processes the entire dataset, including records processed previously.

38
New cards

full-batch ingestion reprocesses what?

the entire dataset, not just new records.

39
New cards

Does traditional full-batch ingestion process only new data?

No. It processes both old and new records during every run.

40
New cards

When is batch ingestion useful? (3 situations)

1. Small datasets 2. Data changes infrequently 3. A complete snapshot is needed.

41
New cards

What is a complete snapshot of a data source?

A copy of the entire dataset as it exists at a particular point in time.

42
New cards

what is a dataframe?

a table-like data structure containing rows and columns

43
New cards

what is incremental batch ingestion?

processing a table-like data structure containing rows and columns

44
New cards

When is incremental batch ingestion more efficient?

for large datasets because you don't repeatedly read and process unchanged records.

45
New cards

How does databricks know which records are new during incremental batch ingestion?

Depending on the connector and source, it uses timestamps, increasing unique IDs, CDC, or records of processed files.

46
New cards

How do increasing unique IDs help identify new records?

Each new record receives a higher unique ID, helping identify newer records.

47
New cards

What is Change Data Capture (CDC)?

A method that tracks inserts, updates, and deletions in a database.

48
New cards

What are the 3 database changes tracked by CDC?

Inserts (new records), updates (modified records), and deletions (removed records).

49
New cards

How does tracking processed files help with incremental ingestion?

Databricks keeps a record of which files were already processed to avoid processing them again.

50
New cards

Do all incremental ingestion methods capture updates and deletions?

No. Some only capture new records, while others also capture updates and deletions.

51
New cards

When is incremental batch useful?

When data changes regularly, but you don't need updates immediately.

52
New cards

What is streaming ingestion?

producing data continuously or in frequent small updates as new data arrives.

53
New cards

instead of waiting until the next scheduled batch, streaming ingestion...

keeps processing incoming records. (near real-time processing)

54
New cards

what is streaming useful for?

fraud detection, live dashboards, website activity monitoring, and sensor data.

55
New cards

latency means...

the delay between when data becomes available at its source and when it is available for use.

56
New cards

the main benefit of streaming is...

low latency

57
New cards

What is delta lake?

a technology that makes data stored in files behave like a reliable database table

58
New cards

Ordinary files (such as csv files) don't provide___ that you would expect from a database. what addresses these problems?

transaction management

recovery features

Delte lake?

59
New cards

what are the 2 main components of delta lake?

parquet files

delta transaction locks

60
New cards

Parquet files contain...

the actual data

61
New cards

delta transaction logs...

track changes to the table

62
New cards

What is unity catalog

Databricks' system for organizing and governing data.

63
New cards

what is a UC table

table registered in unity catalog

64
New cards

What are the parts that make up the full name of a table in Databricks?

catalog.schema.table

65
New cards

what is a catalog in a table name?

top-level grouping

66
New cards

what does a schema do in a table name?

groups related tables

67
New cards

what does a table do in a tabl name

contains the actual data?

68
New cards

unity catalog manages...

the table's identity, metadata,permissions, governance

69
New cards

delta lake manages...

the table's underlying data files and transaction history

70
New cards

how does delta lake store data?

it is not one giant file. it is a directory containing multiple parquet files and a delta transaction log.

71
New cards

parquet is...

a column oriented file format -> organizes data by columns

72
New cards

what is the benefit of a column-oriented format?

analytical queries need only a few columns

73
New cards

what do delta transaction logs record?

changes to the table, including which data files belong to each version.

74
New cards

Delta lake uses its log to determine

which files make up the table at a particular version.

The log includes JSON transaction records and can also use checkpoints for efficient recovery.

75
New cards

What is Apache Spark?

A system that processes large datasets, potentially using multiple computers.

76
New cards

What is Structured Streaming?

Spark's system for processing continuously arriving data.

77
New cards

What is Unity Catalog?

A system that manages tables, access permissions, and data governance.

78
New cards

What is Delta Lake?

A technology that provides reliable table storage and transaction management.

79
New cards

What is Parquet?

A file format optimized for storing and reading analytical data

80
New cards

What is Apache Iceberg?

Another open table format for managing large analytical datasets.