XenonStack

Data Management

XenonStack Blog AWS Glue Data Quality: Rules, Cost and Limits

| Published | Updated

AWS Glue Data Quality: Rules, Cost and Limits
11:37

Key takeaway

  • AWS Glue Data Quality explained: DQDL rules, Catalog vs ETL checks, anomaly detection, documented cost and limits, and when another tool fits better.

AWS Glue Data Quality is a managed, serverless way to measure and enforce data quality on data you already hold in AWS. You write rules in Data Quality Definition Language (DQDL), run them against Data Catalog tables or inside Glue ETL jobs, and get a data quality score, per-rule results and, in ETL, the failing rows. It suits teams that want quality checks on S3, Redshift and lakehouse tables without running their own validation servers.

For a CDO or platform lead, the decision is where the checks run and who owns the rules. This guide covers the two entry points, the rule and anomaly features, what AWS documents about cost and limits, and when a different tool fits better. For the wider discipline, see our guides to data quality management and common data quality issues and how to fix them.

What is AWS Glue Data Quality and how does it work?

AWS describes the service as built on the open-source DeeQu framework, with no installation, patching or maintenance and pay-as-you-go pricing (AWS Glue Data Quality documentation). Its core terms are worth knowing before any design discussion:

TermWhat it means in AWS's documentation
DQDLA domain-specific language for data quality rules, kept in an open format because the service is built on DeeQu
RuleA DQDL expression that checks one characteristic of the data and returns true or false
RulesetA set of rules, associated with a table in the Glue Data Catalog
Data quality scoreThe percentage of rules that pass when a ruleset is evaluated
AnalyzerA DQDL expression that gathers statistics without asserting pass or fail
ObservationAn unconfirmed insight Glue generates from statistics gathered over time

Glue itself is the wider data integration service, with crawlers, the Data Catalog, ETL jobs and schedulers. Our overview of AWS Glue covers that platform; this post covers only the quality layer.

Where should the checks run: the Data Catalog or ETL jobs?

AWS documents two entry points. Catalog evaluation is aimed at data stewards and analysts and governs data at rest. ETL evaluation is proactive: it filters out bad data before it reaches the lake. The feature differences below come from AWS's own comparison table.

Two-column diagram comparing Data Catalog evaluation and ETL job evaluation in AWS Glue Data Quality on best fit, rule recommendations or sources, incremental runs and failed records, ending with the rule to govern in the Catalog and block in ETL
CapabilityData CatalogETL jobs
Best fitOngoing governance of tables at rest, by stewards and analystsGating data before it is loaded
Data sourcesS3, Redshift, Catalog-compatible JDBC, Iceberg, Hudi, Delta Lake, Athena viewsAll sources Glue supports, including custom and third-party connectors
Rule recommendationsSupportedNot supported
Identify failed recordsNot supportedSupported
Incremental evaluationPushdown predicatesGlue job bookmarks
Auto scaling and Glue FlexNot supportedSupported

A common sequence is to start with Catalog evaluation on the tables that matter most, then move the rules that must block bad loads into ETL jobs, where failing rows can be identified and handled.

How do rules, recommendations and dynamic checks work?

A ruleset is a Rules list in DQDL, for example IsComplete "order-id", IsUnique "order-id" and RowCount > 0. Rules can be combined with and and or, filtered with a where clause (Glue 4.0 only) and labelled for reporting in ETL. The DQDL reference lists rule types including Completeness, Uniqueness, ColumnValues, DataFreshness, ReferentialIntegrity, DatasetMatch, CustomSql and DetectAnomalies (DQDL reference).

Rule recommendations

For a Catalog table, Glue can analyse the data and propose a starting ruleset in two clicks. AWS's release notes dated 18 September 2026 add an ADVANCED mode that uses Amazon Bedrock, table metadata and sampled rows to generate rules; BASIC remains the default. Treat recommended rules as a draft: a data owner should review each one.

Dynamic rules

Dynamic rules compare today's metric with history, for example RowCount > avg(last(3)). The DQDL reference states that dynamic rules are supported in Glue ETL and not in the Data Catalog, although the overview page lists them for both, so confirm the current behaviour in your Region before relying on them.

What does anomaly detection add?

Fixed rules go stale when the business changes. Anomaly detection learns from stored statistics and raises an observation when a value falls outside the predicted range (anomaly detection documentation). Points that matter for governance:

  • It needs at least three data points before it can detect anything.
  • Each observation shows the actual value, a trend, upper and lower bounds and recommended rules to catch the issue in future.
  • Observations do not change the data quality score.
  • A detected anomaly is treated as normal in later runs unless it is excluded, so someone must acknowledge or reject each one.
  • Two modes exist: LINEAR (the default, for trends and seasonality) and FIXED (for flat or irregular data).
  • For Catalog tables, evaluation runs need ObservationScope set to ALL.

What does it cost and what are the limits?

Pricing and limits decide whether a design scales. AWS documents the following (AWS Glue pricing, read 12 November 2026; check your Region before budgeting):

ItemWhat AWS states
Catalog data quality tasksAt least 2 DPUs and a 1-minute minimum billing duration; the pricing examples use $0.44 per DPU-hour
Data quality in ETL jobsRules run inside the job, so they add to its runtime and DPU use; Flex execution is cheaper
Anomaly detection, Catalog1 DPU per statistic for the detection time
Anomaly detection, ETLNo additional charge
Statistics storageNo charge; up to 100,000 statistics per account, kept for a maximum of two years
Ruleset sizeUp to 2,000 rules and 65 KB per ruleset
Nested dataRules cannot evaluate nested or list-type sources; flatten structs first

