What is a DDoS (distributed denial-of-service) attack, and how can applications be protected from it?

A DDoS (Distributed Denial of Service) attack occurs when a large number of compromised systems simultaneously send massive amounts of traffic or requests to an application, server, or network. The goal is to exhaust resources such as bandwidth, CPU, memory, or connections, making the service unavailable to legitimate users.

Key Points

Example

Consider an online banking application that normally handles 10,000 requests per minute. During a DDoS attack, millions of fake requests are sent from thousands of compromised devices, overwhelming the server and preventing genuine customers from accessing their accounts.

Key Prevention Strategies

Interview Tip

A concise interview answer is: A DDoS attack floods an application or server with excessive traffic from multiple sources, making it unavailable to legitimate users. It can be mitigated using rate limiting, firewalls, load balancers, traffic monitoring, WAFs, and cloud-based DDoS protection services that filter and absorb malicious traffic.

Last updated: 11 November 2026

Previous question: What is the difference between REST services and RESTful web services?

Next question: What is the difference between CountDownLatch and CyclicBarrier, and when would you use each?

More Core Java - Level V (Expert) interview questions

All Core Java - Level V (Expert) questions