AWS Glue
Cloud service · AWS · Updated

AWS Glue

In short

AWS Glue is a fully managed extract, transform, and load (ETL) service that simplifies data preparation and loading for analytics for both customers and users.

Cloud Services Hub →

Free AWS Glue tools

10 key features of AWS Glue

01
ETL Capabilities

Offers both visual and code-based interfaces for data preparation and transformation, with features like crawling, schema inference, format conversion, and dataset joining.

02
AWS Glue Data Catalog

Acts as a central repository for metadata about data assets, facilitating discovery and query across AWS services like Athena, EMR, and Redshift Spectrum.

03
Serverless Execution

Enables running ETL jobs without provisioning infrastructure, where you pay only for the resources consumed during job execution.

04
Schema Registry

Validates streaming-data schemas and controls schema evolution through compatibility checks.

05
Machine Learning for Data Preparation

Incorporates machine learning techniques like data quality checks, entity extraction, and fuzzy matching to enhance data readiness for analytics.

06
Flexible Scripting

Automatically generates ETL code in Python or Scala, which users can customize and reuse, streamlining the script development process.

07
Visual ETL Tool (Glue Studio)

Provides a user-friendly interface for creating, executing, and monitoring ETL jobs, making it accessible to non-developers.

08
Automatic Schema Recognition

Detects and understands data schemas to facilitate accurate data transformation and transfer.

09
Job Scheduling and Monitoring

Offers tools for setting up job schedules and monitoring their execution, complete with logging and notifications to track ETL process efficiency.

10
Resource Usage Monitoring

Exposes resource usage as a percentage in CloudWatch and supports alarms on that usage, including workflows, triggers, jobs, concurrent job runs, blueprints, and interactive sessions.

Where AWS Glue is used

  1. 01
    Data Integration and Analytics

    AWS Glue streamlines the integration of various data sources, such as databases, data lakes, and data warehouses, offering a unified view for analytics, and supports BI initiatives by enabling comprehensive reporting and dashboard creation.

  2. 02
    ETL/ELT Workflows

    It facilitates the creation and execution of ETL (extract, transform, load) and ELT (extract, load, transform) workflows through both visual and code-based interfaces, aiding in data cleaning, normalization, and preparation.

  3. 03
    Data Lake Management and Analytics

    Glue aids in forming and analyzing data lakes on Amazon S3, working seamlessly with services like Athena, EMR, and Redshift Spectrum to analyze large datasets.

  4. 04
    Machine Learning Preparation

    Provides tools for schema inference, data quality checks, and machine learning transformations, thus readying data for machine learning applications.

  5. 05
    Application Development Support

    Simplifies data access via its data catalog, enabling applications to easily utilize analytics-ready data.

  6. 06
    Batch and Real-time Data Processing

    Supports both batch processing and real-time data integration, accommodating streaming sources like Kafka and Amazon Kinesis for continuous data analysis.

  7. 07
    Data Warehouse Modernization

    Moves, combines, replicates, and transforms data into a warehouse such as Amazon Redshift after source data is available on AWS.

  8. 08
    Log and Stream Analytics

    Processes and transforms log data and streams from various sources for real-time analytics, aiding in monitoring, troubleshooting, and insight extraction.

How AWS Glue is priced

AWS Glue uses DPUs as a measure of resource consumption for running ETL jobs and development endpoints. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. The cost is based on the number of DPUs consumed by your jobs and endpoints.

Glue ETL jobs

You are charged at a DPU-hour rate based on the DPUs used and job duration, with billing in one-second increments. AWS Glue 2.0 and later Spark ETL jobs have a one-minute minimum charge.

Glue DataBrew

DataBrew is a feature of AWS Glue that allows you to clean and normalize data without writing code. Pricing is based on the number of DataBrew nodes (virtual servers) used and the amount of time the jobs run.

Glue Interactive Sessions

Interactive sessions are billed at a DPU-hour rate according to allocated DPUs and session duration, in one-second increments with a one-minute minimum charge.

Glue Studio

Data preview sessions use 2 DPUs and are billed in one-second increments with a one-minute minimum charge. You also pay for underlying AWS services used like storage, databases etc.

Glue Data Catalog

The first one million metadata objects stored and the first one million metadata access requests each month are free. Above these allowances, storage costs $1 per 100,000 metadata objects per month, and access costs $1 per million requests. Metadata objects include tables, table versions, partitions, and databases.

Glue Data Catalog table optimization

Data Catalog table optimization, including Apache Iceberg compaction, snapshot retention, and orphan-file deletion, is billed for the DPU compute used, separately from metadata storage and access charges.