S3 storage, requests, data transfer and Data Catalog charges are billed separately at standard rates.

How should a team adopt it, step by step?

  1. Catalog the data. Run crawlers, then check that discovered schemas, descriptions and partitions are right, because a ruleset must attach to a Catalog table.
  2. Grant least-privilege access. Create an IAM role that lets Glue read the source and write results to S3 and CloudWatch.
  3. Start from recommendations, then edit. Generate a draft ruleset, drop what the business does not need and add rules for its own definitions of valid, such as referential integrity to a master table.
  4. Schedule evaluations to follow data arrival, and write results to S3 for audit and trend reporting.
  5. Move blocking rules into ETL. Where bad data must not load, run the rules in the job and route failing rows to a quarantine location.
  6. Alert on results. Glue integrates with Amazon EventBridge and Amazon CloudWatch, so a failed ruleset can trigger a notification or workflow.
  7. Review quarterly. Retire stale rules, acknowledge or reject anomaly observations and re-check thresholds with the data owner.

Who should own data quality rules, and what about governance?

The tooling is the easy part. Each ruleset needs a named business owner, a review date and a record of why each threshold was chosen, because a data quality score is only as meaningful as the rules behind it. Keep rulesets in version control through CloudFormation or code, so a change to a threshold is reviewed like any other change. Our guide to augmented data quality covers how automation fits with human ownership.

Quality rules also matter once AI agents consume the data. An agent that acts on a failed or stale table needs to know which policy applied and who approved it. ElixirData Context OS keeps governed context, versioned policy and decision traces in one decision layer above AI agents, and AgentGRC keeps autonomous agent actions inside policy, with the audit trail risk teams need. Our post on data quality agents shows the pattern.

When is AWS Glue Data Quality not the right choice?

SituationWhy Glue Data Quality may not fit
Data mostly outside AWSRulesets attach to Glue Data Catalog tables, so non-AWS data needs a connector or a different tool
Deeply nested JSON or list columnsRules cannot evaluate nested or list-type sources until you flatten them
Rules needed in one portable format across cloudsDQDL is open and DeeQu-based, but the managed service runs only in AWS
Very large or very many rulesetsThe 2,000-rule and 65 KB ruleset limits mean splitting rulesets
Failing rows needed on Catalog tablesIdentifying failed records is documented for ETL only

Our guide to Apache Spark architecture helps when the choice is between managed checks and your own Spark jobs.

To map one data quality decision your agents should make, and the context and policy it depends on, book a Context Workshop. See what happens in the workshop.

Frequently asked questions

What is AWS Glue Data Quality built on?

AWS states it is built on the open-source DeeQu framework, and rules are written in DQDL.

Can I run it on Data Catalog tables and in ETL jobs?

Yes. Catalog evaluation suits governance of data at rest, and ETL evaluation filters bad data before it loads and can identify failed records.

Does anomaly detection change the data quality score?

No. AWS states that anomalies do not affect the score. It needs at least three data points and treats a detected anomaly as normal in later runs unless excluded.

How is AWS Glue Data Quality priced?

Catalog tasks need at least 2 DPUs with a 1-minute minimum, and ETL checks add to the job's DPU use. Anomaly detection costs 1 DPU per statistic on the Catalog and nothing extra in ETL. Check AWS's pricing page for your Region.

What are the main limits?

Up to 2,000 rules and 65 KB per ruleset, 100,000 statistics per account kept for two years, and no evaluation of nested or list-type data.

Next Steps for Implementing Data Quality Solutions

Talk to our experts about automating data quality with AWS Glue. Learn how industries use AWS Glue to streamline data workflows and ensure accuracy. With automated ETL and data quality features, AWS Glue helps optimize operations and improve data reliability for decision-making.

Ready to put AI agents to work? Explore ElixirClaw, the agentic OS platform to build, orchestrate and govern AI agents.

Table of Contents

dr-jagreet-gill

Dr. Jagreet Kaur

Chief AI Officer, XenonStack

LinkedIn profile

Dr. Jagreet Kaur specializing in Generative AI for synthetic data, Conversational AI, and Intelligent Document Processing. With a focus on responsible AI frameworks, compliance, and data governance, she drives innovation and transparency in AI implementation

Get the latest articles in your inbox

Subscribe Now

Interested in Solving your Challenges with XenonStack Team
Get Started

Get Started with your requirements and primary focus, that will help us to make your solution

Please Select your Industry
Banking
Fintech
Payment Providers
Wealth Management
Discrete Manufacturing
Semiconductor
Machinery Manufacturing / Automation
Appliances / Electrical / Electronics
Elevator Manufacturing
Defense & Space Manufacturing
Computers & Electronics / Industrial Machinery
Motor Vehicle Manufacturing
Food and Beverages
Distillery & Wines
Beverages
Shipping
Logistics
Mobility (EV / Public Transport)
Energy & Utilities
Hospitality
Digital Gaming Platforms
SportsTech with AI
Public Safety - Explosives
Public Safety - Firefighting
Public Safety - Surveillance
Public Safety - Others
Media Platforms
City Operations
Airlines & Aviation
Defense Warfare & Drones
Robotics Engineering
Drones Manufacturing
AI Labs for Colleges
AI MSP / Quantum / AGI Institutes
Retail Apparel and Fashion

Proceed Next