CompTIA Security+ (SY0-601) — Question 91

An administrator is configuring a firewall rule set for a subnet to only access DHCP, web pages, and SFTP, and to specifically block FTP. Which of the following would BEST accomplish this goal?

Answer options

Correct answer: A

Explanation

Option A is correct because it allows traffic for DHCP (ports 67 and 68), web (port 80), and SFTP (port 22), while explicitly denying FTP traffic (port 21). Option B incorrectly allows FTP by permitting port 21. Option C allows SFTP but denies DHCP, which contradicts the requirement. Option D denies DHCP and allows FTP, which also does not meet the specified needs.