Lesson 1 of 7 Amazon S3 Data Lakes

Organising a Data Lake into Zones

This lesson explains how a data lake on Amazon S3, the durable, inexpensive and virtually unlimited storage foundation of AWS data lakes, is organised into zones by stage of processing, keeping raw data safe, curated data trustworthy and access easy to govern.

Learning outcomes

After completing this lesson, you will be able to:

  • Describe the raw, cleaned, curated and consumption zones.
  • Explain why raw data is kept unmodified.
  • Govern every zone consistently.
  • Choose between a bucket per zone and prefixes within one bucket.

The zones

A data lake is commonly organised into zones that reflect how far data has been processed, sometimes called the bronze, silver and gold layers. The raw zone, also called landing or bronze, holds copies of source data exactly as received and is never modified. If a later transformation turns out to be wrong, the data can be reprocessed from this original. The curated zone, also called cleaned or silver, holds data that has been validated, de-duplicated and conformed to standard types and names, stored in columnar formats such as Parquet or Iceberg for efficient querying.

The consumption zone, or gold, holds aggregated, business-ready datasets shaped for particular uses, such as reports, dashboards and machine learning features. Most users query only this zone. The following table summarises the zones.

ZoneHolds
Raw (landing, bronze)Immutable copies of source data exactly as received
Curated (cleaned, silver)Validated, de-duplicated, conformed data in columnar formats
Consumption (gold)Aggregated, business-ready datasets for reporting and ML

Each zone can be a separate bucket or prefix with its own access controls.

The following diagram shows the three zones of a data lake and which groups read each.

The lake's three zones and who reads each. Raw data is kept exactly as received and read only by data engineers, because it may contain unmasked personal data. Cleaned data is validated and typed, and curated data holds business-ready aggregates for analysts. Lake Formation permissions per zone let analysts query curated data without access to raw records.
Zones can be separate buckets or prefixes.
Match the pairs

Data lake zones

Exam skills 2.1.2

Match each zone with what it holds.

Log in to try this activity Interactive activities are free with an account.

Why keep raw data

The raw zone is never modified. If a transformation contains a bug, or business logic changes, the curated and consumption zones can be rebuilt from raw data. Raw data often contains unmasked personal data, so access to it is restricted to the pipelines and a few engineers, and lifecycle rules move it to cheaper storage classes once processed.

Governance across zones

Each zone of a data lake holds data at a different stage, but every zone must be governed consistently, or the least protected zone becomes the weak point. Every zone is catalogued in the AWS Glue Data Catalog, so its datasets can be found and queried, and access is controlled with AWS Lake Formation, so that analysts can query curated data without being able to read the raw records behind it.

Data in every zone is encrypted, with SSE-S3 or SSE-KMS, and S3 Block Public Access is enabled on every bucket. Datasets are tagged with their classification, such as whether they contain personal data, and their owner, so that permissions, retention rules and audits can be applied by tag rather than dataset by dataset.

Select all that apply

Governing every zone

Exam skills 4.2.4 · 4.5.7

Identify the controls that should apply consistently across data lake zones.

Log in to try this activity Interactive activities are free with an account.

Buckets or prefixes

Zones can be separated by bucket or by prefix within one bucket. A bucket per zone gives the clearest separation: each bucket has its own bucket policy, default KMS key and lifecycle rules, so it is easy to ensure that only the ingestion role writes to raw and that analysts read only consumption. The cost is more buckets to manage. A prefix per zone in one bucket means fewer buckets, but every policy statement and lifecycle rule must be scoped carefully to the right prefix, and a mistake can expose or delete data in another zone. The following table summarises the trade-off.

ApproachAdvantagesDisadvantages
Bucket per zoneSimple, strong separation of policies, encryption keys and lifecycle rulesMore buckets to manage
Prefix per zone in one bucketFewer bucketsPolicies and lifecycle rules must be scoped carefully by prefix
Scenario questions

Bucket or prefix per zone?

Exam skills 2.1.2 · 4.1.5

Choose how to separate zones for each requirement.

Log in to try this activity Interactive activities are free with an account.
Worked example

Organising a lake into zones

A company organises its data lake into zones according to the stage of processing. The following table describes the contents, format and consumers of each zone.

ZoneContentsFormatWho reads it
Raw (bronze)Data exactly as receivedOriginal (CSV, JSON)Data engineers only
Cleaned (silver)Validated, de-duplicated, typedParquet or IcebergData engineers, data scientists
Curated (gold)Business-ready aggregates and dimensionsParquet or IcebergAnalysts and dashboards

Keeping raw data unchanged means any mistake in later processing can be fixed by reprocessing from raw. Different S3 prefixes or buckets per zone, with Lake Formation permissions, let analysts see curated data without access to raw records that may contain unmasked personal data.

Check yourself

Why should access to the raw zone be restricted?

Show answer

It may contain unmasked personal data, which is cleaned or masked only in later zones.

Exam Tips

Remember for the exam

  • Keep immutable raw data so that it can be reprocessed and replayed.
  • Curated data is validated, de-duplicated and stored in columnar formats.
  • Restrict access to the raw zone, which may contain unmasked personal data.
  • Govern every zone with the Glue Data Catalog and Lake Formation.
  • Separate zones by bucket for the strongest separation of policies and keys.