๐ง Enterprise Architecture & SRE Assessment: Match-the-Pair Matrix
Welcome to the Enterprise Platform Architect & Staff SRE Diagnostic Matrix. This assessment is specifically calibrated to evaluate your staff-level mastery of High Availability, Disaster Recovery, Edge Delivery, SRE Standards, Real User Monitoring, Zero-Trust Defense, and Enterprise Governance.
๐งญ Beginner Mental Model & Step-by-Step Assessment Playbook
- Step 1 (Match the Core Primitive): Complete all 5 interactive Enterprise Architecture & SRE Match-the-Pair tiers.
- Step 2 (Active Recall Drill): Cover the right-hand column of the Lesson-by-Lesson One-Line Memory Bank below and answer each question out loud in one sentence.
- Step 3 (Verify War-Room Readiness): Practice explaining the architectural trade-offs and FinOps math for any question you hesitate on.
๐ฏ How It Works
- Review the Left Column (Enterprise Scenario, Architecture Directive, or Outage Symptom).
- Attempt to mentally map each block to its corresponding partner in the Right Column (Underlying Mechanism, Root Cause, or SRE Remediating Action).
- Expand the Solution Key & Architectural Rationale accordion to verify your understanding.
๐ข Tier 1: Low Difficulty (Operational Baseline)
Validates basic understanding of CloudFront OAC, W3C traceparent, RED metrics, WORM storage, and DORA standards.
๐ก Reveal Tier 1 Solution Key & Architectural Rationale Click to Expand
๐ก Tier 2: Medium Difficulty (Architecture & Failover)
Evaluates multi-AZ quorum calculation, Aurora replication, Vector pipelines, Expand/Contract migrations, and Edge serverless.
๐ก Reveal Tier 2 Solution Key & Architectural Rationale Click to Expand
๐ด Tier 3: Hard Difficulty (SRE & Infrastructure Exceptions)
Tests Route 53 ARC safety rules, Multi-Window Multi-Burn-Rate alerting, Kernel Livepatching, and Envelope Encryption.
๐ก Reveal Tier 3 Solution Key & Architectural Rationale Click to Expand
๐ฃ Tier 4: Complex Difficulty (Staff Architect Edge Cases)
Explores DNS TTL caching during regional failover, Canary write poison pills, Root account WORM tampering, and Traffic Shadowing state contamination.
๐ก Reveal Tier 4 Solution Key & Architectural Rationale Click to Expand
๐๏ธ Tier 5: Extreme Scale & Incident Governance (700+ Application Architectures)
Tests multi-entity AWS RAM subnet sharing, VPC IPAM collision prevention, JIT break-glass access, autonomous incident containment, and Organization Conformance Packs.
๐ก Reveal Tier 5 Solution Key & Architectural Rationale Click to Expand
๐ฐ Tier 6: FinOps Architecture & Cloud Financial Engineering
Tests FinOps commitment laddering, Kubernetes over-provisioning allocation, NAT Gateway data transfer cost traps, and Unit Economics.
๐ก Reveal Tier 6 Solution Key & Architectural Rationale Click to Expand
๐ Tier 7: Migration Architecture, High-Concurrency Sizing & War Room Incident Defense
Tests Little's Law and connection pool math, AWS DMS schema and index migration sequences, RDS Proxy connection pinning traps, XFetch cache stampede probabilistic early expiration, and Sev-1 Incident Commander command protocols.
๐ก Reveal Tier 7 Solution Key & Architectural Rationale Click to Expand
๐ Self-Evaluation Scoring Rubric
Complete mastery across brownfield migrations, high-concurrency math, FinOps engineering, and autonomous incident defense.
Strong operational capability; review edge-case failure modes in Tiers 5, 6, and 7 (RDS Proxy pinning, DMS index timing, Savings Plan haircut).
Solid technical foundation; deepen knowledge of Little's Law, commitment coverage formulas, RAM subnet sharing, and multi-AZ quorum.
Review Lessons 1 through 12 in the Enterprise Architecture & SRE Masterclass.
๐ง Complete Enterprise Architecture & SRE One-Line Memory Bank (Lesson-by-Lesson)
Use these rapid-fire one-line questions and answers to lock every single lesson of Enterprise Architecture & SRE (Lessons 1โ12), Capstone Engine, and Incident Triage into long-term memory.
๐๏ธ Enterprise Architecture & SRE Masterclass 96 Rapid Q&As
Lesson 1: Fleet Patching & Deployment Strategies
| # | One-Line Question | One-Line Answer |
|---|---|---|
| 1 | What are the 5 progressive deployment rings used in hyperscale enterprise fleet rollouts? | Ring 0 (Canary/Internal) โ Ring 1 (Dev/QA) โ Ring 2 (Single-AZ Early Prod) โ Ring 3 (Low-Traffic Region) โ Ring 4 (Global Production). |
| 2 | Why is Shadow / Dark Traffic Mirroring superior to synthetic staging tests for validating high-risk financial microservices? | It duplicates 100% of real production user payloads asynchronously to the v2 shadow deployment without returning shadow responses to real users. |
| 3 | Why must shadow deployments stub out or block downstream write calls (like charging credit cards or sending SMS)? | Without write-blocking mocks, replaying mirrored production requests would double-charge customers and send duplicate notifications! |
| 4 | What is the difference between Deployment and Release in modern platform engineering? | Deployment pushes binary code to production servers (dark/inactive), while Release exposes features to users dynamically via Feature Flags (OpenFeature / LaunchDarkly). |
| 5 | What is Bake Time in a progressive delivery pipeline? | A mandatory soak window (e.g., 30โ60 minutes) between deployment rings to catch slow memory leaks, connection pool exhaustion, or delayed cron failures. |
| 6 | How do you patch stateful database clusters (PostgreSQL / Redis Sentinel) with zero downtime? | Patch all Read Replicas / Standby nodes first, verify replication sync (0 lag), execute a Controlled Primary Switchover (<5s), and finally patch the demoted old primary. |
| 7 | What emergency mechanism kills a buggy new feature in < 200 milliseconds globally without waiting 15 minutes for a CI/CD container rollback? |
A Feature Flag Kill-Switch pushed via streaming SSE/WebSockets from the feature management control plane. |
| 8 | Why should automated rollbacks always be triggered by Composite SLIs rather than single CPU/memory metrics? | A broken deployment often throws fast HTTP 500 errors while using almost zero CPU or memory; rollbacks must watch error rate, p99 latency, and business conversion drops. |
Lesson 2: Enterprise HA & DR Architectures
| # | One-Line Question | One-Line Answer |
|---|---|---|
| 1 | Define RPO (Recovery Point Objective) vs RTO (Recovery Time Objective) in one sentence. | RPO measures how much data (time) you can afford to lose, while RTO measures how quickly service must be restored after an outage starts. |
| 2 | List the 4 standard Disaster Recovery (DR) tiers in order of increasing cost and decreasing RTO/RPO. | Backup & Restore (hours) โ Pilot Light (10โ30m) โ Warm Standby (1โ5m) โ Multi-Region Active-Active (<5s). |
| 3 | What is the exact difference between Pilot Light and Warm Standby DR architectures? | Pilot Light keeps only the data replication layer running in DR (compute is scaled to zero), whereas Warm Standby keeps a scaled-down but live functional copy of all microservices running 24/7. |
| 4 | Why should you never use Route 53 Control Plane APIs (ChangeResourceRecordSets) to execute an emergency Disaster Recovery DNS failover? |
Route 53 Control Plane lives in us-east-1 and is throttled/degraded during major AWS outages; you must use Route 53 Application Recovery Controller (ARC) Routing Control, which runs on a highly available data-plane cluster across 5 global regions. |
| 5 | What is the physical replication lag and RPO of Amazon Aurora Global Database across regions (ap-south-1 โ ap-south-2)? |
Under 1 second (RPO < 1s) using dedicated storage-layer replication independent of database CPU, with managed cross-region failover RTO under 1 minute. |
| 6 | Why is Multi-Region Active-Active with Synchronous Replication (RPO = 0) mathematically and physically impractical between Mumbai and Hyderabad (700 km)? |
Speed-of-light fiber latency adds ~15โ20ms RTT to every SQL commit lock, slashing write throughput and risking split-brain deadlocks under the CAP / PACELC Theorem. |
| 7 | How does Cell-Based Architecture (Sharded Active-Active) achieve multi-region active-active scale without cross-region distributed write locks? | It deterministically partitions users by user_id hash or geography into independent regional cells so a userโs writes only ever hit one home region at a time. |
| 8 | What causes Split-Brain Data Corruption during an automated DR failover, and how do you prevent it? | Both the old primary DB and promoted standby DB accept writes simultaneously; prevent it using STONITH (Shoot The Other Node In The Head) fencing tokens and revoking old primary VIP/route entries first. |
Lesson 3: Production 3-Tier K8s Reference Stack
| # | One-Line Question | One-Line Answer |
|---|---|---|
| 1 | Why must production Kubernetes containers set securityContext.readOnlyRootFilesystem: true? |
It prevents attackers who exploit an RCE vulnerability from downloading malware binaries or modifying application files on the container filesystem. |
| 2 | If readOnlyRootFilesystem: true is enabled, how do applications like NGINX or Spring Boot write temporary runtime files or caches? |
By mounting an ephemeral in-memory or scratch emptyDir: {} volume specifically at /tmp and /var/run. |
| 3 | What is the exact difference between startupProbe, readinessProbe, and livenessProbe in Kubernetes? |
startupProbe waits for slow legacy boot; readinessProbe removes a temporarily overloaded pod from Service endpoints without killing it; livenessProbe restarts a deadlocked container. |
| 4 | Why must a livenessProbe never check downstream dependencies like PostgreSQL or Redis connectivity? |
If the database blips for 3 seconds, every microservice podโs livenessProbe will fail simultaneously, causing Kubernetes to restart all pods at once in a catastrophic Cascading Restart Storm! |
| 5 | How do you guarantee a Kubernetes pod receives the Guaranteed Quality of Service (QoS) class so it is protected from node memory pressure evictions? |
Set resources.requests strictly equal to resources.limits for both CPU and Memory across every container in the Pod. |
| 6 | Why do Staff SREs recommend setting resources.requests.cpu without resources.limits.cpu (or using Guaranteed with pinned cores) for latency-critical Go/Java APIs? |
Hard CPU limits enforce 100ms Linux CFS bandwidth quotas that artificially throttle multi-threaded bursts even when 80% of the host nodeโs CPU cores are sitting completely idle. |
| 7 | What Kubernetes Linux capability drop is considered the mandatory Zero-Trust baseline for every production container? | securityContext.capabilities.drop: ["ALL"], combined with runAsNonRoot: true and seccompProfile.type: RuntimeDefault. |
| 8 | How do you prevent Kubernetes from automatically mounting the ServiceAccount API token into pods that donโt talk to kube-apiserver? |
Set automountServiceAccountToken: false on the Pod spec or ServiceAccount. |
Lesson 4: CloudFront Edge Delivery & Log Management
| # | One-Line Question | One-Line Answer |
|---|---|---|
| 1 | How do you prevent attackers from bypassing Amazon CloudFront + AWS WAF and sending requests directly to your origin AWS Application Load Balancer IP? | Use CloudFront VPC Origins (keeping the ALB 100% private) or restrict the ALB Security Group to the AWS-managed com.amazonaws.global.cloudfront.origin-facing prefix list + verify a rotated custom secret header in WAF. |
| 2 | What is CloudFront Origin Shield, and how does it protect backend Kubernetes clusters during traffic spikes? | An additional centralized caching layer placed in front of your origin that collapses duplicate cache misses from 600+ global Edge PoPs into a single origin fetch. |
| 3 | What replaces legacy S3 Origin Access Identity (OAI) for securing private S3 buckets behind CloudFront with KMS support? | Origin Access Control (OAC)โsupports SSE-KMS encrypted S3 buckets, dynamic PUT/POST requests, and AWS Signature Version 4 (SigV4). |
| 4 | What is the difference between CloudFront Functions and Lambda@Edge? | CloudFront Functions run in < 1ms at all 600+ Edge PoPs for lightweight header/URL rewrites at 1/6th the cost; Lambda@Edge runs full Node.js/Python at 13 Regional Edge Caches for heavy origin/network logic. |
| 5 | Why does ingesting 20 TB/day of raw debug logs into Datadog, Splunk, or CloudWatch Logs bankrupt enterprise observability budgets? | Commercial log indexers charge $1.50โ$3.00 per GB ingested + retention fees, turning 20 TB/day into a $15M+/year bill. |
| 6 | How does the Hot / Warm / Cold Tiered Log Architecture cut observability spend by 80%? | Vector / FluentBit routes ERROR/SECURITY logs to Hot OpenSearch (7 days), operational metrics to Prometheus, and streams 100% of raw verbose logs compressed in Zstandard Parquet directly to Cold S3 queried via Amazon Athena. |
| 7 | What agent written in Rust processes and transforms logs at 10ร the throughput and a fraction of the memory of legacy Logstash/Fluentd? | Vector (by Datadog) or Fluent Bit (written in C). |
| 8 | What HTTP Cache-Control directive allows CloudFront to immediately serve a slightly expired cached object to the user while asynchronously refreshing it from the origin in the background? |
Cache-Control: max-age=60, stale-while-revalidate=300, stale-if-error=86400. |
Lesson 5: RUM Specs, Telemetry & SRE Standards
| # | One-Line Question | One-Line Answer |
|---|---|---|
| 1 | Why can backend APM dashboards be 100% green (200 OK) while 30% of real customers in India are staring at a broken blank screen? |
Backend metrics cannot see client-side ISP BGP blackholes (Jio/Airtel routing issues), CDN SSL handshake failures, or fatal React JavaScript crashesโrequiring Real User Monitoring (RUM). |
| 2 | What are the 3 Google Core Web Vitals tracked by RUM SDKs? | LCP (Largest Contentful Paint < 2.5s), INP (Interaction to Next Paint < 200ms), and CLS (Cumulative Layout Shift < 0.1). |
| 3 | What W3C standard HTTP header connects a userโs browser click in RUM all the way through API Gateways, Kafka queues, and database queries? | traceparent (00-<32-hex-trace-id>-<16-hex-span-id>-<flags>). |
| 4 | What is the critical difference between Head-Based Sampling and Tail-Based Sampling in OpenTelemetry? | Head-based makes a random coin-flip decision (1%) when the request enters (missing 99% of rare errors); Tail-based buffers spans in the OTel Collector and keeps 100% of traces containing errors or high latency while sampling normal 200 OK traces at 1%. |
| 5 | Why must all spans sharing the same trace_id be routed to the exact same OpenTelemetry Collector pod when using Tail-Based Sampling? |
Tail sampling requires inspecting the complete trace tree in memory; a Load-Balancing OTel Exporter (routing_key: traceID) hashes spans by trace_id to consistent collector pods. |
| 6 | Define SLI, SLO, and SLA in one crisp line. | SLI is the actual measurement (99.92% good requests), SLO is the internal engineering target (99.95%), and SLA is the external legal contract with financial penalties (99.90%). |
| 7 | How many minutes of downtime per 30-day month are allowed by a 99.9% (โThree Ninesโ) vs 99.99% (โFour Ninesโ) SLO? |
99.9% = 43.2 minutes/month; 99.99% = 4.32 minutes/month. |
| 8 | Why does the Google SRE Multi-Window Multi-Burn-Rate Alert check both a 1-hour window and a 5-minute window (14.4x burn rate) before paging an engineer? |
The 1h window confirms a real threat consuming 2% of monthly budget, while the 5m window ensures the alert stops firing immediately as soon as the outage ends. |
Lesson 6: Securing Scalable Systems, KPIs, KRIs & Auditing
| # | One-Line Question | One-Line Answer |
|---|---|---|
| 1 | What is the fundamental difference between a KPI (Key Performance Indicator) and a KRI (Key Risk Indicator)? | A KPI measures how efficiently you are achieving goals (e.g., Deployments/Day), whereas a KRI is a leading early-warning metric measuring how close you are to a catastrophic failure or breach (e.g., % of unpatched critical CVEs or certificates expiring in <7 days). |
| 2 | What are the 4 DORA (DevOps Research and Assessment) metrics used to measure engineering platform velocity and stability? | Deployment Frequency, Lead Time for Changes, Change Failure Rate (CFR), and Failed Deployment Recovery Time (MTTR). |
| 3 | Why does traditional perimeter security (โtrusted internal VPC subnetโ) fail in modern cloud breaches? | Once an attacker compromises a single public pod via SSRF or dependency hijacking, a flat trusted VPC allows unrestricted lateral movement across all internal databases. |
| 4 | What are the 3 pillars of Zero-Trust Architecture (NIST 800-207) inside a Kubernetes and Cloud platform? | (1) Verify cryptographic workload identity on every call (SPIFFE/mTLS), (2) Enforce L7 least-privilege access, and (3) Assume breach with continuous runtime behavioral monitoring (eBPF/Falco). |
| 5 | How does Falco or Cilium Tetragon detect a container breakout or reverse shell in real time? | By attaching eBPF probes to Linux kernel syscalls (execve, connect, openat), alerting or killing the process in kernel-space the millisecond a web container spawns /bin/sh or reads /etc/shadow. |
| 6 | What is Continuous Compliance as Code compared to traditional manual point-in-time SOC2/PCI-DSS spreadsheet audits? | Automated agents (AWS Security Hub, Config, Kyverno, Kubescape) continuously stream cryptographic evidence of control enforcement into an immutable audit lake 24/7. |
| 7 | How do you guarantee that even a rogue AWS Organization Admin cannot delete or alter historical CloudTrail security logs during a breach? | Stream Organization CloudTrail to a dedicated Log Archive Account S3 bucket with S3 Object Lock in Compliance Mode and an SCP blocking s3:PutBucketObjectLockConfiguration. |
| 8 | What KRI metric warns a Platform Architect that an automated Kubernetes node-autoscaling cliff is imminent? | Subnet IPv4 Exhaustion KRI (Available IPv4 Addresses per Subnet < 15%) and AWS Service Quota Utilization KRI (vCPU Quota > 80%). |
Lesson 7: Landing Zones at Scale (700+ Apps & Incident Mgmt)
| # | One-Line Question | One-Line Answer |
|---|---|---|
| 1 | How do you prevent 700 AWS accounts from creating overlapping 10.0.0.0/16 VPC CIDRs without maintaining a manual Excel spreadsheet? |
Deploy AWS VPC IPAM (IP Address Manager) at the Organization root to programmatically allocate non-overlapping CIDRs from regional pools via Terraform (aws_vpc_ipam_pool_cidr_allocation). |
| 2 | Why is Shared VPC (AWS RAM Subnet Sharing) preferred over creating 700 separate VPCs for 700 microservices? | Central Networking owns the VPC, route tables, and TGW attachments in one Network Account and shares specific subnets via AWS Resource Access Manager (RAM) into participant accounts, slashing NAT/endpoint sprawl and centralizing firewall governance. |
| 3 | How is an AWS account vended automatically in under 15 minutes when an engineering team submits a request in Backstage? | Account Factory for Terraform (AFT) triggers a GitOps pipeline that creates the account, moves it into the target OU, attaches SCPs, allocates an IPAM VPC, and registers it with Central Hub ArgoCD. |
| 4 | What happens when AWS GuardDuty detects cryptocurrency mining or IAM credential exfiltration inside one of your 700 AWS accounts? | EventBridge routes the High-Severity finding to a central SOAR Step Function that automatically attaches a Quarantine Deny-All Security Group, snapshots the EBS volume for forensics, and revokes active IAM Role sessions. |
| 5 | How do you revoke an active compromised AWS IAM Role session immediately across all running instances? | Attach the managed inline policy AWSRevokeOlderSessions, which denies all API actions (*:*) where aws:TokenIssueTime is earlier than the current timestamp. |
| 6 | Why do enterprises enforce Just-In-Time (JIT) Break-Glass Access with zero standing admin privileges in production accounts? | Standing AdministratorAccess roles are permanent targets for phishing and session hijacking; JIT grants temporary elevated access for 1โ2 hours tied to an active Sev-1 PagerDuty incident ID. |
| 7 | How do you deploy a mandatory security baseline (like AWS Config rules or a forensic IAM role) across all 700 accounts automatically? | Use CloudFormation StackSets with Service-Managed Permissions or AFT Global Account Customizations at the AWS Organization root. |
| 8 | What AWS service aggregates GuardDuty, Inspector, Macie, and CIS benchmark findings from 700 accounts into a single normalized dashboard? | AWS Security Hub (configured with a Delegated Administrator account and cross-region aggregation). |
Lesson 8: DB Seeding, Migrations & Cyclic Dependencies
| # | One-Line Question | One-Line Answer |
|---|---|---|
| 1 | Why must you never execute database schema migrations (flyway migrate / alembic upgrade) inside the application containerโs startup entrypoint script? |
When Kubernetes scales up 20 pods simultaneously, all 20 pods race to run DDL migrations at the exact same millisecond, causing schema lock contention, timeouts, and CrashLoopBackOff. |
| 2 | What is the industry-standard pattern for running database migrations in Kubernetes GitOps? | Run a single-pod ArgoCD PreSync Job (or Helm pre-upgrade hook) backed by an explicit database advisory lock (pg_advisory_lock) before rolling out new application pods. |
| 3 | Why does running ALTER TABLE orders ADD COLUMN status VARCHAR(20) DEFAULT 'NEW' in older DB engines (or adding a NOT NULL constraint without NOT VALID in PostgreSQL) take down a high-traffic table? |
It acquires an ACCESS EXCLUSIVE lock that blocks both reads (SELECT) and writes (INSERT/UPDATE) while scanning the table, piling up application threads in seconds! |
| 4 | How do you add a FOREIGN KEY or CHECK constraint to a 500-million-row PostgreSQL table with zero table locking downtime? |
Run ALTER TABLE orders ADD CONSTRAINT fk_user FOREIGN KEY (user_id) REFERENCES users(id) NOT VALID; (instant metadata lock), followed by ALTER TABLE orders VALIDATE CONSTRAINT fk_user; (which takes only a non-blocking SHARE UPDATE EXCLUSIVE lock). |
| 5 | What mandatory SQL session timeout must be set at the top of every production migration script to prevent a blocked DDL statement from queuing all application SELECT queries? |
SET lock_timeout = '2s'; SET statement_timeout = '10s';โif the migration cannot acquire the table lock within 2 seconds, it aborts harmlessly instead of freezing production! |
| 6 | Why must you always use CREATE INDEX CONCURRENTLY instead of CREATE INDEX on live PostgreSQL production tables? |
Standard CREATE INDEX locks the table against all writes (INSERT/UPDATE/DELETE) for the entire build duration; CONCURRENTLY builds the index in the background without blocking concurrent writes. |
| 7 | What are the 3 phases of the Expand-and-Contract (Parallel Change) Pattern for renaming or splitting a column with zero downtime? | (1) Expand: Add new nullable column & deploy dual-write code โ (2) Migrate: Backfill historical rows in small batches & switch reads to new column โ (3) Contract: Remove old column references in code, then drop old column in a future release. |
| 8 | How do you break a Terraform / Microservice Cyclic Dependency Deadlock (Service A needs Service Bโs URL, and Service B needs Service Aโs URL, or Security Group A and B reference each other)? | Decouple creation from wiring: provision deterministic Route 53 Internal DNS records / SSM Parameters or empty aws_security_group shells first, then attach aws_vpc_security_group_ingress_rule resources separately. |
Lesson 9: FinOps Architect & Cost Engineering
| # | One-Line Question | One-Line Answer |
|---|---|---|
| 1 | Why is tracking โTotal Monthly Cloud Billโ a flawed metric for high-growth companies, and what replaces it? | Total spend naturally rises when customer traffic doubles; Staff FinOps Architects track Unit Economics (e.g., Cloud Cost per 1,000 Checkout Transactions or Cost per Active User). |
| 2 | What tool integrates into GitHub Pull Requests to calculate the exact monthly dollar impact (+$1,420/mo) of a Terraform code change before it is merged? |
Infracost (paired with OPA/Conftest policies to block PRs exceeding budget thresholds without FinOps approval). |
| 3 | What open-source CNCF project runs inside Kubernetes to calculate real-time cost per namespace, deployment, and label by combining node billing APIs with cgroup usage? | OpenCost (the open-source engine powering Kubecost). |
| 4 | What causes the โKubernetes Slack Cost / Over-Provisioning Gapโ where nodes are 85% allocated in kubectl describe node but actual hardware CPU usage is only 12%? |
Developers set inflated resources.requests.cpu values (โjust to be safeโ), forcing Karpenter/Autoscaler to rent EC2 nodes for reserved capacity that is never actually consumed. |
| 5 | How do you safely automate rightsizing inflated Kubernetes CPU and Memory requests across 500 microservices? |
Deploy Goldilocks / Vertical Pod Autoscaler (VPA) in Recommender mode alongside OpenCost, and enforce rightsizing patches aligned to p95 historical consumption + 20% buffer. |
| 6 | What is the difference between AWS Compute Savings Plans and EC2 Instance Savings Plans? | Compute Savings Plans automatically apply across any EC2 instance family, size, OS, region, Fargate, or Lambda (up to 66% discount); EC2 Instance Savings Plans lock you to a specific instance family in one region for a slightly higher discount (up to 72%). |
| 7 | Why is targeting 100% Savings Plan / Reserved Instance coverage a dangerous FinOps anti-pattern? | It leaves zero room for seasonal traffic dips, architecture optimizations, or Spot adoption; the enterprise standard is 75โ85% Commitment Coverage purchased in staggered quarterly tranches (Commitment Laddering). |
| 8 | What are the 4 highest-ROI technical cost optimizations a Platform Architect can execute in week 1 without touching application business logic? | (1) Migrate x86 to AWS Graviton3/4 (m7g/c7g), (2) Convert all EBS gp2 volumes to gp3, (3) Add S3/DynamoDB Gateway VPC Endpoints to bypass NAT Gateways, and (4) Enable S3 Intelligent-Tiering. |
Lesson 10: Brownfield Cloud Migration Architecture
| # | One-Line Question | One-Line Answer |
|---|---|---|
| 1 | What are the 7 Rs of Cloud Migration, and which two yield the highest long-term cloud-native ROI vs fastest datacenter exit? | Retain, Retire, Relocate, Rehost (Lift-and-Shift โ fastest exit), Replatform (Lift-and-Tinker), Repurchase, and Refactor / Re-architect (Cloud-Native โ highest ROI). |
| 2 | What is the Strangler Fig Pattern (coined by Martin Fowler) for migrating a 15-year-old monolithic ERP/Banking application to Kubernetes microservices? | Place an API Gateway / Envoy Proxy in front of the legacy monolith and incrementally peel off one bounded domain route at a time (/api/payments, /api/users) to new cloud-native microservices until the monolith shrinks away. |
| 3 | What is an Anti-Corruption Layer (ACL) in a Strangler Fig migration? | A translation adapter layer between the new clean microservice domain model and the legacy monolithโs messy database schema so legacy technical debt does not pollute the new architecture. |
| 4 | How do you migrate a 20 TB on-premises Oracle or PostgreSQL database to AWS Aurora with less than 60 seconds of cutover downtime? | Use AWS Database Migration Service (DMS) in Full Load + Continuous CDC (Change Data Capture) mode, which streams ongoing binary transaction logs until cutover. |
| 5 | Why must you drop or disable secondary indexes and foreign keys on the target database during the DMS Full Load phase, but rebuild them before enabling CDC? | Indexes slow bulk INSERT speed by 10ร during Full Load; however, if indexes are missing when CDC starts applying UPDATE/DELETE statements, the target DB performs full table scans on every row change and stalls! |
| 6 | What is the safest way to validate that a newly migrated cloud database and microservice produce identical financial results to the on-prem system before cutover? | Run Parallel Run / Dual-Read Comparison (Diffy pattern) where live traffic is processed by both systems and an asynchronous comparator verifies 100% payload parity. |
| 7 | How do you guarantee an instant < 30-second rollback if an unexpected bug appears 2 hours after cutting over writes to the new cloud database? |
Set up Reverse CDC Replication (replicating changes from the new Cloud DB back to the old On-Prem DB) so the on-prem database remains warm and up-to-date for instant fallback. |
| 8 | How do you solve the IP Hardcoding Trap where legacy on-premises apps have hardcoded private IPs (192.168.10.55) in compiled binaries? |
Extend the Layer-2/Layer-3 subnet via AWS Transit Gateway + Direct Connect during transition or intercept connections using local iptables / Envoy Virtual IPs pointing to cloud PrivateLink endpoints. |
Lesson 11: High-Concurrency Sizing (IPL Scale)
| # | One-Line Question | One-Line Answer |
|---|---|---|
| 1 | State Littleโs Law (L = ฮป ร W) and explain how it dictates microservice pod capacity during a traffic spike. | The number of concurrent in-flight requests (L) equals arrival rate (ฮป req/s) ร response latency (W seconds); if downstream latency W jumps 10ร (from 50ms to 500ms), required thread/connection capacity L instantly explodes 10ร at the exact same traffic rate! |
| 2 | What is the PostgreSQL / HikariCP mathematical formula for sizing optimal active database connections per database server? | Optimal Connections = (CPU Core Count ร 2) + Effective Spindle Count (e.g., a 16-vCPU RDS instance performs best at ~35โ50 active concurrent query threads, not 5,000!). |
| 3 | If 500 Kubernetes pods each open a pool of 20 database connections (500 ร 20 = 10,000 connections), how do you prevent PostgreSQL from crashing from connection context-switching? | Place PgBouncer (in transaction pooling mode) or AWS RDS Proxy in front of PostgreSQL to multiplex 10,000 client sockets over 50 warm backend database connections. |
| 4 | What causes AWS RDS Proxy Connection Pinning, which silently disables transaction multiplexing and ruins connection pooling? | Using session-level state such as SET variables, prepared statements, temporary tables, or advisory locks pins the client to a dedicated DB connection for the entire session. |
| 5 | Why do Reactive Auto-Scalers (HPA + Karpenter) fail during an Indian IPL Cricket toss or Flash Sale where traffic jumps from 10k RPS to 500k RPS in 8 seconds? | Even fast Karpenter + container cold starts take 45โ60 seconds; by the time new nodes register, the 500k RPS wave has already OOMKilled and cascaded across existing pods! |
| 6 | How do PhonePe, Hotstar, and Swiggy survive instant 50x IPL/Festival spikes without waiting for reactive autoscaling? | Predictive Pre-Scaling (Scheduled KEDA Cron Scalers + Pre-Warmed AWS ALBs) 30 minutes before the event, combined with Edge Waiting Rooms and Graceful Feature Degradation. |
| 7 | What is the XFetch Algorithm (Probabilistic Early Expiration), and how does it prevent a Redis Cache Stampede (Dogpile Effect) when a celebrity itemโs cache TTL expires? | Instead of waiting for TTL = 0 (when 10,000 threads miss cache simultaneously), a single worker probabilistically recomputes the cache slightly before expiration using Time - ฮฒ ยท ฮด ยท ln(rand()) โฅ TTL. |
| 8 | What Go concurrency primitive collapses 5,000 simultaneous identical cache-miss requests inside a pod into a single shared database query? | singleflight.Group (golang.org/x/sync/singleflight). |
Lesson 12: War Room Incident Defense & RCAs
| # | One-Line Question | One-Line Answer |
|---|---|---|
| 1 | What is the golden rule of a Sev-1 War Room during the first 15 minutes of a catastrophic outage? | Mitigate Customer Impact First, Diagnose Root Cause Secondโstop the bleeding via rollback, traffic failover, feature flag kill-switch, or load shedding before debugging code. |
| 2 | What are the 3 distinct roles in an incident command structure (ICS)? | Incident Commander (IC) (single decision authority, runs no CLI commands), Operations Lead (Ops) (executes technical mitigations), and Communications Lead (Comms) (updates status page & executives every 15m). |
| 3 | Why must the Incident Commander strictly forbid engineers from running unannounced kubectl delete or config edits during a Sev-1 call? |
Uncoordinated mutations destroy forensic evidence and frequently compound a single-zone degradation into a total global outage. |
| 4 | What is Load Shedding vs Graceful Degradation during a saturation crisis? | Load Shedding drops excess requests cheaply at the edge (HTTP 503 + Retry-After) to protect core server survival; Graceful Degradation disables non-essential features (recommendations/reviews) so core checkout succeeds. |
| 5 | Why must a Load Shedder use a LIFO (Last-In, First-Out) or CoDel queue instead of a long FIFO queue during an overload? | In a deep FIFO queue, every request waits 10 seconds only to be processed after the client already timed out; LIFO serves fresh requests immediately in <50ms and drops stale expired requests. |
| 6 | What is Metastable Failure (Latching Overload), where a cluster remains 100% dead at 5xx even after external traffic drops back down to normal low levels? |
Retry storms, exhausted connection pools, and JVM garbage collection thrashing lock the system into a self-sustaining failure loop that cannot recover without shedding 100% of load or resetting retry queues. |
| 7 | In a Blameless Postmortem (COE โ Correction of Errors), why is โHuman Error โ Engineer ran wrong commandโ never accepted as a Root Cause? | Human error is always a symptom of missing system guardrails; the true root cause is the systemic gap that allowed a single command or unvalidated config to reach production without automated safety gates. |
| 8 | What are the two categories of Postmortem Action Items required before closing a Sev-1 COE? | Prevention Items (reducing probability of recurrence, e.g., OPA policy gate) and Detection / Mitigation Items (reducing MTTR, e.g., automated canary rollback in <60s). |
๐ Capstone & Incident Triage Directory 5 Rapid Q&As
Capstone: The Self-Service Cloud Engine
| # | One-Line Question | One-Line Answer |
|---|---|---|
| 1 | Trace the complete end-to-end flow of the Self-Service Cloud Engine Capstone when a developer clicks "Create Production Service" in Backstage. |
Backstage Scaffolder opens a Git PR โ Checkov/OPA validates policy โ ArgoCD ApplicationSet syncs manifests โ Crossplane KCL provisions AWS RDS/S3 โ ESO/Vault injects secrets โ Cilium + Karpenter runs the workload. |
| 2 | Why does the Capstone architecture use Terraform for the base Landing Zone / EKS bootstrap and Crossplane for developer-requested databases and queues? | Terraform excels at foundational static cluster/network bootstrapping, while Crossplane empowers self-service developers to request app-scoped cloud resources via Kubernetes YAML reconciled continuously by ArgoCD. |
| 3 | How does the Capstone architecture guarantee that no microservice can ever be deployed to production without an SBOM, a Cosign signature, and an active SLO? | GitHub Actions signs the image with Cosign and attaches the CycloneDX SBOM, Kyverno verifies both at admission time, and Backstage Scorecards gate ArgoCD promotion on valid SLO definitions. |
| 4 | How does the Capstone platform achieve zero-trust multi-tenancy across engineering teams sharing the same EKS cluster? | Each team gets an isolated namespace governed by ResourceQuotas, Cilium L7 Default-Deny NetworkPolicies, dedicated IRSA roles, and OpenCost chargeback tagging. |
| 5 | What makes this Capstone architecture the ultimate Staff/Principal interview portfolio piece for the Indian and global tech market? | It unifies Day-0 Architecture (Landing Zones/TGW), Day-1 Golden Paths (Backstage/Crossplane/ArgoCD), and Day-2 SRE Operations (eBPF/Chaos Mesh/OpenCost/vLLM) into one cohesive production platform. |