Sign inSign up free

1127. Deleting Backups Needs MFA

hard 40 XP ~15 minHands-on lab

The group tax-calc-dba has full access to the bucket tax-calc-db-backups through the inline policy backups. Security wants a stolen access key to be useless for destroying backups.

Task

Change the group's policy backups so that, for members of tax-calc-dba:

  • deleting objects in tax-calc-db-backups (s3:DeleteObject, s3:DeleteObjectVersion) is denied unless the request was signed with MFA, and also denied when the request carries no MFA information at all (plain access keys);
  • with MFA, deleting works as before;
  • everything else they do today (list, read, upload) keeps working with or without MFA.

The emulator doesn't evaluate IAM conditions, so the grader evaluates the policy document the way IAM does, for requests with and without MFA. This machine has an AWS-style account (an emulator: nothing is billed). Your AWS CLI is signed in as the account's administrator.

About this machine

Ubuntu 24.04 with no internet access. You are student with passwordless sudo. The grader checks the final state of the machine, not the commands you typed. Values like names and ports are generated for you.

Part of AWS Hands-On. Next step: Close a Public Bucket Without Breaking the App

Teaching or writing about this? Embed this lab on your page

TerminalNot started

Your machine is ready to start

A fresh, isolated Ubuntu machine boots in a few seconds with the task already set up.

No account needed: 3 of 3 free tries left. Guest machines last 30 minutes.