QuestionQ64

Data Security and Governance

A company uses Amazon Athena to run one-time queries on data stored in Amazon S3. The company has several use cases and must implement permission controls that separate query processes and access to query history for users, teams, and applications in the same AWS account.

Which solution meets these requirements?

  • A Create an S3 bucket for each use case. Create an S3 bucket policy that grants permissions to appropriate individual IAM users. Apply the S3 bucket policy to the S3 bucket.
  • B Create an Athena workgroup for each use case. Apply tags to the workgroup. Create an IAM policy that uses the tags to apply appropriate permissions to the workgroup.
  • C Create an IAM role for each use case. Assign appropriate permissions to the role for each use case. Associate the role with Athena.
  • D Create an AWS Glue Data Catalog resource policy that grants permissions to appropriate individual IAM users for each use case. Apply the resource policy to the specific tables that Athena uses.
Explanation

Amazon Athena workgroups isolate query workloads within the same AWS account. Each workgroup has its own query history and saved queries, and Athena supports resource-level IAM policies to control access to workgroups. Tags on workgroups can be used in IAM policy conditions to grant the appropriate users, teams, and applications access to only their designated workgroups.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!