Bird
Raised Fist0
Cybersecurityknowledge~20 mins

Denial of Service (DoS/DDoS) in Cybersecurity - Practice Problems & Coding Challenges

Choose your learning style10 modes available

Start learning this pattern below

Jump into concepts and practice - no test required

or
Recommended
Test this pattern10 questions across easy, medium, and hard to know if this pattern is strong
Challenge - 5 Problems
🎖️
DoS/DDoS Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
What is the primary goal of a Denial of Service (DoS) attack?

Choose the option that best describes the main purpose of a DoS attack.

ATo make a service unavailable to its intended users by overwhelming it with traffic
BTo gain unauthorized access to a network by exploiting software vulnerabilities
CTo steal sensitive data from a server without being detected
DTo install malware on a victim's computer to control it remotely
Attempts:
2 left
💡 Hint

Think about what happens to a website or service when it is flooded with too many requests.

📋 Factual
intermediate
2:00remaining
Which of the following is a common method used in Distributed Denial of Service (DDoS) attacks?

Select the method that best describes how a DDoS attack is typically carried out.

AUsing multiple compromised computers to send traffic simultaneously to overwhelm a target
BUsing a single computer to send a large number of requests to a target
CIntercepting data packets to steal information during transmission
DEncrypting data on a victim's system and demanding ransom
Attempts:
2 left
💡 Hint

Think about the word 'Distributed' in DDoS and what it implies about the attack source.

🔍 Analysis
advanced
2:00remaining
Analyzing the impact of a SYN flood attack in a DoS scenario

What happens to a server when it is targeted by a SYN flood attack?

AThe server redirects all traffic to a malicious website
BThe server's memory fills up with half-open connections, preventing new connections from being established
CThe server's CPU overheats due to excessive processing of encrypted data
DThe server's files are deleted, causing permanent data loss
Attempts:
2 left
💡 Hint

Consider how TCP connections are established and what a half-open connection means.

❓ Comparison
advanced
2:00remaining
Difference between DoS and DDoS attacks

Which statement correctly compares DoS and DDoS attacks?

ADoS attacks are legal, while DDoS attacks are illegal
BDoS attacks target only websites, while DDoS attacks target only networks
CDoS attacks come from a single source, while DDoS attacks come from multiple sources simultaneously
DDoS attacks always use malware, while DDoS attacks do not
Attempts:
2 left
💡 Hint

Focus on the number of sources involved in each attack type.

❓ Reasoning
expert
2:00remaining
Why are DDoS attacks harder to defend against than DoS attacks?

Choose the best explanation for why defending against DDoS attacks is more challenging.

ABecause DDoS attacks only target offline systems
BBecause DDoS attacks use encrypted traffic that cannot be inspected
CBecause DDoS attacks exploit software bugs that are unknown to defenders
DBecause DDoS attacks use many different IP addresses, making it difficult to block all malicious traffic
Attempts:
2 left
💡 Hint

Think about how blocking traffic works and what happens when many sources are involved.

Practice

(1/5)
1. What is the main goal of a Denial of Service (DoS) attack?
easy
A. To install software updates
B. To steal user passwords
C. To make a service unavailable by overwhelming it
D. To improve website speed

Solution

  1. Step 1: Understand the definition of DoS

    A Denial of Service attack aims to stop users from accessing a service by overwhelming it with traffic or requests.
  2. Step 2: Compare options with the definition

    Only To make a service unavailable by overwhelming it matches this goal. Other options describe unrelated actions.
  3. Final Answer:

    To make a service unavailable by overwhelming it -> Option C
  4. Quick Check:

    DoS = Overwhelm service [OK]
Hint: DoS means stopping access by overload [OK]
Common Mistakes:
  • Confusing DoS with stealing data
  • Thinking DoS improves service
  • Mixing DoS with software updates
2. Which of the following best describes a Distributed Denial of Service (DDoS) attack?
easy
A. An attack from a single computer targeting a service
B. An attack using many computers to overwhelm a service
C. A method to speed up network traffic
D. A way to encrypt data for security

Solution

  1. Step 1: Define DDoS attack

    DDoS attacks use many computers working together to flood a service with traffic, making it unavailable.
  2. Step 2: Match options to definition

    An attack using many computers to overwhelm a service correctly describes this. An attack from a single computer targeting a service describes a single source attack (DoS), others are unrelated.
  3. Final Answer:

    An attack using many computers to overwhelm a service -> Option B
  4. Quick Check:

    DDoS = Many computers attack [OK]
Hint: DDoS means many computers attack together [OK]
Common Mistakes:
  • Confusing DDoS with single computer attacks
  • Thinking DDoS speeds up networks
  • Mixing DDoS with encryption
3. Consider this scenario: A website receives a sudden flood of traffic from thousands of different IP addresses, causing it to crash. What type of attack is this?
medium
A. Distributed Denial of Service (DDoS) attack
B. Phishing attack
C. Malware infection
D. SQL Injection

Solution

  1. Step 1: Analyze the traffic source

    The traffic comes from thousands of different IP addresses, indicating multiple sources.
  2. Step 2: Identify attack type by symptoms

    Multiple sources flooding a website causing crash matches a DDoS attack, not phishing, malware, or SQL injection.
  3. Final Answer:

    Distributed Denial of Service (DDoS) attack -> Option A
  4. Quick Check:

    Many IPs flooding = DDoS [OK]
Hint: Many IPs flooding = DDoS attack [OK]
Common Mistakes:
  • Confusing DDoS with phishing
  • Thinking malware causes traffic flood
  • Mixing SQL injection with traffic overload
4. A network administrator notices that a server is slow and unresponsive. They suspect a DoS attack. Which of the following is the best first step to confirm this?
medium
A. Change the server's IP address
B. Restart the server immediately
C. Update the server software
D. Check server logs for unusually high traffic

Solution

  1. Step 1: Identify symptoms of DoS

    Slow and unresponsive server can be caused by high traffic from a DoS attack.
  2. Step 2: Confirm by checking logs

    Checking server logs for unusually high traffic helps confirm if a DoS attack is happening before taking action.
  3. Final Answer:

    Check server logs for unusually high traffic -> Option D
  4. Quick Check:

    High traffic logs = Confirm DoS [OK]
Hint: Check logs first to confirm DoS attack [OK]
Common Mistakes:
  • Restarting server without diagnosis
  • Changing IP without evidence
  • Updating software before confirming attack
5. Which of the following is the most effective way to protect a website from a Distributed Denial of Service (DDoS) attack?
hard
A. Use a firewall and traffic filtering services
B. Disable all website features
C. Change the website's domain name frequently
D. Only allow access from one IP address

Solution

  1. Step 1: Understand DDoS protection methods

    Firewalls and traffic filtering services can detect and block malicious traffic from many sources.
  2. Step 2: Evaluate options for practicality

    Disabling features or changing domain names does not stop attacks. Allowing one IP is impractical for public sites.
  3. Final Answer:

    Use a firewall and traffic filtering services -> Option A
  4. Quick Check:

    Firewall + filtering = Best DDoS defense [OK]
Hint: Firewalls and filters block bad traffic [OK]
Common Mistakes:
  • Thinking disabling features stops attacks
  • Believing domain changes prevent DDoS
  • Restricting access too narrowly for public sites