100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
D385_ Pre-Assessment Questions WITH 100- SURE ANSWERS $8.99   Add to cart

Exam (elaborations)

D385_ Pre-Assessment Questions WITH 100- SURE ANSWERS

 6 views  0 purchase
  • Course
  • Science
  • Institution
  • Science

D385_ Pre-Assessment Questions WITH 100- SURE ANSWERS

Preview 2 out of 5  pages

  • October 25, 2024
  • 5
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • Science
  • Science
avatar-seller
mbitheeunice2015
EUNICE




D385: Pre-Assessment Questions WITH 100% SURE
ANSWERS

Terms in this set (16)


What is the primary defense against log - sanitize outbound log messages
injection attacks?


- do not use parameterized stored
procedures in the database
- allow all users to write to these logs
- sanitize outbound log messages
- use API calls to log actions

An attacker exploits a cross-site scripting - execute a shell command or script
vulnerability.


What is the attacker able to do?


- execute a shell command or script
- access the user's data
- discover other users' credentials
- gain access to sensitive files on the server

Which Python function is prone to a - eval
potential code injection attack?


- type
- eval
- print
- append

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


- regress test
- doctest
- assert
- test




1/5

, What are two common defensive coding - develop code with exceptions to find errors
techniques?


- encrypt passwords and email submissions
- check functional preconditions and
postconditions
- adjust length and encoding of messages
- develop code with exceptions to find
errors

A security analyst is reviewing code for - type and range check
improper input validation.


Which type of input validation does this
code show?


isValidNumber = False
while not isValidNumber:
try:
pickedNumber = int(input('Pick a number
from 1 to 10'))
if pickedNumber >= 1 and pickedNumber <=
10:
isValidNumber = True
except:
print('You must enter a valid number from 1
to 10')
print('You picked the number ' +
str(pickedNumber))

Consider the following penetration test: - man-in-the-middle


import requests
urls = open("websites.txt", "r")


for url in urls:
url = url.strip()
req = requests.get(url)
print (url, 'report😂


try:transport_security = req.headers['Strict-
Transport-Security']except:print ('HSTS
header not set properly')




Which security vulnerability is shown?


- cross-site scripting
- denial of service
- code injection
- man-in-the-middle




2/5

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller mbitheeunice2015. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $8.99. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

83637 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$8.99
  • (0)
  Add to cart