Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1otp = generate_otp() | AGranting access only when both factors are verified | |
| 2if password_ok and otp_ok: | BThe mistake: using a fixed, predictable one-time code | |
| 3MFA adds a second verification step beyond the password | Cverify_otp(code, otp_correct) | |
| 4A code sent to a trusted device is a common MFA factor | DGenerating a one-time code for the second factor | |
| 5skip_otp = True | EThe mistake: bypassing the OTP check, disabling MFA | |
| 6otp = "000000" | Fsend_otp(user, otp) |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
Multi-factor authentication — A login method that requires two or more independent proofs of identity, such as a password plus a one-time code.otp = get_otp_code()if passwordOk and otpOk:verify_otp(code, otp_correct)mfa_enabled = Trueauthenticate(password, otp)