AWS Certified Advanced Networking – Specialty (ANS-C00) — Question 362

A company is deploying a critical application on two Amazon EC2 instances in a VPC. Failed client connections to the EC2 instances must be logged according to company policy.
What is the MOST cost-effective solution to meet these requirements?

Answer options

Correct answer: A

Explanation

Isolating the instances in a dedicated VPC and enabling VPC Flow Logs filtered specifically for denied traffic ensures that only failed connection attempts are captured, reducing log volume and storage costs. Publishing these filtered logs directly to Amazon CloudWatch Logs is highly cost-effective and avoids the additional infrastructure costs associated with Amazon Kinesis Data Firehose. Other options either target individual interfaces unnecessarily or introduce extra ingestion layers that increase overall expenses.