Hybrid Connectivity, Storage and Data Services for DevOps
Overview
Not every workload lives entirely in one VPC or one database engine. The DOP-C02 service list includes the networking glue (Site-to-Site VPN, Client VPN, Transit Gateway, PrivateLink, Directory Service) and the storage and data services (EFS, FSx family, Storage Gateway, S3 Glacier, DMS, Redshift, EMR, DocumentDB, MemoryDB, Aurora Serverless v2) that DevOps engineers deploy, secure, back up and monitor.
Picture a city. VPNs and Direct Connect are the highways between districts, Transit Gateway is the central roundabout, PrivateLink is a private tunnel to one specific building, and the storage and data services are the warehouses, archives and filing systems, each suited to a different kind of goods.
The exam rarely asks for deep design of these services. It asks which one fits a requirement, how to make it resilient and how it behaves during failover and backup.
Key Concepts
- Site-to-Site VPN provides two IPsec tunnels per connection to a virtual private gateway or Transit Gateway; use BGP, and ECMP across multiple connections on Transit Gateway to aggregate bandwidth.
- Direct Connect offers dedicated private connectivity; for resilience use two locations and a VPN as backup; a Direct Connect gateway reaches many VPCs across Regions.
- Client VPN is a managed OpenVPN-based remote access endpoint integrated with Active Directory, SAML or certificates.
- Transit Gateway is a regional hub connecting VPCs, VPNs and Direct Connect with route tables, inter-Region peering and RAM sharing; PrivateLink exposes a service privately through interface endpoints.
- AWS Directory Service (Managed Microsoft AD, AD Connector, Simple AD) supports Windows workloads, FSx and SSO integration.
- EFS is regional shared NFS across AZs; FSx variants: Windows File Server (SMB, AD), Lustre (HPC, S3-linked), NetApp ONTAP (multi-protocol) and OpenZFS (NFS, snapshots).
- Storage Gateway (S3 File, FSx File, Volume, Tape) connects on-premises to cloud storage and backup; Glacier classes archive data cheaply.
- DMS migrates and replicates databases (full load plus CDC); Redshift is a columnar warehouse, EMR runs big-data frameworks, DocumentDB is MongoDB-compatible, and Aurora Serverless v2 scales capacity automatically.
Detailed Notes
Connectivity options
| Need | Solution | Resilience notes |
|---|---|---|
| Quick encrypted link to on-premises | Site-to-Site VPN | Two tunnels in different AZs; use two customer gateways for device redundancy |
| Consistent latency, high bandwidth | Direct Connect | Two connections at two locations; VPN backup |
| Many VPCs and sites | Transit Gateway | Attach VPN/DX; inter-Region peering; route table segmentation |
| Remote employees | Client VPN | Multi-AZ subnet associations; split tunnel |
| Private access to a service in another VPC/account | PrivateLink (endpoint service + NLB) | One-way, overlapping CIDRs allowed |
| Private access to S3/DynamoDB | Gateway endpoints | Free; route table entries |
| Private access to other AWS APIs | Interface endpoints | ENIs per AZ; endpoint policies |
| Share subnets or TGW | RAM | Organisation-wide sharing |
For resilient hybrid connectivity: Direct Connect primary plus Site-to-Site VPN backup using BGP with AS path prepending, or two diverse Direct Connect connections at separate locations. Monitor tunnel state with CloudWatch (TunnelState) and alarm when a tunnel goes down.
aws ec2 create-transit-gateway --description hub --options AmazonSideAsn=64512,DefaultRouteTableAssociation=disable
aws ec2 create-vpc-endpoint --vpc-id vpc-0abc --service-name com.amazonaws.us-east-1.ssm \
--vpc-endpoint-type Interface --subnet-ids subnet-a subnet-b --security-group-ids sg-0123
Storage selection
| Requirement | Service | Resilience and backup |
|---|---|---|
| Shared Linux file system across AZs | EFS (Standard, IA, Archive) | Regional; replication to another Region; AWS Backup |
| Windows SMB, AD integration | FSx for Windows File Server | Multi-AZ option; shadow copies; backups |
| HPC, ML scratch with S3 link | FSx for Lustre | Scratch (no replication) or persistent |
| Multi-protocol, NetApp features | FSx for NetApp ONTAP | Multi-AZ, SnapMirror, tiering |
| ZFS snapshots, NFS lift-and-shift | FSx for OpenZFS | Snapshots, cloning |
| Block storage for one instance | EBS | AZ-bound; snapshots; Multi-Attach for io1/io2 |
| Objects, static assets, artifacts | S3 | Versioning, replication, lifecycle |
| On-premises access to cloud storage | Storage Gateway | Local cache, async upload |
Application storage patterns in deployments: keep instances stateless with data in S3, EFS or databases; use EBS snapshots for AMIs; avoid storing deployment state on ephemeral instance store; for container tasks, mount EFS for shared data.
Data services in DevOps scope
| Service | Typical DevOps responsibility |
|---|---|
| DMS | Replication instances or serverless, endpoints, task monitoring, CDC for near-zero-downtime migration |
| Redshift | Cluster resizing, snapshots with cross-Region copy, RA3 managed storage, Spectrum for S3 queries, concurrency scaling |
| EMR | Transient clusters launched from pipelines, Spot task nodes, EMR Serverless, logs to S3 |
| DocumentDB | Multi-AZ cluster, backup retention, TLS, parameter groups |
| MemoryDB / ElastiCache | Multi-AZ failover, snapshots, in-transit and at-rest encryption |
| Aurora Serverless v2 | Set min/max ACUs; scales without disconnects; reader scaling tiers |
aws dms create-replication-task --replication-task-identifier orders-cdc \
--source-endpoint-arn arn:aws:dms:us-east-1:111122223333:endpoint:SRC \
--target-endpoint-arn arn:aws:dms:us-east-1:111122223333:endpoint:TGT \
--replication-instance-arn arn:aws:dms:us-east-1:111122223333:rep:RI \
--migration-type full-load-and-cdc --table-mappings file://mappings.json
Operating hybrid and data estates
- Back up with AWS Backup where supported (EFS, FSx, DocumentDB, Aurora, Storage Gateway volumes) and verify restores.
- Monitor throughput and burst credits (EFS), file system health (FSx), replication lag (DMS CDCLatencyTarget/Source) and Redshift disk/WLM queues.
- Encrypt at rest with KMS and in transit with TLS; control access with security groups and, for FSx Windows, Active Directory.
- Use Directory Service with trust relationships so on-premises AD users access AWS-hosted Windows resources.
Real World Example
Scenario: a manufacturer connects 12 factories and a data centre to AWS. Each factory has a Site-to-Site VPN to a Transit Gateway; the data centre has two Direct Connect links with a VPN backup. Route tables segment production from development VPCs, and AWS RAM shares the Transit Gateway with other accounts.
Windows file shares move to FSx for Windows File Server joined to AWS Managed Microsoft AD, with Multi-AZ deployment and daily AWS Backup copies to another Region. A DMS task replicates the legacy database to Aurora with CDC so cutover needs minutes of downtime.
Architecture Diagram
Redundant links into a Transit Gateway hub with shared storage and private service access.
- 1On-premises sites connect through Direct Connect with VPN as backup.
- 2Transit Gateway routes traffic between sites and VPCs using segmented route tables.
- 3Workloads reach AWS services privately through interface and gateway endpoints.
- 4Shared file systems (EFS or FSx) serve applications across AZs.
- 5DMS keeps databases synchronised during migration and AWS Backup protects the data afterwards.
Best Practices
- ✓Build redundant hybrid links (two DX locations or DX plus VPN) and alarm on tunnel state.
- ✓Use Transit Gateway with route table segmentation rather than full-mesh peering.
- ✓Choose the file system by protocol and AD needs, and back up with AWS Backup including cross-Region copy.
- ✓Keep traffic private with VPC endpoints and endpoint policies.
- ✓Use DMS with CDC and validation for minimal-downtime migrations and monitor latency.
Common Interview Questions
Exam Tips
DOP-C02 focus
- "Hub for many VPCs and VPNs" = Transit Gateway.
- "Expose a service privately to other accounts" = PrivateLink.
- "Windows file share with AD" = FSx for Windows File Server.
- "Migrate a live database with near-zero downtime" = DMS with CDC.
Chapter quiz
Scalability, Serverless, Containers and Platform Services · 10 questions
1.A fleet of EC2 workers processes jobs from an SQS queue. During peaks the queue grows to hundreds of thousands of messages, but average CPU stays at 15% because workers wait on external APIs. The ASG uses a CPU target tracking policy at 50%. What should be changed?
2.A DynamoDB table with provisioned capacity auto scaling throttles writes during a flash sale because traffic doubles within a minute. Traffic is highly unpredictable. What is the best solution?
3.An ECS cluster on EC2 shows tasks stuck in PROVISIONING/PENDING because there is not enough instance capacity. The team wants the cluster to add instances automatically when tasks need room. What should be configured?
4.A read-heavy product catalogue API (API Gateway and Lambda) experiences database overload from repeated identical requests. Data can be up to 60 seconds stale. Which change provides the largest reduction in backend calls with the least code change?
5.An order service publishes events that must be processed independently by billing, inventory and analytics teams. Each team needs its own retry behaviour, and a failure in one consumer must not affect others. Which design is best?
6.Users upload 4 GB videos for processing. The API behind API Gateway REST APIs times out at 29 seconds when processing synchronously. Which architecture resolves this with the least operational overhead?
7.A small team wants to deploy a containerised web application from a Git repository with automatic build, HTTPS, load balancing and scaling, without learning ECS task definitions or managing clusters. Which service is the best fit?
8.A company has two data centres and wants a resilient hybrid connection to dozens of VPCs. The network team needs consistent bandwidth with automatic failover if the primary link fails. Which design is most appropriate?
9.A Windows-based application needs a shared SMB file system with Active Directory authentication, Multi-AZ availability and automated backups. Which service meets the requirement with the least management?
10.A team must migrate a production Oracle database to Aurora PostgreSQL with minimal downtime while the source remains in use. What should they use?
0 of 10 answered
Finished this lesson?
0 of 44 lessons done · 0% of the course

