1/79
Looks like no tags are added yet.
What is lakeflow?
databrick's collection of tools for building and running data pipelines
What is a data pipeline
a series of steps that moves and processes data automatically
what are lakeflow's three main components?
lakeflow connect
spark declarative pipelines
lakeflow jobs
describe lakeflow connect
collects data
brings data into databricks from external sources -> postgresql, salesforce, csv files, kafka
this is known as data ingestion
Describe spark declarative pipelines
process data
uses apache spark to clean and transform collected data (part of ETL)
describe lakeflow jobs
schedule and coordinate work
runs tasks in the correct order automatically
monitors whether these tasks succeed.
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)
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.
what 4 things might each ingestion tool require
1) configuration
2) monitoring system
3) permissions
4) maintenance
How does lakeflow connect simplify ingestion?
it brings many ingestion tasks into one platform instead of using separate tools
what are the 3 major benefits of lakeflow connect
1) managed and efficient solution
2) self-service interfaces
3) unified observability and governance
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
what 3 things can a managed solution reduce? (lakeflow connect)
1. engineering effort
2. infrastructure costs
3. time to make data available
what are self-service interfaces? (benefits of lakeflow connect)
they let users configure supported ingestion without writing every part of a custom ingestion program
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
what is data governance? (benefit of lakeflow connect)
controlling:
who can access data
how its managed
how its use is tracked
What is a connector?
software that knows how to communicate with a particular type of data source
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
When should you use Upload Files?
When you have a file saved on your computer that you want to import into Databricks.
Give an example of uploading a file.
Uploading customers.csv from your computer into Databricks.
What are the 2 destinations for an uploaded file?
1. A volume
2. A table created directly from the file.
What is a volume in Databricks?
A Unity Catalog-managed location for storing files.
What are Standard Connectors used for?
Ingesting data from supported sources, such as cloud object storage and Kafka.
What is cloud object storage?
Services that store files in the cloud, such as Amazon S3 and Azure Blob Storage.
What is Kafka?
A system that receives and distributes streams of events, such as website clicks or financial transactions.
What 3 ingestion methods do Standard Connectors support?
Batch, incremental batch, and streaming ingestion.
What are Managed Connectors used for?
Ingesting data from supported databases and SaaS applications.
What does SaaS stand for?
Software as a Service: software accessed over the internet, such as Salesforce.
What does Databricks manage with Managed Connectors?
More of the ingestion process, including efficiently retrieving data changes.
How do Managed Connectors avoid unnecessary copying?
They retrieve changes instead of repeatedly copying all records.
What is the main difference between standard and managed connectors?
how much of the ingestion process Databricks manages for you.
what do you have to do with standard connectors?
configure more of the reading and processing logic yourself
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)
what are the 3 main ways to bring data into databricks (data ingestion)
batch, incremental batch, streaming
bringing data into databricks is...
data ingestion
What is batch ingestion?
Processing a collection of records at once, usually on a schedule.
What is traditional full-batch ingestion?
Every run processes the entire dataset, including records processed previously.
full-batch ingestion reprocesses what?
the entire dataset, not just new records.
Does traditional full-batch ingestion process only new data?
No. It processes both old and new records during every run.
When is batch ingestion useful? (3 situations)
1. Small datasets 2. Data changes infrequently 3. A complete snapshot is needed.
What is a complete snapshot of a data source?
A copy of the entire dataset as it exists at a particular point in time.
what is a dataframe?
a table-like data structure containing rows and columns
what is incremental batch ingestion?
processing a table-like data structure containing rows and columns
When is incremental batch ingestion more efficient?
for large datasets because you don't repeatedly read and process unchanged records.
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.
How do increasing unique IDs help identify new records?
Each new record receives a higher unique ID, helping identify newer records.
What is Change Data Capture (CDC)?
A method that tracks inserts, updates, and deletions in a database.
What are the 3 database changes tracked by CDC?
Inserts (new records), updates (modified records), and deletions (removed records).
How does tracking processed files help with incremental ingestion?
Databricks keeps a record of which files were already processed to avoid processing them again.
Do all incremental ingestion methods capture updates and deletions?
No. Some only capture new records, while others also capture updates and deletions.
When is incremental batch useful?
When data changes regularly, but you don't need updates immediately.
What is streaming ingestion?
producing data continuously or in frequent small updates as new data arrives.
instead of waiting until the next scheduled batch, streaming ingestion...
keeps processing incoming records. (near real-time processing)
what is streaming useful for?
fraud detection, live dashboards, website activity monitoring, and sensor data.
latency means...
the delay between when data becomes available at its source and when it is available for use.
the main benefit of streaming is...
low latency
What is delta lake?
a technology that makes data stored in files behave like a reliable database table
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?
what are the 2 main components of delta lake?
parquet files
delta transaction locks
Parquet files contain...
the actual data
delta transaction logs...
track changes to the table
What is unity catalog
Databricks' system for organizing and governing data.
what is a UC table
table registered in unity catalog
What are the parts that make up the full name of a table in Databricks?
catalog.schema.table
what is a catalog in a table name?
top-level grouping
what does a schema do in a table name?
groups related tables
what does a table do in a tabl name
contains the actual data?
unity catalog manages...
the table's identity, metadata,permissions, governance
delta lake manages...
the table's underlying data files and transaction history
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.
parquet is...
a column oriented file format -> organizes data by columns
what is the benefit of a column-oriented format?
analytical queries need only a few columns
what do delta transaction logs record?
changes to the table, including which data files belong to each version.
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.
What is Apache Spark?
A system that processes large datasets, potentially using multiple computers.
What is Structured Streaming?
Spark's system for processing continuously arriving data.
What is Unity Catalog?
A system that manages tables, access permissions, and data governance.
What is Delta Lake?
A technology that provides reliable table storage and transaction management.
What is Parquet?
A file format optimized for storing and reading analytical data
What is Apache Iceberg?
Another open table format for managing large analytical datasets.