A SysOps administrator is configuring a VPC Flow Log to publish traffic metadata from a custom VPC to an Amazon CloudWatch Logs log group. The administrator has already created the target log group and an IAM role named VPCFlowLogRole that trusts the vpc-flow-logs.amazonaws.com service principal. The IAM role has a policy that allows it to create log streams and publish log events. When the administrator attempts to create the flow log, the operation fails with an authorization error. Additionally, company security policy requires that flow log data must not be stored indefinitely. Which combination of actions will resolve the creation error and meet the security requirements? (Select TWO.)
- Add iam:PassRole permissions to the IAM policy of the SysOps administrator, targeting the Amazon Resource Name (ARN) of the VPCFlowLogRole.Cevap
- Configure a retention period on the CloudWatch Logs log group to automatically expire log events after the desired timeframe.Cevap
- CAdd iam:PassRole permissions to the trust policy of the VPCFlowLogRole to trust the administrator's IAM user.
- DAttach an IAM policy to the SysOps administrator allowing the sts:AssumeRole action on the VPCFlowLogRole.
- EConfigure a log retention policy within the VPC Flow Log configuration settings to delete logs after the specified period.
Cevap
To resolve the authorization issue and comply with the log retention policy, the SysOps administrator must have the iam:PassRole permission for the VPCFlowLogRole in their IAM policy, and a log retention period must be configured on the CloudWatch Logs log group destination.
The correct combination requires granting the SysOps administrator the iam:PassRole permission to pass the VPCFlowLogRole to the VPC Flow Logs service, which resolves the creation-time authorization error. Additionally, configuring the log retention period on the CloudWatch Logs log group ensures that log events are automatically deleted after the specified time and not stored indefinitely.
Adım Adım Çözüm
Anahtar Kavram
VPC Flow Logs Permission Delegation and Destination Log Management