
GIAC Python Coder
Domain 3Objective 1
Network Interfaces GPYC Practice Questions (Page 3)
Part of the Network and Web Interaction domain, which makes up ~25% of our current practice bank. GIAC (SANS) does not publish an official question count, but from its 120-minute exam (~50–80 total, ~13–20 in this domain), expect 4–7 from this objective — we provide 17 practice questions to prepare you well beyond it. (estimate)
17questions here
4free pages
4concepts
Questions 11–15
- 11
Which library is specifically designed to provide a consistent cross-platform API for network interface information, including addresses and gateways, without relying on platform-specific commands?
Select an answer first - 12
An auditor needs to verify that no interface on a Linux server has a netmask other than /24. The auditor's Python script currently uses psutil.net_if_addrs(). Which field from the returned tuples should the script examine?
Select an answer first - 13
A Python tool must retrieve the MAC address of a network interface on both Windows and Linux. The tool can use third-party libraries. Which library provides a cross-platform way to get MAC addresses?
Select an answer first - 14
A Python script needs to determine if any network interface is down on a Linux host. The script can use third-party libraries. Which code snippet correctly identifies interfaces that are down?
Select an answer first - 15
A Python script must run on both macOS and FreeBSD to enumerate network interfaces and retrieve IPv4 addresses. The script can use third-party libraries. Which library provides consistent cross-platform behavior for this task?
Select an answer first
Finished these 5 questions?
Review the revealed explanations, or continue through the curriculum.
Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by GIAC (SANS). “GPYC” is a trademark of its owner, used for identification only.