Enabling Apache Spark in Amazon Athena
Short answer
B Create an Amazon Athena workgroup that uses the Spark engine.
Question
Key Takeaways
The question tests the specific architectural component required to switch Athena's execution engine from SQL to Spark; the trap is confusing the data source connector with the execution environment (workgroup).
To use Apache Spark instead of SQL for ETL tasks in Amazon Athena, you must create an Athena workgroup configured with the Spark engine. This configuration enables notebook-based analytics within the Athena environment.
Common mistake: Candidates often select 'Athena data source' because it conceptually bridges data access, but this is incorrect for enabling the Spark engine itself within Athena's managed service.
Expert Analysis
Why the Answer Is Correct
Amazon Athena allows users to run queries using either Presto SQL or Apache Spark. To utilize Apache Spark, you must explicitly configure an Athena workgroup to use the Spark engine. According to AWS documentation, "To use Apache Spark in Amazon Athena, you create an Amazon Athena workgroup that uses a Spark engine." Once created, this workgroup provides the necessary context and resources to open notebooks and execute Spark code.
Why the Other Options Are Wrong
Athena query settings (A) manage individual query parameters like output location but do not change the underlying engine. An Athena data source (C) typically refers to connectors or metadata catalogs that allow external tools (like Spark running on EMR) to read Athena tables, but it does not enable Spark inside Athena. The Athena query editor (D) is an interface for writing SQL queries, not a configuration for changing the processing engine.
Community Comment Notes
The community consensus strongly favors option B, supported by direct references to the official AWS Getting Started guide. Several commenters noted that while data sources facilitate interaction between Spark and Athena data, the prerequisite step to actually use Spark within Athena is creating a Spark-enabled workgroup. As one commenter stated, "You need an Athena workgroup as a prerequisite to use Apache Spark."
Official Reference
https://docs.aws.amazon.com/athena/latest/ug/notebooks-spark-getting-started.html
This link opens the official vendor documentation in a new tab.
Exam Strategy
When a question asks how to 'use' a specific engine or feature within a managed AWS service, look for the configuration object (like a Workgroup, Cluster, or Instance Group) that activates that feature. Do not confuse data connectivity options with execution environment configurations.
Frequently Asked Questions
Why isn't 'Athena data source' the correct answer?
Can I use Spark without a workgroup?
Community Votes
72% of anonymous learners picked answer B. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 10 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 10
-
GiorgioGss 👍 9 Answered Bhttps://docs.aws.amazon.com/athena/latest/ug/notebooks-spark-getting-started.html "To use Apache Spark in Amazon Athena, you create an Amazon Athena workgroup that uses a Spark engine."
-
pypelyncar 👍 5 Answered CThe Athena data source acts as a bridge between Athena and other analytics engines, such as Apache Spark. By using the Athena data source connector, you can access data stored in various formats (e.g., CSV, JSON, Parquet) and locations (e.g., Amazon S3, Apache Hive Metastore) through Spark applications
-
lalitjhawar 👍 4C. Athena data source The Athena data source is a specific connector or library that allows Apache Spark to interact with data stored in Amazon Athena. This connector enables Spark to read data from Athena tables directly into Spark DataFrames or RDDs (Resilient Distributed Datasets), allowing you to perform analytics and transformations using Spark's capabilities.
-
damaldon 👍 3B. is the correct answer. To use Apache Spark in Amazon Athena, you create an Amazon Athena workgroup that uses a Spark engine. https://docs.aws.amazon.com/athena/latest/ug/notebooks-spark-getting-started.html
-
blackgamer 👍 3 Answered Bhttps://docs.aws.amazon.com/athena/latest/ug/notebooks-spark-getting-started.html
Show 5 more comments
-
andrologin 👍 2 Answered Bhttps://docs.aws.amazon.com/athena/latest/ug/notebooks-spark-getting-started.html To get started with Apache Spark on Amazon Athena, you must first create a Spark enabled workgroup. After you switch to the workgroup, you can create a notebook or open an existing notebook. When you open a notebook in Athena, a new session is started for it automatically and you can work with it directly in the Athena notebook editor.
-
lsj900605 👍 2 Answered BIt is B, not C. The workgroup is for organizing, controlling, and monitoring queries. The Data source is the mechanism that enables Spark to query data via Athena. It allows Spark to interact with Athena. The question focuses on enabling Apache Spark within Athena to generate analytics instead of using SQL. Thus, you must create a Spark-enabled workgroup
-
rralucard_ 👍 2 Answered Chttps://docs.aws.amazon.com/athena/latest/ug/notebooks-spark.html
-
theloseralreadytaken 👍 2 Answered BAthena datasource doesn't specifially enable Spark access
-
kj07 👍 1B is the correct answer. https://aws.amazon.com/blogs/big-data/explore-your-data-lake-using-amazon-athena-for-apache-spark/ You need an Athena workgroup as a prerequisite to use Apache Spark.
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.
Related Analysis
Practice All DEA-C01 Questions
Access 100 questions with complete answers and detailed explanations.
View Full DEA-C01 Practice Test →