A SysOps Administrator is designing a security and monitoring architecture for a database tier containing private Amazon RDS DB instances. The database instances must only accept MySQL traffic on port 3306 from the application tier subnets, and all network traffic to and from the database subnet must be monitored using VPC Flow Logs sent to Amazon CloudWatch Logs. The administrator must ensure that the IAM role used by the flow logs can publish to CloudWatch Logs and that log storage costs are managed efficiently. Which of the following actions should the administrator perform to meet these requirements? (Select TWO.)
- Configure the destination Amazon CloudWatch Logs group with a specific retention period, such as 90 days, instead of the default setting of Never Expire.Cevap
- BConfigure the CloudWatch Logs group to keep logs indefinitely and set up a daily scheduled Amazon EventBridge rule to export the logs to Amazon S3.
- Create the VPC Flow Log using an IAM role that has a trust relationship with the VPC Flow Logs service principal and contains the necessary logs write permissions, ensuring the administrator has the permission to pass this role.Cevap
- DCreate the VPC Flow Log using an IAM role that has an AWS-managed policy for EC2 access, without configuring a trust relationship for the VPC Flow Logs service principal or granting the administrator permission to pass the role.
- EModify the database subnet's Network ACL to allow inbound TCP traffic on port 3306 from the application subnet, and allow outbound TCP traffic on port 3306 to the application subnet, without allowing outbound ephemeral ports.
Cevap
To secure and monitor the database subnets while keeping costs low, the CloudWatch Logs group must be configured with a specific retention period to prevent infinite storage fees, and the VPC Flow Log must be created using an IAM role that trusts the flow logs service principal, has write permissions to CloudWatch, and is passed by an administrator who possesses the iam:PassRole permission.
Configuring a specific retention period on the CloudWatch Logs group ensures that log data does not accumulate indefinitely, minimizing storage costs. Furthermore, creating the VPC Flow Log requires an IAM role with a trust relationship that allows the VPC Flow Logs service principal to assume it, and the administrator must have the iam:PassRole permission to attach this role to the flow log.
Adım Adım Çözüm
Anahtar Kavram
VPC Flow Logs IAM roles and CloudWatch retention policies are critical components for secure traffic auditing and cost optimization in AWS networking.