nerdexam
Cisco

350-401 · Question #927

Refer to the exhibit. What does this Python script do?

The correct answer is B. reads the username for a specific IP address from a light database. This Python script's purpose is to retrieve a username associated with a given IP address by querying a lightweight database.

Submitted by eva_at· Mar 6, 2026Automation

Question

Refer to the exhibit. What does this Python script do?

Exhibits

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

Options

  • Aenters the TACACS+ username for a specific IP address
  • Breads the username for a specific IP address from a light database
  • Cwrites the username for a specific IP address into a light database
  • Denters the RADIUS username for a specific IP address

How the community answered

(58 responses)
  • A
    3% (2)
  • B
    90% (52)
  • C
    2% (1)
  • D
    5% (3)

Why each option

This Python script's purpose is to retrieve a username associated with a given IP address by querying a lightweight database.

Aenters the TACACS+ username for a specific IP address

The script is focused on reading from a database, not entering credentials for a TACACS+ server.

Breads the username for a specific IP address from a light databaseCorrect

Based on the correct answer, the Python script's primary function is to query a lightweight database (e.g., SQLite, a dictionary stored as a file, or a custom in-memory structure) to fetch and display a username corresponding to a given IP address. It performs a read operation from this data store.

Cwrites the username for a specific IP address into a light database

The correct answer indicates a read operation, not a write operation to store data in the database.

Denters the RADIUS username for a specific IP address

The script is focused on reading from a database, not entering credentials for a RADIUS server.

Concept tested: Python database interaction (reading)

Topics

#Python#SQLite#scripting#database query

Community Discussion

No community discussion yet for this question.

Full 350-401 Practice