Docsity

WGU D522 Python for IT Automation Task 1 - 2026, Exams of Advanced Education

Toggle sidebar
bg1
WGU D522 Python for IT Automation - Task 1 • 2026 Companion Page 1
WGU D522
PYTHON FOR IT AUTOMATION
TASK 1 - 2026 PERFORMANCE ASSESSMENT COMPANION
Network Inventory • Reachability • DNS Audit • Reporting • Evidence
Course D522 - Python for IT Automation
Assessment Task 1 / Performance Assessment
Edition September 2026
Purpose Pass-focused implementation and evidence guide
ACADEMIC-INTEGRITY / SUBMISSION NOTE
This is an independent Task 1 companion, not a completed student submission and not a guarantee of an evaluator result.
The live WGU rubric, instructor guide, lab topology, supplied CSV, ports, credentials, approved DNS values, required
downstream actions, and your own screenshots must control. Submit only code and evidence you personally ran,
understand, and can reproduce.
pf3
pf4
pf5

Partial preview of the text

Download WGU D522 Python for IT Automation Task 1 - 2026 and more Exams Advanced Education in PDF only on Docsity!

WGU D

PYTHON FOR IT AUTOMATION

TASK 1 - 2026 PERFORMANCE ASSESSMENT COMPANION

Network Inventory • Reachability • DNS Audit • Reporting • Evidence

Course D522 - Python for IT Automation

Assessment Task 1 / Performance Assessment

Edition September 2026

Purpose Pass-focused implementation and evidence guide

ACADEMIC-INTEGRITY / SUBMISSION NOTE

This is an independent Task 1 companion, not a completed student submission and not a guarantee of an evaluator result. The live WGU rubric, instructor guide, lab topology, supplied CSV, ports, credentials, approved DNS values, required downstream actions, and your own screenshots must control. Submit only code and evidence you personally ran, understand, and can reproduce.

1. 2026 Task 1 Orientation

Public August 2026 student reports describe the current D522 version as a two-task performance assessment rather than the older objective-assessment format. Task 1 is the foundation: build clean, modular Python that reads the supplied device inventory, gathers required device/network information, evaluates DNS-related state, and produces evidence that maps to the rubric. Students also report that Task 2 reuses much of a well-designed Task 1, making modularity especially valuable.

2. End-to-End Workflow

Use this sequence: (1) open the current rubric and lab; (2) verify repository/branch and Python environment; (3) inspect the supplied CSV headers and device values; (4) load inventory into dictionaries; (5) test required reachability/service access; (6) connect using the lab-approved method; (7) collect the required DHCP/DNS/network state; (8) parse only the fields the rubric asks for; (9) compare observed DNS values with the scenario baseline; (10) perform any required reporting/ticket/email action; (11) capture screenshots for each rubric checkpoint; (12) re-run the script to verify repeatability.

3. Preflight Checklist

Before coding, verify the exact CSV filename and headers, localhost/console mapping, ports, device identifiers, credentials, DNS baseline, required Python libraries, repository URL, branch rules, and required evidence. Make a small test commit and push early. A working script that is not in the required repository or lacks required screenshots can still need revision.

4. Inventory and Data Model

Treat the supplied inventory as the source of truth. Preserve the original fields and enrich each device record with runtime fields such as reachable, DNS servers, status, error text, and any task-specific metadata. Validate numeric ports and required identifiers before attempting a connection.

Example CSV loader

import csv def load_devices(csv_path): devices = [] with open(csv_path, newline="", encoding="utf-8") as f: reader = csv.DictReader(f) for row_num, row in enumerate(reader, start=2): try: port = int(row["port"]) except (KeyError, TypeError, ValueError): raise ValueError(f"Invalid port on CSV row {row_num}") devices.append({ "name": row.get("name", "").strip(), "host": row.get("host", "127.0.0.1").strip(), "port": port, "username": row.get("username", "").strip(), "password": row.get("password", "") }) return devices

Replace the example field names with the exact headers in your assigned CSV.

5. Reachability and Connection Logic

Do not let one unavailable device terminate the entire run. Use bounded timeouts and return a clear per-device result. In the current lab, recent student reports describe connecting through localhost plus mapped ports; follow the current instructor guide for the exact Telnet/session library and prompt sequence. If the rubric requires ping, implement that requirement too rather than substituting a different test.

