• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 4 out of 42 pages
Other

WGU D385 ZHN1 Task 1 Software Security & Testing | Static Code Analysis, Python Logging, Debugging, Exception Handling & Unit Testing | 2026/2027

Document preview thumbnail
Preview 4 out of 42 pages

Prepare confidently for WGU D385 Software Security and Testing – ZHN1 Task 1 with this detailed Performance Assessment study guide covering the major secure-development, debugging, logging, exception-handling, and testing concepts connected to the task. This resource is designed to help learners understand how to analyze Python/Flask application behavior, identify security and code-quality issues, document errors, improve input handling, and build clear evidence for testing and analysis. Inside you’ll find: • D385 ZHN1 Task 1 workflow overview • Static code analysis guidance • Flake8 and Bandit interpretation • Python and Flask logging configuration • INFO, WARNING, and ERROR log-level selection • Log-file analysis and troubleshooting • Python debugging workflow • Exception-handling strategies • KeyError, ValueError, and TypeError examples • Input validation and allowlisting • Assertion use and limitations • Secure coding considerations • Unit-testing fundamentals • Pytest examples • Flask test_client testing • 10-case testing matrix • Expected vs. actual results analysis • Security and error-path testing • Screenshot and evidence planning • Evidence-to-requirement mapping • Original Flask practice application • Complete fictional case study • Model technical-analysis structure • Common revision risks and fixes • Final submission-readiness checklist • 30 scenario-based knowledge-check questions with answers Ideal for WGU cybersecurity students who want a structured resource for understanding D385 Task 1 from code analysis and debugging through logging, exception handling, unit testing, and final evidence review.

Content preview

WGU D385 ZHN1 Task 1 - Software Security and Testing - Independent Study Exemplar




WGU D385
SOFTWARE SECURITY AND TESTING
ZHN1 TASK 1

COMPLETE PERFORMANCE ASSESSMENT PREPARATION GUIDE
Static Code Analysis | Python Application Logging | Debugging | Exception Handling | Assertions | Input
Validation | Unit Testing | Evidence



September 2026 Alignment Edition

ACADEMIC INTEGRITY / USE NOTICE
This is an independently created study exemplar and preparation guide. It is not an official WGU document, has not been evaluated
by WGU, and must not be represented as a passed student submission. All code, filenames, screenshots, log entries, line numbers,
test outputs, and scenarios in this guide are original practice material. Verify the current task instructions and rubric in your WGU
course before submission.


Formatting note: This edition intentionally uses a plain black-and-white academic report style suitable for printing and marketplace study
use. It does not reproduce a proprietary WGU template or another seller's document.




September 2026 alignment edition | Page 1

, WGU D385 ZHN1 Task 1 - Software Security and Testing - Independent Study Exemplar

Table of Contents
Section Topic
1 2026 D385 course and Task 1 alignment
2 What Task 1 is trying to prove
3 Submission architecture and evidence plan
4 Environment setup and baseline verification
5 Static code analysis fundamentals
6 Reading Flake8/Bandit-style findings safely
7 Original practice application overview
8 Python logging architecture
9 Choosing logging levels
10 Structured log messages and log hygiene
11 Debugging workflow
12 Exception handling principles
13 Worked runtime-error path: invalid equipment
14 Worked runtime-error path: invalid duration
15 Input validation and allowlisting
16 Assertions: correct use and limitations
17 Unit testing strategy with pytest
18 Flask test_client and route testing
19 Task 1 test matrix
20 Original pytest examples
21 Debugging failing tests
22 Edge cases and negative testing
23 Log analysis after tests
24 Suspicious activity and security interpretation
25 Application screenshot evidence
26 Test screenshot evidence
27 Static-analysis evidence
28 Written report architecture
29 Evidence-to-rubric mapping template
30 Integrated practice case
31 Practice case: implementation excerpts
32 Practice case: logs and test results
33 Practice case: sample written analysis
34 Common revision risks
35 Final submission-readiness audit
36 30 scenario-based knowledge checks
37 Answer key and rationales
38 References and verification sources




September 2026 alignment edition | Page 2

, WGU D385 ZHN1 Task 1 - Software Security and Testing - Independent Study Exemplar

1. 2026 D385 Course and Task 1 Alignment
WGU's September 2026 institutional catalog lists D385 Software Security and Testing as a 3-CU School of Technology course.
The official course description emphasizes recognizing software vulnerabilities, planning and testing interventions, Web security,
permissions and identity security, debugging, log-file analysis, API security, encryption, and cryptography.
Public 2026 study materials consistently describe ZHN1 as a performance assessment with two tasks. Those public materials
characterize Task 1 as the application logging/testing portion and Task 2 as the secure-coding/API portion. Because the detailed
proprietary rubric is available only inside the live course, every student should treat the portal rubric as controlling.
Alignment area What this guide emphasizes
Reproduce the error, isolate the failing path, inspect state, fix the root
Debugging
cause, rerun tests.
Create structured application logs and interpret normal vs abnormal
Log-file analysis
events.
Recognize unsafe patterns without over-remediating items reserved
Software vulnerabilities
for later task scope.
Use unit and route-level tests to prove error paths, validation,
Testing interventions
assertions, and expected behavior.
Capture readable screenshots, explain the result, and map each
Professional evidence
artifact to the live rubric.


Version-sensitive point
The exact filenames, screenshot count, starter code, test names, and rubric labels can change. Do not copy a public marketplace
answer verbatim. Replace all practice values in this guide with the current course package and your own evidence.




September 2026 alignment edition | Page 3

, WGU D385 ZHN1 Task 1 - Software Security and Testing - Independent Study Exemplar

2. What Task 1 Is Trying to Prove
A strong Task 1 submission does more than make the Flask application run. It demonstrates that the learner can observe
application behavior, handle expected failures deliberately, document assumptions, validate inputs, test behavior, and explain
what the evidence means.
Evidence question Strong answer
Yes - logs contain timestamp, severity, event, action, and enough
Can the application record meaningful events?
context to investigate behavior.
Yes - specific exception paths catch expected errors and produce
Can predictable bad input fail safely?
controlled responses/logs.
Yes - assertions document internal assumptions while production
Are developer assumptions explicit?
validation remains separate.
Yes - tests cover normal, invalid, boundary, and security-relevant
Can the implementation be verified?
paths.
Yes - screenshots, logs, code references, and test names connect
Can another reviewer reproduce the claim?
clearly to the written analysis.




September 2026 alignment edition | Page 4

Document information

Uploaded on
November 23, 2026
Number of pages
42
Written in
2026/2027
Type
Other
Person
Unknown
$18.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
EvaTee
3.9
(990)
Sold
5490
Followers
3584
Items
59520
Last sold
1 day ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions