Volume 13 · Chapter 5 — Mock Interviews and Rapid-Fire Revision
Rapid-Fire Revision: Core Concepts
5.1 Introduction
This chapter is last-minute revision: concise question-and-answer cards covering the core concepts from across the series. Quiz yourself - cover the answer, respond, then check. These distil the essential points into interview-ready form.
Shared responsibility model?
AWS securesofthe cloud (data centres, hardware, network, virtualization); the customer securesinthe cloud (data, IAM, network config, OS patching on EC2, app security). The line shifts toward AWS with more managed services, but data and access control are always yours.
Multi-AZ vs multi-Region?
Multi-AZ protects against a data-centre failure within a Region - the baseline for all production. Multi-Region protects against a whole-Region loss and enables global low latency - the costliest tier, applied deliberately per system by RTO/RPO; its hard part is cross-Region data replication.
What makes a subnet public or private?
Its route table. Default route to an internet gateway = public; to a NAT gateway = private with outbound; none = fully private. Not a checkbox - always start connectivity diagnosis at the route table.
Security group vs NACL?
Security group: resource-level, stateful, allow-only, can reference other groups. NACL: subnet-level, stateless (both directions needed), allow and deny. A half-working connection is often a stateless NACL missing the return rule.
IAM permission evaluation rule?
Implicit default deny → an explicit Allow grants → an explicit Deny overrides everything. Explicit deny always wins, which makes SCPs and permission boundaries unbreakable org-wide guardrails.
Why roles over access keys?
Roles give temporary, auto-expiring credentials via STS with nothing long-lived to leak. Workloads get a role (no stored keys), people assume roles via SSO+MFA. Leaked long-lived keys are the top breach source.
Envelope encryption?
KMS issues a data key (plaintext + encrypted copy); encrypt data locally with the plaintext key, store the encrypted data key beside the data, discard the plaintext. Master key never leaves KMS; key-policy governs decryption, making encryption an access boundary.
Encryption in transit vs at rest?
In transit protects data on the network (TLS); at rest protects stored data (KMS on S3, EBS, RDS, DynamoDB). Independent - apply both. Key policies control who can decrypt.
EBS vs instance store?
EBS is durable network-attached storage that persists and can be snapshotted; instance store is fast but ephemeral, lost when the instance stops. Keep durable data on EBS.
How does an Auto Scaling group give elasticity and resilience?
It maintains a desired number of healthy instances across AZs: scaling policies add/remove with demand (elasticity), and health checks replace failures automatically while AZ spread survives zone loss (resilience).
When is Lambda the right choice?
Event-driven, spiky, or intermittent work - auto-scales and costs nothing when idle. Not for long-running processes, steady high throughput, or ultra-low-latency paths sensitive to cold starts.
Container vs VM; image vs container?
A VM virtualizes hardware (full guest OS, heavier); a container virtualizes the OS (shares the kernel, lighter). An image is an immutable versioned template; a container is a running instance of it. Deploy specific version tags, not “latest”.
ECS vs EKS vs Fargate?
ECS is AWS-native and simpler; EKS is managed Kubernetes (portable, richer, more complex). Fargate is a serverless compute mode for either, removing node management. Decide orchestrator and compute mode separately.
Multi-AZ vs read replica (RDS)?
Multi-AZ is a synchronous standby for automatic failover (availability) - it doesn’t serve reads. Read replicas are asynchronous copies that scale reads - they don’t auto-failover. Often used together.
Relational vs DynamoDB?
Relational (RDS/Aurora) for complex queries, joins, and ACID transactions. DynamoDB for massive scale and low latency with simple key access - design keys around access patterns first. Often use both.
ACID and idempotency for money?
ACID (atomicity, consistency, isolation, durability) makes money movement atomic and durable and prevents concurrency corruption. Idempotency keys make retried/redelivered operations apply exactly once. Both non-negotiable for financial correctness.
5.2 Closing
These core-concept cards cover the foundational knowledge an AWS and banking interview assumes. Review them until each answer is instant and structured. The next chapter continues with services-and-patterns revision cards.