CertNote/ Commute Study Notes
Roadmap
KOEN
CLF-C02 · FoundationalCloud Practitioner - Foundational
DVA-C02 · AssociateDeveloper - Associate
SAA-C03 · AssociateSolutions Architect - Associate
SOA-C02 · AssociateCloudOps Engineer - Associate
  • Week 1
    • 1.AWS Infrastructure Through an Operator's Eyes: Regions, AZs, and the Boundary of Responsibility
    • 2.IAM Operator's Manual: Users, Groups, Roles, Policy Evaluation Algorithm
    • 3.Advanced IAM: Building Guardrails with Permission Boundary, SCP, and Identity Center
    • 4.AWS Organizations: How One Person Operates 100 Accounts
    • 5.Week 1 Consolidated Review: Revisiting the First Week Through Operator Scenarios
  • Week 2
  • Week 3
  • Week 4
  • Week 5
  • Week 6
  • Week 7
  • Week 8
  • Week 9
  • Week 10
    • 1.EBS Snapshot: How Incremental Backup Remembers Only Changed Blocks
    • 2.AWS Backup: Making Backups Undeletable Even by Administrators
    • 3.RDS Multi-AZ vs Read Replica: Choosing Between Synchronous and Asynchronous
    • 4.S3 Replication, Storage Gateway, Elastic Disaster Recovery: How to Move Files and Workloads
    • 5.Week 10 Comprehensive Review: Backup, DR, HA as One Picture
  • Week 11
  • Week 12
SAP-C02 · ProfessionalSolutions Architect - Professional
DOP-C02 · ProfessionalDevOps Engineer - Professional
Linux Master 2 · 2급KAIT Linux Master - Level 2
SCS-C03 · SpecialtySecurity - Specialty
Linux Master 1 · 1급KAIT Linux Master - Level 1
MLA-C01 · AssociateMachine Learning Engineer - Associate
AIF-C01 · FoundationalAI Practitioner - Foundational
DEA-C01 · AssociateData Engineer - Associate
MLS-C01 · SpecialtyMachine Learning - Specialty
SQLD · 개발자SQL Developer (SQLD)

© CertNote · 주간랩스

  • About
  • Changelog
  • Contact
  • Terms
  • Privacy
← SOA-C02/Week 10/Day 4

Based on the SOA-C02 exam guide·Report an error

SOA-C02· AssociateWeek 10 · Day 4~33 min read

Day 4 - S3 Replication, Storage Gateway, Elastic Disaster Recovery: How to Move Files and Workloads

So far we've covered backups in blocks (EBS) and databases (RDS). This article widens scope to three units—objects (S3 data across regions/buckets), hybrid files (on-prem NAS/tape to cloud), entire workloads (running servers bootable elsewhere). Three have different targets and mechanisms but share one question: "When original disappears, where can we restart?" Answered by async replication (S3), cache-backed gateway (Storage Gateway), continuous data protection (DRS).

The key: each tool solves differently-shaped problems. S3 Replication is "place object elsewhere once more." Storage Gateway is "leave on-prem app untouched, only backend to S3." DRS is "boot entire server in other region within minutes." Tool selection isn't memorization but problem shape matching—core testing strategy here.

S3 Replication—Why Versioning Is Required and What Doesn't Replicate

S3 Replication asynchronously replicates objects from one bucket to another. Same region is SRR (Same-Region Replication); cross-region is CRR (Cross-Region Replication). But before setup, one mandatory prerequisite: both source and destination buckets must have Versioning enabled. Not optional; mandatory. Why?

S3 replication replicates object versions. Without Versioning, overwrites on same key erase previous versions without trace—system can't track "which version was replicated and what's latest." Versioning enabled means each PUT gets unique version ID; replication system manages "this version replicated to target" idempotently. For async replication not to duplicate/tangle on retries, each object version must have unique ID, which Versioning guarantees.

