A data analyst wants to check for duplicate rows in a dataset stored in S3. Which AWS service can be used to run a SQL query to count duplicates without moving the data?
Athena can run SQL queries on S3 data to count duplicates.
Why this answer
Amazon Athena is a serverless interactive query service that allows running standard SQL queries directly on data stored in Amazon S3, without needing to move the data. It can easily count duplicate rows using SQL GROUP BY and HAVING clauses. Option B (Amazon Redshift Spectrum) is wrong because although it can query data in S3, it requires an active Redshift cluster, which is unnecessary for this simple ad-hoc query.
Option C (AWS Glue) is wrong because Glue is an ETL service for data preparation and cataloging, not a query engine. Option D (Amazon SageMaker Studio) is wrong because it is an integrated development environment for machine learning, not a SQL query service.