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 | |
|---|---|---|
| 1password = "admin123" | Ahashed = hash(password) | |
| 2log(password) | BThe mistake: leaving a default hardcoded admin credential in place | |
| 3Hashing turns a password into a value that can't easily be reversed | CWriting a raw credential into logs, exposing it | |
| 4Loading a secret from a secure vault instead of hardcoding it | DStoring a plaintext password directly in code | |
| 5password = username | EThe mistake: reusing the username as the password value | |
| 6admin_pw = "admin" | Fapi_key = load_secret() |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
Improper credential management — When passwords, keys or tokens are stored, shared or reused insecurely, letting attackers steal them and gain unauthorised access.password = "Summer2023"api_key = "12345-ABCDE"secret_key = "mysecret"token = "eyJhbGciOiJIUzI1NiJ9"username = "admin"
password = username