WGU D385
Software Security and Testing
Task 1 Complete Practice Guide
Static Analysis | Python Logging | Assertions | Exception Handling | Input Validation |
Remediation | Pytest
September 2026 Study Edition
Purpose
A fully worked, original practice guide that teaches the skills currently associated with D385 Task 1 preparation. It is
not an official WGU rubric, assessment answer, or guaranteed-pass submission. Always follow the instructions and
rubric shown in your current WGU course portal.
Includes an original mock Python application, remediation walkthrough, log-analysis examples, 13 verified pytest cases,
report-writing framework, and evidence checklist.
Page 1
, WGU D385 - Software Security and Testing | Task 1 Complete Practice Guide | 2026
0. How to Use This Guide
Start with the alignment notes, then work through the mock application from analysis to remediation and
verification.
Alignment boundary
The September 2026 WGU catalog confirms D385 focuses on recognizing software vulnerabilities, planning
interventions, developing and testing those interventions, and covers web security, permissions/identity security,
debugging, log-file analysis, API security, encryption, and cryptography. The catalog does not publish the detailed
Task 1 rubric. Task-specific structure in this guide is therefore presented as practice based on current 2026 student-
reported workflows and should be verified against your own live rubric.
1. Read Sections 1-3 to understand what is officially confirmed versus task-specific practice guidance.
2. Run the original mock application through the static-analysis checklist in Sections 4-6.
3. Study the logging, assertion, exception, and input-validation patterns in Sections 7-10.
4. Compare the insecure and remediated code in Sections 11-12.
5. Use Sections 13-15 to create test evidence and interpret log abnormalities.
6. Use the report framework and readiness checklist in Sections 16-18 to review your own work without copying
the mock answers verbatim.
Page 2
, WGU D385 - Software Security and Testing | Task 1 Complete Practice Guide | 2026
1. September 2026 Course Alignment
What the current official catalog supports, and what this guide treats as unofficial Task 1 practice.
Area Status How this guide uses it
Static-analysis findings, manual code
Recognize software vulnerabilities Official D385 scope
review, defect identification
Remediation plan and defect-to-fix
Plan interventions Official D385 scope
mapping
Secure code, pytest verification,
Develop and test interventions Official D385 scope
before/after analysis
File logger, log levels, abnormal event
Debugging and log-file analysis Official D385 scope
analysis
Role allow-list and authentication-safe
Permissions and identity security Official D385 scope
logging examples
Credential-handling example and secret-
API security Official D385 scope
safe logging
Task 1: static-analysis report, logging, Used only as a practice workflow; verify
Unofficial 2026 student reports
asserts, try/except, tests exact requirements in your live rubric
Important
Do not treat a community guide, including this one, as a substitute for the live WGU rubric. If your rubric requests a
specific filename, number of findings, screenshot count, or submission format, follow the rubric exactly.
Page 3