Glue Flex jobs

Flex is a lower-cost execution class for nonurgent workloads whose start and completion times can vary.

Glue Ray jobs

Ray jobs are charged per M-DPU-hour, billed per second with a one-minute minimum.

Glue development endpoints

Development endpoints are charged for provisioned time and allocated DPUs, billed per second with a ten-minute minimum; they do not time out automatically.

Glue crawlers

Crawler runs are billed by DPU usage and runtime in one-second increments, with a ten-minute minimum per crawl.

Glue DataBrew interactive sessions

DataBrew interactive usage is billed per session in 30-minute increments; the first 40 interactive sessions are free for first-time DataBrew users.

Glue Data Catalog statistics

Generating table statistics costs $0.44 per DPU-hour, billed per second with a one-minute minimum.

Glue Data Catalog materialized view refresh

Materialized view refresh costs $0.44 per DPU-hour, billed per second with a one-minute minimum.

Glue Data Quality

Data Catalog recommendation and evaluation tasks require at least 2 DPUs and have a one-minute minimum billing duration. Data quality checks embedded in ETL jobs can increase job runtime or DPU consumption.

Glue Data Quality anomaly detection

Data Catalog anomaly detection consumes one additional DPU per statistic for detection time, with a one-second minimum. Retraining also incurs DPU compute charges. Anomaly detection in Glue ETL jobs has no additional charge.

Glue zero-ETL

Application-source ingestion is charged by received data volume, with a minimum of 1 MB per ingestion request. Processing changed data written to SageMaker Lakehouse on S3 is charged by Glue DPU-hour, billed per second with a one-minute minimum; Redshift targets incur the applicable Redshift compute charges.

Services AWS Glue works with

Amazon S3Amazon S3

AWS Glue can extract, transform, and load (ETL) data to and from Amazon S3 buckets.

Amazon RDSAmazon RDS

AWS Glue can connect to and perform ETL operations on data stored in Amazon RDS databases.

Amazon KinesisAmazon Kinesis

AWS Glue can read from and write to Amazon Kinesis Data Streams and Amazon Data Firehose.

Amazon AppFlowAmazon AppFlow

AWS Glue Data Catalog can register the schema and location of data that AppFlow transfers into Amazon S3. This makes application exports discoverable as catalog tables for downstream analytics.

Amazon AuroraAmazon Aurora

AWS Glue connects to Aurora databases through JDBC connections to discover schemas and read or write data. An ETL job can extract transactional records from Aurora and transform them for a data lake.

Amazon Aurora ServerlessAmazon Aurora Serverless

AWS Glue can access Aurora Serverless databases through JDBC connections when the database endpoint is reachable from the job's network. Crawlers can discover database tables, and ETL jobs can read and write their data.

Alternatives to AWS Glue in other clouds

Azure

Azure Data Factory

AWS Glue and Azure Data Factory both support ETL and ELT workflows with visual tools for transforming data. AWS Glue processes streaming data directly, while Azure Data Factory uses a separate streaming service for continuous, low-latency processing; Azure Data Factory also offers a self-hosted runtime for reaching on-premises or private sources, while AWS Glue provisions job compute automatically.

Compare fact by fact
AWS GlueAzure Data Factory
Continuous stream processingBuilt-in stream processingSeparate streaming service
Runtime hostingAutomatically provisioned computeManaged or self-hosted runtimes
Code-based transformationsCustomizable Python or Scala ETL codeExternal compute or SQL activities
Transformation compute billingDPU-hours for job runtimevCore-hours for provisioned data flows
Azure Databricks

AWS Glue and Azure Databricks, through Lakeflow Jobs and declarative pipelines, run managed batch and streaming data transformations for analytics. Glue automatically provisions serverless compute and bills ETL jobs for DPU usage and runtime; Azure Databricks offers classic and serverless compute, with separate Azure infrastructure charges for classic compute.

Compare fact by fact
AWS GlueAzure Databricks
ETL compute optionsAutomatically provisioned serverlessConfigurable classic or serverless
ETL compute billingDPU-hours, billed per secondDBUs; separate Azure infra on classic
Microsoft Fabric

AWS Glue and Microsoft Fabric’s Data Factory both build and schedule pipelines that move and transform data for analytics. Glue bills ETL jobs by DPU usage and runtime, while Data Factory uses shared Fabric capacity billed for the provisioned SKU and the time it’s active.

