
CCIE Security
Domain 3Objective 9
3.9 Interaction with Network Devices Through APIs Using Basic Python Scripts CCIE-SECURITY Practice Questions (Page 10)
Part of the 3.0 Security Infrastructure domain, which accounts for 15% of the CCIE-SECURITY exam. Cisco does not publish an official question count, but from its 120-minute exam (~50–80 total, ~8–12 in this domain), expect 1–1 from this objective — we provide 61 practice questions to prepare you well beyond it. (estimate)
61questions here
13free pages
11concepts
15%of the exam
Questions 46–50
- 46
A network automation script uses a requests.Session() to interact with a device's API. The API uses cookie-based session management after initial authentication. The script needs to maintain the session across multiple requests. Which practice is correct?
Select an answer first - 47
A Python script is parsing a JSON response from a network device's API. The response contains a list of ACL entries, each with a 'source' field that may be missing. The script needs to extract the source IP for each entry, defaulting to 'any' if the field is absent. Which code snippet correctly handles this?
Select an answer first - 48
A network engineer is using a NETCONF API to retrieve interface statistics. The API returns XML. The engineer needs to extract the 'in-octets' value for a specific interface. Which Python code snippet correctly parses the XML and extracts the value?
Select an answer first - 49
A security automation team maintains a YAML file that defines device connection parameters for multiple devices. The YAML file contains a list of devices, each with a name, IP, and credentials. The team wants to load this YAML in a Python script and iterate over the devices to establish connections. Which code snippet correctly loads the YAML and iterates?
Select an answer first - 50
A network engineer is designing a Python script to interact with a network device's REST API. The API is stateless and requires the client to include all necessary information in each request. The engineer needs to update a specific interface description. Which approach aligns with RESTful principles?
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 Cisco. “CCIE-SECURITY” is a trademark of its owner, used for identification only.