6. DNS Collection and Parsing

result["dns_status"] = "ERROR" result["error"] = str(exc) return result

The connector, lab command, parser, baseline, and any ticket/email/remediation logic must be implemented from your current task directions. This framework deliberately does not invent lab-specific answers.

9. Error Handling and Repeatability

Use explicit timeouts, catch expected network/session exceptions close to the operation, close sessions reliably, and continue to other devices when appropriate. Avoid bare except clauses. Design Task 1 so that running it a second time is predictable. If any step changes state or creates a downstream record, use the current rubric's expected behavior to prevent uncontrolled duplicates.

10. Reporting

Create readable, structured output. CSV or JSON is useful when permitted because it preserves a consistent record of device, reachability, observed DNS, classification, and error details. If Task 1 requires help-desk tickets or email, build those actions from stored result dictionaries rather than re-querying the device unnecessarily.

11. Security Notes

The assessment lab may require legacy access methods or supplied credentials. Follow the lab requirement in the isolated environment, but recognize that production systems should prefer encrypted management protocols, secret management, least privilege, validated inputs, and restricted logging of credentials.

12. Evidence / Screenshot Strategy

Capture evidence as you complete each rubric item. Recent 2026 student experience specifically warns that missing a required screenshot can trigger a resubmission even when the code itself works. Screenshots should be readable, show the relevant device/action/output, and be mapped to the current rubric labels.

Evidence Map

Checkpoint Evidence

Repository Correct repository/branch and visible project files.

Inventory Supplied CSV or parsed inventory output.

Reachability Per-device reachability/service results.

Connection Successful lab session for applicable devices.

DNS collection Live required command output.

Classification Readable per-device DNS decision.

Downstream action Ticket/email/report evidence if required by current rubric.

Final run Complete execution without unhandled exceptions.

Git history Final commit/push visible.

13. Testing Matrix

Test at least: valid inventory, malformed numeric port, unavailable device/port, valid DNS, unexpected DNS, empty DNS output, authentication/command failure, and a second complete execution. The expected result should be explicit for each

case, and the program should not silently treat failure as success.

14. Troubleshooting

Connection refused usually points to an incorrect mapped port or a device/service that is not running. A timeout may indicate an unavailable service or prompt mismatch. A CSV KeyError usually means your code does not match the supplied headers. If every device is flagged, re-check the scenario's approved DNS value before changing the parser. When parsing fails, print and inspect the raw command output for one device before debugging the whole loop.

15. Git Workflow

Commit in meaningful stages: environment/inventory; reachability; connection/data collection; DNS parsing/classification; reporting; final evidence/documentation. Push early and confirm the required branch. Small commits make debugging and assessment evidence easier.

16. Submission Narrative Template

Purpose: explain the scenario problem and what your automation does. Design: explain your functions and data flow. Results: report only the values actually produced in your lab. Error handling: explain timeouts, exceptions, and per-device failure isolation. Conclusion: state what the final execution demonstrated and what happened on a repeat run. Rename these headings to the exact rubric labels if the current assessment specifies them.

17. Practice Q&A; with Rationales

Q1. Why modularize Task 1?

Answer: It isolates responsibilities, makes debugging easier, and allows later requirements to reuse working functions.

Rationale: It isolates responsibilities, makes debugging easier, and allows later requirements to reuse working functions.

Q2. Why use network timeouts?

Answer: A timeout prevents one unavailable device from blocking the complete automation indefinitely.

Rationale: A timeout prevents one unavailable device from blocking the complete automation indefinitely.

Q3. Why separate OFFLINE from MISCONFIGURED?

Answer: An offline device provides no trustworthy live DNS evidence, so calling it misconfigured overstates what the script knows.

Rationale: An offline device provides no trustworthy live DNS evidence, so calling it misconfigured overstates what the script knows.

Q4. Why use csv.DictReader?

Answer: It maps values to named columns, making the code easier to understand and less dependent on column position.

Rationale: It maps values to named columns, making the code easier to understand and less dependent on column position.

Q5. Why validate ports before connecting?

Answer: Early validation produces a clear input error instead of a misleading network failure.

Rationale: Early validation produces a clear input error instead of a misleading network failure.

Q6. What should empty DNS output mean?

This document does not reproduce secured assessment prompts, evaluator materials, credentials, private lab answers, or a student's completed submission.