A company needs to grant an external auditing firm temporary, read-only access to the AWS CloudTrail logs stored in their AWS account. The access must expire automatically after a set period. Which configuration should the company use to grant this access according to AWS security best practices?
- ACreate a permanent IAM user with access keys for the auditing firm and delete the user when the audit is complete.
- BSubmit a request to AWS Support to grant the external firm access to the logs on the company's behalf.
- Create an IAM role with a read-only policy that the auditing firm can assume.Cevap
- DShare the AWS account root user login credentials and change the password after the audit ends.
Cevap
Create an IAM role with a read-only policy that the auditing firm can assume.
Creating an IAM role with a read-only policy is the correct approach. IAM roles do not have permanent credentials; instead, they provide temporary security credentials that expire automatically, which satisfies the requirement for temporary, time-limited access without the risk of long-term credentials.
Adım Adım Çözüm
Anahtar Kavram
AWS IAM Roles for Temporary Access