You have multiple Amazon Elastic Compute Cloud (EC2) instances running a web server in a VPC configured with security groups and NACL. You need to ensure layer 7 protocol level logging of all network traffic (ACCEPT/REJECT) on the instances. What should be enabled to complete this task?
Select an option, then click Submit answer.
Reference / correct answer:
Packet sniffing at the instance level
Most accepted answer: B. Packet sniffing at the instance level
Community votes: B=2
Flow logs are L4 only. The question clearly says L7 logging. The decision is between B&D. There is no way/option to take packet captures at a VPC level, you have to do it at interface level so its B. upvoted 26 times JohnnyBG 4 years, 7 months ago Packet sniffing is not a log, I would go with A. upvoted 1 times JohnnyBG 4 years, 6 months ago From Cloudwatch docs: Monitor logs from Amazon EC2 instances – You can use CloudWatch Logs to monitor applications and systems using log data. For example, CloudWatch Logs can track the number of errors that occur in your application logs and send you a notification whenever the rate of errors exceeds a threshold you specify. CloudWatch Logs uses your log data for monitoring; so, no code changes are required. For example, you can monitor application logs for specific literal terms (such as "NullReferenceException") or count the number of occurrences of a literal term at a particular position in log data (such as "404" status codes in an Apache access log). When the term you are searching for is found, CloudWatch Logs reports the data to a CloudWatch metric that you specify. Log data is encrypted while in transit and while it is at rest. To get started, see Getting started with CloudWatch Logs. upvoted 1 times ... ...
Packet sniffing is not a log, I would go with A. upvoted 1 times JohnnyBG 4 years, 6 months ago From Cloudwatch docs: Monitor logs from Amazon EC2 instances – You can use CloudWatch Logs to monitor applications and systems using log data. For example, CloudWatch Logs can track the number of errors that occur in your application logs and send you a notification whenever the rate of errors exceeds a threshold you specify. CloudWatch Logs uses your log data for monitoring; so, no code changes are required. For example, you can monitor application logs for specific literal terms (such as "NullReferenceException") or count the number of occurrences of a literal term at a particular position in log data (such as "404" status codes in an Apache access log). When the term you are searching for is found, CloudWatch Logs reports the data to a CloudWatch metric that you specify. Log data is encrypted while in transit and while it is at rest. To get started, see Getting started with CloudWatch Logs. upvoted 1 times ...
From Cloudwatch docs: Monitor logs from Amazon EC2 instances – You can use CloudWatch Logs to monitor applications and systems using log data. For example, CloudWatch Logs can track the number of errors that occur in your application logs and send you a notification whenever the rate of errors exceeds a threshold you specify. CloudWatch Logs uses your log data for monitoring; so, no code changes are required. For example, you can monitor application logs for specific literal terms (such as "NullReferenceException") or count the number of occurrences of a literal term at a particular position in log data (such as "404" status codes in an Apache access log). When the term you are searching for is found, CloudWatch Logs reports the data to a CloudWatch metric that you specify. Log data is encrypted while in transit and while it is at rest. To get started, see Getting started with CloudWatch Logs. upvoted 1 times
Out of all the options ACCEPT/REJECT will be shown by VPC logs. Packet Sniffing will not show if a packet was discarded or will be discarded (depending on where you sniff). The Cloudwatch - seems more like a monitoring tool that can collect among other things, also the VPC logs but not enable them. So I would go with C as the closest answer upvoted 10 times
Selected Answer: B Only layer 7 answer. VPC flow logs is layer 4 upvoted 1 times