• 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 50 pages
Exam (elaborations)

WGU D385 Task 1 Performance Assessment | Software Security and Testing, Static Analysis, Python Logging & Unit Tests | Complete Report | Questions with Correct Answers & Detailed Rationales 2026

Document preview thumbnail
Preview 4 out of 50 pages

Master WGU D385 Software Security and Testing with Complete Performance Assessment Review! This comprehensive study guide contains 80 carefully selected practice questions covering all major topics for WGU D385 Task 1 Performance Assessment — all with correct answers and detailed rationales. Perfect for WGU students or anyone studying software security, Python logging, unit testing, and static analysis. What's Inside: - 80 questions with correct answers - Detailed rationales explaining each correct answer - "Why the other answers are wrong" explanations for every distractor - Reference citations per question for further verification - Covers Software Security Testing - Static Analysis Techniques - Python Logging Configuration - Unit Testing with unittest and pytest - Secure Coding Practices - Vulnerability Assessment - SQL Injection, XSS, and Command Injection Prevention - Mocking and Test Doubles - Works on phone, tablet, or computer What You'll Actually Learn: - Software Security Testing Fundamentals - Static Analysis Tools and Techniques - Python Logging Configuration and Best Practices - Unit Testing with unittest and pytest - Secure Coding Practices - Vulnerability Assessment and Mitigation - SQL Injection Prevention - Cross-Site Scripting (XSS) Prevention - Command Injection Prevention - Mocking and Test Doubles - Exception Handling and Logging - Secure Software Development Lifecycle (SSDLC) - Supply Chain Security Why This Guide Works: - Every question includes a clear, detailed rationale explaining the correct answer - Each incorrect answer includes a "Why the other answers are wrong" explanation - References are provided for each question for further verification - Understand the "why" behind each concept, not just the correct letter - Learn the reasoning so you can apply it to any exam question - Complete D385 Task 1 review with 100% correct answers Who This Is For: - You, if you're taking D385 at WGU - You, if you're studying software security or testing at any university - You, if you have a performance assessment coming up - You, if you want to study smarter, not harder Stop stressing. Start passing. Download this now and walk into your exam actually prepared.

Content preview

WGU D385 TASK 1 PERFORMANCE ASSESSMENT | SOFTWARE
SECURITY AND TESTING, STATIC ANALYSIS, PYTHON
LOGGING & UNIT TESTS | COMPLETE REPORT | 2026 UPDATED.
80 Questions with Answers and Detailed Rationales


100 PERCENT GUARANTEED PASS


INSTANT DOWNLOAD ANSWERS INCLUDED



IMPORTANCE OF THIS DOCUMENT
This comprehensive examination preparation guide has been meticulously developed to help you succeed in the
WGU D385 TASK 1 PERFORMANCE ASSESSMENT | SOFTWARE SECURITY AND TESTING, STATIC
ANALYSIS, PYTHON LOGGING & UNIT TESTS | COMPLETE REPORT | 2026 UPDATED.. It contains 80
carefully selected questions that reflect the most current exam content and testing strategies. Each question is
accompanied by a correct answer and a detailed rationale that explains the underlying pathophysiology,
pharmacology, or clinical reasoning.

Self-Assessment – Test your knowledge and Exam Preparation – Familiarize yourself with the
identify areas requiring further question format and content
study areas

Concept Reinforcement – Deepen your Confidence Building – Develop test-taking
understanding through strategies and reduce
evidence-based exam anxiety
rationales
Time Management – Practice answering
questions under simulated
exam conditions




Review Summary 80 Questions


Foundations - Application - WGU D385 TASK 1 Performance Assessment Software Security AND Testing
Static Analysis Python Logging & UNIT Tests Complete Report 2026 Updated WGU D385 TASK 1
Performance Assessment Software Security AND Testing Static Analysis Python Logging & UNIT Tests
Complete Report 2026 Updated University
All answers with rationales

,Table of Contents

Content Area Questions Key Topics

Software Security Testing 1-14 Python, Application, Function, Approach, Logging


Static Analysis 15-28 Python, Logging, Security, Application, Developer


Python Logging 29-42 Python, Static Analysis, Logging, Vulnerability, Function


UNIT Tests 43-56 Python, Security, Input, Logging, Ensure


Secure Coding Practices 57-70 Analysis, Python, Logging, Function, Security


Vulnerability Assessment 71-80 Python, Developer, Logging, Approach, Function


TOTAL 80 All questions include answers and detailed rationales

,Section A - Software Security Testing

Q1.
In a Python unit test suite, you need to verify that a function logs an ERROR when a retry
limit is exceeded. Which approach best ensures the test is isolated and does not depend
on logging configuration?


A. Use assertLogs to capture log records B. Mock logging.getLogger and assert the
and assert on the message. mock's error method was called.

C. Configure a FileHandler and read the log D. Replace the logger with a custom object
file after the test. that records calls.
Correct: A - Use assertLogs to capture log records and assert on the message.


Rationale:assertLogs is the built-in, recommended way to test logging messages within a
test, as it sets up a handler and captures records without affecting global logging
configuration. Mocking the logger or using a file handler can be fragile and couples the test to
implementation details.
Why the other answers are wrong:
B. Mocking the logger only checks that the logging call was made, not the actual message
content or level.
C. Writing to a file introduces I/O dependencies and requires cleanup, making tests slower and
less reliable.
D. Replacing the logger with a custom object is possible but bypasses the standard logging
machinery and may miss integration issues.
Reference: Python Standard Library, unittest - assertLogs


Q2.
During a static analysis review of a Python web application, you encounter a SQL query
built using f-strings with user input. Which class of vulnerability is this and what is the
most effective mitigation?


A. SQL injection; use parameterized queries B. Cross-site scripting; escape all output.
with placeholders.

C. Command injection; validate input D. Path traversal; sanitize the input with
against a whitelist. os.path.basename.
Correct: A - SQL injection; use parameterized queries with placeholders.


Rationale:Embedding user input directly into SQL via f-strings creates SQL injection
vulnerabilities. Parameterized queries (or prepared statements) separate SQL logic from data,
preventing injection.




Page 3

, Section A - Software Security Testing

Why the other answers are wrong:

B. XSS involves injecting client-side scripts into web pages, not SQL queries.

C. Command injection occurs when user input is passed to system commands, not SQL.

D. Path traversal is about file system access, not database queries.

Reference: OWASP Top 10 2021 - A03: Injection


Q3.
In a Python application, you need to configure logging to write to both the console and a
rotating file. Which logging configuration achieves this?


A. Create two handlers (StreamHandler and B. Set up a single handler that logs to a file
RotatingFileHandler) and add both to the and use print statements for console output.
root logger.

C. Use logging.basicConfig to set a file D. Create two loggers, one for console and
name and then add a StreamHandler to the one for file, and log to both manually.
same logger.
Correct: A - Create two handlers (StreamHandler and RotatingFileHandler) and add both to
the root logger.


Rationale:The standard approach is to attach multiple handlers to a logger. StreamHandler
writes to the console, and RotatingFileHandler writes to a file with rotation. Both can be added
to the root logger or a named logger.
Why the other answers are wrong:
B. Using print statements bypasses the logging framework, losing log levels and formatting.
C. basicConfig only configures a single handler; adding another requires manual handler
creation.
D. Using two loggers would require duplicating log calls and does not allow a single logger to
have multiple outputs.
Reference: Python Logging Cookbook - Multiple handlers


Q4.
When performing a static analysis security review, which finding is most likely a false
positive that requires manual verification?


A. A tainted variable reaching a dangerous B. A hardcoded password detected in
sink without sanitization. source code.

C. A potential SQL injection where the input D. An insecure cryptographic algorithm such
is actually sanitized by an ORM. as MD5 being used for password hashing.
Correct: C - A potential SQL injection where the input is actually sanitized by an ORM.




Page 4

Document information

Uploaded on
September 5, 2026
Number of pages
50
Written in
2026/2027
Type
Exam (elaborations)
Contains
Questions & answers
$16.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.
ProfReginaBank
4.4
(5)
Sold
31
Followers
2
Items
2399
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