AWS Lake Formation
Cloud service · AWS · Updated

AWS Lake Formation

In short

AWS Lake Formation is a service by Amazon Web Services that simplifies the process of building, securing, and managing data lakes by automating much of the manual and time-consuming tasks involved, such as data ingestion, cleaning, cataloging, and securing.

Cloud Services Hub →

8 key features of AWS Lake Formation

AWS Lake Formation is a service that simplifies the setup and management of secure data lakes, enabling users to collect, clean, catalog, transform, and securely access data across AWS services easily and efficiently.

01
Simplified Data Lake Building

AWS Lake Formation enables users to set up a secure data lake in days. It automates the process of collecting, cataloging, cleaning, and securing data, reducing the time and effort required compared to manual configurations.

02
Fine-grained Access Control

It offers granular access to the data lake, allowing control over who can access specific data sets. This ensures that sensitive information remains secure and that compliance requirements are met.

03
Integrated Data Catalog

AWS Lake Formation integrates with AWS Glue, providing a centralized metadata catalog that catalogs data sources and makes them searchable and queryable across AWS analytics and machine learning services.

04
Machine Learning Data Preparation

The platform eases the preparation of data for machine learning by providing tools and features that help clean and classify data, making it ready for analytics and machine learning applications.

05
Automated Data Movement and Transformation

Lake Formation automates the movement and transformation of data, ensuring that data is efficiently and securely moved into the data lake and transformed using predefined templates or custom transformations.

06
Auditing and Monitoring

It features comprehensive auditing and monitoring capabilities, allowing administrators to track who is accessing the data lake and what actions they are performing, enhancing security and governance.

07
Cross-account Data Sharing

AWS Lake Formation facilitates secure data sharing across AWS accounts, enabling organizations to share datasets within their business units or with external partners while maintaining data security and compliance.

08
External Data Source Governance

Lake Formation permissions can govern access to external data sources, including Amazon Redshift data warehouses, Amazon DynamoDB databases, and third-party data sources.

Where AWS Lake Formation is used

AWS Lake Formation simplifies the process of building, securing, and managing data lakes, enabling use cases such as big data analytics, machine learning model training, and secure data sharing across a diverse set of analytics and machine learning tools.

  1. 01
    Secure Data Lake Creation

    AWS Lake Formation simplifies the process of setting up a secure data lake in hours. Users can ingest, cleanse, catalog, and secure their data easily, making it available for analytics and machine learning.

  2. 02
    Centralized Data Cataloging

    With Lake Formation, businesses can centralize the discovery of data across various AWS services and on-premise environments. It helps in maintaining a unified catalog that describes available data sets and their appropriate usage.

  3. 03
    Data Access Controls

    Lake Formation provides granular access controls to sensitive data, ensuring that only authorized users can access specific data sets. It helps in enforcing compliance with data privacy regulations.

  4. 04
    Automated Data Transformation and Cleansing

    Users can automate the process of data transformation and cleansing, ensuring data is analytics-ready. This includes converting formats, changing column names, and cleansing data for analysis.

How AWS Lake Formation is priced

As of my last update in 2023, AWS Lake Formation pricing is primarily based on the amount of data ingested, the amount of data scanned by queries, and the use of certain features like row-level security, with no upfront costs or minimum fees, allowing you to pay only for the resources you use.

Data Storage

While AWS Lake Formation itself does not charge for data storage, you are responsible for the costs associated with storing your data in Amazon S3, which Lake Formation organizes. Amazon S3 pricing is based on the amount of data stored per month and varies by region.

Data Processing and Transformation

When you use AWS Lake Formation to transform your data, you incur costs for the underlying services used, such as AWS Glue. These costs depend on the number of Data Processing Units (DPUs) consumed by the jobs that transform, clean, and classify your data. DPUs are a measure of processing power comprising CPU, memory, and network resource.

Permissions

Creating Lake Formation permissions and using those permissions through integrated services are provided at no charge.

Data Access

Accessing data managed by AWS Lake Formation may incur additional costs depending on the services you use to analyze your data, such as Amazon Redshift or Amazon Athena. These services have their own pricing models.

Storage API

The Storage API scans and filters data using Lake Formation policies and is available only when no other AWS Analytics service processes the data. Charges are based on bytes scanned, rounded up to the next megabyte, with a 10 MB minimum.

Governed Tables

For Governed Tables, an AWS-managed table type on Amazon S3, charges apply to metadata measured by the number of files tracked and to API calls that retrieve or manipulate that metadata.

