Detecting DDoS Attacks with Network Flow Logs

CV0-004 By islever Editorial Last updated

Given a scenario, monitor suspicious activities to identify common attacks. Given a scenario, configure appropriate resources to achieve observability.

Short answer

A Monitoring network flow logs reveals the inbound traffic surges and many-source connection spikes that reveal a DDoS against the CMS cluster.

Question

A company's content management system (CMS) service runs on an IaaS cluster on a public cloud. The CMS service is frequently targeted by a malicious threat actor using DDoS. Which of the following should a cloud engineer monitor to identify attacks?
  1. Network flow logs Correct Answer
  2. Endpoint detection and response logs
  3. Cloud provider event logs
  4. Instance syslog

Key Takeaways

Detecting a DDoS against an IaaS-hosted CMS depends on telemetry that measures network traffic volume and source diversity. Network flow logs are the correct choice because they record per-interface IP traffic going to and from cloud network interfaces, exposing the traffic surges characteristic of a DDoS. EDR, cloud provider event logs and instance syslog fail because they cover endpoint activity, management-plane actions and OS-level events rather than network-layer attack patterns.

Expert Analysis

To identify DDoS attacks targeting the CMS service, a cloud engineer should monitor network flow logs. These logs provide data about IP traffic going to and from network interfaces in the public cloud, which is critical for detecting the traffic surges typically associated with DDoS attacks. EDR logs focus on endpoint-level threats. Cloud provider event logs track management plane actions. Instance syslog captures OS-level events that may not reveal network-layer attack patterns.

The deciding constraint is that a DDoS is a network-layer volumetric event, so the telemetry must measure traffic itself rather than host or management-plane activity. Network flow logs record per-interface connection records — source and destination IP, ports, protocol, packet and byte counts, and traffic direction — sampled or captured at the cloud networking layer. For the IaaS cluster hosting the CMS, a DDoS shows up as a sharp spike in inbound flows from many source addresses, or a burst of small packets hitting the service endpoint; that is exactly the signal flow logs are built to expose, and it works regardless of which instance in the cluster receives the traffic.

Option B, EDR logs, fails because endpoint detection and response inspects process execution, file modification and credential use on a host. A DDoS does not require code execution on the CMS instances — the attacker simply floods the network interface, so EDR sees little or nothing until the instance itself is compromised by a different technique. Option C, cloud provider event logs, records control-plane operations such as RunInstances, security-group changes or API calls; a flood of packets from the internet never generates a management-plane event, so those logs stay quiet during an attack. Option D, instance syslog, captures OS-level messages, and while a saturated network stack may eventually emit socket-buffer warnings, syslog is host-scoped, incomplete across an autoscaled cluster, and blind to the identity and volume of the attacking sources — precisely what an engineer needs to characterize a DDoS.

One mechanism this scenario relies on but never states: cloud flow logs are not continuous packet captures. AWS VPC Flow Logs, for example, are configured with a traffic type (ALL, ACCEPT, REJECT) and delivered at intervals, so detection depends on aggregating records over a window and comparing bytes or flow counts against a baseline rather than reading a live packet stream. Applied here, the engineer would aggregate inbound flow records per CMS instance or per load balancer target, alert when packet rates or distinct source-IP counts exceed the normal baseline, and then use the logged rejection records to identify spoofed or single-source floods. That aggregation-and-threshold step is what converts raw flow data into a DDoS indicator, and it is why flow logs — not endpoint, event, or syslog data — are the correct monitoring target for this attack class.

Official Reference

https://docs.aws.amazon.com/vpc/latest/userguide/flow-logs.html

This link opens the official vendor documentation in a new tab.

Exam Strategy

When a question names an attack class, first identify which telemetry layer the attack actually operates on, then pick the log source at that layer. Volumetric and protocol floods belong to network telemetry (flow logs), host compromise to EDR or syslog, and configuration abuse to cloud provider event logs. Eliminate options whose data plane cannot be touched by the attack, as with management-plane events during a packet flood.

Practice All CV0-004 Questions

Access 100 questions with complete answers and detailed explanations.

View Full CV0-004 Practice Test →

← Back to CV0-004 Study Guide