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 | |
|---|---|---|
| 1AES-256 encrypt database column | Aif (request.protocol != 'https') { reject(); } | |
| 2fetch('https://api.shop.com/orders') | Bkey = vault.get_secret('DB_KEY') | |
| 3Encryption keys must be protected by keeping them separate from the data they encrypt | CThe encryption key is hard-coded and stored beside the encrypted data, so anyone who steals the backup also gets the key. | |
| 4Defence against interception: refuse unencrypted connections and only allow encrypted ones | DData is stored unencrypted, so only data in transit is protected. Stored data at rest must be encrypted too. | |
| 5db.save(password_plaintext) // encrypt only on login page | EProtects data at rest so stolen database files or backups cannot be read without the key | |
| 6ENCRYPTION_KEY = 'abc123' // saved in app.js with the encrypted backup | FProtects data in transit because TLS encrypts the connection between client and server |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
Encryption at rest and in transit — Encrypting data both while stored (databases, backups) and while moving over a network (TLS), so intercepted or stolen data stays unreadable without the key.encrypted = ENCRYPT(record, key)
SAVE encrypted TO databaseurl = "https://shop.example.com/pay"import os
key = os.getenv("DB_KEY")IF NOT connection.encrypted THEN
BLOCK send(data)
END IFr = requests.get(url, verify=True)