A company needs to grant a third-party audit team temporary access to run query analysis on Amazon Athena using data stored in an Amazon S3 bucket. The audit team manages their users through their own external identity provider (IdP). Which of the following is the most secure method to grant the audit team access according to AWS security best practices?
- Configure identity federation using the audit team's external identity provider to allow their users to assume an IAM role that grants least-privilege permissions to Amazon Athena and the S3 bucket.Cevap
- BCreate individual IAM users for each member of the audit team in the company's AWS account, attach the required Athena and S3 access policies, and generate long-term access keys.
- CProvide the lead auditor with the AWS account root user credentials and set up a reminder to change the root password and rotate access keys once the audit is finished.
- DCreate a shared IAM user, generate the access key and secret key, and store them as a plaintext String parameter in AWS Systems Manager Parameter Store for the auditors to retrieve.
Cevap
Configure identity federation using the audit team's external identity provider to allow their users to assume an IAM role that grants least-privilege permissions to Amazon Athena and the S3 bucket.
The correct answer is to configure identity federation using the external identity provider (IdP) to allow the audit team to assume an IAM role. This solution avoids creating local IAM users with long-term credentials and aligns with the AWS well-architected framework security pillar, providing short-lived, least-privilege credentials.
Adım Adım Çözüm
Anahtar Kavram
AWS Identity Federation and IAM Roles