350-401 · Question #1226
Refer to the exhibit. What is achieved by this Python script?
The correct answer is A. It reads access list statements into a dictionary list.. Explanation Option A is correct because the script uses Python data structures (specifically a dictionary or list of dictionaries) to store and organize access list statements by reading them into a structured collection in memory - this is the defining characteristic of "reading
Question
Refer to the exhibit. What is achieved by this Python script?
Exhibits
Options
- AIt reads access list statements into a dictionary list.
- BIt displays access list statements on a terminal screen.
- CIt configures access list statements.
- DIt converts access list statements to a human-readable format.
How the community answered
(37 responses)- A89% (33)
- B3% (1)
- C5% (2)
- D3% (1)
Explanation
Explanation
Option A is correct because the script uses Python data structures (specifically a dictionary or list of dictionaries) to store and organize access list statements by reading them into a structured collection in memory - this is the defining characteristic of "reading into a dictionary list." The script is performing data ingestion/parsing, not output or configuration operations.
Why the distractors are wrong:
- Option B is incorrect because simply displaying output to a terminal would require
print()statements as the primary purpose - the script's focus is on data structure population, not display - Option C is incorrect because configuring access lists would require sending commands to a device (e.g., via Netmiko/NAPALM
send_config), not just reading/storing data in Python - Option D is incorrect because converting to human-readable format implies a transformation/formatting operation (like parsing raw bytes), whereas this script is organizing already-readable data into a structured dictionary
Memory Tip: When you see a Python script building a list of dictionaries (e.g., acl_list.append({...})), think "reading INTO a data structure" - that's storage/ingestion. If you see print() as the main action = display; send_config() = configure; format()/decode() = convert.
Topics
Community Discussion
No community discussion yet for this question.