Storage Optimizer

The storage optimizer compacts small files in Governed Tables into larger files to improve query performance. Charges are based on bytes processed, rounded up to the next megabyte.

Services AWS Lake Formation works with

Amazon S3Amazon S3

AWS Lake Formation uses Amazon S3 as the storage layer where data lakes reside. It manages data movement and organization, and governs data access with fine-grained permissions.

AWS GlueAWS Glue

AWS Lake Formation integrates with AWS Glue for data cataloging, ETL (extract, transform, load) operations, and job scheduling. Glue Data Catalog is used as the central metadata repository.

Amazon RedshiftAmazon Redshift

AWS Lake Formation can leverage Amazon Redshift for data warehousing and advanced SQL analytics on datasets managed within the data lake.

Amazon AthenaAmazon Athena

AWS Lake Formation powers Amazon Athena to allow users to run SQL queries on the data stored in the S3 data lake without needing to set up or manage infrastructure.

Amazon EMRAmazon EMR

AWS Lake Formation integrates with Amazon EMR to provide scalable data processing and transformation using big data frameworks like Apache Spark, Hadoop, and Hive.

Amazon AppFlowAmazon AppFlow

Amazon AppFlow can catalog flow output in Amazon S3 using the AWS Glue Data Catalog. When Lake Formation manages that catalog and its data locations, the flow's role needs the appropriate Lake Formation permissions to create or update catalog resources.

Amazon DataZone

Lake Formation supplies access controls for supported Glue Data Catalog assets published through Amazon DataZone. When a subscription is approved, DataZone can grant the consumer environment Lake Formation permissions to the underlying tables.

Amazon DynamoDBAmazon DynamoDB

Lake Formation can govern access to DynamoDB data exposed through supported Athena federated-query connectors and the AWS Glue Data Catalog. These permissions control federated analytical access rather than direct reads and writes through the DynamoDB API.

Amazon EventBridgeAmazon EventBridge

Lake Formation API activity recorded by CloudTrail can be matched by EventBridge rules. For example, a rule can trigger a notification or remediation workflow when someone changes data lake permissions.

Amazon HealthLakeAmazon HealthLake

For HealthLake data stores that support Athena analytics, Lake Formation manages permissions on the cataloged HealthLake tables. Administrators can grant analysts access to healthcare data for SQL queries without granting unrestricted access to the underlying data lake.

What is AWS Lake Formation

2 min read

AWS Lake Formation is an integrated service from Amazon Web Services designed to simplify and automate the process of building, securing, and managing data lakes. Data lakes are central repositories that allow you to store all your structured and unstructured data at any scale. However, creating and managing a data lake involves complex processes such as data collection, storage, categorization, and security, which can be formidable challenges without the right tools and expertise. Lake Formation addresses these challenges, providing a comprehensive solution that encompasses data ingestion, cataloging, cleaning, transformation, and security, thereby significantly speeding up the time it takes to derive value from data. 

With AWS Lake Formation, users can easily bring together data from multiple sources such as databases, log files, and existing data warehouses. It automates the process of data load and transformation, helping to clean and classify the data based on the user's predefined rules. This ensures that the data is immediately ready for analysis without requiring extensive manual preprocessing. 

The service integrates seamlessly with AWS Glue for data cataloging and preparation, making the data easily discoverable and accessible for various analytics and machine learning applications. Security is a cornerstone feature of Lake Formation. It provides robust, fine-grained access controls to securely manage who can access the data. This is achieved through its integration with AWS Identity and Access Management (IAM), allowing administrators to define policies that govern individual and group access to specific datasets within the lake. Furthermore, Lake Formation enforces these policies consistently across the different analytics and machine learning services in AWS, ensuring that data is protected no matter where it's accessed from. 

Lake Formation has its own permissions model that augments IAM permissions, using database-style grants and revocations to control access.

Hybrid access mode for the AWS Glue Data Catalog allows cataloged data to be accessed using both Lake Formation permissions and IAM policies for Amazon S3 and AWS Glue actions. Administrators can adopt Lake Formation permissions selectively and incrementally, one data lake use case at a time.

Lake Formation also simplifies the management of the data lake by providing a centralized dashboard where administrators can monitor data access, manage permissions, and track the status of the data lake resources. This centralized management makes it easier to ensure compliance with data governance policies and regulations, a critical aspect for businesses operating in industries subject to strict data protection standards. 

