Most companies collect far more data than a neat table can hold. There are order files from one system, click records from the website, call notes, PDF forms, photos and sensor readings. Some of it has clear columns and some of it has none. Where do you keep all this, when you do not yet know what questions you will ask of it? One common answer is a data lake.
In plain words, a data lake is a place that stores large amounts of data in its original form, whether it is structured, semi structured or unstructured, and prepares it only when someone needs it. This guide explains the data lake meaning, how a lake is organised in layers, how it differs from a data warehouse and a lakehouse, and why many lakes turn into a “data swamp”. It also includes a small example that you can run on your own computer. It builds a mini lake with real files and prints the real results, so you can see schema on read and partitioning work instead of only reading about them.
A note on honesty. Different companies define the terms slightly differently, and layer names are a habit and not a standard. So we say whose wording we use, we say when we read it, and we mark our own explanations as ours. The sources are listed at the end, and we read them on 4 November 2026. If you are new to the topic, our guide to the data warehouse (link when live) and the introduction to big data (link when live) give useful background.
What is a Data Lake?
Microsoft defines a data lake as a storage repository that holds large volumes of data in its native, raw format. IBM gives a very similar definition: a repository designed to store large volumes of raw data as is, usually on low cost cloud object storage. Both say the same two things. First, the data is kept in its original form. Second, it can be structured, semi structured or unstructured, all in one place.
| Kind of data | What it looks like | Example |
|---|---|---|
| Structured | Rows and columns with a fixed shape | Order exports, payment tables |
| Semi structured | Has some labels but the fields can differ between records | JSON records from a website, log files |
| Unstructured | No fixed shape | Support notes, PDFs, images, audio |
A lake is mostly a place for storing and keeping data. Taking the data from there and turning it into reports or models is a separate step. The next sections show how the two parts fit together.
Data Lake Layers in a Diagram

The diagram shows a common pattern. Layer names are not standard. AWS Prescriptive Guidance recommends at least three layers and calls them raw, stage and analytics. IBM lists six parts of a lake: ingestion, storage, data catalog and metadata, processing and analytics, security and governance, and access. These are two views of one idea, and neither is the only correct design.
| Layer | What it holds | Why it exists |
|---|---|---|
| Raw | Unprocessed data as it arrived. AWS advises keeping the original file format and turning on versioning if possible | You can always go back to the source and start again |
| Stage | Intermediate data prepared for use, for example CSV converted to Parquet | Faster to query and cheaper to store than raw files |
| Analytics | Aggregated data in a consumption ready format | Reports and models read from here |
The wording for the raw and stage layers follows the AWS page. The “why it exists” column is our explanation.
Data Lake vs Data Warehouse
This is the question most readers have next. A data warehouse holds structured, prepared data organised for reports. A data lake holds raw data of any kind. The table follows the comparison on the Microsoft Learn page, written in our words.
| Point | Data lake | Data warehouse |
|---|---|---|
| Data type | Raw. Structured, semi structured and unstructured | Structured and curated, in relational tables |
| When the structure is applied | When the data is read (schema on read) | When the data is loaded (schema on write) |
| Best fit | Big data, machine learning and exploration | Business intelligence and reporting |
| Cost | Lower storage cost, and you pay for compute when you process or query | Higher cost because of dedicated compute and tuning |
| Speed for reports | Depends on the engine, and can be slower | Fast, because the data is prepared in advance |
Microsoft says transformation in a lake happens at query time, and in a warehouse during the ETL or ELT process. IBM adds that most lakes use ELT, which means load first and transform later. It is not a contest. Many companies run both: the lake keeps everything, and the warehouse holds the cleaned part that business teams use every day. For the warehouse side in detail, see our data warehouse guide (link when live).
What About a Data Lakehouse
IBM describes a data lakehouse as a design that keeps the low cost storage of a lake and adds warehouse style analytics on top of it. It also says an organisation can add a lakehouse next to its existing lakes and warehouses without replacing them. We keep this short on purpose. The lakehouse idea is a way to fix the weak points of a plain lake, such as slow queries and poor reliability, and its details differ between vendors.
Schema on Read in Simple Words
“Schema” means the shape of the data: the column names, the types and how records connect. In a warehouse, you decide the shape before the data goes in, which is schema on write. In a lake, you store the data first and decide the shape when you read it. IBM puts it as applying a schema only when data is accessed.
The benefit is flexibility. If a new question appears next year, the original data is still there, so you can read it in a new way. The cost is that every reader must understand the data well, and a careless reader can misread it. That is why a lake needs a catalog and clear rules.
A Mini Data Lake You Can Run
The file mini_data_lake_demo.py, sent with this post, builds a tiny lake in a temporary folder on your computer, runs seven steps and deletes it at the end. All data is made up. We ran it on Python 3.13 with pandas and pyarrow, and the output below is real. It ends with “All checks passed”.
Step 1: Land different kinds of data in the raw layer
The raw layer accepts what arrives. Nothing is forced into a table yet. A warehouse would have rejected the text note, and would have needed a plan for the JSON before accepting it.
Step 2: Schema on read
The three JSON records carry different fields. Reading them gave one table with five columns, and the missing fields became empty values. We decided the shape at read time. Another reader might choose a different shape, which is both the strength and the risk of schema on read.
Step 3: Move from raw to stage as Parquet
Parquet is a columnar file format that AWS recommends for its stage and analytics layers. Here it came to 19.2 percent of the CSV size. Be careful with that number: our made up data repeats the same few values, which compresses very well. Real data will give a different ratio. The partitions are folders by month, which helps in the next step.
Step 4: Read only what the question needs
A question about August needs only one of the three monthly folders and only three of the six columns. Reading less is what makes lakes affordable at large sizes. A plain CSV file would force you to read every row and every column.
Step 5: Build an analytics table
This small table is the analytics layer. The four order counts add up to 20,000, which the script checks. A report tool would read this table, and not the raw files.
Step 6: Keep a catalog
A catalog is a list that says what data exists and where. Ours is five rows long. Real catalogs also hold owners, descriptions and quality notes. Microsoft warns that without cataloging, lakes can devolve into data swamps, where valuable information is present but inaccessible or misunderstood.
Step 7: Go back to raw when the question changes
A new question needed a column that never existed in the stage tables. Because the raw file was kept unchanged, we could build it. In our made up data every note says card, so the answer is 1.0. The result is not interesting, but the point stands: raw data gives you the freedom to ask new questions.
What this example does not show: cloud storage, security and access control, streaming data, very large volumes or a real catalog service. It is a teaching model of the ideas, not a design for production.
What are the Benefits of a Data Lake?
- Keeps raw data for future use. Microsoft lists this first. You do not have to know every question in advance.
- Holds many kinds of data. Structured, semi structured and unstructured data can live together.
- Cost. IBM lists lower costs, because data is stored raw on cheap cloud storage. Storage and compute can scale separately.
- Self service exploration. Microsoft notes that analysts and data scientists can query data directly.
- Fewer data silos. IBM lists faster and more collaborative decisions as a benefit.
These are the benefits the vendors state. Whether you get them depends on how well the lake is run.
Challenges and the Data Swamp
| Challenge | What it looks like | What helps |
|---|---|---|
| Data quality | Errors or incomplete loads go unnoticed, so reports disagree | Validation checks when data moves from raw to stage |
| Discoverability | Nobody knows what data exists or what a column means | A catalog with owners and descriptions |
| Security and access | Mixed data is hard to protect and audit | Clear permissions, logging and sensitive data rules |
| Performance | Queries slow down as the lake grows | Columnar formats, partitions and a good query engine |
The first three challenges come from the Microsoft and IBM pages. The “what helps” column is our summary. A data swamp is a lake where nobody trusts or can find the data. It does not happen suddenly. It happens when files are dumped with no names, no owners and no checks. The fix is dull but effective: agree on folder names and layers, register every dataset, and give each one an owner.
Who Works with Data Lakes and How to Learn?
| Role | How they use a lake |
|---|---|
| Data engineer | Builds the pipelines that fill and organise the lake |
| Data analyst | Queries the analytics layer for reports |
| Data scientist | Explores stage and raw data to build models |
| Governance and security teams | Set access rules and check what is stored |
The roles are our summary. To learn, start with Python and SQL, then learn file formats such as CSV, JSON and Parquet, then learn how one cloud stores data. Our guide to cloud computing architecture and the Azure storage types page give the cloud storage background. Each cloud has its own object storage service, such as Amazon S3 on AWS.
If you want guided practice, Prwatech runs a Big Data course in Bangalore, a Big Data course in Pune and a PySpark course in Bangalore. Offline classes are held in Bangalore (BTM Layout) and Pune (Kharadi). Learners in other cities can join live online classes or study at their own pace. Whether a course covers data lakes in depth, and the syllabus, batch dates and fees, are questions for the Prwatech learning team, so please ask them through the demo class form below.
AI Tutor