100% tevredenheidsgarantie Direct beschikbaar na je betaling Lees online óf als PDF Geen vaste maandelijkse kosten 4.2 TrustPilot
logo-home
Tentamen (uitwerkingen)

D385 - Software and Security Testing WGU Questions & Answers

Beoordeling
-
Verkocht
-
Pagina's
18
Cijfer
A+
Geüpload op
24-03-2025
Geschreven in
2024/2025

Which Python function is prone to a potential code injection attack? - eval() How do you prevent log injection? - validate() What are two common defensive coding techniques? - Check functional preconditions and postconditions What is checking functional preconditions and post conditions best practice for? - Defensive Coding What happens when an attacker exploits a cross-site scripting vulnerability? - Access to the User's data A user masquerades as (or pretends to be) another user. What type of attack is this? - Cross-Site Scripting Which method is used for a SQL injection

Meer zien Lees minder
Instelling
D385
Vak
D385










Oeps! We kunnen je document nu niet laden. Probeer het nog eens of neem contact op met support.

Geschreven voor

Instelling
D385
Vak
D385

Documentinformatie

Geüpload op
24 maart 2025
Aantal pagina's
18
Geschreven in
2024/2025
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

Voorbeeld van de inhoud

D385: Logging and Security Issues Practice Written Exam
| Questions & Answers 2025
What are some common debugging techniques? - ✔✔✔- printing out values of variables

- changing the state ("path") of the program to make it do different things

- stepping through the execution of a program line by line

- breakpoints

- trace points

- stopping the program at certain events

- viewing the output of a program in a debugger window



What are some Python debugging tools? - ✔✔✔- pdb: most commonly used

- Web-PDB

- wdb

- Pyflame

- objgraph



XML External Entity Attacks - ✔✔✔- XXE

- when attackers exploit an XML parser to read arbitrary files on your server

- attackers might also be able to read config files, retrieve user information



Insecure Deserialization - ✔✔✔- serialization is the conversion of an object in a programming language
is saved into a format that can be saved to a database

- DEserialization is when a serialized object is read from a file or the network and converted back into an
object

- INSECURE DESERIALIZATION occurs when an attacker can manipulate the serialized object and achieve
authentication bypass, DOS, or arbitrary code execution



Injection Attacks - ✔✔✔- when an application cannot properly distinguish between untrusted user data
and code

,- typically allows for arbitrary code execution



SQL Injection Attack Mitigation - ✔✔✔- use parameterized statements



Log Injection Attack Mitigation - ✔✔✔- prefixing log entries with meta-data (i.e. timestamp)

- validate the entry before accessing or opening



Sensitive Data Leaks - ✔✔✔- occurs when an application fails to properly protect sensitive information

- this typically occurs through descriptive response headers, descriptive error messages with stack traces
or database error messages, or revealing comments in HTML files



Cross-site Request Forgery - ✔✔✔- client-side technique used to attack other users of a web application

- attackers send HTTP requests that pretend to come from the victim

- attackers then carry out unwanted actions such as changing a password or transferring money from a
bank account



CSRF Mitigation - ✔✔✔- CSRF tokens

- SameSite cookies

- avoid using GET requests for state-changing actions



SSRF - ✔✔✔- Server-side Request Forgery

- attacker us able to send requests on behalf of the server

- allows attackers to forge the request signature and assume a privileged position on a network,
bypassing firewall controls, and gaining access to internal services



SSRF Mitigation - ✔✔✔- never make outbound requests based on user input

- validate external addresses before initiating any outbound requests



PDB - ✔✔✔- debugger built into the Python standard library

, Which three actions are supported by the Python Debugger (PDB)? (Choose 3 answers.) - ✔✔✔-
establishing breakpoints

- code step throughs

- stack tracing



Which three debugging techniques require the use of a debugger? (Choose 3 answers.) - ✔✔✔- trace
points

- breakpoints

- code step through



What do system monitoring and review of audit trails provide? - ✔✔✔- Accountability



What are the logging levels and values? - ✔✔✔- DEBUG = 10

- INFO = 20

- WARNING = 30

- ERROR = 40

- CRITICAL = 50



Which logging function may indicate an impending full disk? - ✔✔✔- WARNING

- indicates that there could be a problem in the immediate future



What does DEBUG indicate? - ✔✔✔- only used when diagnosing software problems



What does CRITICAL indicate? - ✔✔✔- indicates catastrophic code malfunction



What does ERROR indicate? - ✔✔✔- indicates code malfunction



What is defensive programming? - ✔✔✔- assuming mistakes will happen and guarding against them
€6,99
Krijg toegang tot het volledige document:

100% tevredenheidsgarantie
Direct beschikbaar na je betaling
Lees online óf als PDF
Geen vaste maandelijkse kosten

Maak kennis met de verkoper
Seller avatar
RISEPREP

Maak kennis met de verkoper

Seller avatar
RISEPREP Oxford University
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
1
Lid sinds
1 jaar
Aantal volgers
1
Documenten
354
Laatst verkocht
1 maand geleden
Get Quality of Document

Hello I'm a passionate and experienced online tutor. I offer support to help students succeed. you can access study materials, notes, and guides to help you excel academically I am hear to help you. review so as to know the quality of service offered & to better improve your expirience. thank you and welcome back. BONUS! BONUS! BONUS! For every student you refer to me with an order that is completed and paid transparently, I will give you one free study document you need or do one assignment for you, free of charge!Thank you Very much for the purchase Kindly leave a Review to help know the Quality of Document and those who have reviewed thanks again

Lees meer Lees minder
0,0

0 beoordelingen

5
0
4
0
3
0
2
0
1
0

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Veelgestelde vragen