Data engineering roles on AWS test your ability to build scalable data lakes, streaming pipelines, and cloud data warehouses. Review these core AWS Data Engineering interview questions and answers.
1. What is the difference between Amazon Redshift and Amazon Athena?
Answer: Amazon Redshift is a petabyte-scale, MPP (massively parallel processing) cloud data warehouse optimized for complex BI queries and high concurrency. Amazon Athena is a serverless interactive query service that uses SQL directly on data stored in Amazon S3 without provisioning clusters.
2. How does AWS Glue work in an ETL pipeline?
Answer: AWS Glue uses Crawlers to infer schemas and populate the Glue Data Catalog, then runs serverless Apache Spark or Python Shell jobs to clean, transform, and partition data into formats like Apache Parquet or Iceberg in Amazon S3.
3. When should you use Amazon Kinesis Data Streams vs. Amazon MSK?
Answer: Use Kinesis Data Streams for a fully managed, serverless AWS-native streaming service with minimal operational overhead. Use Amazon MSK (Managed Streaming for Apache Kafka) when migrating existing Kafka workloads, needing Kafka Connect/Streams compatibility, or requiring fine-grained broker configuration.
4. How do you optimize query performance and cost in Amazon S3 and Athena?
Answer: Convert raw JSON/CSV data into columnar formats like Apache Parquet or ORC, compress files with Snappy or Zstd, partition data by frequently filtered columns (such as year/month/day), and avoid tiny files by compacting them to 128 MB–1 GB.
5. What problem does AWS Lake Formation solve?
Answer: AWS Lake Formation centralizes data lake governance, providing fine-grained table, column, and row-level access controls across services like Athena, Redshift Spectrum, and EMR without duplicating IAM policies.

