Data catalogs
DEA-C01 · Lesson 11 of 23 · 1:26:26
YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗
Learning with these videos? Subscribe for new courses and exam-style questions.
Subscribe on YouTube (opens in a new tab)In this lesson
Prepare for the DEA-C01 exam (AWS Certified Data Engineer – Associate). In this lesson: technical and business catalogs, the AWS Glue Data Catalog shared by Athena, Redshift Spectrum, EMR, and Glue, also as a Hive metastore, crawlers, classifiers, and connections, keeping partitions in sync with MSCK REPAIR TABLE, ADD PARTITION, incremental crawls, and S3 events, partition projection and partition indexes, and Amazon SageMaker Catalog with business metadata, glossaries, publishing, and subscriptions. Includes three original practice questions.
Study notes
The text of this lesson, to read at your own pace. Information as of November 2026.
Nobody agrees
Every analyst at AnyCompany Games keeps a different spreadsheet that describes the tables of the data lake, and none of them is current. New partitions land in S3 every hour, but Athena queries miss them until someone adds them by hand, and nobody agrees on what an active player means. This lesson covers technical data catalogs, crawlers and connections, partitions, and business catalogs with Amazon SageMaker Catalog.
Technical catalogs
A data catalog stores metadata, not data: the databases, the tables, their schemas, their formats, and where the files are. The AWS Glue Data Catalog is the technical catalog of AWS: one central place for the metadata of your data stores. Athena, Redshift Spectrum, EMR, and Glue jobs all use the same table definitions, so you consume the data from its source in S3, without copying it. Amazon EMR can use the Glue Data Catalog as its Apache Hive metastore, so that clusters share the same tables, and keep them when a cluster ends. And you can create tables by hand, with DDL in Athena, or automatically, with crawlers.
Crawlers and connections
An AWS Glue crawler connects to a data store, like an S3 path or a database, and writes tables into the Data Catalog. It runs classifiers to infer the format and the schema: custom classifiers first, in your order, with grok patterns, XML tags, or JSON paths, then built-in ones for formats like CSV, JSON, Avro, Parquet, and ORC. A classifier that is certain of the structure wins, and otherwise the crawler keeps the result with the highest certainty. For a database, the crawler uses an AWS Glue connection, which stores the JDBC address, the credentials, and the VPC settings, and the same connection serves crawlers and jobs. A crawler runs on demand or on a schedule written in cron, and it can change the schema of a table when the data changes, or leave it as it is.
Partitions
In S3, a partitioned table keeps its files in folders, like year equals twenty twenty-six, then month equals eleven, so that queries scan only the folders that they need. When new folders land, the catalog must learn about them: MSCK REPAIR TABLE in Athena scans S3 and adds the Hive-style partitions it finds, while ALTER TABLE ADD PARTITION adds one explicitly, for any folder layout. A crawler can also add them, with incremental crawls that add only new partitions, or with S3 events, so that it does not list the whole bucket again. With partition projection, Athena computes the partitions from rules in the table properties, like a date range, an enum list, or an integer range, so nothing needs to be added, and highly partitioned tables are faster to query. And partition indexes let the Data Catalog return only the matching partitions, instead of loading all of them, for tables with hundreds of thousands of partitions.
Business catalogs
A technical catalog says what a column is, and a business catalog says what it means, who owns it, and whether you may use it. Amazon SageMaker Catalog, in SageMaker Unified Studio, is that business data catalog: data owners bring their tables in as project inventory, and add business names, descriptions, and glossary terms. A business glossary defines shared terms, like active player or net revenue, that you attach to tables and columns, while metadata forms add typed fields, like a retention period, or whether a table holds personal data. Owners then publish the assets to the catalog, where everyone in the domain can search for them. A consumer requests a subscription with a reason, the owner approves or rejects it, and after approval, access is granted to the consumer's project.
Catalogs at AnyCompany Games
Here is the result at AnyCompany Games: a crawler with S3 events keeps the raw tables in the Glue Data Catalog current, and a custom classifier reads the partner logs. The hourly event table uses partition projection, so Athena sees each new hour at once. Athena, Redshift Spectrum, and the EMR clusters all share the same table definitions. And the curated tables are published in SageMaker Catalog, with the glossary term active player, so analysts find them, understand them, and request access.
Recap
Let's recap. A data catalog stores metadata, and the Glue Data Catalog is the technical catalog that Athena, Spectrum, EMR, and Glue share, also as a Hive metastore. Crawlers infer schemas with classifiers, custom ones first, and use connections, with JDBC for databases. MSCK REPAIR TABLE, ADD PARTITION, incremental crawls, and S3 events keep partitions in sync. Partition projection computes partitions, and partition indexes speed up lookups. And SageMaker Catalog adds business metadata, glossaries, publishing, and subscriptions.
Quick checks for this lesson
The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.
Partners send product data in a custom log format that no built-in classifier recognizes, so the crawler creates tables with a single column. What should the data engineer do?
- Add a custom classifier with a grok pattern
- Run MSCK REPAIR TABLE after each crawl
- Schedule the crawler to run once every hour
- Create a JDBC connection for the crawler to use
Show the answer
Add a custom classifier with a grok pattern
A custom classifier with a grok pattern describes the format, and the crawler runs it before the built-in ones. “Run MSCK REPAIR TABLE after each crawl” would only add partitions, with the same wrong schema. “Schedule the crawler to run once every hour” would run the crawler more often, with the same result each time. And “Create a JDBC connection for the crawler to use” is for crawling databases, not files in S3.
A table in Athena receives a new partition, named by date and hour, every hour. Queries miss the newest data until someone runs a command, and the team wants nothing to maintain. What should the data engineer configure?
- MSCK REPAIR TABLE after each new folder
- A crawler that runs once a day on the bucket
- Partition projection with a date range
- A partition index on the hour column
Show the answer
Partition projection with a date range
Partition projection computes each partition from the date range in the table properties, so new hours are found with nothing to run. “MSCK REPAIR TABLE after each new folder” would still need someone, or something, to run the command every hour. “A crawler that runs once a day on the bucket” would leave up to a day of data missing. And “A partition index on the hour column” would speed up partition lookups, but it would not add new partitions.
Analysts cannot find the curated tables, and two teams define an active player differently. The team wants searchable assets with shared business terms and an approval step for access. What should the data engineer use?
- A Glue crawler with a custom classifier
- SageMaker Catalog with a business glossary
- Partition projection on the curated tables
- A shared spreadsheet of table definitions
Show the answer
SageMaker Catalog with a business glossary
SageMaker Catalog publishes assets with business names and glossary terms, and subscriptions add an approval step. “A Glue crawler with a custom classifier” would describe formats and schemas, not business meaning. “Partition projection on the curated tables” would make queries faster, without helping anyone find or understand the tables. And “A shared spreadsheet of table definitions” is how the problem started.