How to Separate Athena Query Access and Query History?
A company uses Amazon Athena for one-time queries against data that is in Amazon S3. The company has several use cases. The company must implement permission controls to separate query processes and access to query history among users, teams, and applications that are in the same AWS account. Which solution will meet these requirements?
Community Votes
100% of anonymous learners picked answer B. Votes are pick records left by other test-takers — they are not the verified answer.
Community Insight
This question tests that Athena workgroups—not IAM roles, S3 bucket policies, or Glue Data Catalog resource policies—are the isolation boundary for query processes and query history; the trap is assuming a per-use-case IAM role is enough.
Athena workgroups isolate query execution and query history across users, teams, and applications in a single AWS account. The correct solution (B) creates one workgroup per use case and uses tag-based IAM policies to grant access to the right workgroup.
A common wrong answer is C: creating an IAM role per use case feels like least privilege, but an IAM role does not create an Athena workgroup boundary or separate query history.
Community Discussion (6 comments)
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.
Expert Analysis
Why the Answer Is Correct
Athena workgroups are the native AWS mechanism for isolating query execution, query history, and per-workgroup settings such as data-usage controls and query result locations. Creating a workgroup per use case gives each team or application its own query history boundary inside the same AWS account. Tags on the workgroup then let a single IAM policy grant Allow or Deny permissions scoped to the matching workgroup, which directly satisfies the requirement to separate query processes and query-history access. Option B is therefore the only choice that uses the Athena-level isolation boundary the question is asking for. This matches the AWS guidance for user-created workgroups.Why the Other Options Are Wrong
Option A applies an S3 bucket policy to grant individual IAM users access to data, but S3 policies control object access, not Athena query processes or query history, and per-user bucket policies are brittle at team scale. Option C creates an IAM role per use case and associates it with Athena, which controls which AWS API actions a principal can call but does not create a workgroup boundary, so users still share query history and workgroup settings. Option D applies an AWS Glue Data Catalog resource policy to tables, which governs metadata and table access rather than the Athena query history that must be separated among users, teams, and applications in one account. None of these alternatives provides the workgroup-level isolation that the scenario requires.Community Comment Notes
Multiple learners converge on B: milofficial notes the item was reused from the old Data Analytics Specialty and points to the AWS user-created-workgroups documentation. TonyStark0122 explains that "Athena workgroups allow you to isolate and manage different workloads" and lists permissions and query-history control as the key benefits. k350Secops calls out C as the confusing distractor, saying it "would not provide the necessary isolation and access control" for query processes and history. dev_vicente adds simply that B is more granular, and every recorded vote in the thread selects B.Official Reference
Exam Strategy
When a DEA-C01 question mentions separating Athena query history or per-team query controls in one account, look for workgroups plus tag-based IAM policies. Eliminate options that only control S3 objects, Glue table metadata, or IAM roles, because they never partition the query history that Athena keeps at the workgroup level.
Frequently Asked Questions
Why can't separate IAM roles per use case isolate Athena query history?
IAM roles control which AWS API actions a principal can call, but they do not partition Athena's workgroup-level query history or enforce per-workgroup query limits.
What do tags on an Athena workgroup enable in IAM policies?
Tags let an IAM policy scope Allow or Deny statements to specific workgroups, so users in one account can only run queries and view history for their own use case.
Related Analysis
Practice All DEA-C01 Questions
Access 100 questions with complete answers and detailed explanations.
View Full DEA-C01 Practice Test →