Skip to main content
InterviewHubPRO
HomeTracksSection 30: AWS Cloud Architecture (65 Qs)
Section 30 of 6465 Questions (1 Per Page)

Cloud Architecture & AWS Enterprise Engineering Master Interview Bank

AWS Well-Architected Framework, multi-region high availability, VPC networking, IAM least privilege, ECS/EKS container orchestration, and serverless.

Curriculum Roadmap & Learning Path

5 Stages
Tip: Click any stage card above to instantly filter the question bank to that topic.5 Connected Milestones
65 of 65 Qs

Part 1: Intro, Architecture & Well-Architected Framework (1 - 5)

5 Questions
1
Most AskedSeniorCode#System Design

What is Cloud Computing, and how is the AWS Global Infrastructure structured (Regions, Availability Zones, and Edge Locations)?

Cloud Computing is the on-demand delivery of IT computing power, database storage, applications, and networking resources over the internet with pay-as-you-go pricing, replacing capital expenditure (CapEx) of physical on-premise hardware with operational expenditure (OpEx).

2
SeniorCode#System Design

Give a candid walkthrough of your hands-on experience designing, provisioning, and deploying production workloads on AWS, and how you apply the Well-Architected Framework.

"I am a Senior Cloud & Full-Stack Architect with deep hands-on experience designing resilient, multi-region architectures on AWS. I provision immutable infrastructure using Terraform and AWS CDK, designing secure VPC topologies across multiple Availability Zones.

3
SeniorCode#System Design

Describe a severe production outage or bottleneck you resolved on AWS.

How to Explain in an Interview: Problem: During a high-traffic flash sale, our serverless API Gateway + Lambda service spiked to 500 errors and p99 response times surged to 8+ • Root Cause • Lambda concurrency hit our regional account quota (1,000 concurrent executions), causing incoming invocations to be throttled.

4
Most AskedSeniorCode#System Design

How do you decide between deploying an application on EC2, ECS (Fargate), EKS, or serverless Lambda?

AWS Lambda: Best for event-driven, bursty, or unpredictable traffic (webhooks, cron jobs, file processing) where scaling down to zero saves money • ECS (Fargate): Best for standard long-running containerized web APIs where you want Docker without managing EC2 servers or Kubernetes clusters.

5
SeniorCode#Performance#System Design

How do you approach AWS cost monitoring and FinOps optimization?

Cost Allocation Tags: Enforce mandatory tags (Environment, Team, CostCenter) via AWS Organizations SCPs • Compute Savings Plans: Commit to consistent hourly compute across Lambda, Fargate, and EC2 for up to 66% discounts.

Part 2: Networking, VPC & Traffic Routing (6 - 20)

15 Questions
6
Most AskedMidCode#Routing#Databases & SQL

Design a secure VPC for a 3-tier web application (Web, App, Database).

Span across at least 2 Availability Zones (AZs) for high availability: Public Subnet: Connected to an Internet Gateway (IGW) • Private Subnet (App Tier): Hosts backend containers/EC2 • Isolated Private Subnet (Database Tier): Hosts Aurora/RDS databases.

7
MidCode#Routing

How many IP addresses does AWS reserve in each subnet CIDR block?

AWS reserves 5 IP addresses in every subnet (e.g. in 10.0.0.0/24).0: Network address • .1: Reserved by AWS for VPC router • .2: Reserved by AWS for DNS (AmazonProvidedDNS) • .3: Reserved by AWS for future use.

8
MidCode#Routing#Security & Auth

Security Groups (stateful) vs Network ACLs (stateless).

Security Group (Stateful): Works at the instance/ENI level • NACL (Stateless): Works at the subnet boundary.

9
MidCode#Routing

Internet Gateway vs NAT Gateway vs NAT Instance.

