Question

Difficulty: EasyIdentity and Access Management (IAM)

A company is configuring access for two new entities: a monitoring application running on an on-premises server that requires read-only access to Amazon CloudWatch, and a new human administrator who needs full access to manage Amazon EC2 resources. Which IAM identities should the company create to provide secure access for these entities? (Select TWO)

  1. An IAM role to provide temporary credentials for the monitoring applicationAnswer
  2. An IAM user to provide access credentials for the human administratorAnswer
  3. C
    The AWS account root user to allow the human administrator to perform daily tasks
  4. D
    An IAM role to serve as the permanent console username and password for the human administrator
  5. E
    An AWS Support ticket requesting AWS to configure and manage the credentials for the monitoring application

Answer

The correct answers are the option to use an IAM role to provide temporary credentials for the monitoring application, and the option to use an IAM user to provide credentials for the human administrator.
The correct options are using an IAM role for the monitoring application and an IAM user for the human administrator. For applications, especially those on-premises, using IAM roles (via AWS IAM Roles Anywhere or federation) allows them to assume temporary credentials, which is a security best practice over using permanent credentials. For human administrators performing daily console tasks, creating dedicated IAM users provides isolated, long-term login credentials with specific policies, adhering to the principle of least privilege.

Step-by-Step Solution

1
Analyze the requirement for the monitoring application.
The application requires read-only access to Amazon CloudWatch. AWS recommends using IAM roles to provide temporary credentials for applications.
Temporary credentials minimize the security risk of credential leakage compared to long-term access keys.
2
Analyze the requirement for the human administrator.
The human administrator needs full access to Amazon EC2 for daily tasks. AWS recommends creating an IAM user with appropriate permissions for daily activities.
Using the root user for daily tasks violates the principle of least privilege and administrative security best practices.
3
Confirm the selected options.
The correct identities are an IAM role for the application and an IAM user for the human administrator.
These choices align with the AWS recommended practices for managing credentials and user access.

Key Concept

AWS Identity and Access Management (IAM) entities (Users and Roles) and security best practices.
Rate this question