WGU D385 | PRE-ASSESSMENT | QUESTIONS WITH VERIFIED
ANSWERS
Correct 39
Incorrect 00
1 of 39
Term
Which protocol caches a token after it has been acquired?
Give this one a try later!
OAUTH ACL
MSAL SAML
Don't know?
2 of 39
Term
,#check if the length of the password is at least 8 characters
if __name__ == '__main__':
password = input()
#write an if / else statement to evaluate passwords length
Give this one a try later!
if x is None:
print("x is a null value")
return y
elif y is None:
print("y is a null value")
return x
else:
return x * y
if(len(password) >= 8):
print("Your password is long enough.")
else:
print("Your password is too short.")
Implement resource and field-level access control
,if num in r:
print("The number input is in the range from 1 and 10.")
else:
print("The number input is not in the range from 1 and
, 3 of 39
Term
def hash_password(pwd):
# encode password string to bytes
enc_pwd = pwd.encode()
# call the sha256(...) function returns a hash object
d = hashlib.sha256(enc_pwd)
# generate binary hash of password string in hexidecimal
hash = d.digest()
return hash
if __name__ == '__main__':
pwd = input()
print(hash_password(pwd))
Give this one a try later!
d = hashlib.sha3_256(enc_pwd)
encrypted_text =
cipher.encrypt(plain_text)
hash = d.hexdigest()
zipcode = int(zipcode) ok
ANSWERS
Correct 39
Incorrect 00
1 of 39
Term
Which protocol caches a token after it has been acquired?
Give this one a try later!
OAUTH ACL
MSAL SAML
Don't know?
2 of 39
Term
,#check if the length of the password is at least 8 characters
if __name__ == '__main__':
password = input()
#write an if / else statement to evaluate passwords length
Give this one a try later!
if x is None:
print("x is a null value")
return y
elif y is None:
print("y is a null value")
return x
else:
return x * y
if(len(password) >= 8):
print("Your password is long enough.")
else:
print("Your password is too short.")
Implement resource and field-level access control
,if num in r:
print("The number input is in the range from 1 and 10.")
else:
print("The number input is not in the range from 1 and
, 3 of 39
Term
def hash_password(pwd):
# encode password string to bytes
enc_pwd = pwd.encode()
# call the sha256(...) function returns a hash object
d = hashlib.sha256(enc_pwd)
# generate binary hash of password string in hexidecimal
hash = d.digest()
return hash
if __name__ == '__main__':
pwd = input()
print(hash_password(pwd))
Give this one a try later!
d = hashlib.sha3_256(enc_pwd)
encrypted_text =
cipher.encrypt(plain_text)
hash = d.hexdigest()
zipcode = int(zipcode) ok