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 | |
|---|---|---|
| 1role = "standard user" | AAlex's access was never removed after leaving. Access that is no longer needed should be removed. | |
| 2remove_access("Sam", "payroll") | Bif task == "install": use("admin") | |
| 3A student account is stolen, but it can only read class files, so the damage is limited. | Cpermissions = ["read"] | |
| 4Use a standard user account for daily work and an administrator account only when needed. | DThe student has admin access but only needs to read notes. Give them a standard user role instead, which follows least privilege. | |
| 5role = "administrator" # for a student who only reads notes | ETakes away access that is no longer needed, such as when someone changes jobs. | |
| 6# Alex left the team last term access = ["files", "email", "server"] | FGives the account only everyday access, which is enough for normal tasks and follows least privilege. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
principle of least privilege — Give every user, program and device only the minimum access it needs to do its job. This limits the damage if an account is stolen, and unneeded access should be removed.newUser.accountType ← standardGRANT SELECT ON students TO reportAppREVOKE ALL ON students FROM oldInternsudo apt install printer-driverchmod 600 payroll.csv