Another trap: what doesn't replicate. Objects already in bucket before enabling Replication don't auto-replicate—rules apply only to new objects after enabling. To move existing objects, run S3 Batch Replication separately or sync manually. Beyond that, already-replicated objects (preventing double-replication), SSE-C encrypted objects (by default), specific lifecycle operations are excluded from standard replication. Delete markers can be optional (Delete Marker Replication) enabled/disabled.

{
  "Role": "arn:aws:iam::123:role/s3-replication-role",
  "Rules": [{
    "ID": "ReplicateImportant",
    "Status": "Enabled",
    "Filter": {"Prefix": "important/"},
    "Destination": {
      "Bucket": "arn:aws:s3:::destination-bucket-us",
      "StorageClass": "STANDARD_IA",
      "ReplicationTime": {"Status": "Enabled", "Time": {"Minutes": 15}},
      "Metrics": {"Status": "Enabled"}
    }
  }]
}

RTC (Replication Time Control) is paid option imposing 15-minute SLA (99.99% of objects) on replication. Standard replication is usually fast but unguaranteed timing, so hours of lag possible under load. With tight DR RTO/RPO, RTC locks "reach destination in 15 minutes" as SLA.

Use CaseReplication Type
Region-level DR / regional data residency regulationCRR
Cross-account log/audit copy isolationSRR (Cross-Account)
Same-region different cost-class operational copySRR
Strict replication time guarantee+ RTC (15-min SLA)

💡 Related Theory: "Objects before enabling don't replicate" because S3 Replication is event-driven async replication. Rules trigger on PUT events, so past PUTs (before rule existed) never triggered, never replicated. Like message queues/streams where consumers receive only post-subscription messages. Past data needs separate backfill (=Batch Replication). Async replication is inherently eventually consistent—destination lags slightly but converges; RTC puts time ceiling on "eventually."

S3 Storage Class and Lifecycle—Reduce Cost by Data Age

S3 data access frequency drops over time. Yesterday's logs get viewed often; 3-year-old logs kept only for compliance. Keeping all on expensive Standard forever wastes. S3 Storage Class divides tiers by "how often accessed + how fast to retrieve" tradeoff; Lifecycle Policy auto-migrates objects to cheaper tiers by age.

ClassMin KeepRestore SpeedUse
Standard-InstantFrequent access
Intelligent-Tiering-InstantUnknown access (auto-tiering)
Standard-IA30 daysInstantOccasional access
One Zone-IA30 daysInstantRecreatable data (single AZ)
Glacier Instant90 daysInstant (ms)Quarterly instant recovery
Glacier Flexible90 daysMinutes~12hrsArchive, occasional recovery
Glacier Deep Archive180 days12~48hrsLong-term regulation keep, lowest cost
{
  "Rules": [{
    "Status": "Enabled",
    "Transitions": [
      {"Days": 30, "StorageClass": "STANDARD_IA"},
      {"Days": 90, "StorageClass": "GLACIER"},
      {"Days": 365, "StorageClass": "DEEP_ARCHIVE"}
    ],
    "Expiration": {"Days": 2555}
  }]
}

Common traps: minimum retention and restore speed. Standard-IA is 30 days, Glacier 90, Deep Archive 180 minimum; delete/move before that period and you're billed for minimum anyway—frequent-change data in IA gets pricier. Deep Archive is cheapest but 12~48-hour recovery—tight DR RTO can't pull from there. Unknown access pattern? Intelligent-Tiering is safe default, auto-migrating tiers.

🔍 Deeper Dive: S3 Object Lock applies same WORM model as Day 1's Snapshot Lock, Day 2's Vault Lock to objects. Compliance mode: root account can't delete/overwrite during retention. Governance mode: authorized can unlock. Object Lock also requires Versioning enabled—same reason: immutability means "fix specific version," needs version tracking. Used for financial/medical regulation (SEC 17a-4, HIPAA) change-proof keeping and ransomware/insider deletion defense. Three Locks (Snapshot/Vault/Object) share identical trust model across resources: "issuer can't unlock," Week 10's thread-connecting pattern.

