A startup is reviewing its AWS security configuration. Currently, all developers share a single IAM user with administrator privileges to manage resources, and an application running on Amazon EC2 instances uses hardcoded access keys to write data to an Amazon S3 bucket. Which of the following actions should the security team take to align with AWS security best practices? (Select TWO).
- Create individual IAM users for each developer and place them in an IAM group with the necessary administrative policies attached.Cevap
- Attach an IAM role to the EC2 instances to grant the application temporary access to the S3 bucket instead of using hardcoded credentials.Cevap
- CConfigure the developers to use the AWS account root user for daily administrative tasks to avoid permission conflicts.
- DCreate a single shared IAM role for all developers to log in to the AWS Management Console directly.
- ESubmit a request to AWS Support to monitor and automatically rotate the hardcoded access keys within the application code.
Cevap
Create individual IAM users for each developer and place them in an IAM group with the necessary administrative policies attached, and attach an IAM role to the EC2 instances to grant the application temporary access to the S3 bucket instead of using hardcoded credentials.
Creating individual IAM users and placing them in groups ensures that each developer has unique credentials and accountability for their actions. Attaching an IAM role to the EC2 instances allows the application to assume temporary credentials, which eliminates the security risk of storing long-term access keys inside the application code.
Adım Adım Çözüm
Anahtar Kavram
AWS IAM Best Practices including individual users, groups, and temporary credentials via IAM roles.