Architecting Data Lakes and Analytics Platforms
This lesson explains the modern AWS analytics architecture at the depth expected of an architect: a data lake on Amazon S3 with a shared catalogue and governed access, queried by purpose-built analytics engines.
Learning outcomes
After completing this lesson, you will be able to:
- Describe the building blocks of a data lake.
- Choose a query engine.
- Explain how Lake Formation, LF-Tags and Amazon DataZone govern and share data.
The building blocks
A data lake on AWS is assembled in layers. Storage is Amazon S3, organised in zones such as raw, cleaned and curated. Apache Iceberg tables, including S3 Tables, add ACID updates and time travel. The catalogue is the AWS Glue Data Catalog, populated by crawlers or ETL jobs, which gives every engine the same table definitions. Ingestion and ETL use Glue Spark jobs, Glue DataBrew for visual preparation, Amazon Data Firehose for streams, DMS for databases and zero-ETL integrations.
Governance comes from AWS Lake Formation, with permissions at the database, table, column, row and cell level, tag-based access control and cross-account sharing. Query and processing engines include Athena for serverless SQL, Redshift and Redshift Spectrum for the warehouse, EMR for Spark, Hive and Presto at scale, and OpenSearch for search. Amazon Quick Sight provides visualisation. The following table summarises the layers.
| Layer | Services |
|---|---|
| Storage | Amazon S3, organised in zones such as raw, cleaned and curated; Apache Iceberg tables (including S3 Tables) for ACID updates and time travel |
| Catalogue | AWS Glue Data Catalog, populated by crawlers or by ETL jobs |
| Ingestion and ETL | Glue jobs (Spark), Glue DataBrew for visual preparation, Amazon Data Firehose for streams, DMS for databases, zero-ETL integrations |
| Governance | AWS Lake Formation: database, table, column, row and cell-level permissions, tag-based access control, cross-account sharing |
| Query and processing | Athena (serverless SQL), Redshift and Redshift Spectrum (warehouse), EMR (Spark, Hive, Presto at scale), OpenSearch (search) |
| Visualisation | Amazon Quick Sight |
Amazon SageMaker Unified Studio brings these services together in one environment for analytics and AI, built on a lakehouse that unifies S3 and Redshift data.
Choosing a query engine
The query engine follows from how often queries run, how complex they are and how many users run them. Athena suits ad hoc SQL on S3 with no infrastructure, paying per query, but its performance varies with the data scanned. Redshift, provisioned or Serverless, suits complex joins and dashboards that need consistent sub-second performance for many concurrent users. EMR, on EC2, EKS or Serverless, suits large-scale Spark, custom frameworks and existing Hadoop jobs. For analytics on operational databases without building pipelines, a zero-ETL integration replicates the data into Redshift. The following table summarises the choice.
| Requirement | Choose |
|---|---|
| Ad hoc SQL on S3 with no infrastructure, pay per query | Athena |
| Complex joins and dashboards with consistent sub-second performance, many concurrent users | Redshift (provisioned or Serverless) |
| Large-scale Spark, custom frameworks or existing Hadoop jobs | EMR (on EC2, EKS or Serverless) |
| Analytics on operational databases without building pipelines | Zero-ETL integration into Redshift |
Governance and sharing
Lake Formation centralises permissions that would otherwise be scattered across bucket policies and IAM. A data steward grants a role SELECT on specific columns of a table, perhaps excluding personal data columns, and every integrated engine (Athena, Redshift Spectrum, EMR, Glue) enforces it. LF-Tags scale this: tag tables domain=sales and sensitivity=confidential, then grant access by tag expression. Cross-account sharing lets a central governance account share catalogue resources with consumer accounts in a data mesh, while Amazon DataZone adds a business data catalogue with publish-and-subscribe workflows.
An analytics platform for several business units
A retailer wants each business unit to publish its data, analysts across the company to query what they are entitled to, and personal data visible only to a small team. The architecture is a governed lake with producer and consumer accounts:
- Producer accounts (sales, supply chain) land data in their own S3 buckets in Iceberg format and register tables in the Glue Data Catalog.
- A central governance account uses Lake Formation to register those locations and share the tables, by LF-Tags, with consumer accounts.
- Column-level permissions hide
emailandphoneexcept from the customer-privacy role; row filters limit regional managers to their region. - Analysts query with Athena workgroups (with per-query data limits) or Redshift Serverless; dashboards are built in Quick Sight.
No data is copied between accounts; permissions travel with the catalogue. This is the data-mesh pattern on AWS, and it scores well on both security and operational overhead.
Why use Lake Formation for a data lake shared by several teams?
Show answer
It grants table, column and row permissions centrally, including across accounts, instead of many IAM and bucket policies.
Exam Tips
Remember for the exam
- For serverless, pay-per-query SQL on S3, use Athena; for heavy concurrent BI, use Redshift.
- For column-, row- and cell-level permissions across analytics engines, use Lake Formation.
- To scale permissions by classification, use Lake Formation tag-based access control (LF-Tags).
- To share governed data between accounts without copying it, use Lake Formation cross-account sharing.
- For ACID updates and time travel on S3 tables, use Apache Iceberg.
- For analytics on Aurora or DynamoDB data without ETL pipelines, use zero-ETL integration with Redshift.