Start with a story: ShopKart
Imagine a small online shop called ShopKart. Every day, data appears in many places: orders in the app's database, payments from the payment company, clicks on the website, and customer details in a CSV file.
One morning, the boss asks a simple question: “How much did we sell in each city yesterday?” Nobody can answer quickly. The data is scattered, messy (some orders have no customer, some appear twice) and too big to open in Excel.
A data engineer fixes this. They build pipelines: programs that collect the data, clean it, and put it in tables that anyone can query. We'll follow ShopKart's data through this whole course, and by the end you'll have built that pipeline yourself.
Sources
App database, payments, website clicks, CSV files
Ingest
Copy raw data in, as it arrives
Transform
Clean, remove duplicates, join, add up
Serve
Dashboards, reports, AI models
ETL vs ELT
ETL means Extract, Transform, Load: clean the data before saving it. ELT means Extract, Load, Transform: save the raw data first, then clean it inside the platform. Cloud storage is cheap and compute is powerful, so modern platforms like Databricks mostly do ELT: keep the raw copy, and you can always re-clean it if you find a bug.
Warehouse, lake, lakehouse
Companies tried two ways to store analytics data before the lakehouse:
- Data warehouse: a database built for analysis. Clean tables, fast SQL, reliable. But expensive, and it handles only structured data (rows and columns), not images, logs or JSON.
- Data lake: dump every file into cheap cloud storage (Amazon S3, Azure Data Lake Storage, Google Cloud Storage). Cheap and stores anything, but with no rules it turns into a data swamp: no updates, no transactions, half-written files, nobody knows what's correct.
- Lakehouse: keep the cheap files of a lake, but add a layer that gives them warehouse powers: real tables, safe updates (ACID), history and security. That layer is Delta Lake plus Unity Catalog. Databricks popularised this idea.
| Data warehouse | Data lake | Lakehouse | |
|---|---|---|---|
| Storage cost | High | Low | Low |
| Data types | Tables only | Anything (files) | Anything, with tables on top |
| Updates & transactions | Yes | No | Yes (Delta Lake) |
| SQL speed | Fast | Slow, unreliable | Fast |
| Machine learning | Awkward | Good | Good |
| Examples | Snowflake, BigQuery, Redshift | Raw files in S3 / ADLS | Databricks |
So what exactly is Databricks?
Databricks is a company founded in 2013 by the people who created Apache Spark at UC Berkeley. Its platform runs inside your cloud (AWS, Azure or Google Cloud). On Azure it's sold as Azure Databricks, which is why you see that name in so many job posts. Think of it as layers:
What people do
Data engineering
Pipelines, ETL, streaming
SQL & dashboards
Analysts, reports
Machine learning & AI
Models, MLflow
Compute: the engines that do the work
Apache Spark
Many machines work together
Photon
Faster engine for SQL
Serverless
Compute that starts in seconds
Unity Catalog
Who can see which table, plus lineage and auditing
Delta Lake
Turns files into reliable tables: ACID, history, MERGE
Your cloud storage
Amazon S3 · Azure Data Lake Storage · Google Cloud Storage (Parquet files)
The key idea: your data stays in your own cloud storage, in open formats (Parquet files with a Delta log). Databricks brings the computers and the rules. If you ever stopped using Databricks, your files would still be there.
OLTP vs OLAP: two kinds of databases
Interviewers love this one, and it explains why ShopKart can't just query its app database:
| OLTP (the app's database) | OLAP (analytics, Databricks) | |
|---|---|---|
| Job | Run the business: place an order, log in | Understand the business: revenue per city |
| Query shape | Many tiny reads/writes of single rows | Few huge queries scanning millions of rows |
| Examples | PostgreSQL, MySQL | Databricks, Snowflake, BigQuery |
| Storage | Row by row | Column by column (Parquet) |
Running heavy reports on the app's database would slow down checkout for real customers. So we copy the data out into a lakehouse and analyse it there.
Batch and streaming
- Batch: process data in chunks on a schedule, like “every night at 2 AM, load yesterday's orders”.
- Streaming: process data continuously as it arrives, within seconds or minutes.
Databricks does both with the same Spark code. You'll build batch first (lesson 6), then streaming (lesson 7).
Your learning path
| Lesson | You'll learn | ShopKart builds |
|---|---|---|
| 2. Architecture | Workspace, clusters, serverless, DBUs | A place to run code |
| 3. Spark basics | Driver, executors, partitions, shuffle | How the engine thinks |
| 4. PySpark | Read, filter, join, group, window functions | First revenue report |
| 5. Delta Lake | ACID, time travel, MERGE, OPTIMIZE | Reliable tables |
| 6. Medallion | Bronze, silver, gold, SCD Type 2 | The full batch pipeline |
| 7. Streaming | Auto Loader, checkpoints, foreachBatch | Load only new files |
| 8. Unity Catalog | Permissions, volumes, lineage | Secure tables |
| 9. Declarative pipelines | Streaming tables, expectations | Pipeline in a few lines |
| 10. Jobs | Schedules, retries, bundles (CI/CD) | Runs every morning |
| 11. SQL & dashboards | SQL warehouses, AI/BI dashboards, Genie, alerts | Answers for the business |
| 12. Performance | Broadcast joins, skew, AQE, small files | Fast and cheap |
| 13. Interview | 60 questions + scenarios | You, interview-ready |
🎯 Interview questions on this topic
Try to answer out loud first, then tap to check.
Q1What is a lakehouse, and why did it appear?Fresher
Q2What is the difference between ETL and ELT?Fresher
Q3OLTP vs OLAP?Fresher
Q4Why do you use Databricks instead of only a data warehouse?1–3 yrs
Q5Where is the data physically stored when you create a table in Databricks?1–3 yrs
Key takeaways
- Data engineering turns scattered, messy data into clean, trusted tables.
- The lakehouse combines cheap data-lake storage with reliable warehouse-style tables.
- Databricks runs in your cloud: Spark computes, Delta Lake stores, Unity Catalog governs.
- ShopKart's orders will travel through every lesson until you can answer 'sales per city' instantly.
Next, you'll see how Databricks is built inside: workspaces, clusters and DBUs.
Frequently asked questions
What is Databricks in simple words?
Databricks is a cloud platform where companies store, clean and analyse huge amounts of data in one place. It runs on AWS, Azure or Google Cloud, uses Apache Spark to process data on many machines at once, and stores data as Delta Lake tables.
Is Databricks a database?
Not exactly. Your data lives as files in your own cloud storage (like Amazon S3 or Azure Data Lake Storage). Databricks adds tables, SQL, compute and security on top, so it feels like a database without locking data inside one.
Do I need to know Python to learn Databricks?
Basic Python or SQL is enough to start. You can do most data engineering work in SQL, and PySpark (Spark's Python API) reads almost like plain English. This course teaches both from scratch.
Is Databricks free to learn?
Yes. Databricks Free Edition gives you a free workspace with serverless compute for learning. Everything in this course works there, except a few admin features we point out.
What is the difference between Databricks and Snowflake?
Both are cloud data platforms. Snowflake started as a SQL data warehouse; Databricks started from Apache Spark and data lakes, so it's strong at big data processing, streaming and machine learning. Today they overlap a lot.
🧠 Quick check: what is Databricks?
1. What does a data engineer mainly do?
2. What is a lakehouse?
3. Where does Databricks store your table data?
4. Which is an OLAP question?