A SysOps administrator is configuring AWS Config in a new AWS account. The administrator wants to use the AWS CLI to create a configuration recorder that uses a custom, pre-created IAM role named `ConfigRecorderRole`. However, when attempting to run the CLI command, the administrator receives an Access Denied error.
Which of the following actions are required to resolve this issue and successfully create the configuration recorder? (Select TWO.)
- Configure the trust policy of `ConfigRecorderRole` to allow the `config.amazonaws.com` service principal to perform the `sts:AssumeRole` action.Cevap
- Attach an IAM policy to the SysOps administrator's IAM identity that grants the `iam:PassRole` permission for the Amazon Resource Name (ARN) of `ConfigRecorderRole`.Cevap
- CAttach an IAM policy to the SysOps administrator's IAM identity that grants the `sts:AssumeRole` permission for the Amazon Resource Name (ARN) of `ConfigRecorderRole`.
- DAdd a service control policy (SCP) to the organization's root that explicitly allows the `config.amazonaws.com` service principal to assume the `ConfigRecorderRole`.
- EConfigure the Key Management Service (KMS) key policy associated with the AWS Config S3 bucket to grant the `iam:PassRole` permission to the configuration recorder.
Cevap
To successfully configure the AWS Config recorder, the administrator must configure the trust policy of the IAM role to allow the AWS Config service principal to perform the assume-role action, and attach an IAM policy to their own IAM identity that grants the permission to pass the IAM role.
The correct options are the action to configure the trust policy of the IAM role to trust the AWS Config service principal and the action to attach an IAM policy to the administrator's identity granting the pass-role permission. These actions address the two independent permission boundaries required for service role assignment: trusting the service to assume the role, and authorizing the user to delegate the role.
Adım Adım Çözüm
Anahtar Kavram
Configuring service trust relationships and role delegation permissions for AWS services.
Tahmini Süre:1m 30s