Cert EspressoLearn. Practise. Find your flow.

A LITTLE FOCUS.
A BIG NEXT STEP.

Your pace. Your space.
AWS · SCS-C03

Data at rest, integrity, and backup

SCS-C03 · Lesson 18 of 22 · 2:42:02

YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗

Learning with these videos? Subscribe for new courses and exam-style questions.

In this lesson

Prepare for the SCS-C03 exam (AWS Certified Security – Specialty). In this lesson: default S3 encryption, AWS KMS and AWS CloudHSM, client-side encryption, integrity with versioning, Object Lock compliance mode, legal holds, code signing, and log file validation, lifecycle and retention for S3, EFS, and FSx, Amazon Data Lifecycle Manager, and ransomware-resistant backups with AWS Backup Vault Lock and logically air-gapped vaults. Includes three original practice questions.

Study notes

The text of this lesson, to read at your own pace. Information as of November 2026.

Nothing left to restore

A ransomware attack can encrypt data, delete the backups, and leave a company with nothing to restore. At AnyCompany Health, patient files must stay encrypted at rest, unchanged for years, and recoverable even if an administrator account is taken over. This lesson covers encryption at rest, integrity controls, lifecycle and retention, and backups that resist ransomware.

Encryption at rest

Every new object in S3 is encrypted at rest by default with SSE-S3, and you can choose SSE-KMS for keys that you control, with key policies and CloudTrail logs, or dual-layer encryption with DSSE-KMS. Server-side encryption means that the service encrypts the data when it stores it, while client-side encryption means that the data is already encrypted before it leaves your application, for example with the S3 Encryption Client, so AWS never sees it in plain text. AWS KMS keys are protected by hardware security modules validated at FIPS 140-3 level 3, and their key material never leaves KMS unencrypted. AWS CloudHSM gives you single-tenant HSMs in a cluster, with users that you manage outside IAM and full control of keys and algorithms, either for applications that call the HSMs directly, or as a key store behind KMS. And since April 2026, SSE-C, where you send your own key with each request, is disabled by default on new buckets.

Protecting integrity

S3 Versioning keeps every version of an object, so an overwrite or a deletion can be undone. S3 Object Lock, which needs versioning, stores object versions as write once, read many: in governance mode, users with a special permission can still remove the protection, while in compliance mode, nobody can delete the version before its retention date, not even the root user. A legal hold blocks deletion with no end date, until someone removes it. The original Amazon Glacier service, with vaults and Vault Lock policies that become immutable once locked, no longer accepts new customers, so new archives use the S3 Glacier storage classes with Object Lock. For code and files, Lambda code signing with AWS Signer warns about, or rejects, packages that an allowed profile did not sign, and CloudTrail log file validation uses signed digest files to prove that logs were not changed.

Lifecycle and retention

Lifecycle rules keep data only as long as it is needed, and move it to cheaper storage on the way. S3 Lifecycle rules transition objects to other storage classes, and expire them, or their old versions, after a number of days. Amazon EFS lifecycle management moves files that nobody accesses to Infrequent Access, after thirty days by default, and to Archive after ninety days, and it can move them back to Standard on their first access. Amazon FSx for Lustre takes automatic daily backups of persistent file systems that are not linked to S3, kept from zero to ninety days, where zero turns them off, while scratch file systems have no backups. And Amazon Data Lifecycle Manager creates, keeps, and deletes EBS snapshots and EBS-backed AMIs on a schedule, with copies to other Regions or accounts.

Backups that resist ransomware

AWS Backup manages backups for many services from one place: a backup plan sets the schedule, the retention, and the copies to other Regions or accounts, and in an organization, backup policies apply plans to every account. Ransomware often tries to delete the backups first, so lock the vault: with AWS Backup Vault Lock in governance mode, users with enough IAM permissions can still remove the lock, while in compliance mode, once its grace time ends, the lock becomes immutable, and the vault cannot be deleted while it holds recovery points. A logically air-gapped vault is locked in compliance mode, encrypted with an AWS owned key by default, and can be shared with a recovery account through AWS RAM, so that you can restore even if your own account is compromised. Keep backups in a separate account, and test your restores, because a backup that nobody has restored is only a hope. And to move large data sets between your own storage and AWS, AWS DataSync encrypts data in transit, and validates its integrity after the transfer.

Recap

Let's recap. S3 encrypts new objects by default, KMS keeps keys in managed HSMs, CloudHSM gives you single-tenant HSMs, and client-side encryption protects data before it leaves your application. Versioning, Object Lock in compliance mode, legal holds, code signing, and log file validation protect integrity. Lifecycle rules for S3 and EFS, FSx for Lustre backups, and Data Lifecycle Manager keep data only as long as it is needed. And AWS Backup with Vault Lock, logically air-gapped vaults, and tested restores resist ransomware.

Quick checks for this lesson

The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.

  1. Lab reports in S3 must be kept for seven years, and nobody, not even the root user, may delete them before that date. What should the team configure?

    • Object Lock in governance mode
    • Versioning with MFA delete
    • Object Lock in compliance mode
    • A bucket policy that denies every delete
    Show the answer

    Object Lock in compliance mode

    In compliance mode, no user can delete the version or shorten its retention, not even the root user. “Object Lock in governance mode” would let users with the bypass permission remove the protection. “Versioning with MFA delete” makes deletions harder, but it sets no retention date. And “A bucket policy that denies every delete” could be changed by any administrator who can edit the bucket policy.

  2. A research team runs a persistent FSx for Lustre file system, not linked to S3. They want a backup every day, kept for 30 days, with no extra service. What should they configure?

    • Automatic daily backups, kept 30 days
    • An S3 Lifecycle rule for the file system
    • A Data Lifecycle Manager snapshot policy
    • A scratch file system with backups on
    Show the answer

    Automatic daily backups, kept 30 days

    Automatic daily backups of a persistent file system can be kept from zero to ninety days. “An S3 Lifecycle rule for the file system” is for S3 objects, not for file systems. “A Data Lifecycle Manager snapshot policy” manages EBS snapshots and AMIs. And “A scratch file system with backups on” cannot work, because scratch file systems have no backups.

  3. AnyCompany Health wants backups that a stolen administrator account in production cannot delete, and a way to restore them from a separate recovery account. What should the team use?

    • Vault Lock in governance mode
    • Daily EBS snapshots in the same account
    • S3 Versioning on an export bucket
    • A logically air-gapped vault, shared
    Show the answer

    A logically air-gapped vault, shared

    A logically air-gapped vault is locked in compliance mode, and sharing it with a recovery account lets you restore without the compromised account. “Vault Lock in governance mode” can be removed by an administrator with enough permissions. “Daily EBS snapshots in the same account” leaves the snapshots where the attacker can delete them. And “S3 Versioning on an export bucket” keeps old versions, which an administrator of that account can still delete.