nerdexam
Cisco

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

Submitted by haru.x· Mar 6, 2026Automation

Question

Refer to the exhibit. What is achieved by this Python script?

Exhibits

350-401 question #1226 exhibit 1
350-401 question #1226 exhibit 2

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)
  • A
    89% (33)
  • B
    3% (1)
  • C
    5% (2)
  • D
    3% (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

#Python#Access List parsing#Data structures#Network automation

Community Discussion

No community discussion yet for this question.

Full 350-401 Practice