A SysOps administrator is configuring a scheduled backup plan using AWS Backup. The backup plan must run under a custom IAM service role. The administrator creates the service role with the necessary permissions policy but receives an 'Access Denied' error when attempting to assign the role to the backup selection in the console. Which actions must the administrator perform to successfully assign the role and ensure the backup plan executes? (Select TWO.)
- Attach an IAM policy to the administrator's IAM identity that grants the iam:PassRole permission for the custom service role.Answer
- Update the trust policy of the custom service role to allow backup.amazonaws.com to perform the sts:AssumeRole action.Answer
- CAttach an IAM policy to the administrator's IAM identity that grants the sts:AssumeRole permission for the custom service role.
- DUpdate the trust policy of the custom service role to allow backup.amazonaws.com to perform the iam:PassRole action.
Answer
Attach an IAM policy to the administrator's IAM identity that grants the iam:PassRole permission for the custom service role, and update the trust policy of the custom service role to allow backup.amazonaws.com to perform the sts:AssumeRole action.
To successfully configure and run the backup plan under a custom service role, two conditions must be met: First, the administrator must have permission to pass the role to AWS Backup, which is configured via the iam:PassRole action. Second, the service role must trust the AWS Backup service to assume it, which is configured by granting the sts:AssumeRole action to backup.amazonaws.com in the role's trust policy.
Step-by-Step Solution
Key Concept
Delegating permissions to AWS services using iam:PassRole and configuring role trust policies with sts:AssumeRole.