AWS Lake Formation
AWS Lake Formation for building a data lake on S3 in days, its blueprints and Glue foundations, and centralized fine-grained permissions at the row, column and cell level.
What it is
A data lake is a central place to keep all of an organisation's data for analytics, structured and unstructured, usually in S3.
AWS Lake Formation is a fully managed service to set up a data lake in days and to govern it.
- Discover, cleanse, transform and ingest data into the data lake.
- It automates many complex manual steps (collecting, cleansing, moving, cataloguing data…) and de-duplicates records (with ML transforms).
- Combine structured and unstructured data in the data lake.
- Out-of-the-box source blueprints: S3, RDS, relational and NoSQL databases…
- Fine-grained access control for applications: row, column and cell-level.
- Built on top of AWS Glue: it uses Glue crawlers, Glue ETL and the Glue Data Catalog.
Centralized permissions
Without Lake Formation, securing a data lake means writing S3 bucket policies, IAM policies and per-service settings, and keeping them consistent for Athena, QuickSight, Redshift and EMR separately.
With Lake Formation:
- Permissions are granted and revoked on databases, tables, columns and rows in one place, much like in a relational database (
GRANT SELECT ON sales (region, amount) TO analysts). - Data filters give column-level, row-level and cell-level security.
- The permissions are enforced by the analytics services: Athena, QuickSight, Redshift Spectrum, EMR and Glue.
- Data can be shared with other AWS accounts or a whole AWS Organization, with the same fine-grained control. LF-Tags grant access by tag at scale.
For example, the marketing team's analysts query the customer table in Athena and see every column except email and phone, and only rows for their own country, while the data science team sees everything.
Real-world examples
- A hospital group ingests data from several databases into an S3 data lake with Lake Formation blueprints, and researchers see patient records without names or addresses (column-level security).
- A company with many accounts keeps one central data lake account and shares specific tables with each business unit's account through Lake Formation.
Exam tips
- "Build a data lake quickly" → Lake Formation.
- "Centrally manage fine-grained (column, row, cell-level) access to data in the data lake" → Lake Formation permissions.
- "Share data lake tables across accounts with fine-grained control" → Lake Formation (cross-account sharing, LF-Tags).
- "De-duplicate records in the data lake" → Lake Formation / Glue ML transforms (FindMatches).
Common traps
- "Use S3 bucket policies for column-level access." S3 policies work on objects, not columns or rows; use Lake Formation.
- "Lake Formation replaces Glue." It's built on Glue (catalog, crawlers, ETL) and adds governance.
Check yourself
Setting up Lake Formation permissions takes a full data lake to be meaningful, so instead:
Register the data lake with Lake Formation and grant column-level permissions on the table: HR gets all columns, other analysts get every column except salary. Athena and QuickSight enforce it.
AWS documentation
AWS Glue
AWS Glue as serverless ETL, converting data to Parquet for Athena, the Glue Data Catalog and crawlers, and job bookmarks, DataBrew, Glue Studio and streaming ETL.
Managed Flink and Amazon MSK
Amazon Managed Service for Apache Flink for real-time stream processing, Amazon MSK for managed Apache Kafka, how Kafka works, Kinesis Data Streams vs MSK, and MSK consumers.