Storage Gateway—On-Prem App Unchanged, Backend to S3

Enterprise on-prem still runs NFS/SMB file-reading apps, iSCSI block-writing systems, tape-backup software. Migrating all to cloud at once is risky and costly. Storage Gateway strategy: "don't touch apps." Deploy virtual appliance on-prem (VMware/Hyper-V/EC2); existing apps access gateway via NFS/SMB/iSCSI/tape normally; gateway sends data to S3/Glacier behind scenes. To apps, looks like local storage; really cloud-backed.

Three types split by protocol and purpose:

  • File Gateway—on-prem NFS/SMB access, gateway stores each file as S3 object. Frequent data stays in local cache for fast response; whole dataset on S3. Fits file backup, media archive, S3-as-filesystem use.
  • Volume Gateway—provides iSCSI block volumes. Cached mode: frequent blocks local, whole on S3 (local storage saving). Stored mode: whole local, async S3 backup (low-latency priority + cloud backup).
  • Tape Gateway—provides virtual tape library (VTL). Veritas/NetBackup legacy backup software thinks physical tape but actually stores via S3→Glacier. Replaces physical tape infra with cloud.

💡 Related Theory: Storage Gateway's local cache + remote storage is computer systems' memory hierarchy principle exactly. CPU cache keeps frequently-used data in fast SRAM, rest in slow memory/disk. File/Volume Gateway (Cached) keeps hot data local, cold on S3. Works because data access has locality of reference—recent data reuse probability (temporal locality) is high; small local cache handles most accesses fast. CDN, OS page cache, DB buffer pool, Storage Gateway all stand on locality assumption.

Elastic Disaster Recovery (DRS)—Boot Entire Server Within Minutes

S3 Replication handles objects; Storage Gateway handles files. DRS is different unit—entire running server (OS, applications, data, config) bootable elsewhere identically. Install agent on server; it continuously replicates disk block-level (CDP—Continuous Data Protection)—real-time per-change AWS stream. So RPO is seconds.

DRS's cost cleverness is in Staging Area. Replica data normally sits in tiny AWS staging environment (just cheap t3.small EC2 + EBS)—no expensive full-size instances running, costs minimal. Failover (or drill test) moment comes, launch real-size instance with that replicated EBS. Strategy: "cheap data stream offline, big server only when needed."

On-Prem/Other Cloud Server (agent installed)
        │ Block-level continuous replication (CDP)
        ▼
AWS Staging Area
   t3.small EC2 + EBS (all data)   ← Usually: small, cheap
        │ Failover trigger
        ▼
Production Subnet
   m5.large EC2 + EBS (replica)    ← Then: real size launch

Uses clear: migrate datacenter to AWS, multi-region DR, other cloud→AWS failover. CloudEndure Disaster Recovery unified into DRS (name change, occasional exam appearance).

⚠️ Trap: Don't confuse DRS with backup/replication tools. S3 Replication, DLM, AWS Backup replicate/preserve data but separate work rebuilds servers from that data. DRS replicates entire workload, instantly bootable minutes' RTO—OS/apps/data all together, failover brings that server alive elsewhere nearly unchanged. Exam: "datacenter→AWS DR, minimize offline cost, minute-level failover RTO" almost always DRS. "S3 objects only other region" is CRR; "keep on-prem app, S3 backend only" is Storage Gateway.

DataSync vs Transfer Family vs Snow—Three Ways to Move Data

Data ingestion to AWS splits by problem shape too. DataSync is high-speed transfer/sync engine for large data—automatically parallelizes/validates/encrypts between NFS/SMB/HDFS/S3/EFS/FSx. Used for one-time migration (on-prem NAS 50TB→S3) or regular sync (daily NAS→S3). Transfer Family is different—managed gateway letting external partners access S3/EFS via SFTP/FTPS/FTP/AS2 standard protocols. Fits legacy file systems, B2B file exchange behind S3. Snow Family (Snowball etc.)—too huge for network (petabyte-scale) or insufficient bandwidth—physical hardware delivered by truck.

