Certopolis

AWS Certified CloudOps Engineer – Associate

AWS Backup cross-account copy and Vault Lock modes

The AWS Backup Developer Guide says a cross-account copy needs both accounts in the same organization in AWS Organizations, the feature enabled from the management account, and a destination vault policy that allows backup:CopyIntoBackupVault. Vault Lock then blocks deletion: governance mode can be removed with IAM permissions, compliance mode becomes immutable after its grace time.

What does a cross-account copy need?

The source and destination accounts must belong to the same organization. Cross-account backup has to be enabled first, and only the management account's credentials can enable or disable it.

The destination account needs a backup vault whose access policy allows backup:CopyIntoBackupVault. Without that statement, copies into the vault are denied. The role in the source account needs backup:CopyFromBackupVault and backup:CopyIntoBackupVault; the managed policy AWSBackupServiceRolePolicyForBackup includes both.

If the source resources are encrypted with a customer managed key, that key must be shared with the destination account. AWS Backup re-encrypts the copy with the destination vault's key.

What can and cannot be copied?

AWS Backup does not support cross-account or cross-Region copies of backups stored in cold tiers. A recovery point has to be copied while it is still in warm storage.

The first copy of a backup to a new account or a new Region is a full copy. Where the service supports incremental backups, later copies to the same destination are generally incremental. For Amazon EBS, copying to a vault that uses a different KMS key results in a full copy.

How do the two Vault Lock modes differ?

A locked vault denies any attempt to delete a backup or change its lifecycle, including attempts by the root user. Backups stay until their retention period ends. Each vault can have one lock.

In governance mode, users with sufficient IAM permissions can remove the lock. In compliance mode, the lock has a grace time of at least 3 days. During the grace time you can remove the lock with DeleteBackupVaultLockConfiguration or change it with PutBackupVaultLockConfiguration. After the grace time, no user and not AWS can change or delete the vault or the lock while the vault contains recovery points.

The API decides the mode by one parameter: including ChangeableForDays creates a compliance-mode lock, and omitting it creates a governance-mode lock.

A lock can set a minimum and a maximum retention period. New backup and copy jobs into the vault fail if their retention does not conform. The limits do not apply to recovery points that were already in the vault.

Where the exam catches people

  • Copying backups to an account outside the organization: source and destination must belong to the same organization in AWS Organizations.
  • Scheduling the cross-account copy after the move to cold storage: AWS Backup does not copy backups stored in cold tiers.
  • Believing a compliance-mode lock is fixed the moment it is created: it can be changed or removed until its grace time ends.
  • Believing governance mode stops every user: users with sufficient IAM permissions can remove a governance-mode lock.
  • Expecting a small first copy to a new Region: the first copy to a new Region or account is a full copy.

Written from these sources

Try 3 questions on this

Pick an answer to see why each option is right or wrong.

  1. A company acquired a business whose AWS account is still a member of that business's own organization in AWS Organizations. Nightly Amazon EFS recovery points must be copied from the company's production account to a vault in the acquired account. That vault's access policy allows backup:CopyIntoBackupVault from the production account, and cross-account backup is enabled in the company's management account. The copy jobs fail. Which action should the SysOps administrator take to meet this requirement?

    Right. In the game that’s Renown for your Reliability and Business Continuity building.

    Not that one: D is right. In the game your Reliability and Business Continuity building would lose a little Renown, and this question would come back later.

    Show the full explanation and doc quotes

    The one condition missing is membership, so the acquired account has to leave its old organization and join the company's before the nightly copies can succeed.

    Written from docs.aws.amazon.com/aws-backup/latest/devguide/create-cross-account-backup.html

  2. A daily AWS Backup rule in a production account backs up Amazon EFS file systems, keeps each recovery point for 400 days, and moves it to cold storage 8 days after creation. Each recovery point must also be kept for 400 days in a vault in a recovery account of the same organization, in another Region, where no principal can delete it early. Cross-account backup is enabled, and the recovery vault accepts copies from production. Which solution will meet these requirements?

    Right. In the game that’s Renown for your Reliability and Business Continuity building.

    Not that one: D is right. In the game your Reliability and Business Continuity building would lose a little Renown, and this question would come back later.

    Show the full explanation and doc quotes

    A copy action on the daily rule copies each recovery point as soon as it is created, long before day 8. And no principal may delete the copies early, which a compliance-mode lock guarantees once its grace time passes; a governance lock can be removed by anyone with enough IAM permissions.

    Written from docs.aws.amazon.com/aws-backup/latest/devguide/create-cross-account-backup.html

  3. Two days ago, a SysOps administrator locked a backup vault in compliance mode with a 14-day grace time and a maximum retention of 365 days. A new rule requires backups in that vault to be kept for 3 years, so backup jobs using a 1,100-day retention now fail. The vault must stay locked in compliance mode. Which solution will meet these requirements with the LEAST operational overhead?

    Right. In the game that’s Renown for your Reliability and Business Continuity building.

    Not that one: C is right. In the game your Reliability and Business Continuity building would lose a little Renown, and this question would come back later.

    Show the full explanation and doc quotes

    The backup jobs with 1,100-day retention then fit the lock, and no new vault or rule change is needed.

    Written from docs.aws.amazon.com/aws-backup/latest/devguide/vault-lock.html

Ask for something