Escrito por estudiantes que aprobaron Inmediatamente disponible después del pago Leer en línea o como PDF ¿Documento equivocado? Cámbialo gratis 4,6 TrustPilot
logo-home
Document preview thumbnail
Vista previa 4 fuera de 35 páginas
Examen

WGU D385 PRE-ASSESSMENT QUESTIONS WITH VERIFIED ANSWERS

Document preview thumbnail
Vista previa 4 fuera de 35 páginas

WGU D385 PRE-ASSESSMENT QUESTIONS WITH VERIFIED ANSWERS

Vista previa del contenido

WGU D385| PRE-ASSESSMENT | QUESTIONS WITH VERIFIED
ANSWERS


Correct 30

Incorrect 00




1 of 30

Term



An attacker exploits a cross-site scripting vulnerability. What is the
attacker able to do?



Give this one a try later!



Access the user's data Execute a shell command or script




Gain access to sensitive files on the
Discover other users' credentials
server


Don't know?




2 of 30

,Term



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?

Give this one a try later!



Remove IsAdmin from the
Encrypt the incoming request
endpoint




Implement resource and field-level Ensure incoming requests are rate-
access control limited


Don't know?




3 of 30

Term



DOS attacks on network traffic are on the rise. In this lab, use AES
encryption to ensure your TCP is not vulnerable. Using the provided

,template code, fix the encrypt function which should pass the
plain_text to be encrypted. Use line 15 in the templated code to
encrypt the variable input cipher.


Give this one a try later!



if __name__ == '__main__':


zipCode = input()


if zipCode.isdigit():
print(f'Your zip code is {zipCode}.')
else:
print('Please use numeric digits for the zip code.')


OR

try:
# Attempt to convert the input to an integer
int(zipCode)
print(f'Your zip code is {zipCode}.')
except ValueError:
print('Please use numeric digits for the zip code.')




def multiply_numbers(x, y):
if x is None: print("x is a null value")
else: print(f"{x} is not None")
if y is None: print("y is a null value")
else: print(f"{y} is not None")
# Check for None values before attempting multiplication
if x is not None and y is not None: return x * y
else: return None

, def encrypt(self, plain_text):

plain_text = self.__pad(plain_text)


counter = self.block_size.to_bytes(self.block_size, "big")


cipher = AES.new(self.key, AES.MODE_CTR, counter=lambda: counter)


encrypted_text = cipher.encrypt(plain_text.encode())
# This line fixes the issue


return b64encode(counter + encrypted_text).decode("utf-8")

def CelciusToFahrenheit(Temperature):
# Insert assert statement for "Colder than zero degrees Celsius!"
assert Temperature >= 0, "Colder than zero degrees Celsius!"
return ((Temperature*9)/5)+32


Don't know?




4 of 30

Term


An attacker was able to get access to sensitive information. Fix the
templated code provided below to make it more secure. Sample Input:
"Jane Doe " If the code is not fixed properly, the
output to the console will be: "The secret is 'you've just exposed your
secret_key'" Alternatively, when the code is fixed properly the output to
the console should be: "Hello, my name is Jane Doe." Hint: Python
objects can access internal attributes, including a dictionary of global
variables. You can eliminate such vulnerabilities by avoiding invalidated
user inputs. Create a string template object to create simplified syntax
for output specification and then map that object with the keyword

Información del documento

Subido en
7 de agosto de 2026
Número de páginas
35
Escrito en
2026/2027
Tipo
Examen
Contiene
Preguntas y respuestas
$13.99

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
GEEKA
3.8
(362)
Vendido
2142
Seguidores
1448
Artículos
59050
Última venta
2 días hace



Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes