AWS Certified Data Engineer - Associate (DEA-C01) free question 8 / 10 · Domain 3: Data Operations and Support
A company has a scheduled report-generation job and a team of analysts that run ad-hoc queries in the same Athena setup. The company wants each group to see only its own query history, with query results always written to the group's own encrypted S3 location. Which approach meets this?
- Use the primary workgroup for the two groups, and tell the users which S3 location and encryption to choose
- Create separate workgroups, restrict access with IAM policies, and enforce the results location and encryption
- Create a workgroup for the two groups and leave client-side settings to the users, with a note on the S3 location
- Use one workgroup with separate IAM users, as a workgroup keeps a separate query history per user
Show the answer and explanation
Answer: B
Why this is correct
Workgroups separate workloads, such as scheduled applications and ad-hoc analysis, and they act as IAM resources, so resource-level identity-based policies control who can run queries in each one. Each workgroup has its own query history and list of saved queries. You can also enforce workgroup-wide settings, including the query results location, expected bucket owner and encryption, for all queries that run in the workgroup.
Why the other options are wrong
"Use one workgroup with separate IAM users, as a workgroup keeps a separate query history per user" … Each workgroup has its own query history and saved queries for the queries in that workgroup, not for each user. Separate histories need separate workgroups.
"Use the primary workgroup for the two groups, and tell the users which S3 location and encryption to choose" … Settings that users choose themselves are not enforced. A workgroup can enforce the query results location and encryption for all queries that run in it.
"Create a workgroup for the two groups and leave client-side settings to the users, with a note on the S3 location" … Without enforcement, a user's client-side settings decide where the results go. The workgroup can override the client-side settings with its own configuration.
Key points
Workgroups can also publish query metrics to CloudWatch, send query state changes to EventBridge, and carry cost allocation tags so that query costs show in the Cost and Usage Reports.