WGU D385
Software Security and Testing
Performance Assessment Task 1 Preparation Guide
Static Code Analysis - Python Logging - Exceptions - Assertions - Input Validation - Unit Testing -
Evidence - Written Report
September 2026 Alignment Edition
Purpose: An original, detailed walkthrough for preparing D385 Task 1. It is designed to help a student understand the workflow,
write defensible code changes, generate evidence, and organize a rubric-mapped report.
Important: This is not an official WGU answer, has not been evaluated by WGU, and should not be submitted unchanged.
Replace every sample filename, line number, screenshot, finding, test, and explanation with evidence from the current task
package.
Prepared as an independent study resource. Not affiliated with or endorsed by Western Governors
University.
Independent educational resource - verify the live WGU rubric Page 1
,D385 Software Security and Testing - Task 1 Preparation Guide
1. September 2026 Alignment and Verification
WGU's public Institutional Catalog page identifies September 2026 as the current edition. The public D385 course description says
the course prepares learners to recognize software vulnerabilities, plan interventions, develop and test those interventions, and work
with web security, permissions and identity security, debugging, log file analysis, API security, encryption, and cryptography.
Public 2026 student reports describe the revised D385 V2 as a performance-assessment course with two tasks. For Task 1, those
reports consistently mention static-code-analysis discussion, a Python/Flask starter application, logging, exception handling,
assertions, unit testing, application screenshots, log interpretation, and a written report.
Authority rule: Community reports are orientation only. Your live task instructions, starter files, report template, and evaluator
rubric are the controlling requirements.
This guide is aligned to the following preparation goals:
• Static analysis: define it, explain what it detects, and document distinct findings.
• Defensive coding: validate input, catch expected exceptions, and use assertions for internal invariants.
• Logging: create a predictable troubleshooting log and record meaningful events without secrets.
• Testing: create repeatable tests that verify the behaviors you changed.
• Evidence: capture readable code, line numbers, application state, logs, and passing tests.
• Writing: map each paragraph directly to the rubric requirement it satisfies.
The guide deliberately does not reproduce proprietary task language or WGU starter code.
Independent educational resource - verify the live WGU rubric Page 2
, D385 Software Security and Testing - Task 1 Preparation Guide
2. Task 1 End-to-End Workflow
1 Extract the task package. Work from a normal folder, not directly inside the ZIP.
2 Create a clean backup. Preserve the original starter files before editing.
3 Read the rubric once for structure. Build a checklist of every narrative, screenshot, test, log artifact, and upload.
4 Run the starter application. Confirm the baseline environment before security changes.
5 Review static-analysis output and source comments. Map report messages to actual code lines.
6 Select distinct findings. Avoid five variations of one problem.
7 Configure logging early. Logging must exist before you intentionally trigger abnormal behavior.
8 Add defensive controls. Validate untrusted input, handle expected exceptions, and assert internal invariants.
9 Run negative inputs. Create real abnormal log entries for later analysis.
10 Create or complete unit tests. One test should prove one behavior.
11 Capture evidence immediately. Save readable screenshots with descriptive filenames.
12 Write the report in rubric order. Requirement -> evidence -> explanation -> verification.
13 Audit the final package. Re-run tests, inspect the log, open the ZIP, and compare everything to the portal.
Suggested folder structure
D385_Task1_Work/
|-- app/
| |-- application.py
| |-- templates/
|-- tests/
| |-- test_application.py
|-- evidence/
| |-- A3_finding_01.png
| |-- B4_running_app.png
| |-- B5_test_01.png
|-- reports/
| |-- static_analysis_report.txt
|-- Troubleshooting_YOURID.log
|-- Task1_Report.docx
Independent educational resource - verify the live WGU rubric Page 3