S3 data lake layout and catalog
Choose the storage model
A data lake keeps files in object storage for multiple analytical engines. A warehouse organizes data for analytical SQL and predictable reporting; a lakehouse adds table metadata and transactional semantics on lake storage using formats such as Iceberg. A directory of Parquet files alone does not provide transactions. For fictional store sales, retain original CSV events and publish validated daily totals for analysts. Batch ingestion groups records on a schedule; streaming ingestion processes arriving events with attention to duplicates and late data.
Organize raw and curated data
Separate raw, quarantine and curated prefixes or buckets. Raw records preserve source evidence; quarantine holds invalid rows; curated data follows a versioned schema. Use event date as a partition when reports filter by date. Avoid partitioning by unique order ID: millions of tiny objects and partitions make planning expensive. CSV and JSON are convenient for interchange; Parquet and ORC store columns together so an analytical engine can read selected columns and compress efficiently. Compact small files and preserve compatible data types.
Catalog metadata and files separately
The Glue Data Catalog records database, table, column, format, location and partition metadata. It is not the actual sales data. A crawler can infer schema and partitions, but a guessed numeric type or misplaced folder can break reports. Review proposed schema changes and register partitions using a controlled ingestion process. The diagram is illustrative, not a bucket creation command.
raw/sales/ -> ETL + quality -> curated/sales/sale_date=2026-01-01/part-000.parquet -> catalog metadataProtect and retain the dataset
Block public access, use narrowly scoped ingestion and analyst roles, encrypt data and manage KMS permissions where applicable. Keep raw data read-only for analysts; apply retention and storage-class transitions according to recovery and legal needs. Do not expire files still referenced by transactional table snapshots; use table-aware maintenance. Practice: pick a date partition for monthly reports and explain why changing to order ID would be worse.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
S3 data lake layout and catalog — knowledge check
Reason about data layout, governance and query costs.
What distinguishes a lakehouse from a folder of Parquet files?
Which partition fits daily reports?
What does a catalog table contain?
Why use Parquet for selected-column reports?
How should expired lakehouse snapshots be handled?