Question

Difficulty: EasyIAM Policies, Roles, and Service Control Policies (SCPs)

A SysOps administrator is configuring an AWS Systems Manager Automation workflow. The workflow requires a custom IAM role to perform actions on AWS resources. The administrator has already created the IAM role with the necessary permissions policies.

Which combination of actions is required to allow the Systems Manager Automation workflow to run successfully using this role? (Select TWO.)

  1. Configure the trust policy of the custom IAM role to allow the ssm.amazonaws.com service principal to perform the sts:AssumeRole actionAnswer
  2. Attach an IAM permissions policy to the administrator's IAM identity that grants the iam:PassRole permission for the custom IAM roleAnswer
  3. C
    Configure the trust policy of the custom IAM role to allow the administrator's IAM identity to perform the iam:PassRole action
  4. D
    Attach an IAM permissions policy to the custom IAM role that grants the sts:AssumeRole permission to the ssm.amazonaws.com service principal

Answer

The correct actions are to configure the trust policy of the custom IAM role to allow the Systems Manager service principal to assume the role, and to attach an IAM permissions policy to the administrator's IAM identity that grants the iam:PassRole permission.
To delegate permissions to an AWS service like Systems Manager Automation, the service must be allowed to assume the custom role, which is configured in the role's trust policy. Additionally, the administrator who passes the role to the service must have the iam:PassRole permission granted in their identity-based policy.

Step-by-Step Solution

1
Review the requirement for the AWS service to assume the custom IAM role.
Identify that the trust policy (trust relationship) of the custom IAM role must grant sts:AssumeRole to the ssm.amazonaws.com service principal.
AWS services need explicit permission via a trust policy to assume execution roles in your account.
2
Review the requirement for the administrator executing the Systems Manager Automation.
Identify that the administrator's IAM user or group policy must contain the iam:PassRole action targeting the custom IAM role's ARN.
Users require iam:PassRole permissions to associate an IAM role with an AWS service.

Key Concept

Configuring trust policies and passing roles to AWS services
Rate this question