• ¿Documento equivocado? Cámbialo gratis
  • Escrito por estudiantes que aprobaron
  • Inmediatamente disponible después del pago
  • Leer en línea o como PDF
Vender
¿Dónde estudias?
Tu idioma
Document preview thumbnail
Vista previa 4 fuera de 75 páginas
Examen

WGU D522 (WEN1) Task 1 Performance Assessment Incident Response & DNS Remediation Python, GitLab, Device Inventory QUESTIONS WITH CORRECT ANSWERS 2026

Document preview thumbnail
Vista previa 4 fuera de 75 páginas

WGU D522 (WEN1) Task 1 Performance Assessment Incident Response & DNS Remediation Python, GitLab, Device Inventory QUESTIONS WITH CORRECT ANSWERS 2026

Vista previa del contenido

WGU D522 (WEN1) Task 1 Performance Assessment |
Incident Response & DNS Remediation | Python,
GitLab, Device Inventory QUESTIONS WITH CORRECT
ANSWERS 2026

WGU D522 (WEN1) PYTHON FOR IT AUTOMATION

TASK 1 PERFORMANCE ASSESSMENT PREPARATION

Original Practice Questions 1–20

2026 Updated | Answers & Detailed Rationales



QUESTION 1

An IT automation script needs to process information about several network devices. Which
Python data structure is most appropriate for representing each device using named attributes
such as hostname, IP address, and port?

A. Tuple only
B. Dictionary
C. Integer
D. Boolean

Correct Answer: B

Rationale:
A dictionary stores information as key-value pairs, making it appropriate for structured device
information such as hostname, ip_address, and port. A list can contain multiple device
dictionaries, creating a convenient inventory structure.



QUESTION 2

Which Python module is commonly used to read a CSV device inventory?

A. csv
B. random
C. math
D. datetime

,Correct Answer: A

Rationale:
Python's built-in csv module provides tools such as csv.reader() and csv.DictReader() for
processing comma-separated files. DictReader is especially useful when each row contains
named fields.



QUESTION 3

Consider the following code:

device = {

"hostname": "PC01",

"ip": "192.168.1.10"

}



print(device["hostname"])

What is printed?

A. ip
B. PC01
C. hostname
D. 192.168.1.10

Correct Answer: B

Rationale:
The expression device["hostname"] retrieves the value associated with the hostname key. That
value is "PC01".



QUESTION 4

Which Python statement safely retrieves a dictionary value when the key might not exist?

A. device.find("hostname")
B. device.value("hostname")

,C. device.get("hostname")
D. device.search("hostname")

Correct Answer: C

Rationale:
The get() method safely retrieves a dictionary value. If the key does not exist, get() returns None
by default rather than raising a KeyError.



QUESTION 5

An automation script must process every device in a list. Which construct is most appropriate?

A. for loop
B. import statement
C. class declaration only
D. try statement only

Correct Answer: A

Rationale:
A for loop is designed to iterate over collections. It allows the same operation to be performed
against every device in the inventory.



QUESTION 6

Why should an automation script use a connection timeout when testing network devices?

A. To increase network latency
B. To prevent the program from waiting indefinitely for an unavailable device
C. To delete unreachable devices
D. To guarantee every connection succeeds

Correct Answer: B

Rationale:
A timeout limits how long the script waits for a response. This is especially important in
automation because one unreachable device should not cause the entire program to hang
indefinitely.

, QUESTION 7

A device inventory contains ten endpoints. One endpoint is offline. What is the best behavior
for a well-designed automation script?

A. Stop the entire program immediately
B. Skip all remaining devices
C. Record the failed device and continue processing the remaining devices
D. Delete the offline device from the inventory

Correct Answer: C

Rationale:
Automation should be resilient. A connection failure should normally be handled with
appropriate exception handling or status reporting so that the remaining devices can still be
processed.



QUESTION 8

Which Python structure is most appropriate for handling an expected network connection
failure?

A. try/except
B. if/import
C. for/class
D. while/print

Correct Answer: A

Rationale:
try/except allows a program to detect and handle exceptions without terminating unexpectedly.
Network automation commonly requires exception handling for timeouts, connection refusals,
authentication failures, and other communication errors.



QUESTION 9

A Task 1 script needs to connect to devices through Telnet. Which Python library is associated
with Telnet connections in environments where it is available?

A. json
B. telnetlib

Información del documento

Subido en
15 de septiembre de 2026
Número de páginas
75
Escrito en
2026/2027
Tipo
Examen
Contiene
Preguntas y respuestas
$16.99

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
Vendido
31
Seguidores
3
Artículos
2418
Última venta
1 semana hace



Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes