Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 2 out of 11 pages
Exam (elaborations)

D385 SOFTWARE SECURITY AND TESTING UPDATED ACTUAL QUESTIONS AND CORRECT ANSWERS

Document preview thumbnail
Preview 2 out of 11 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

Question:
1. What is the primary defense against log injection attacks?
Answer:
Sanitize outbound log messages

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

Question:
3. Which Python function is prone to a potential code injection attack?
Answer:
eval()

Question:
4. What are two common defensive coding techniques?
Answer:
Check functional preconditions and postconditions

Question:
5. Which package is meant for internal use by Python for regression testing?
Answer:
test

Question:
6. Which Python function is used for input validation?
Answer:
type()

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

Question:
8. 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?
Answer:
Implement resource and field-level access control

, Question:
9. Which method is used for a SQL injection attack?
Answer:
Exploiting query parameters

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

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

Question:
12. Which protocol caches a token after it has been acquired?
Answer:
MSAL

Question:
13. OK - Your request was successful
Answer:
200

Question:
14. CREATED - Your request was accepted, and the resource was created
Answer:
201

Question:
15. BAD REQUEST - Your request is either wrong or missing information
Answer:
400

Question:
16. UNAUTHORIZED - Your request requires additional permissions
Answer:
401

Question:
17. FORBIDDEN - website can be reached, but more permissions needed before accessing further
Answer:
403

Document information

Uploaded on
September 5, 2026
Number of pages
11
Written in
2026/2027
Type
Exam (elaborations)
Contains
Questions & answers
$13.49

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.
STANFORDGENIUS
4.0
(236)
Sold
1562
Followers
108
Items
113323
Last sold
1 hour 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