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.
Question
Exhibits
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)- A3% (2)
- B90% (52)
- C2% (1)
- D5% (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.
The script is focused on reading from a database, not entering credentials for a TACACS+ server.
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.
The correct answer indicates a read operation, not a write operation to store data in the database.
The script is focused on reading from a database, not entering credentials for a RADIUS server.
Concept tested: Python database interaction (reading)
Topics
Community Discussion
No community discussion yet for this question.