The integration with other AWS services extends the capabilities of Lake Formation beyond data management. For instance, it works seamlessly with Amazon Redshift for data warehousing, Amazon Athena for serverless querying, and Amazon SageMaker for machine learning, enabling users to create a fully integrated data ecosystem. This interoperability allows businesses to leverage their data for a wide range of analytics and machine-learning purposes, from generating insights through dashboards and reports to building sophisticated predictive models. In summary, AWS Lake Formation is a powerful service that addresses the complexities of creating and managing a data lake. It offers a simplified process

Concepts related to AWS Lake Formation

AWS Lake Formation exam questions

Real practice exam questions on AWS Lake Formation, with the correct answer and its explanation. Answer them with every option in the exam simulator.

AIB-C01

A manufacturer is expanding from a few AI pilots to dozens of forecasting projects. Departments continually publish new tables to an Amazon S3 data lake queried through Amazon Athena. Enterprise policy allows forecasting teams to query only tables classified as approved for forecasting. Departmental data stewards must control classification, and project teams must not be able to change it. Leadership wants approved new tables to become accessible through a reusable policy rather than individual table grants. Which approach best meets these requirements?

Show answerCORRECT ANSWER

Use AWS Lake Formation tag-based access control. Authorize designated stewards to assign approval tags, grant forecasting roles access through matching tag expressions, and prevent project roles from changing tags or bypassing governed access.

Lake Formation tag-based access control applies permissions to catalog resources based on assigned LF-Tags. Stewards can classify tables, and matching permissions can cover newly classified tables without individual grants. Restricting tag administration and preventing alternative access paths preserves the governance boundary.

DEA-C01

A company uses Amazon DataZone as its business data catalog. A producer project publishes AWS Glue Data Catalog tables whose Amazon S3 data is governed by AWS Lake Formation. Analysts can discover the published tables, read business descriptions, and submit subscription requests from consumer projects.

Data owners can approve requests, but automatic access provisioning fails. The provisioning logs show that the producer environment's manage-access IAM role cannot grant SELECT permissions to the consumer environment role. The manage-access role has SELECT on the tables without the grant option. Its IAM policy already allows the required Lake Formation API actions, and all other integration permissions are correctly configured.

The company must retain owner approval and automatically provision access for approved subscriptions without maintaining grants for individual consumers. Which change should a data engineer make?

Show answerCORRECT ANSWER

Give the producer environment's manage-access role Lake Formation SELECT permission with the grant option on the published tables.

DataZone uses the environment's manage-access role to provision Lake Formation permissions for supported managed assets after subscription approval. SELECT without the grant option lets the role read data but does not let it delegate SELECT to consumer environment roles. Adding the grant option addresses the identified failure while preserving the catalog's approval and automatic provisioning workflow.

SAP-C03

A manufacturer has 18 business domains in separate AWS accounts. A central analytics team currently builds all ingestion pipelines and resolves data-quality incidents. Publication delays have increased because the central team does not understand every domain's business rules.

The company wants domain teams to independently publish and maintain analytical datasets. Each published dataset must have an accountable owner, documented business semantics, a versioned schema, and measurable freshness and quality commitments. Analysts must discover datasets and join approved datasets through Amazon Athena in their own accounts without copying the source data.

Enterprise security requires consistent sensitive-data classification, centrally defined access boundaries, and auditing. Domain teams must not be able to bypass these controls. Routine publication and access requests that comply with enterprise policy must not require the central team to modify pipelines or permissions manually.

Which architecture best meets these requirements?

Show answerCORRECT ANSWER

Provide self-service deployment templates for domain-owned S3 datasets, pipelines, and AWS Glue Data Catalog tables. Require ownership metadata, schema compatibility checks, and freshness and quality monitoring in publication workflows. Use centrally controlled AWS Lake Formation policies and automated cross-account grants within approved boundaries, with consumer resource links. Prevent direct S3 access from bypassing governance and aggregate audit logs centrally.

This design makes domain teams accountable for their analytical products while a shared platform supplies reusable capabilities. Automated publication checks and centrally controlled access boundaries provide consistent governance without centralizing every operational decision. Lake Formation cross-account sharing and Data Catalog resource links let consumers query approved source datasets from their own accounts without maintaining copies.

Practice AWS Lake Formation in a full exam

Questions on AWS Lake Formation in each practice exam, with every answer option and an explanation for each:

Start a free practice exam

Learn AWS Lake Formation in lessons

13 short lessons on AWS Lake Formation in 7 certification courses.

and 7 more lessons

Open the lessons

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.