0
0
Intro to Computingfundamentals~20 mins

Firewalls and network protection in Intro to Computing - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Firewall Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
How does a firewall decide which network traffic to allow?

Imagine a security guard checking people entering a building. How does a firewall act like this guard when deciding which data packets to allow through a network?

AIt randomly blocks half of the incoming data to reduce network load.
BIt checks rules based on source, destination, and type of data to allow or block traffic.
CIt allows all data except those from unknown websites.
DIt only blocks data if the user manually approves each packet.
Attempts:
2 left
💡 Hint

Think about how a guard uses a list of allowed visitors rather than guessing randomly.

trace
intermediate
2:00remaining
Trace the firewall packet filtering process

Follow the steps a firewall takes to filter a packet with source IP 192.168.1.10, destination IP 10.0.0.5, and port 80. The firewall rules allow HTTP traffic (port 80) only from 192.168.1.0/24 subnet.

APacket allowed because source IP is in allowed subnet and port is 80.
BPacket blocked because destination IP is outside allowed subnet.
CPacket allowed because destination IP matches the firewall's IP.
DPacket blocked because port 80 is not allowed.
Attempts:
2 left
💡 Hint

Check if the source IP fits the allowed range and if the port matches the allowed service.

identification
advanced
2:00remaining
Identify the type of firewall from its description

A firewall inspects the contents of data packets deeply, checking the actual data and not just headers, to detect malicious content. What type of firewall is this?

ADeep packet inspection firewall
BStateful inspection firewall
CProxy firewall
DPacket-filtering firewall
Attempts:
2 left
💡 Hint

Think about which firewall looks inside the data, not just the envelope.

Comparison
advanced
2:00remaining
Compare stateful and stateless firewalls

Which statement correctly compares stateful and stateless firewalls?

ANeither stateful nor stateless firewalls check packet headers.
BStateless firewalls track connection states; stateful firewalls check packets individually without context.
CBoth stateful and stateless firewalls track connection states but differ in speed.
DStateful firewalls track connection states; stateless firewalls check packets individually without context.
Attempts:
2 left
💡 Hint

Think about whether the firewall remembers past packets or treats each one alone.

🚀 Application
expert
2:00remaining
Determine the effect of firewall rule order on traffic filtering

A firewall has these rules in order:
1. Block all traffic from IP 203.0.113.5
2. Allow all traffic to port 22 (SSH)
3. Allow all traffic from IP 203.0.113.5

If a packet comes from IP 203.0.113.5 to port 22, what happens?

AThe packet is allowed because the last rule allows traffic from the IP.
BThe packet is allowed because the allow rule for port 22 overrides the block.
CThe packet is blocked because the first matching rule blocks the IP before the allow rule.
DThe packet causes an error because conflicting rules exist.
Attempts:
2 left
💡 Hint

Remember firewalls usually apply rules in order and stop at the first match.