teluzia.Cloud Engineer · Day 63
CHAPTER 09 · STORAGE AND DATABASES

Week 9 review, recall and recovery

30–90 min including independent practice3 topicsRecall, catch-up, or rest
LET’S MAKE THIS SIMPLE

What you’re learning today

Audit the week’s storage choices against access pattern and recovery requirements. Reproduce one safe local SDK test and review any learner-created sandbox cleanup. A backup, replica, shared mount and cache each solve different problems and should not be described as interchangeable copies. S3 provides objects and versions, EFS shared file semantics, and EBS block devices. Versioned deletion can hide an object through a marker while retaining billed versions. Replication is asynchronous and scoped, and live rules do not automatically backfill all existing objects. Lifecycle controls must address current and noncurrent history separately. RDS/Aurora deployment and endpoint choices differ, backups restore a chosen point, and high availability does not undo logical deletion. DynamoDB keys define efficient access and conditional writes protect state. ElastiCache needs TTL and invalidation policy. Define RPO/RTO and verify actual data after restore or cache loss.

Think of it this way

This review is a practical inspection bench for versioned objects, replication, shared files, recovery, keyed data, caches and boto3: explain, reproduce, break safely, diagnose and verify.

TOPIC 01 / 03Step by step

Storage semantics and object history

S3 provides objects and versions, EFS shared file semantics, and EBS block devices. Versioned deletion can hide an object through a marker while retaining billed versions. Replication is asynchronous and scoped, and live rules do not automatically backfill all existing objects. Lifecycle controls must address current and noncurrent history separately. A normal list can look empty while list-object-versions reveals old content; two EFS clients share file access but two unrelated EBS volumes do not automatically share a file. Matching semantics to need prevents incorrect application assumptions and makes recovery and teardown scope explicit for each service rather than relying on a single delete or copy concept across all storage types. Do not call a versioned bucket empty after ordinary deletion or replication immutable backup; inspect retained history, permissions, rule scope and deletion behavior before making those claims.

WORKED EXAMPLE
A normal list can look empty while list-object-versions reveals old content; two EFS clients share file access but two unrelated EBS volumes do not automatically share a file.
Why this matters

Matching semantics to need prevents incorrect application assumptions and makes recovery and teardown scope explicit for each service rather than relying on a single delete or copy concept across all storage types.

A common trap

Do not call a versioned bucket empty after ordinary deletion or replication immutable backup; inspect retained history, permissions, rule scope and deletion behavior before making those claims.

Read all topics in this lesson

A complete reference to revisit alongside the guided steps above.

Storage semantics and object history

S3 provides objects and versions, EFS shared file semantics, and EBS block devices. Versioned deletion can hide an object through a marker while retaining billed versions. Replication is asynchronous and scoped, and live rules do not automatically backfill all existing objects. Lifecycle controls must address current and noncurrent history separately. A normal list can look empty while list-object-versions reveals old content; two EFS clients share file access but two unrelated EBS volumes do not automatically share a file. Matching semantics to need prevents incorrect application assumptions and makes recovery and teardown scope explicit for each service rather than relying on a single delete or copy concept across all storage types. Do not call a versioned bucket empty after ordinary deletion or replication immutable backup; inspect retained history, permissions, rule scope and deletion behavior before making those claims.

WORKED EXAMPLE
A normal list can look empty while list-object-versions reveals old content; two EFS clients share file access but two unrelated EBS volumes do not automatically share a file.

Why this matters

Matching semantics to need prevents incorrect application assumptions and makes recovery and teardown scope explicit for each service rather than relying on a single delete or copy concept across all storage types.

A common trap

Do not call a versioned bucket empty after ordinary deletion or replication immutable backup; inspect retained history, permissions, rule scope and deletion behavior before making those claims.

Database, key and cache recovery

RDS/Aurora deployment and endpoint choices differ, backups restore a chosen point, and high availability does not undo logical deletion. DynamoDB keys define efficient access and conditional writes protect state. ElastiCache needs TTL and invalidation policy. Define RPO/RTO and verify actual data after restore or cache loss. A snapshot restored before a third row was inserted correctly contains two rows; a cached service status can remain stale until refresh even after the authoritative item changed. Distinct authoritative and recovery roles keep data correctness visible and let you explain which source is trusted when replicas, backups and cached values disagree during a controlled failure or restore drill. Do not use a cache as the only durable record by accident or replace a DynamoDB item to edit one field; apply the intended partial-update and freshness contract explicitly.

WORKED EXAMPLE
A snapshot restored before a third row was inserted correctly contains two rows; a cached service status can remain stale until refresh even after the authoritative item changed.

Why this matters

Distinct authoritative and recovery roles keep data correctness visible and let you explain which source is trusted when replicas, backups and cached values disagree during a controlled failure or restore drill.

A common trap

Do not use a cache as the only durable record by accident or replace a DynamoDB item to edit one field; apply the intended partial-update and freshness contract explicitly.

Automation evidence and cleanup

Boto3 uses session context, API contracts and pagination. Stubber tests validate expected operations and simulated response handling, not real IAM access or deployed success. Empty results differ from access-denied failures. Plan mode should separate proposed mutation from execution. Cleanup needs version-aware storage and independent retained-backup inventory. A two-page stub confirms continuation-token handling; an AccessDenied stub must produce failure rather than an empty-success inventory that could trigger unsafe deletion decisions in a later execute mode. Evidence-aware automation prevents incomplete discovery from being mistaken for absent resources and ensures a local passing test is accurately reported as local rather than exaggerated into live cloud validation. Do not assume every AWS API has native dry-run or that a stopped test client removes EFS, snapshots or S3 versions; verify exact resources and retained state in their actual service inventories.

WORKED EXAMPLE
A two-page stub confirms continuation-token handling; an AccessDenied stub must produce failure rather than an empty-success inventory that could trigger unsafe deletion decisions in a later execute mode.

Why this matters

Evidence-aware automation prevents incomplete discovery from being mistaken for absent resources and ensures a local passing test is accurately reported as local rather than exaggerated into live cloud validation.

A common trap

Do not assume every AWS API has native dry-run or that a stopped test client removes EFS, snapshots or S3 versions; verify exact resources and retained state in their actual service inventories.

KEEP THESE WITH YOU

Today’s takeaways

Choose interfaces by access semantics.

Separate authoritative, replica, backup and cache roles.

Verify retained resources and evidence scope.

CLOSE THE LOOP

Ready to complete this day?

Verify your recall or recovery steps, then finish this review day.

Lab steps verifiedReview day: quiz optional