Selection is straightforward—network-viable large transfer uses DataSync; standard protocol file exchange with partners uses Transfer Family; network-impractical huge uses Snow.

📚 Case Study: Before dedicated DataSync-like tools, bulk migration used aws s3 sync or custom scripts—single-threaded transfers, restart-from-beginning on mid-transfer failure, no validation meant "transferred but some corrupted" happened. Transferring 10s TBs over days, network drop meant no way to know progress, restart entire. DataSync solved via parallel transfer + checksum validation + incremental retry—disconnects reconnect seamlessly, post-transfer integrity auto-checked. "Don't roll your own big transfers; use dedicated tools"—lesson codified, and generalizable principle for infrastructure tasks: prefer validated managed services over custom implementations.

Wrapping Up

Day 4's tools answer "where restart when original vanishes" by unit. S3 Replication keeps objects async-copied elsewhere (Versioning required, post-enable objects only); Storage Gateway leaves on-prem untouched, S3-backed behind cache; DRS keeps servers cheap-streamed until failover flips real-size launch.

Five key takeaways for operators: ① S3 Replication requires Versioning both sides + new objects only (existing need Batch); CRR (region DR)/SRR (same-region/cross-account audit)/RTC (15-min SLA). ② Storage Class + Lifecycle trim cost by age; watch minimum-keep/restore-speed; Intelligent-Tiering if pattern unknown. ③ S3 Object Lock too is WORM (Versioning required)—same model as Snapshot/Vault Lock. ④ Storage Gateway 3 types: File (NFS/SMB), Volume (iSCSI Cached/Stored), Tape (VTL). ⑤ DRS is workload-total CDP failover (Staging small offline), DataSync is bulk transfer, Transfer Family is SFTP, Snow is physical huge.

Next article wraps Week 10 entire—Snapshot·AWS Backup·RDS HA·S3/DRS—as scenario review.

📝 Practice Questions

Click a choice to reveal the answer and explanation.

Question 1

A company wants to automatically replicate S3 data to a DR site in another Region. What are the required prerequisites and the tool for the setup?

Question 2

After enabling S3 Replication, objects that already existed are not replicated to the destination bucket. What is the cause and the fix?

Question 3

An on-premises backup software (Veritas/NetBackup) that backed up to physical tape needs to move to AWS without any application changes. Which tool?

Question 4

You want to enable DR failover of a production data center to AWS, keeping normal-time cost to a minimum while recovering within minutes at failover. Which tool?

Question 5

You need to enforce that S3 objects can never be modified or deleted for 5 years (regulatory WORM). Which feature and prerequisite are needed?

Question 6

You want to perform a one-time migration of 50 TB of on-premises NAS data to S3. Network bandwidth is sufficient. Which tool automates integrity verification and retries?

Question 7

Frequently changing data was moved to Standard-IA to cut costs, but costs actually increased, and the access pattern is hard to predict. What is a better choice?

PreviousRDS Multi-AZ vs Read Replica: Choosing Between Synchronous and AsynchronousWeek 10 · Day 3Next Week 10 Comprehensive Review: Backup, DR, HA as One PictureWeek 10 · Day 5

Official references

  • SOA-C02 official exam page(opens in a new tab)
  • Amazon S3 documentation(opens in a new tab)
  • AWS Storage Gateway documentation(opens in a new tab)
  • AWS DataSync documentation(opens in a new tab)
  • Amazon EBS documentation(opens in a new tab)
  • AWS IAM documentation(opens in a new tab)

On this page

  • S3 Replication—Why Versioning Is Required and What Doesn't Replicate
  • S3 Storage Class and Lifecycle—Reduce Cost by Data Age
  • Storage Gateway—On-Prem App Unchanged, Backend to S3
  • Elastic Disaster Recovery (DRS)—Boot Entire Server Within Minutes
  • DataSync vs Transfer Family vs Snow—Three Ways to Move Data
  • Wrapping Up
  • Practice Questions