Compare fact by fact
AWS GlueMicrosoft Fabric
Compute billingDPUs used × job runtimeShared capacity SKU × active time
Transformation authoringVisual ETL; generated Python or ScalaPower Query in Dataflows Gen2

What is AWS Glue

2 min read

AWS Glue is a cloud-based service provided by Amazon Web Services (AWS) that serves as a fully managed extract, transform, and load (ETL) solution. It is designed to streamline the process of preparing and combining data for analytics and data processing workflows.

AWS Glue automates the time-consuming steps of data preparation, such as discovering, categorizing, cleaning, enriching, and moving data between various data stores. Its Data Catalog is a centralized technical metadata repository, with AWS Lake Formation capabilities for centralized data governance. This catalog provides a unified view of all data sources and simplifies the management of data across different AWS services and your data warehouse.

AWS Glue Data Quality can recommend rules for data lakes, evaluate rules in pipelines, and calculate quality scores visible in the Data Catalog. Rules can be customized and scheduled, with actions to alert teams when quality issues occur.

AWS Glue dynamically generates ETL code in Python or Scala, which can be further customized and stored for future use. It is serverless, meaning that it automatically provisions the compute resources required to process data according to the workload. This makes it a scalable solution that adjusts to the volume of data, whether it’s processing a few records or terabytes of data. Glue is integrated with a wide range of AWS services, making it a versatile tool for different ETL tasks and enabling seamless data integration across the AWS ecosystem.

AWS Glue has standard and flexible execution classes. Standard execution is intended for time-sensitive workloads requiring fast startup and dedicated resources; Flex suits nonurgent jobs whose start and completion times may vary.

For interactive development, Glue Interactive Sessions let you explore, experiment on, and process data using your preferred IDE or notebook.

Custom readers, writers, and transformations can be imported into Glue ETL jobs as libraries.

Glue Zero-ETL defaults to 25 integrations per account, with up to 15 integrations associated with each source and up to 50 associated with each target.

In addition to ETL capabilities, AWS Glue offers features like the Glue DataBrew, which allows users to clean and normalize data without writing code. It provides a visual interface to easily combine, transform, and categorize data. AWS Glue's ability to handle both batch and streaming data makes it suitable for various data processing needs, from big data analytics to real-time analytics applications. 

For streaming sources, Data Catalog tables and data stream properties are defined manually rather than populated by a data-store crawler.

This comprehensive service simplifies data preparation and integration, facilitating more efficient and effective data analysis and decision-making processes within organizations.

Concepts related to AWS Glue

AWS Glue exam questions

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

AIB-C01

A commercial lender is preparing an AI model to assess loan applications. Historical testing shows excellent accuracy, but a review finds that the training pipeline attaches each applicant's most recently revised financial statement to every past application. Some revisions were published only after the historical lending decision. All statements are accurate, and schema and completeness checks pass. Leadership requires credible evidence of model reliability before deployment. Which approach should the AI business strategist recommend?

Show answerCORRECT ANSWER

Use AWS Glue transformations to attach only statement versions available at each historical decision time, retain the relevant version and publication timestamps, and repeat training and evaluation on the corrected data.

Point-in-time preparation prevents future information from entering historical examples. Retaining statement versions and publication timestamps makes the preparation auditable, and repeating training and evaluation provides more credible evidence of reliability.

MLA-C02

An AWS Glue Spark job prepares training data by enriching 4 TB of application events with attributes from a reference dataset. The job joins the datasets on error_code. Most events have the same error_code, but the event input partitions are approximately equal in size.

The engineer configures Spark to replicate the reference dataset to executors for the join. The job then fails with executor out-of-memory errors. Although the reference files occupy only 80 MB compressed, their in-memory join representation requires 6 GB. Each executor has approximately 1 GB available for the join. Most reference columns contain diagnostic text that is not needed in the output. Testing shows that retaining only error_code and the required attributes reduces the in-memory join representation to 30 MB without removing any reference rows.

The engineer must resolve the memory failure without increasing worker capacity or repartitioning the event dataset by error_code. Which change meets these requirements?

Show answerCORRECT ANSWER

Select only error_code and the required reference attributes before applying the broadcast operation, and join the events to that reduced DataFrame.

Projecting unused columns out before broadcasting reduces each executor's join representation to 30 MB, which fits safely in memory. The broadcast join can then match events locally without repartitioning the large event dataset by its skewed join key.

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 Glue in a full exam

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

Start a free practice exam

Learn AWS Glue in lessons

36 short lessons on AWS Glue in 9 certification courses.

and 30 more lessons

Open the lessons

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