An administrator needs to configure a wireless interface wlan0 with WPA2-PSK authentication and a static IP address 192.168.2.50/24. Which tool should be used to configure the wireless settings?
wpa_supplicant handles WPA2 authentication.
Why this answer
WPA2-PSK authentication requires the wpa_supplicant daemon, which handles the 4-way handshake and key derivation. A configuration file with the PSK (pre-shared key) is the standard method to define the network SSID and passphrase, allowing wpa_supplicant to manage the wireless association securely.
Exam trap
The trap here is that candidates confuse iwconfig's key parameter (which only works for WEP) with WPA2-PSK, or assume a higher-level tool like nmcli is the direct configuration tool, when the exam expects the low-level WPA2-PSK daemon wpa_supplicant.
How to eliminate wrong answers
Option A is wrong because NetworkManager with nmcli is a higher-level tool that often relies on wpa_supplicant underneath, but the question asks for the tool to configure wireless settings directly; nmcli is not the primary tool for raw WPA2-PSK configuration. Option C is wrong because iwconfig with key s:password only supports WEP encryption (open or shared key), not WPA2-PSK, and cannot handle the 4-way handshake or PSK derivation. Option D is wrong because ifconfig and route only manage IP addressing and routing, not wireless authentication or encryption; they cannot configure WPA2-PSK at all.