Question 1
A company wants to run Apache Spark code inside Amazon Athena for interactive analytics in notebooks, without managing clusters. Which feature should it use?
- Athena CTAS statements
- Amazon Athena for Apache Spark — Correct
- Athena workgroup query limits
- Athena federated query connectors
Correct answer
Amazon Athena for Apache Spark
Explanation
Athena for Apache Spark provides serverless Spark sessions in notebooks. Federated queries, CTAS, and workgroup limits are SQL features.
Question 2
A data team needs to track which datasets in the lake have passed quality checks so that consumers know which data to trust. Which approach fits BEST?
- Publish quality status as catalog metadata for consumers. — Correct
- Delete datasets that fail checks without notifying anyone.
- Rename failing datasets with a random suffix so that consumers avoid them.
- Keep quality results in a spreadsheet on one engineer's laptop.
Correct answer
Publish quality status as catalog metadata for consumers.
Explanation
Catalog metadata makes quality status visible to consumers. Spreadsheets, silent deletion, and renaming are not reliable governance.
Question 3
A data engineer needs SQL access to data in a DynamoDB table for occasional exploration without affecting production capacity. Which approach fits BEST?
- Export the table to S3 (with PITR enabled) and query the export with Athena — Correct
- Increase the table's read capacity to the maximum during business hours
- Create a global secondary index for every attribute analysts might use
- Run PartiQL SELECT statements without keys against the production table
Correct answer
Export the table to S3 (with PITR enabled) and query the export with Athena
Explanation
Export to S3 does not consume table capacity, and Athena queries the export. Unkeyed PartiQL selects become scans. Extra capacity and many GSIs add cost.
Question 4
A company wants to monitor the freshness of data in its S3 data lake and alert if a daily file has not arrived by 6 AM. Which approach fits BEST?
- Enable S3 Intelligent-Tiering so that missing files are detected automatically.
- A scheduled check that looks for the file and alarms through SNS if it is missing — Correct
- Enable S3 Versioning and wait for users to notice that dashboards are not updated.
- Create a Glue crawler that runs once a week to find missing partitions.
Correct answer
A scheduled check that looks for the file and alarms through SNS if it is missing
Explanation
A scheduled check with alerts detects late data. Versioning, Intelligent-Tiering, and weekly crawlers do not alert on missing files.
Question 5
A data engineer wants to rerun a failed AWS Step Functions pipeline from the failed step instead of from the beginning. Which feature helps?
- Step Functions Express workflow logging
- Step Functions Map state with one item
- Step Functions execution redrive — Correct
- Step Functions activity workers
Correct answer
Step Functions execution redrive
Explanation
Redrive restarts a failed Standard workflow execution from the failed state. Logging, activities, and Map states do not resume failed executions.
Question 6
A data engineer must provide consistent read performance for an Amazon Redshift dashboard workload while ETL jobs load data at the same time. Which feature helps isolate the workloads?
- Disabling result caching for all dashboard queries
- A single WLM queue for all ETL and dashboard queries
- Running VACUUM FULL continuously during business hours
- Separate WLM queues, or data sharing to a separate warehouse — Correct
Correct answer
Separate WLM queues, or data sharing to a separate warehouse
Explanation
Separate queues or warehouses isolate ETL from dashboards. A single queue mixes workloads. Disabling caching and continuous vacuum hurt performance.
Question 7
An AWS Glue Spark job fails with out-of-memory errors on the driver when it processes a large number of small files. Which change is MOST likely to help?
- Switch the job to a Python shell job with 1 DPU of capacity.
- Convert the input files from Parquet to CSV before the job runs.
- Enable file grouping (groupFiles and groupSize) when reading from S3. — Correct
- Reduce the number of workers to 2 so that the driver handles fewer tasks.
Correct answer
Enable file grouping (groupFiles and groupSize) when reading from S3.
Explanation
Grouping small files reduces the number of tasks and the metadata the driver tracks. Fewer workers or a Python shell job reduce capacity. CSV does not help.
Question 8
A data engineer needs to find which transformations in a Glue job take the most time. Which tool should be used?
- Amazon Inspector findings for the job
- The Spark UI and Glue job run insights — Correct
- AWS Cost Explorer filtered by the Glue service
- AWS Trusted Advisor performance checks
Correct answer
The Spark UI and Glue job run insights
Explanation
The Spark UI shows stages and tasks, and job run insights highlight bottlenecks. Cost Explorer, Trusted Advisor, and Inspector do not show transformation timing.
Question 9
A data engineer wants to monitor the end-to-end latency of a streaming pipeline from producer to S3. Which metrics should be watched? (Choose TWO.)
- EC2 CPUCreditBalance for unrelated instances
- Route 53 HealthCheckStatus for the website
- S3 BucketSizeBytes for the destination bucket
- Firehose DeliveryToS3.DataFreshness — Correct
- Kinesis GetRecords.IteratorAgeMilliseconds for consumers — Correct
Correct answer
Firehose DeliveryToS3.DataFreshness; Kinesis GetRecords.IteratorAgeMilliseconds for consumers
Explanation
Iterator age shows consumer lag, and DataFreshness shows how old the oldest record in Firehose is. Bucket size, CPU credits, and health checks do not measure pipeline latency.
Question 10
A company's Athena queries sometimes scan very large amounts of data by mistake, increasing costs. Which control limits the data scanned per query?
- Increase the query timeout in the workgroup settings.
- Enable S3 Object Lock on the data lake bucket.
- A per-query data usage limit in the Athena workgroup — Correct
- Enable S3 Transfer Acceleration on the data lake bucket.
Correct answer
A per-query data usage limit in the Athena workgroup
Explanation
Workgroup data usage controls cancel queries that exceed a scanned data limit. Transfer Acceleration, Object Lock, and timeouts do not limit scanned data.