Internet Gateway (IGW): Scalable, highly available gateway attached to your VPC allowing public subnets bidirectional internet access • NAT Gateway: AWS-managed service in a public subnet that allows private subnet instances to make outbound internet calls (e.g., download.

10
MidCode#Routing

VPC Peering vs AWS Transit Gateway vs PrivateLink.

VPC Peering: Direct 1-to-1 connection between two VPCs • Transit Gateway: Centralized hub-and-spoke router connecting hundreds of VPCs and on-premises datacenters with transitive routing • PrivateLink: Privately exposes specific microservices or AWS APIs between VPCs via private ENIs without peering the entire networks.

11
MidCode#Routing

ALB vs NLB vs GWLB.

ALB (Application Load Balancer): Layer 7 (HTTP/HTTPS/gRPC) • NLB (Network Load Balancer): Layer 4 (TCP/UDP/TLS) • GWLB (Gateway Load Balancer): Deploys and scales third-party virtual network appliances (firewalls, deep packet inspection).

12
MidCode#Routing

ALB target health checks and Connection Draining (Deregistration Delay).

When an EC2 or container is de-registered or updated, connection draining keeps active in-flight requests alive for a configured time (e.g., 300 seconds) while stopping new requests from reaching it. This guarantees zero dropped requests during rolling deployments.

13
SeniorCode#Routing

Elastic IP (EIP) vs Standard Public IP.

Standard Public IP: Assigned automatically by AWS from its pool; released and changed whenever the instance is stopped and started • Elastic IP (EIP): Static IPv4 address permanently allocated to your account that stays the same across reboots and can be remapped to another.

14
MidCode#Routing

VPC Flow Logs analysis.

Captures IP traffic going to and from network interfaces in your VPC. Streamed to CloudWatch Logs or S3 and queried with Athena to identify port scanning, rejected traffic (REJECT), and routing misconfigurations.

15
SeniorCode#Routing#TypeScript

VPC Endpoints: Gateway vs Interface Endpoints.

Gateway Endpoints: Targets added to route tables for Amazon S3 and DynamoDB • Interface Endpoints (PrivateLink): Provisions Elastic Network Interfaces (ENIs) with private IP addresses inside your subnet for other AWS.

16
MidCode#Routing

Amazon Route 53 Routing Policies.

Simple: Standard 1-to-1 DNS lookup • Weighted: Splits traffic by percentage (e.g., 90% stable, 10% canary) • Latency-based: Routes users to the AWS region with the lowest ping • Failover: Active-Passive disaster recovery via health checks.

17
MidCode#Routing

Route 53 Alias Record vs CNAME Record.

CNAME: Standard DNS alias pointing one domain name to another • Alias Record: Route 53-specific record that can point the root zone apex (example.com) directly to AWS resources (ALB, CloudFront, S3) with free.

18
MidCode#Routing

Site-to-Site VPN vs AWS Direct Connect (DX).

Site-to-Site VPN: Encrypted IPsec tunnel running over the public internet • Direct Connect: Dedicated physical fiber optic connection from your datacenter directly into AWS.

19
MidCode#Routing

AWS Global Accelerator vs CloudFront.

CloudFront: CDN that caches static and dynamic HTTP content at 450+ global Edge Locations • Global Accelerator: Uses AWS's private fiber network and Anycast static IPs to route traffic fast for both HTTP and non-HTTP protocols (TCP.

20
MidCode#Routing

Egress-Only Internet Gateway.

The IPv6 equivalent of a NAT Gateway: it allows IPv6-enabled instances in private subnets to make outbound internet calls while blocking incoming connections initiated from the outside internet.

Part 3: Compute, Containers & Serverless (21 - 35)

15 Questions
21
MidCode#Docker & Containers

EC2 Instance Families & Graviton.

General Purpose (M, T): Balanced CPU and RAM for typical web applications • Compute Optimized (C): High CPU for batch jobs, media encoding, and machine learning inference • Memory Optimized (R, X): High RAM for in-memory caches (Redis) and large relational databases.

22
MidCode#Docker & Containers

EC2 Pricing Models comparison.

On-Demand: Pay by the second with zero commitment • Savings Plans / Reserved Instances: 1- or 3-year commitment for steady workloads; up to 72% discount • Spot Instances: Spare AWS capacity with up to 90% discount.

23
MidCode#Docker & Containers

EC2 Placement Groups: Cluster vs Spread vs Partition.

Cluster: Packs instances together in a single AZ for ultra-low latency and 100 Gbps network throughput • Spread: Places each instance on distinct physical hardware racks to prevent correlated hardware failures • Partition: Spreads instances across logical partitions that don't share racks (ideal for HDFS, Kafka, Cassandra).

24
MidCode#Docker & Containers

EBS-backed vs Instance Store-backed instances.

EBS (Elastic Block Store): Network-attached virtual hard drive • Instance Store (Ephemeral): Physical NVMe SSD directly attached to the host server.

25
SeniorCode#Docker & Containers

EC2 Auto Scaling Policies.

Target Tracking: Automatically adjusts capacity to maintain a specific target metric (e.g. keep average CPU at 60%) • Step Scaling: Increases or decreases instances in steps based on CloudWatch alarm thresholds.

26
MidCode#Docker & Containers

AWS Lambda Execution Model & Firecracker.

Lambda runs code in lightweight microVMs powered by Firecracker (open-source Rust virtualization). Lifecycle Phases: Init: Downloads code, starts runtime, runs code outside the handler function • Invoke: Executes the handler function with the incoming event payload • Shutdown: Reaps the execution environment when idle.

27
MidCode#Docker & Containers

Lambda Cold Starts & Mitigation Strategies.

A cold start happens during the Init phase when AWS provisions a new microVM container for your function. How to Mitigate: Provisioned Concurrency: Keeps pre-warmed execution environments ready 24/7 for zero cold-start latency • Keep deployment packages small (bundle with esbuild, tree-shake unused dependencies).

28
MidCode#Docker & Containers

Lambda Hard Resource Limits.

Maximum Memory: 10,240 MB (10 GB) • Maximum Timeout: 900 seconds (15 minutes) • Ephemeral /tmp storage: Up to 10 GB • Synchronous invocation payload limit: 6 MB; Asynchronous: 256 KB.

29
MidCode#Docker & Containers

Lambda Event Source Mapping (ESM).

An AWS-managed internal poller that reads records in batches from queues or streams (SQS, Kinesis, DynamoDB Streams) and synchronously invokes your Lambda function with the batch.

30
MidCode#Docker & Containers

Lambda in VPC without cold start penalty (Hyperplane ENIs).

AWS uses Hyperplane (shared network virtualization technology). Rather than creating a new Elastic Network Interface (ENI) for every single Lambda instance, Lambdas attach to pre-provisioned shared Hyperplane ENIs, eliminating the multi-second VPC cold start penalty.

31
SeniorCode#Docker & Containers

ECS vs EKS: Operational trade-offs.

Amazon ECS: AWS-native, simple, zero control-plane cost, deeply integrated with IAM and ALB • Amazon EKS: Managed Kubernetes.

32
SeniorCode#Docker & Containers

AWS Fargate trade-offs.

Pros: Serverless containers; no EC2 instances to provision, scale, patch, or secure • Cons: Slightly higher per-hour compute cost than reserved EC2 instances; does not support privileged Docker containers.

33
MidCode#Security & Auth#Docker & Containers

Amazon ECR container security.

Amazon Elastic Container Registry supports: Tag Immutability: Prevents existing image tags (like latest or v1.0) from being overwritten • Vulnerability Scanning: Automated scanning with AWS Inspector on push to find CVE vulnerabilities in container packages.

34
MidCode#Docker & Containers

AWS App Runner.

A fully managed container runner: give it a GitHub repository or container image, and App Runner automatically builds, deploys, provisions load balancers, manages SSL, and scales your web service without configuring VPCs or clusters.

35
MidCode#Docker & Containers

AWS Step Functions: Standard vs Express Workflows.

Standard Workflows: For long-running orchestration (up to 1 year) • Express Workflows: For high-volume, short event processing (up to 5 minutes).

Part 4: Storage, Content Delivery & Databases (36 - 50)

15 Questions
36
Most AskedMidCode#Databases & SQL

S3 vs EBS vs EFS.

S3 (Object Storage): Unlimited storage accessible globally via REST API • EBS (Block Storage): Virtual hard drive attached to a single EC2 instance in one AZ • EFS (File Storage): Shared POSIX file system concurrently mountable by thousands of EC2 instances and Lambdas across multiple AZs.

37
Most AskedMidCode#Lifecycle#Databases & SQL

S3 Storage Classes and Lifecycle Rules.

Standard: Frequently accessed data, millisecond retrieval • Intelligent-Tiering: Automatically shifts objects between hot and cold tiers based on access patterns with no retrieval fees • Standard-IA: Infrequently accessed; lower storage cost, small per-GB retrieval fee.

38
Most AskedMidCode#Databases & SQL

How S3 achieves 99.999999999% (11 9s) durability.

S3 redundantly stores your data across multiple physically separated Availability Zones (minimum 3 AZs) within an AWS Region. It continuously verifies data checksums and automatically self-heals damaged data blocks in the background.

39
Most AskedMidCode#Security & Auth#Databases & SQL

S3 Security Mechanisms.

S3 Block Public Access: Account-wide or bucket-level master switch to prevent public exposure • Bucket Policies: Resource-based JSON policies controlling actions by specific principals or IP ranges • IAM Policies: Identity-based permissions attached to users and roles • SSE Encryption: Encryption at rest via SSE-S3 (AES-256) or SSE-KMS.

40
Most AskedMidCode#Databases & SQL

S3 Multipart Upload.

Uploads large files in parallel chunks (parts). Mandatory for files > 5 GB (recommended for > 100 MB). If one part fails due to network interruption, only that part needs to be retried rather than re-uploading the entire file.

41
Most AskedMidCode#Databases & SQL

S3 Versioning, Object Lock, and MFA Delete.

Versioning: Preserves every version of an object; deleting an item creates a reversible delete marker • Object Lock: Implements WORM (Write Once, Read Many) • MFA Delete: Requires a hardware MFA code to permanently delete object versions.

42
Most AskedMidCode#System Design#Databases & SQL

CloudFront Edge Locations & Regional Edge Caches.

Edge Locations: 450+ points of presence worldwide that cache content close to end users for ultra-fast load times • Regional Edge Caches: A larger caching layer sitting between Edge Locations and your origin server to prevent cache misses from overwhelming.

43
Most AskedMidCode#Databases & SQL

CloudFront Signed URLs vs Signed Cookies.

Signed URLs: Grants temporary access to a single specific file (e.g., a one-time video download link) • Signed Cookies: Grants access to multiple protected files or an entire folder without altering URLs (e.g., streaming HLS video segments to an.

44
Most AskedMidCode#Databases & SQL

CloudFront Functions vs Lambda@Edge.

CloudFront Functions: Lightweight JavaScript running at 450+ Edge Locations in sub-milliseconds • Lambda@Edge: Full Node.js/Python running at Regional Edge Caches.

45
Most AskedMidCode#Databases & SQL

Amazon RDS: Multi-AZ vs Read Replicas.

Multi-AZ: Synchronous standby replica in a second AZ • Read Replica: Asynchronous replica dedicated to Read Scaling.

46
Most AskedSeniorCode#System Design#Databases & SQL

Amazon Aurora Architecture.

Aurora separates compute from storage: Storage is distributed across 3 AZs with 6-way replication • Writes are acknowledged when 4 of 6 storage nodes commit • Delivers up to 5x the throughput of standard MySQL and 3x of standard PostgreSQL.

47
Most AskedMidCode#Databases & SQL

Aurora Serverless v2.

Scales database compute capacity up and down instantly in fractions of an Aurora Capacity Unit (ACU) within milliseconds in response to real-time traffic spikes, without dropping database connections.

48
Most AskedMidCode#Databases & SQL#DynamoDB

DynamoDB Single-Table Design.

Consolidates multiple entities (Users, Orders, Items) into a single DynamoDB table using generic Partition Keys (PK) and Sort Keys (SK) (e.g., PK=USER#123, SK=ORDER#999). Fetches a user and all their recent orders in a single sub-10ms query!

49
Most AskedMidCode#Databases & SQL#DynamoDB

DynamoDB GSI vs LSI.

LSI (Local Secondary Index): Uses the same Partition Key as the table with a different Sort Key • GSI (Global Secondary Index): Can choose completely new Partition and Sort keys.

50
Most AskedMidCode#Databases & SQL#DynamoDB

DynamoDB Streams.

A 24-hour time-ordered changelog of item modifications (INSERT, MODIFY, REMOVE). Automatically triggers AWS Lambda functions for event-driven workflows (e.g., sending notification emails or updating search indices).

Part 5: Security, IAM, Messaging & Enterprise Deployments (51 - 65)

15 Questions
51
MidCode#Security & Auth#Kubernetes

AWS Shared Responsibility Model.

AWS is responsible for "Security OF the Cloud": Physical data centers, host hardware, hypervisor, and managed software infrastructure • Customer is responsible for "Security IN the Cloud": Customer data, IAM credentials, OS patching (EC2), security groups, and encryption.

52
Most AskedMidCode#Security & Auth#Kubernetes

IAM User vs Group vs Role vs Policy.

User: Permanent identity with credentials for a specific person or service • Group: Collection of users that share the same permissions • Role: Temporary identity assumed by trusted services (EC2, Lambda) or users via temporary STS tokens • Policy: JSON document defining allowed (Allow) or denied (Deny) permissions.

53
Most AskedMidCode#Security & Auth#Kubernetes

IAM Policy Evaluation Logic.

Starts with default Implicit Deny • Evaluates all applicable policies • If an Explicit Deny exists anywhere, the final decision is immediately DENIED (Explicit Deny overrides everything!) • If an Explicit Allow exists and no Deny, decision is ALLOWED.

54
Most AskedMidCode#Security & Auth#Kubernetes

IAM Instance Profiles.

A container that attaches an IAM Role directly to an EC2 instance. The application retrieves temporary short-lived credentials via the Instance Metadata Service (IMDSv2), eliminating the security risk of hardcoding static access keys in code or config files.

55
MidCode#Security & Auth#Kubernetes

AWS Organizations & Service Control Policies (SCPs).

SCPs define the maximum permission boundaries across all AWS accounts in your organization. An SCP never grants permissions; it acts as an immutable guardrail (e.g., forbidding member accounts from disabling CloudTrail or deleting S3 backups).

56
MidCode#Security & Auth#Kubernetes

AWS KMS Envelope Encryption.

KMS uses a two-tier key model: A Customer Managed Key (KMS CMK) encrypts a small plaintext Data Key • The application uses the plaintext Data Key to encrypt large data payloads locally • The plaintext key is wiped from memory, and the Encrypted Data Key is stored alongside the encrypted data.

57
MidCode#Security & Auth#Kubernetes

Secrets Manager vs SSM Parameter Store.

SSM Parameter Store: Lightweight hierarchical storage for app configuration and simple encrypted secrets • Secrets Manager: Built specifically for critical credentials; features native automatic password rotation for RDS and database credentials.

58
MidCode#Security & Auth#Kubernetes

Amazon SQS vs Amazon SNS.

SQS (Queue / Pull Model): Messages sit in a queue until consumer workers pull and process them • SNS (Pub-Sub / Push Model): Fan-out publisher that pushes a single notification simultaneously to thousands of subscribers (Lambdas, SQS queues.

59
MidCode#Security & Auth#Kubernetes

SQS Standard vs FIFO Queues.

Standard Queue: Unlimited throughput, at-least-once delivery, best-effort message ordering (rare duplicates possible) • FIFO Queue: Strict First-In-First-Out ordering, exactly-once processing (deduplication ID), limited to 3,000 msgs/sec with batching.

60
MidCode#Security & Auth#Kubernetes

SQS Dead-Letter Queue (DLQ).

A secondary queue where failed messages are automatically moved after a consumer fails to process them after maxReceiveCount attempts. Prevents "poison pill" messages from clogging the main queue and allows engineers to inspect and replay errors.

61
MidCode#Security & Auth#Kubernetes

Amazon EventBridge.

A serverless event bus that routes JSON events between microservices, AWS services, and SaaS applications (Auth0, Stripe, Datadog) using JSON schema filtering rules without custom glue code.

62
MidCode#Security & Auth#Kubernetes

CloudWatch vs CloudTrail.

CloudWatch: Operational monitoring, metrics (CPU, memory, latency), log aggregation, and alarm dashboards • CloudTrail: Audit trail recording who did what, when, and from where across all AWS API calls and console actions.

63
MidCode#Security & Auth#Kubernetes

Zero-Downtime Deployments on AWS.

Rolling: CodeDeploy replaces instances incrementally behind the ALB • Canary: Directs 10% of traffic to the new version for 10 minutes; automatically rolls back if CloudWatch alarms trigger • Blue-Green: Provisions a complete duplicate environment (Green); switches 100% of ALB traffic instantly once health checks pass.

64
MidCode#Forms#Security & Auth

CloudFormation vs AWS CDK vs Terraform.

CloudFormation: Declarative JSON/YAML managed natively by AWS • AWS CDK: Uses real programming languages (TypeScript, Python) to generate CloudFormation templates with object-oriented abstractions • Terraform: Declarative HCL syntax, cloud-agnostic, manages state externally, and supports vast multi-cloud ecosystems.

65
SeniorCode#Security & Auth#Kubernetes

Disaster Recovery Strategies: Cost vs RTO/RPO.

From lowest cost to highest resiliency: Backup & Restore: Data backed up to S3; restored on failure (RTO/RPO in hours) • Pilot Light: Core data replicated continuously; minimal core compute kept off until disaster strikes • Warm Standby: Scaled-down version of full environment running continuously in a secondary region.