Multi-Cloud Architecture Tradeoffs & Well-Architected Framework
Senior Cloud Architect synthesis across AWS, Microsoft Azure, and Google Cloud covering service equivalences, the 5/6 Pillars of the Well-Architected Framework, Zero Trust multi-cloud networking, cross-cloud OIDC/SAML federation, Disaster Recovery patterns, CAP theorem in cloud databases, FinOps, and the 6 Rs of migration.
- Level
- advanced
- Languages
- en → en
- Cards
- 32
- Markdown
- Multi-Cloud Architecture Tradeoffs & Well-Architected Framework (.md)
Flashcards (32)
| # | Front (Term / Question) | Back (Definition / Answer) | Example | Multiple-Choice Options |
|---|---|---|---|---|
| 1 | Explain the Claim Check Pattern when passing large payloads through cloud message queues. | Cloud message brokers impose strict message size limits (e.g., AWS SQS / Azure Queue Storage max 64 KB–256 KB; Azure Service Bus 256 KB–100 MB; GCP Pub/Sub 10 MB). In the Claim Check Pattern, the producer uploads the large payload (e.g., 500 MB video/document) to Object Storage (S3/Blob/GCS), and publishes only a lightweight metadata message containing the storage URI ('Claim Check') to the message queue. The consumer reads the message, fetches the blob from storage using the URI, processes it, and optionally deletes it. | ||
| 2 | Map the equivalent Identity, Resource Hierarchy, and Policy Governance services across AWS, Microsoft Azure, and Google Cloud. | Identity Provider: AWS IAM Identity Center + IAM / Azure Microsoft Entra ID / GCP Cloud Identity + Cloud IAM. Resource Hierarchy: AWS Organization -> OUs -> Accounts / Azure Tenant -> Management Groups -> Subscriptions -> Resource Groups / GCP Organization -> Folders -> Projects. Guardrails/Policy: AWS Service Control Policies (SCPs) + AWS Config / Azure Policy / GCP Organization Policy Service. | ||
| 3 | Compare the Choreography vs. Orchestration approaches to the Saga Pattern for distributed transactions across cloud microservices. | Because distributed 2-Phase Commit (2PC) locks resources and scales poorly across microservices, a Saga executes a sequence of local transactions where any failure triggers compensating transactions to undo prior steps. Choreography: Decentralized; each service publishes domain events (via Event Grid / EventBridge / Pub/Sub) and subsequent services react—simple for 2–4 steps, but can create cyclic event spaghetti at scale. Orchestration: Centralized state machine (AWS Step Functions, Azure Durable Functions/Logic Apps, GCP Workflows) directs each participant step and explicitly invokes compensations on failure. | ||
| 4 | What are the challenges of Split-Horizon DNS in a multi-cloud or hybrid environment, and how are they solved? | Each cloud uses a private internal DNS resolver (Azure `168.63.129.16`, GCP `169.254.169.254`, AWS `.2` / `169.254.169.253`) to resolve Private Endpoints / PrivateLink FQDNs that cannot be queried directly from outside the VPC/VNet. Solution: Deploy Managed DNS Resolver endpoints (Azure DNS Private Resolver, AWS Route 53 Resolver Inbound/Outbound Endpoints, GCP Cloud DNS Inbound/Outbound Forwarding Policies) and configure conditional forwarding rules over VPN/Interconnect for private zone domains. | ||
| 5 | Compare the four classic Cloud Disaster Recovery (DR) architecture patterns ordered from lowest cost / longest RTO to highest cost / lowest RTO. | 1. Backup and Restore: Data backed up to cloud object storage; infrastructure provisioned from scratch via IaC only during disaster (RTO: hours to days, RPO: hours; $). 2. Pilot Light: Core stateful data layer (DB replicas) continuously replicated and running minimal compute; application servers are off/scaled to 0 until disaster (RTO: 10s of minutes, RPO: seconds/minutes; $). 3. Warm Standby: Scaled-down but fully functional copy of entire app stack running 24/7 in DR region, scales out on failover (RTO: minutes; $$). 4. Multi-Site Active-Active: Full production capacity serving traffic in multiple regions simultaneously (RTO: ~0 / real-time DNS/Anycast shift, RPO: ~0; $$). | ||
| 6 | Compare Active-Active vs. Active-Passive multi-region architectures regarding database state and write conflicts. | Active-Passive: All writes go to a single primary region (which replicates asynchronously or synchronously to the passive secondary region); read replicas in the secondary region can serve local reads, eliminating multi-master write conflicts. Active-Active: Both regions accept user writes simultaneously; requires either a globally synchronized database (like Cloud Spanner), geo-partitioning/sharding users to a 'home' region, or conflict resolution mechanisms like Last-Write-Wins (LWW) or CRDTs (as in Cosmos DB Multi-Region Writes or DynamoDB Global Tables). | ||
| 7 | Explain the CAP Theorem and PACELC Theorem in the context of multi-region cloud databases. | CAP Theorem states that during a network Partition (P), a distributed data store must choose between Consistency (C: every read receives the most recent write or an error) and Availability (A: every non-failing node returns a non-error response, without guarantee it is the latest). PACELC extends this: Even when there is NO partition (E = Else), a distributed database must choose between Latency (L) and Consistency (C). E.g., Cloud Spanner is PC/EC (always consistent, waits on Paxos/TrueTime), while DynamoDB/Cosmos DB default configurations can be tuned between PA/EL and PC/EC. | ||
| 8 | What is the Queue-Based Load Leveling pattern and how does it protect downstream databases during traffic spikes? | Instead of web frontends writing synchronously to a relational database (which would exhaust DB connections and crash during a 100x flash-sale traffic spike), frontends publish requests asynchronously to a durable elastic queue (SQS, Service Bus, Pub/Sub) and return `202 Accepted`. Background worker pools (Lambda, Functions, KEDA-autoscaled pods) pull messages from the queue at a controlled concurrency rate that matches the database's maximum sustainable write throughput (RU/s or IOPS). | ||
| 9 | How do Data Residency, Data Sovereignty, and Sovereign Cloud offerings affect multi-national cloud architecture? | Data Residency refers to the physical geographic location where data is stored and processed. Data Sovereignty means the data is subject to the laws and government access regulations of the jurisdiction where it resides (or where the cloud provider is headquartered, e.g., GDPR, Schrems II, US CLOUD Act). Architects enforce residency using Organization Policies / Azure Policy (`Allowed locations`), disable cross-region replication outside the boundary, use CMEK/External Key Managers (GCP EKM / AWS KMS External Key Store / Azure Key Vault Managed HSM), or deploy into Sovereign Cloud environments. | ||
| 10 | What are the trade-offs between Kubernetes as a portable Multi-Cloud Abstraction Layer vs. Native Cloud Serverless services? | Kubernetes (EKS/AKS/GKE) provides workload portability, standardized APIs (Deployments, Gateway API, Helm, ArgoCD, OpenTelemetry), and avoids proprietary runtime lock-in, but introduces significant operational overhead (cluster upgrades, CNI/CSI management, node/pod security patching, base control-plane/idle capacity costs). Native Serverless (Lambda/Functions/Cloud Run, DynamoDB/Cosmos/Firestore) minimizes operational toil and scales to zero, at the cost of deeper provider API coupling. | ||
| 11 | Map the equivalent Data Warehouse, Event Streaming, Pub/Sub Messaging, and Batch/Stream Processing services across AWS, Azure, and GCP. | Data Warehouse: AWS Redshift / Azure Synapse Analytics & Microsoft Fabric / GCP BigQuery. Event Streaming: AWS Kinesis Data Streams & MSK / Azure Event Hubs / GCP Pub/Sub & Managed Service for Apache Kafka. Message Queues/Bus: AWS SQS & SNS & EventBridge / Azure Service Bus & Event Grid / GCP Pub/Sub & Eventarc. Data Processing: AWS EMR & Glue / Azure Databricks & HDInsight & Data Factory / GCP Dataflow & Dataproc. | ||
| 12 | Explain the Strangler Fig Pattern when modernizing a legacy monolithic application during a cloud migration. | Named by Martin Fowler, instead of a high-risk 'big bang' rewrite of a monolith, you place an API Gateway or Layer 7 Reverse Proxy (e.g., Application Gateway, Envoy, CloudFront/ALB) in front of the legacy monolith. You incrementally build new microservices in the cloud and route specific URL paths or domains (`/orders`, `/payments`) to the new cloud services while forwarding remaining traffic to the monolith, until the monolith shrinks away and is retired. | ||
| 13 | What are the three core principles of Zero Trust Security Architecture according to NIST SP 800-207 and Microsoft/Google frameworks? | 1. Verify Explicitly: Always authenticate and authorize every request based on all available data points (user identity, device health/compliance, workload identity, location, data classification, and real-time risk anomalies) rather than trusting network location (no implicit trust inside a corporate LAN/VPC). 2. Use Least Privilege Access: Enforce Just-In-Time (JIT) and Just-Enough-Access (JEA) via PIM/RBAC. 3. Assume Breach: Minimize blast radius with micro-segmentation, end-to-end encryption (mTLS), and continuous SIEM/SOAR telemetry. | ||
| 14 | What is the Valet Key Pattern in cloud architecture and how is it implemented across AWS, Azure, and GCP? | Instead of routing multi-gigabyte file uploads/downloads through your application servers (which wastes compute CPU, memory, and double bandwidth), the application server authenticates the user and returns a short-lived, cryptographically signed token ('Valet Key') scoped to a single object and HTTP verb. The client then uploads/downloads directly to/from cloud object storage using: AWS S3 Presigned URLs, Azure Blob User Delegation SAS Tokens, or GCP Cloud Storage V4 Signed URLs. | ||
| 15 | What is Chaos Engineering in the Cloud Well-Architected Reliability pillar, and which managed services support it? | Chaos Engineering is the disciplined practice of experimenting on a distributed system in production or pre-production by injecting controlled faults (killing VM zones, adding network latency, blackholing DNS, spiking CPU, throttling disk I/O) to verify that automated failover, circuit breakers, and alarms actually work before a real outage occurs. Managed cloud tools include Azure Chaos Studio and AWS Fault Injection Service (FIS), alongside Kubernetes tools like Chaos Mesh and LitmusChaos. | ||
| 16 | What is the difference between SAML 2.0 and OpenID Connect (OIDC) / OAuth 2.0 in cloud identity architecture? | SAML 2.0: XML-based protocol designed for browser-based Enterprise Single Sign-On (SSO) between an Identity Provider (IdP) and a Service Provider (SP) using signed XML assertions. OAuth 2.0: Authorization framework for delegated API access using Access Tokens. OpenID Connect (OIDC): Identity authentication layer built on top of OAuth 2.0 using lightweight JSON Web Tokens (`id_token` JWTs) over REST/HTTPS; ideal for modern SPAs, mobile apps, and workload identity federation. | ||
| 17 | Why is data egress (Data Transfer Out) often called the 'hidden tax' of multi-cloud architecture, and how do architects minimize it? | Cloud providers typically allow free data ingress, free same-zone traffic, low-cost inter-zone traffic ($0.01–$0.02/GB), and high charges ($0.08–$0.12/GB) for Internet Egress or Cross-Cloud / Cross-Region data transfer. Mitigations: Co-locate compute and data in the same zone/region where possible, use CDNs (CloudFront/Cloud CDN/Front Door) which have lower egress rates and edge caching, use dedicated interconnects (Direct Connect/ExpressRoute/Cloud Interconnect) which offer discounted egress rates, and push compute queries to the data rather than moving petabytes across clouds. | ||
| 18 | Map the equivalent Networking (VPC, Private PaaS Connectivity, Dedicated Fiber, Global L7 Load Balancer + WAF) services across AWS, Azure, and GCP. | Virtual Network: AWS VPC (regional) / Azure VNet (regional) / GCP VPC (global with regional subnets). Private PaaS Endpoint: AWS PrivateLink (Interface VPC Endpoints) / Azure Private Link (Private Endpoints) / GCP Private Service Connect. Dedicated Private Fiber: AWS Direct Connect / Azure ExpressRoute / GCP Cloud Interconnect. Global Edge L7 LB + WAF: AWS CloudFront + Global Accelerator + AWS WAF / Azure Front Door + WAF / GCP Global External Application LB + Cloud CDN + Cloud Armor. | ||
| 19 | How do you architect high-availability, low-latency private network connectivity between two cloud providers (e.g., Azure and GCP or AWS and Azure)? | Two main patterns: 1. Encrypted Internet Overlay: Deploy redundant HA VPN Gateways in both clouds using dynamic BGP over 4 IPsec tunnels across separate Availability Zones (up to ~5–10 Gbps, 99.99% SLA). 2. Private Dedicated Cross-Cloud Interconnect: Use a colocation fabric provider (such as Equinix Fabric, Megaport, or PacketFabric) or Cross-Cloud Interconnect to bridge ExpressRoute / Direct Connect / Cloud Interconnect privately at Layer 2/3 without touching the public internet (10–100 Gbps). | ||
| 20 | Map the equivalent Storage (Object, Block, Managed NFS/SMB File) services across AWS, Azure, and GCP. | Object Storage: AWS S3 / Azure Blob Storage (and ADLS Gen2) / GCP Cloud Storage (GCS). Block Storage: AWS EBS / Azure Managed Disks (Standard/Premium SSD, Ultra Disk) / GCP Persistent Disk & Hyperdisk. Managed File Shares: AWS EFS (NFS) & FSx (Windows/Lustre/NetApp) / Azure Files (SMB/NFS) & Azure NetApp Files / GCP Filestore (NFS) & Google Cloud NetApp Volumes. | ||
| 21 | What are the five core pillars of the Cloud Well-Architected Framework (plus AWS's 6th pillar)? | 1. Reliability (resiliency, fault isolation, automated recovery, DR testing); 2. Security (least privilege, defense in depth, encryption in transit/at rest, traceability); 3. Cost Optimization (FinOps, right-sizing, consumption pricing, commitments); 4. Operational Excellence (IaC, CI/CD, observability, small reversible changes, blameless postmortems); 5. Performance Efficiency (autoscaling, serverless, caching, right tool for the job); +6. Sustainability (AWS 6th pillar: carbon footprint efficiency). | ||
| 22 | Compare Envelope Encryption with Cloud KMS/Key Vault against direct encryption when storing large files in cloud storage. | Cloud HSM/KMS APIs have strict payload size limits (e.g., 4 KB to 64 KB) and rate limits, so you never send a 10 GB file to KMS. Instead, Envelope Encryption generates a unique local symmetric Data Encryption Key (DEK, e.g., AES-256) to encrypt the large file locally at wire speed, then calls Cloud KMS/Key Vault using the asymmetric/symmetric Key Encryption Key (KEK) to encrypt ('wrap') the small DEK, storing the encrypted DEK alongside the ciphertext. | ||
| 23 | How do you architect keyless cross-cloud authentication between AWS, Azure, and GCP workloads? | Never store static long-lived IAM access keys or service account JSON keys across clouds! Use OpenID Connect (OIDC) federation: 1. From Azure/GCP to AWS: Exchange an Entra ID Managed Identity JWT or GCP Service Account OIDC ID token using AWS STS `AssumeRoleWithWebIdentity`. 2. From AWS/GCP to Azure: Configure Federated Identity Credentials on an Entra App Registration/User-Assigned Managed Identity trusting the external OIDC issuer. 3. From AWS/Azure to GCP: Use GCP Workload Identity Federation. | ||
| 24 | Explain the difference between RPO=0 (Synchronous Replication) and RPO>0 (Asynchronous Replication) across physical distance limits. | Synchronous replication requires the primary node to wait for a write acknowledgment from the replica before confirming commit to the client, guaranteeing zero data loss ($RPO = 0$). Because light in fiber travels at ~200 km/ms, synchronous replication is practical within a region across Availability Zones (<2 ms RTT) or close metro areas, whereas cross-continental replication (e.g., US East to US West, ~60–70 ms RTT) typically uses asynchronous replication ($RPO > 0$, seconds of potential data loss) unless the application accepts multi-tens-of-milliseconds write latency (like global Spanner). | ||
| 25 | What is the Cloud FinOps lifecycle and what are its three iterative phases? | According to the FinOps Foundation, FinOps brings financial accountability to the variable spend model of cloud through three iterative phases: 1. Inform: Visibility, cost allocation via mandatory tagging/hierarchy, showback/chargeback, benchmarking, and anomaly detection; 2. Optimize: Right-sizing underutilized compute/disks, turning off idle dev/test resources, tiering cold storage, and purchasing RIs/Savings Plans/CUDs; 3. Operate: Continuous governance, unit economics (cost per customer/transaction), and automated CI/CD cost guardrails. | ||
| 26 | What are the '6 Rs' (or 7 Rs) of Cloud Migration Strategies and when should you choose each? | 1. Rehost ('Lift and Shift'): Move VMs as-is to cloud IaaS without code changes for rapid datacenter exit. 2. Replatform ('Lift, Tinker, and Shift'): Keep core architecture but adopt managed PaaS (e.g., move self-hosted Postgres to Cloud SQL/RDS). 3. Refactor / Re-architect: Redesign as cloud-native microservices/serverless for agility and scale. 4. Repurchase ('Drop and Shop'): Replace custom/legacy software with SaaS (e.g., CRM to Salesforce). 5. Retire: Decommission unused apps. 6. Retain: Keep on-prem due to latency/compliance. (+7. Relocate: VMware Cloud on AWS/Azure/GCP). | ||
| 27 | How do you prevent 'Split-Brain' and race conditions when multiple distributed cloud workers compete for shared resources? | Use a Distributed Lock with a Lease/TTL backed by a strongly consistent store (e.g., Azure Blob Lease, GCP Cloud Storage object generation preconditions `ifGenerationMatch`, DynamoDB conditional writes, etcd, or ZooKeeper) PLUS a monotonically increasing 'Fencing Token'. If Worker 1 pauses (e.g., GC pause) until its lease expires and Worker 2 acquires lock #34, when Worker 1 wakes up and tries to write with old token #33, the storage system rejects #33 because it has already seen higher token #34. | ||
| 28 | Map the equivalent Relational, Global Distributed SQL, Wide-Column/Key-Value NoSQL, and Document Databases across AWS, Azure, and GCP. | Managed RDBMS: AWS RDS & Aurora / Azure SQL Database & SQL MI / GCP Cloud SQL & AlloyDB. Globally Distributed SQL / Multi-Region DB: AWS Aurora Global Database & DynamoDB Global Tables / Azure Cosmos DB / GCP Cloud Spanner. Wide-Column / High-Throughput NoSQL: AWS Keyspaces & DynamoDB / Azure Cosmos DB (Table/Cassandra API) / GCP Cloud Bigtable. Document DB: AWS DocumentDB & DynamoDB / Azure Cosmos DB (NoSQL/MongoDB API) / GCP Firestore. | ||
| 29 | How do you design an immutable, ransomware-resilient cloud backup architecture ('3-2-1-1-0 Rule')? | Maintain at least 3 copies of data, across 2 different storage media/tiers, with 1 copy off-site (secondary cloud region), 1 copy air-gapped or strictly IMMUTABLE (WORM: Azure Immutable Blob Vault / Locked Recovery Services Vault with multi-user authorization via Resource Guard, AWS Backup Vault Lock, GCP Bucket Lock Retention Policy), and 0 unverified backups (automated regular restore testing into an isolated sandbox VPC/VNet). | ||
| 30 | Map the equivalent Compute (VMs, Serverless Functions, Serverless Containers, Managed Kubernetes) services across AWS, Azure, and GCP. | IaaS VMs: AWS EC2 / Azure Virtual Machines / GCP Compute Engine. Autoscaling Groups: AWS ASG / Azure VM Scale Sets (VMSS) / GCP Managed Instance Groups (MIGs). Serverless Functions: AWS Lambda / Azure Functions / GCP Cloud Run Functions. Serverless Containers: AWS App Runner & ECS Fargate / Azure Container Apps & ACI / GCP Cloud Run. Managed Kubernetes: AWS EKS / Azure AKS / GCP GKE. | ||
| 31 | Compare the Cell-Based Architecture pattern with traditional regional monolithic deployments for mission-critical cloud systems. | In a traditional regional deployment, a poison-pill request, noisy neighbor, or bad config change can cascade across the entire region's shared load balancer/database pool (100% regional blast radius). A Cell-Based Architecture partitions a region into multiple independent, self-contained 'Cells' (each with its own compute, cache, and database shard, capped at a fixed maximum size), with a thin global/regional cell router mapping each tenant/user to a specific cell—reducing the blast radius of any failure to $1/N$ of users. | ||
| 32 | Explain the Circuit Breaker, Bulkhead, and Retry with Exponential Backoff + Jitter resiliency patterns in cloud microservices. | 1. Retry with Exponential Backoff + Jitter: Adds randomized delay ($t = \text{random}(0, \min(\text{cap}, \text{base} \times 2^{\text{attempt}}))$) between retries so thousands of clients don't synchronize into a 'thundering herd' against a recovering service. 2. Circuit Breaker: Monitors downstream failure rates; trips to `Open` (failing fast immediately without calling the downstream service) when errors exceed a threshold, then periodically tests recovery in `Half-Open`. 3. Bulkhead: Isolates connection pools/threads per downstream dependency so one slow dependency cannot exhaust all threads of the caller. |