AWS Glue Crawlers and DataBrew for CSV Schema Inference
Short answer
Order: 1. Use AWS Glue crawlers to infer the schemas and available columns. 2. Use AWS Glue DataBrew for data cleaning and feature engineering. 3. Store the resulting data back in Amazon S3.
Question
A company stores historical data in .csv files in Amazon S3. Only some of the rows and columns in the .csv files are populated. The columns are not labeled. An ML
engineer needs to prepare and store the data so that the company can use the data to train ML models.
Select and order the correct steps from the following list to perform this task. Each step should be selected one time or not at all. (Select and order three.)
• Create an Amazon SageMaker batch transform job for data cleaning and feature engineering.
• Store the resulting data back in Amazon S3.
• Use Amazon Athena to infer the schemas and available columns.
• Use AWS Glue crawlers to infer the schemas and available columns.
• Use AWS Glue DataBrew for data cleaning and feature engineering.

Key Takeaways
The key trap is confusing Athena with Glue for schema inference; Glue Crawlers are required to build the Data Catalog first, enabling DataBrew to clean and engineer features effectively.
This scenario tests the correct AWS service workflow for inferring schemas from unlabeled CSVs and performing feature engineering using AWS Glue and DataBrew.
Common mistake: Learners often select Athena or attempt to use SageMaker Batch Transform prematurely. Athena requires a pre-existing table definition (schema) which does not exist yet, making it unable to infer schemas from raw unlabeled files without prior cataloging by Glue Crawlers.
Expert Analysis
Why the Answer Is Correct
The logical sequence begins with Use AWS Glue crawlers to infer the schemas and available columns. Since the.csv files are unlabeled and only partially populated, the Data Catalog must be built first so that downstream tools can understand the data structure. Once the schema is inferred and stored in the Glue Data Catalog, the next step is Use AWS Glue DataBrew for data cleaning and feature engineering. DataBrew integrates directly with the Glue Data Catalog, allowing analysts to visually clean, transform, and prepare data without writing code. Finally, the processed data must be persisted, so the last step is Store the resulting data back in Amazon S3. This leverages the native integration between Glue services and S3 storage.
Why Other Candidate Answers Are Wrong
Create an Amazon SageMaker batch transform job is incorrect because Batch Transform is typically used for model inference on already prepared datasets, not for initial ETL/schema inference of raw source files. Use Amazon Athena to infer the schemas is incorrect because Athena queries existing tables in the Glue Data Catalog; it cannot independently scan raw, unlabeled CSVs to generate a schema and catalog entry automatically like a Glue Crawler can. The alternative order suggested by some users (DataBrew -> S3 -> Glue Crawler) is flawed because DataBrew benefits significantly from having the schema defined by the crawler beforehand to correctly map columns and types during the visual editing process.
Community Comment Notes
Community consensus strongly favors the Glue Crawler -> DataBrew -> S3 sequence. User AzureDP900 highlighted the exact order: "Use AWS Glue crawlers... Use AWS Glue DataBrew... Store the resulting data back in Amazon S3." User Naril reinforced this by noting you must "Infer the current schema and create data catalog using Glue crawlers" before processing. While user drowett suggested DataBrew precedes Glue Crawlers, this ignores the standard architectural pattern where the Data Catalog serves as the metadata foundation for DataBrew jobs.
Exam Strategy
When dealing with raw, unstructured data in S3, always look for AWS Glue Crawlers as the first step to build the Data Catalog. If data preparation/cleaning is required after cataloging, AWS Glue DataBrew is the primary managed service for visual ETL tasks.
Frequently Asked Questions
Why can't I use Amazon Athena to infer the schema?
Is SageMaker Batch Transform used for data cleaning?
Discussion 4 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 4
-
AzureDP900 👍 11Order of steps: Use AWS Glue crawlers to infer schemas and available columns. Use AWS Glue DataBrew for data cleaning and feature engineering. Store the resulting data back in Amazon S3.
-
Naril 👍 4Infer the current schema and create data catalog using Glue crawlers, than process the data using DataBrew and finally save the results in s3
-
Ranneh 👍 1Firstly, Use AWS Glue to define data schemas/tables Use Glue Data brew to perform cleaning and feature engineering Upload the transformed data back into s3
-
drowett 👍 1Data brew typically precedes the use of glue crawlers to populate schemas / data catalogs... Order of steps: DataBrew -> store s3 -> Glue Crawler
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.
Related Analysis
Practice All MLA-C01 Questions
Access 115 questions with complete answers and detailed explanations.
View Full MLA-C01 Practice Test →