An enterprise is establishing access policies for a newly deployed reporting service hosted on an Amazon EC2 instance and a database administrator who requires CLI access for database maintenance. Which of the following identity configurations represent AWS-recommended practices? (Select TWO.)
- Create an IAM role with permissions to read the database and attach it to the EC2 instance.Answer
- Create an IAM user for the database administrator, configure API access keys, and assign a policy containing the minimum required permissions.Answer
- CCreate access keys for the AWS account root user to authenticate the EC2 instance's reporting service.
- DGenerate an IAM user account for the reporting service and embed its permanent access keys in the application code.
- ERequest that AWS Support staff perform the database maintenance and configure database user access levels.
Answer
Create an IAM role with permissions to read the database and attach it to the EC2 instance, and create an IAM user for the database administrator, configure API access keys, and assign a policy containing the minimum required permissions.
The correct configurations involve using an IAM role for the EC2 instance and a dedicated IAM user with restricted permissions for the administrator. Attaching an IAM role to the EC2 instance enables the reporting service to securely access the database using automatically rotated temporary credentials. For the database administrator, a dedicated IAM user with CLI access keys and least-privilege policies ensures accountable, secure programmatic access.
Step-by-Step Solution
Key Concept
Identity and Access Management (IAM) Best Practices