Learn AWS core architecture, production scenario-based questions, incident response, and real-world engineering solutions.
❓ Q1: What is cloud computing?
Click on the dropdown below to reveal the technical answer.
Answer: Cloud computing is the on-demand delivery of IT resources (including compute, databases, storage, and networking) over the internet with pay-as-you-go pricing. Instead of buying, owning, and maintaining physical data centers, you rent technology services from cloud providers like AWS.
❓ Q2: What is the difference between CapEx and OpEx?
Click on the dropdown below to reveal the technical answer.
Answer:
❓ Q3: Explain elasticity with a real-world example.
Click on the dropdown below to reveal the technical answer.
Answer: Elasticity is the ability of a system to scale its resources up and down automatically to match active load.
❓ Q4: What is the difference between Public, Private, and Hybrid cloud models?
Click on the dropdown below to reveal the technical answer.
Answer:
❓ Q5: Compare IaaS, PaaS, and SaaS with AWS service examples.
Click on the dropdown below to reveal the technical answer.
Answer:
❓ Q6: Why is Amazon EC2 considered IaaS?
Click on the dropdown below to reveal the technical answer.
Answer: EC2 is considered IaaS because AWS handles physical servers, virtualization hypervisors, power, and networking, but grants you full root access to the virtual machine. You are responsible for selecting, configuring, securing, and patching the operating system (OS), runtime, database, and application stack.
❓ Q7: Why is AWS Lambda considered PaaS?
Click on the dropdown below to reveal the technical answer.
Answer: AWS Lambda is considered PaaS (or FaaS - Function as a Service) because you only write and upload your application code. AWS handles all server provisioning, scaling, patching, OS maintenance, and runtime execution automatically, charging you only for the exact milliseconds your code runs.
❓ Q8: What is an AWS Spot Instance and how does its pricing work?
Click on the dropdown below to reveal the technical answer.
Answer: Spot Instances allow you to bid on spare, unused AWS EC2 capacity at up to a 90% discount compared to On-Demand.
❓ Q9: When would you choose to use Reserved Instances over On-Demand?
Click on the dropdown below to reveal the technical answer.
Answer: Choose Reserved Instances (RIs) or Savings Plans for predictable, steady-state production workloads running 24/7 (such as core relational databases or primary web servers). RIs require a 1-year or 3-year commitment in exchange for up to a 72% discount compared to On-Demand.
❓ Q10: Why are Spot Instances not suitable for production databases?
Click on the dropdown below to reveal the technical answer.
Answer: Databases require state persistence, high availability, and consistent execution. Because Spot Instances can be terminated abruptly with a 2-minute warning, using them for a database can lead to data corruption, lost transactions, and service downtime.
❓ Q11: What is the AWS Shared Responsibility Model?
Click on the dropdown below to reveal the technical answer.
Answer: The Shared Responsibility Model divides security tasks between AWS and the customer:
❓ Q12: What is AWS WAF?
Click on the dropdown below to reveal the technical answer.
Answer: AWS WAF (Web Application Firewall) is a Layer 7 firewall that monitors and filters incoming HTTP/HTTPS requests. It protects web applications against common web exploits (such as SQL Injection, Cross-Site Scripting, and bot traffic) before the request reaches the ALB, API Gateway, or CloudFront.
❓ Q13: How does AWS WAF prevent SQL Injection?
Click on the dropdown below to reveal the technical answer.
Answer:
WAF inspects the body, query parameters, and headers of incoming HTTP requests for malicious SQL keyword patterns and signatures (e.g., ' OR '1'='1). If a match is found, WAF blocks the request and returns an HTTP 403 Forbidden, preventing the payload from reaching the application database.
❓ Q14: What is the difference between AWS WAF and a Security Group?
Click on the dropdown below to reveal the technical answer.
Answer:
❓ Q15: What is IAM?
Click on the dropdown below to reveal the technical answer.
Answer: AWS IAM (Identity and Access Management) is a secure administration service that controls authentication (who can log in) and authorization (what permissions they have) for your AWS resources.
❓ Q16: Explain the difference between an IAM User, Group, Role, and Policy.
Click on the dropdown below to reveal the technical answer.
Answer:
❓ Q17: What is the Principle of Least Privilege?
Click on the dropdown below to reveal the technical answer.
Answer: The Principle of Least Privilege dictates that users, resources, and applications should only be granted the minimum permissions necessary to complete their specific tasks, and nothing more. This minimizes security exposure if credentials are leaked.
❓ Q18: Why should you avoid using the Root Account for daily tasks?
Click on the dropdown below to reveal the technical answer.
Answer: The Root Account has unrestricted, complete administrative privileges that cannot be restricted by policies. If compromised or used incorrectly, it could lead to deletion of the entire AWS infrastructure, resource leaks, or major billing spikes.
❓ Q19: How do you securely give an EC2 instance access to an S3 bucket?
Click on the dropdown below to reveal the technical answer.
Answer: Create an IAM Role with read/write access to the specific S3 bucket, and attach it to the EC2 instance as an Instance Profile. The AWS SDK running inside the EC2 instance will query the instance metadata service (IMDSv2) to obtain temporary security credentials automatically. Never hardcode access keys on the instance!
❓ Q20: What are IAM Roles and why are temporary credentials safer than permanent access keys?
Click on the dropdown below to reveal the technical answer.
Answer: IAM Roles issue short-lived security tokens via the AWS Security Token Service (STS) that expire automatically (usually in 1–12 hours). Permanent access keys do not expire and must be rotated manually; if leaked (e.g., pushed to GitHub), they expose your account indefinitely.
❓ Q21: Secrets Manager vs Parameter Store. Which should you use?
Click on the dropdown below to reveal the technical answer.
Answer:
❓ Q22: What is KMS? Explain envelope encryption.
Click on the dropdown below to reveal the technical answer.
Answer:
❓ Q23: Explain AWS Organizations and Service Control Policies (SCPs).
Click on the dropdown below to reveal the technical answer.
Answer:
❓ Q24: What is Amazon S3 and why is it called object storage?
Click on the dropdown below to reveal the technical answer.
Answer: Amazon S3 (Simple Storage Service) is object storage because it treats files as discrete, independent flat entities ("objects") containing data, metadata, and a unique key identifier. It does not use a traditional hierarchical directory structure or block allocation.
❓ Q25: What is a Bucket and what is an Object in S3?
Click on the dropdown below to reveal the technical answer.
Answer:
❓ Q26: What is the fundamental difference between EBS and S3?
Click on the dropdown below to reveal the technical answer.
Answer:
❓ Q27: Why is EBS better for databases than S3?
Click on the dropdown below to reveal the technical answer.
Answer: Relational databases require microsecond latency, high input/output operations (IOPS), and block-level modifications (updating a single row instead of re-uploading the entire database file). EBS provides block storage directly, whereas S3 is accessed via API and requires replacing the entire object for any change.
❓ Q28: Are S3 buckets public by default?
Click on the dropdown below to reveal the technical answer.
Answer: No. All newly created S3 buckets are private and block all public access by default. You must explicitly disable "Block Public Access" and apply a bucket policy or ACL to make files public.
❓ Q29: What are S3 Bucket Policies and how do they work?
Click on the dropdown below to reveal the technical answer.
Answer:
S3 Bucket Policies are JSON documents attached directly to a bucket that define permission rules. They specify who (Principal) can perform what actions (Effect/Action, e.g., s3:GetObject) on which files (Resource) under specific conditions.
❓ Q30: How does CloudFront securely work with an S3 bucket origin?
Click on the dropdown below to reveal the technical answer.
Answer: Using Origin Access Control (OAC):
❓ Q31: What is the AWS CLI and how does it communicate with AWS?
Click on the dropdown below to reveal the technical answer.
Answer: The AWS Command Line Interface (CLI) is a command tool used to manage AWS resources. It translates command actions into standard REST HTTPS API calls, signing requests with secret keys configured on your local workstation.
❓ Q32: What is the difference between AWS CLI and the AWS Console?
Click on the dropdown below to reveal the technical answer.
Answer:
❓ Q33: What is Infrastructure as Code (IaC)?
Click on the dropdown below to reveal the technical answer.
Answer: Infrastructure as Code (IaC) is the practice of managing and provisioning infrastructure resources through machine-readable definition files (code), rather than manually configuring servers through interactive console interfaces.
❓ Q34: How do you automate AWS infrastructure, and what is the difference between Terraform and CloudFormation?
Click on the dropdown below to reveal the technical answer.
Answer: Automate using declarative templates that state the desired target architecture:
❓ Q35: Compare RDS vs Aurora.
Click on the dropdown below to reveal the technical answer.
Answer:
❓ Q36: Compare Multi-AZ vs Read Replicas in RDS.
Click on the dropdown below to reveal the technical answer.
Answer:
❓ Q37: Explain DynamoDB partition key design and autoscaling.
Click on the dropdown below to reveal the technical answer.
Answer:
user_id instead of status).❓ Q38: Why Use Lambda? What are its benefits?
Click on the dropdown below to reveal the technical answer.
Answer:
❓ Q39: Compare SNS vs SQS.
Click on the dropdown below to reveal the technical answer.
Answer:
❓ Q40: Compare Standard Queue vs FIFO Queue in SQS.
Click on the dropdown below to reveal the technical answer.
Answer:
❓ Q41: What is EventBridge and Step Functions?
Click on the dropdown below to reveal the technical answer.
Answer:
❓ Q42: What is a VPC and what is CIDR notation?
Click on the dropdown below to reveal the technical answer.
Answer:
10.0.0.0/16 defines a network containing 65,536 IPs, where /16 represents the network prefix bits).❓ Q43: Why does AWS reserve 5 IP addresses per subnet?
Click on the dropdown below to reveal the technical answer.
Answer: AWS reserves 5 IP addresses in every subnet for infrastructure routing:
.0 (Network address).1 (VPC Router).2 (Amazon Provided DNS Server).3 (Future use).255 (Network Broadcast Address)❓ Q44: What is the difference between Public and Private Subnets?
Click on the dropdown below to reveal the technical answer.
Answer:
0.0.0.0/0) to an Internet Gateway (IGW). Resources are reachable from the internet if assigned public IPs.❓ Q45: What is an Internet Gateway?
Click on the dropdown below to reveal the technical answer.
Answer: An Internet Gateway (IGW) is a redundant, horizontally scaled VPC component that enables bi-directional (inbound and outbound) communications between instances in public subnets and the public internet.
❓ Q46: Why is a NAT Gateway needed and why MUST it be in a Public Subnet?
Click on the dropdown below to reveal the technical answer.
Answer: A NAT Gateway allows resources in private subnets to send outbound connections to the internet (e.g., to run updates) while blocking inbound connections from the internet. It must live in a public subnet because it must translate private IP requests and route them out through the Internet Gateway (IGW).
❓ Q47: What is the difference between a Security Group and a NACL?
Click on the dropdown below to reveal the technical answer.
Answer:
| Feature | Security Group | Network ACL (NACL) |
|---|---|---|
| Pillar Level | Instance Level (EC2/ENI) | Subnet Level |
| Rules Type | Allow rules only | Allow AND Deny rules |
| State | Stateful (Return traffic is auto-allowed) | Stateless (Must write explicit outbound rules) |
| Rule Order | Evaluates all rules | Evaluates sequentially in rule order |
❓ Q48: What does "Stateful" and "Stateless" mean in the context of firewalls?
Click on the dropdown below to reveal the technical answer.
Answer:
❓ Q49: When would you use VPC Peering versus a Transit Gateway? Which is more cost-effective?
Click on the dropdown below to reveal the technical answer.
Answer:
❓ Q50: What is a NAT Gateway, and how does it differ from an Internet Gateway (IGW)?
Click on the dropdown below to reveal the technical answer.
Answer:
❓ Q51: What is CloudWatch and how do CloudWatch Alarms work?
Click on the dropdown below to reveal the technical answer.
Answer:
❓ Q52: Does CloudWatch monitor EC2 RAM by default? If not, how do you monitor it?
Click on the dropdown below to reveal the technical answer.
Answer: No. CloudWatch cannot see memory (RAM) utilization because RAM is an OS-level metric, and the hypervisor only monitors hardware-level performance (CPU, Disk, Network). To monitor RAM, you must install the CloudWatch Agent inside the EC2 operating system to collect and push custom memory metrics.
❓ Q53: What is a container and why do we need container orchestration?
Click on the dropdown below to reveal the technical answer.
Answer:
❓ Q54: What is Amazon ECR?
Click on the dropdown below to reveal the technical answer.
Answer: Amazon Elastic Container Registry (ECR) is a managed container registry service. It stores, manages, and distributes Docker container images securely within the AWS ecosystem.
❓ Q55: What is Amazon ECS?
Click on the dropdown below to reveal the technical answer.
Answer: Amazon Elastic Container Service (ECS) is an AWS-native container orchestration service. It is designed to deploy, run, and scale Docker containers easily, offering close integration with AWS services like IAM, Route 53, and Load Balancers.
❓ Q56: What is the difference between ECS and EKS?
Click on the dropdown below to reveal the technical answer.
Answer:
❓ Q57: Explain the difference between an ECS Task Definition, a Task, and a Service.
Click on the dropdown below to reveal the technical answer.
Answer:
❓ Q58: What is AWS Fargate and how does it compare to the EC2 Launch Type?
Click on the dropdown below to reveal the technical answer.
Answer:
❓ Q59: Why would you choose Fargate over standard EC2 for containers?
Click on the dropdown below to reveal the technical answer.
Answer: Choose Fargate to reduce operational overhead. AWS handles scaling, VM provisioning, OS patching, and security isolation. It allows engineering teams to focus entirely on application deployment rather than server management.
❓ Q60: What is Route 53 and what are its routing policies?
Click on the dropdown below to reveal the technical answer.
Answer: Route 53 is AWS's managed Domain Name System (DNS) service. It provides advanced routing policies:
❓ Q61: What is CloudFront, and what is a CDN?
Click on the dropdown below to reveal the technical answer.
Answer: CloudFront is AWS's Content Delivery Network (CDN). A CDN is a globally distributed network of servers (Edge Locations) that caches static and dynamic web content (images, HTML, APIs) closer to users, improving load speed and reducing origin server load.
❓ Q62: How does CloudFront reduce global latency?
Click on the dropdown below to reveal the technical answer.
Answer: CloudFront caches content at global Edge Locations. When a user requests a file, Route 53 routes them to the nearest Edge Location. If cached, the asset is returned immediately without hitting the origin server, drastically reducing network travel time.
❓ Q63: What are AWS Edge Locations?
Click on the dropdown below to reveal the technical answer.
Answer: Edge Locations are mini-data centers managed by AWS globally (outside of standard AWS Regions) used by CloudFront (CDN) and Route 53 (DNS) to cache content and execute low-latency edge computing scripts.
❓ Q64: How would you improve website performance for global users complaining about slow image loading?
Click on the dropdown below to reveal the technical answer.
Answer: Deploy an Amazon CloudFront distribution in front of the application or S3 bucket origin hosting the images. Configure long Cache TTLs so images are cached globally at Edge Locations, ensuring users retrieve assets from nearby servers rather than cross-continent origins.
❓ Q65: Explain EKS architecture.
Click on the dropdown below to reveal the technical answer.
Answer: Amazon EKS manages the Kubernetes control plane across multiple AWS Availability Zones (AZs) to ensure high availability:
kube-apiserver and etcd members) across three AZs behind an internal NLB.❓ Q66: Compare Managed Node Groups vs Self-Managed Node Groups in EKS.
Click on the dropdown below to reveal the technical answer.
Answer:
❓ Q67: How does IAM Roles for Service Accounts (IRSA) work in AWS EKS?
Click on the dropdown below to reveal the technical answer.
Answer: IRSA maps IAM Roles directly to Kubernetes ServiceAccounts:
AssumeRoleWithWebIdentity API call.❓ Q68: Explain a highly available production architecture using Route 53, CloudFront, and ECS.
Click on the dropdown below to reveal the technical answer.
Answer:
❓ Q69: What is CI/CD?
Click on the dropdown below to reveal the technical answer.
Answer:
❓ Q70: What is the difference between Continuous Delivery and Continuous Deployment?
Click on the dropdown below to reveal the technical answer.
Answer:
❓ Q71: What is CodeCommit?
Click on the dropdown below to reveal the technical answer.
Answer: Amazon CodeCommit is a fully managed private Git repository service. It provides source control hosting that integrates natively with AWS IAM, CodePipeline, and KMS encryption.
❓ Q72: What is CodeBuild?
Click on the dropdown below to reveal the technical answer.
Answer: Amazon CodeBuild is a managed build service that compiles source code, runs unit tests, and packages deployable artifacts (such as jar files or Docker images). CodeBuild scales dynamically and bills you per build minute.
❓ Q73: What is
buildspec.yml?Click on the dropdown below to reveal the technical answer.
Answer:
A buildspec.yml is a YAML configuration file placed in the root directory of your source code. It tells CodeBuild what commands to run during various execution phases (install, pre_build, build, post_build) and specifies which generated files to export as build artifacts.
❓ Q74: What is CodeDeploy?
Click on the dropdown below to reveal the technical answer.
Answer: Amazon CodeDeploy is a deployment service that automates application deployments to EC2 instances, on-premises servers, serverless Lambda functions, or ECS services, minimizing application downtime during releases.
❓ Q75: What is
appspec.yml?Click on the dropdown below to reveal the technical answer.
Answer:
An appspec.yml is a configuration file used by CodeDeploy to define deployment parameters. It specifies:
BeforeInstall, AfterInstall, ApplicationStart, ValidateService).❓ Q76: What is CodePipeline?
Click on the dropdown below to reveal the technical answer.
Answer: Amazon CodePipeline is a managed continuous delivery tool that orchestrates the workflow of your release stages (Source, Build, Test, Deploy), passing artifacts between stages automatically.
❓ Q77: What is the difference between CodeBuild and CodePipeline?
Click on the dropdown below to reveal the technical answer.
Answer:
❓ Q78: What is an Artifact?
Click on the dropdown below to reveal the technical answer.
Answer: A build artifact is a zip archive, compiled binary, docker image, or deployment package generated during a pipeline stage (e.g., CodeBuild output) and passed as the input for a subsequent stage (e.g., CodeDeploy input), typically stored in an S3 bucket managed by CodePipeline.
❓ Q79: Explain a full AWS CI/CD pipeline.
Click on the dropdown below to reveal the technical answer.
Answer:
❓ Q80: What is In-Place Deployment?
Click on the dropdown below to reveal the technical answer.
Answer: In-place deployment stops the running application version on active servers, copies the new version files, and starts the application again.
❓ Q81: What is Blue/Green Deployment, and why is it safer?
Click on the dropdown below to reveal the technical answer.
Answer: Blue/Green deployment maintains two identical environments:
❓ Q82: How do you achieve zero-downtime deployment?
Click on the dropdown below to reveal the technical answer.
Answer: Deploy using a Blue/Green strategy or a Rolling Update with an Application Load Balancer. In a Rolling Update, new instances are added to the load balancer while old ones are slowly drained and terminated one by one, ensuring healthy instances are always serving traffic.
❓ Q83: How do you rollback a failed deployment in Blue/Green?
Click on the dropdown below to reveal the technical answer.
Answer: Since both Blue and Green environments run in parallel, rollback is simple: configure the load balancer/DNS to immediately route 100% of user traffic back to the old, stable (Blue) environment, and then terminate the problematic (Green) environment.
❓ Q84: What are deployment lifecycle hooks?
Click on the dropdown below to reveal the technical answer.
Answer:
Lifecycle hooks are phases defined in the appspec.yml file that allow you to run scripts at specific points during a deployment. E.g., BeforeInstall to prepare files, AfterInstall to configure packages, or ValidateService to query health-check endpoints before routing traffic.
❓ Q85: What happens after a Git push in a modern CI/CD flow?
Click on the dropdown below to reveal the technical answer.
Answer:
❓ Q86: Explain a production-grade AWS deployment architecture.
Click on the dropdown below to reveal the technical answer.
Answer: A production-grade architecture leverages:
When preparing for an AWS or DevOps interview, answering the technical questions is only half the battle. How you present your answers matters just as much.
Use the STAR Method for Scenarios:
Always Discuss Trade-offs:
Know the AWS Well-Architected Framework Pillars:
Think Out Loud:
Admit What You Don't Know: