• 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 2 out of 13 pages
Exam (elaborations)

WGU D385 Software Security And Testing - Questions With Accurate Solutions (A+)

Document preview thumbnail
Preview 2 out of 13 pages

WGU D385 Software Security And Testing - Questions With Accurate Solutions (A+)

Content preview

WGU D385 Software Security And Testing - Questions
With Accurate Solutions (A+)

What is the primary defense against log injection attacks? Correct Answer -
Sanitize outbound log messages

An attacker exploits a cross-site scripting vulnerability. What is the attacker
able to do? Correct Answer - Access the user's data

Which Python function is prone to a potential code injection attack? Correct
Answer - eval()

What are two common defensive coding techniques? Correct Answer -
Check functional preconditions and postconditions

Which package is meant for internal use by Python for regression testing?
Correct Answer - test

Which Python function is used for input validation? Correct Answer -
type()

A security analyst has noticed a vulnerability in which an attacker took over
multiple users' accounts. Which vulnerability did the security analyst
encounter? Correct Answer - Broken access control

When creating a new user, an administrator must submit the following fields
to an API endpoint:

Name
Email Address
Password
IsAdmin

What is the best way to ensure the API is protected against privilege
escalation? Correct Answer - Implement resource and field-level access
control

, Which method is used for a SQL injection attack? Correct Answer -
Exploiting query parameters

Which response method, when sent a request, returns information about the
server's response and is delivered back to the console? Correct Answer -
response.content

What does cross-origin resource sharing (CORS) allow users to do? Correct
Answer - Override same starting policy for specific resources

Which protocol caches a token after it has been acquired? Correct Answer -
MSAL

OK - Your request was successful Correct Answer - 200

CREATED - Your request was accepted, and the resource was created
Correct Answer - 201

BAD REQUEST - Your request is either wrong or missing information
Correct Answer - 400

UNAUTHORIZED - Your request requires additional permissions Correct
Answer - 401

FORBIDDEN - website can be reached, but more permissions needed before
accessing further Correct Answer - 403

NOT FOUND - The requested resource does not exist Correct Answer - 404

METHOD NOT ALLOWED - The endpoint does not allow for that specific HTTP
method Correct Answer - 405

INTERNAL SERVER ERROR - Your request was not expected and probably
broke something on the server side Correct Answer - 500

What type of content the server will respond with Correct Answer -
Content-Type (header)

Document information

Uploaded on
April 16, 2025
Number of pages
13
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$10.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.
StudyHall
3.8
(231)
Sold
1349
Followers
825
Items
17224
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