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

D385 Software Security and Testing UPDATED ACTUAL Questions and CORRECT Answers

Document preview thumbnail
Preview 3 out of 16 pages

D385 Software Security and Testing UPDATED ACTUAL Questions and CORRECT Answers

Content preview

D385 Software Security and Testing
UPDATED ACTUAL Questions and
CORRECT Answers
Sanitize outbound log messages - CORRECT ANSWER -What is the primary defense
against log injection attacks?


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


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


Check functional preconditions and postconditions - CORRECT ANSWER -What are two
common defensive coding techniques?


test - CORRECT ANSWER -Which package is meant for internal use by Python for
regression testing?


type() - CORRECT ANSWER -Which Python function is used for input validation?



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


Implement resource and field-level access control - CORRECT ANSWER -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?


Exploiting query parameters - CORRECT ANSWER -Which method is used for a SQL
injection attack?


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


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


MSAL - CORRECT ANSWER -Which protocol caches a token after it has been acquired?



200 - CORRECT ANSWER -OK - Your request was successful



201 - CORRECT ANSWER -CREATED - Your request was accepted, and the resource
was created


400 - CORRECT ANSWER -BAD REQUEST - Your request is either wrong or missing
information


401 - CORRECT ANSWER -UNAUTHORIZED - Your request requires additional
permissions


403 - CORRECT ANSWER -FORBIDDEN - website can be reached, but more
permissions needed before accessing further

, 404 - CORRECT ANSWER -NOT FOUND - The requested resource does not exist



405 - CORRECT ANSWER -METHOD NOT ALLOWED - The endpoint does not allow
for that specific HTTP method


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


Content-Type (header) - CORRECT ANSWER -What type of content the server will
respond with


Accept (header) - CORRECT ANSWER -What type of content the client can accept



Server (header) - CORRECT ANSWER -What software the server is using to
communicate with the client


User-Agent (header) - CORRECT ANSWER -What software the client is using to
communicate with the server


Authentication (header) - CORRECT ANSWER -Who's calling the API and what
credentials they have


validate() - CORRECT ANSWER -Which Python function is used to protect against log
injection attacks?


Cross Site Scripting (XSS) - CORRECT ANSWER -A user masquerades as other users,
what type of attack was used?


SQL Injection - CORRECT ANSWER -Exploiting query parameters is an example of
what attack?

Document information

Uploaded on
November 9, 2025
Number of pages
16
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$12.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.
STANFORDGRADESS
4.0
(239)
Sold
1595
Followers
108
Items
115164
Last sold
7 hours 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