A SysOps Administrator is troubleshooting a network connectivity issue where external clients cannot connect to a web server running on an Amazon EC2 instance. The web server's Security Group allows inbound TCP port 80 from all sources and allows all outbound traffic. The subnet's Network ACL (NACL) allows inbound TCP port 80 from all sources, but the outbound NACL rules have been modified to deny all traffic. To analyze this, the administrator enables VPC Flow Logs. Additionally, the administrator wants to configure the destination CloudWatch Logs group to minimize costs and automatically alert the operations team if the number of rejected packets exceeds a threshold. Which two of the following statements correctly describe the behavior of the flow logs or the configuration required to meet these monitoring and cost requirements? (Select TWO.)
- The flow logs will record an ACCEPT status for the inbound traffic on port 80, and a REJECT status for the outbound response traffic.Answer
- The CloudWatch Log Group must be configured with a retention policy to automatically expire older events, and a metric filter must be created to track REJECT records.Answer
- CThe flow logs will record a REJECT status for the inbound traffic on port 80 because security groups are stateless and evaluate return paths before accepting a connection.
- DThe alerts must be configured by creating an Amazon EventBridge rule that directly monitors the VPC Flow Logs API and routes matching events to an Amazon SNS topic.
- EThe log retention must be configured directly within the VPC Flow Log definition settings because CloudWatch Log Groups do not support individual retention configurations.