A government transit agency runs a fleet of on-premises database servers and also hosts application servers on Amazon EC2. The agency needs to configure a nightly backup process that uploads database logs to a secured Amazon S3 bucket, while strictly adhering to the principle of least privilege and avoiding the use of long-term credentials on any server. Which TWO of the following configurations represent AWS-recommended security practices for this architecture?
- Attach an IAM role to the Amazon EC2 instances hosting the application servers to grant temporary security credentials for Amazon S3 bucket access.Cevap
- Use AWS IAM Roles Anywhere to allow the on-premises database servers to assume an IAM role and obtain temporary security credentials using X.509 digital certificates.Cevap
- CGenerate an access key and secret access key for the AWS account root user and configure them on the application servers.
- DCreate a single IAM user, share its access keys across all database servers, and disable multi-factor authentication (MFA) to prevent automated script interruption.
- EConfigure a public Amazon S3 bucket policy and rely on the shared responsibility model to ensure that AWS automatically blocks unauthorized uploads from external networks.
Cevap
The correct configurations are attaching an IAM role to the EC2 instances for application server access, and using AWS IAM Roles Anywhere to allow the on-premises database servers to obtain temporary credentials using X.509 digital certificates.
AWS-recommended security practices mandate the use of temporary credentials instead of long-term access keys whenever possible. Attaching an IAM role to EC2 instances allows applications running on them to access AWS resources using temporary, rotated credentials without storing secrets. For resources outside of AWS, such as the on-premises database servers, AWS IAM Roles Anywhere provides a secure way to exchange X.509 digital certificates for temporary AWS credentials, eliminating the need for long-term IAM user access keys on physical hardware.
Adım Adım Çözüm
Anahtar Kavram
Identity and Access Management (IAM)