DevOps.Academy
CoursesCurriculumInterview prepPricing
◔My learningSign in
DevOps.Academy

Free, hands-on DevOps lessons. Made with care in India.

System status

Learn

All coursesLinux roadmapCurriculumInterview questionsCheat sheetsMy learning

Academy

PricingCertificates

Legal

PrivacyTermsContact

devops.rajeev.pro

AWS for DevOps · interview practice

AWS for DevOps interview questions

Answer each one out loud first, then tap it to check yourself against a model answer and the lesson behind it.

Cloud basics 2IAM 2EC2 2VPC 2Scaling & load balancing 2S3 2Storage types 2Route 53 2CloudFront 2Databases 2Containers 6Lambda 1Monitoring & auditing 1Messaging 1Security & secrets 1Automation & IaC 1Cost basics 1

Cloud basics

Q1You run a web application on EC2 and manage its operating system. Which cloud service model is closest?junior

That is infrastructure as a service: AWS provides virtual infrastructure, while I manage the guest operating system and application. With a managed platform or service, AWS takes responsibility for more of the stack.

Read the lesson: Cloud basics: what you're actually renting →
Q2Why do Availability Zones matter when designing for failure?junior

An Availability Zone is an isolated location within an AWS Region. Spreading a workload across zones can reduce dependence on one zone, but the application and data path must also support failover.

Read the lesson: Cloud basics: what you're actually renting →

IAM

Q3What should an engineer use for routine AWS access instead of the root user?junior

I use a named identity or federated role with only the permissions needed for my work, and I enable MFA. I reserve root for account-level tasks that require it and protect its credentials carefully.

Read the lesson: IAM: who can do what →
Q4A request is denied even though an identity policy allows it. What do you inspect?junior

I inspect the full request context and applicable policies, including explicit denies, resource policies, permissions boundaries and organization controls. An explicit deny takes precedence over an allow.

Read the lesson: IAM: who can do what →

EC2

Q5What does an AMI provide when you launch an EC2 instance?junior

An AMI provides the machine image used to launch the instance, including its operating system and configured software. I choose a trusted, maintained image that matches the workload's requirements.

Read the lesson: EC2: your first server in the cloud →
Q6A web server is running on EC2, but clients cannot connect on HTTPS. Which network control do you check first?junior

I check the instance security group's inbound rules for TCP 443 from the intended client source, then verify routing, network ACLs and that the service is listening. I avoid opening the port to all sources unless that is the intended policy.

Read the lesson: EC2: your first server in the cloud →

VPC

Q7What makes an IPv4 subnet public in an AWS VPC?junior

Its route table has a route to an internet gateway. An instance also needs a public address and permissive security controls for direct internet connectivity; the route alone does not make every instance reachable.

Read the lesson: VPC: your own private network →
Q8How does a NAT gateway help an instance in a private subnet reach the internet?junior

The private subnet routes outbound internet traffic to a NAT gateway in a public subnet, which translates the source address. The instance can initiate outbound connections without accepting unsolicited inbound internet traffic through that NAT path.

Read the lesson: VPC: your own private network →

Scaling & load balancing

Q9What does an Auto Scaling group do when one of its EC2 instances becomes unhealthy?junior

It can replace the unhealthy instance to return toward the group's desired capacity. The group needs suitable health checks and a launch template so replacement instances use the intended configuration.

Read the lesson: Scaling and load balancing →
Q10Why put an Application Load Balancer in front of multiple application instances?junior

It distributes requests across healthy targets and can route HTTP traffic using host or path rules. Health checks let it stop sending traffic to targets that are not ready.

Read the lesson: Scaling and load balancing →

S3

Q11A team needs to recover an object after an accidental overwrite. Which S3 feature helps?mid

Versioning keeps multiple versions of an object, so the team can identify and restore an earlier version. It does not replace access controls or a tested backup and retention policy.

Read the lesson: S3: storage for everything →
Q12How would you reduce S3 storage cost for objects that become rarely accessed?mid

I choose an appropriate storage class based on access pattern, retrieval needs and minimum storage duration, then use lifecycle rules to transition or expire objects. I test the policy against data-retention requirements first.

Read the lesson: S3: storage for everything →

Storage types

Q13A workload needs a shared filesystem mounted by EC2 instances in different Availability Zones. Which storage service fits?mid

Amazon EFS provides a managed shared file system that can be mounted by multiple Linux instances across Availability Zones. I still choose throughput, performance and network access settings for the workload.

Read the lesson: EBS, EFS and instance store →
Q14What is the key durability trade-off between EBS and instance store?mid

EBS is network-attached block storage that persists independently of the host lifecycle, subject to its volume configuration. Instance store is physically attached to the host and is temporary, so I do not put the only copy of important data there.

Read the lesson: EBS, EFS and instance store →

Route 53

Q15What does a Route 53 hosted zone contain?mid

It is the container for DNS records that define how a domain or subdomain resolves. A public hosted zone answers internet DNS queries, while a private hosted zone is associated with VPCs for internal name resolution.

Read the lesson: Route 53: DNS for your apps →
Q16When would you use a weighted Route 53 routing policy?mid

I use weighted records to distribute DNS responses across endpoints in chosen proportions, for example during a gradual rollout. DNS caching means the weights do not guarantee an exact per-request split.

Read the lesson: Route 53: DNS for your apps →

CloudFront

Q17A CloudFront distribution serves an old CSS file after a deployment. What are your options?mid

I can invalidate the affected paths, but for frequently changed assets I prefer versioned filenames so new content gets a new cache key. I also review cache policy TTLs and origin behavior rather than invalidating everything by default.

Read the lesson: CloudFront: a fast edge in front of your app →
Q18How can CloudFront read from a private S3 origin without making the bucket public?mid

I configure Origin Access Control and a bucket policy that grants the distribution access to the required objects. I verify direct public access remains blocked while CloudFront can fetch the content.

Read the lesson: CloudFront: a fast edge in front of your app →

Databases

Q19What does Amazon RDS manage that a team would otherwise manage on its own database server?mid

RDS manages much of the database infrastructure and routine operational work, such as provisioning, backups and maintenance options. The team still owns schema design, query behavior, access policy and application-level recovery requirements.

Read the lesson: Managed databases: RDS, DynamoDB, ElastiCache →
Q20How do Multi-AZ deployments differ from read replicas in RDS?mid

Multi-AZ is primarily for availability and failover, while read replicas provide additional read capacity and can have replication lag. I choose based on the failure and scaling requirement rather than treating them as interchangeable.

Read the lesson: Managed databases: RDS, DynamoDB, ElastiCache →

Containers

Q21In ECS, what belongs in a task definition and what belongs in a service?senior

The task definition describes how containers run, including image, resources, networking mode and logging. The service maintains the desired number of tasks and coordinates deployment and load-balancer integration.

Read the lesson: Containers on AWS: ECR, ECS and EKS →
Q22What operational responsibility does Fargate remove compared with running ECS tasks on EC2?senior

Fargate removes the need to provision and manage the EC2 container hosts for those tasks. I still configure task sizing, networking, IAM, logging, deployment behavior and application health.

Read the lesson: Containers on AWS: ECR, ECS and EKS →
Q23Your web service on ECS needs to call an api service whose task IPs change on every deployment. How do you connect them?mid

I don't hard-code IPs. For ECS services calling each other I use Service Connect: both services join one Cloud Map namespace, the api service publishes a named port under a short alias such as api, and the web app calls http://api:80. A proxy that ECS adds to each task finds a healthy api task, balances requests and retries failures, so the app never needs to know an IP.

Read the lesson: Containers on AWS: ECR, ECS and EKS →
Q24What is the difference between ECS service discovery and Service Connect, and when would you still use plain service discovery?senior

Service discovery registers task IPs in Cloud Map and publishes them as private DNS records, so the client does a DNS lookup and connects directly, handling retries and stale DNS caches itself. Service Connect puts a managed proxy in every task that reads Cloud Map's API directly, load-balances, retries on another task, avoids failing ones and reports metrics to CloudWatch. I use plain service discovery when something outside ECS, such as an EC2 instance or Lambda, has to find the tasks by name.

Read the lesson: Containers on AWS: ECR, ECS and EKS →
Q25How would you run part of an ECS service on Fargate Spot without risking an outage?mid

I use a capacity provider strategy with a base on regular FARGATE and the rest weighted towards FARGATE_SPOT, for example base 1 on FARGATE and weights of 1 and 3. Spot tasks can be stopped with a two-minute warning, so the base keeps some capacity that can't be taken back while the service replaces interrupted tasks. I keep latency-sensitive or stateful services off Spot.

Read the lesson: Containers on AWS: ECR, ECS and EKS →
Q26A deployment points an ECS service at an image tag that does not exist. What stops it from failing for hours?mid

The deployment circuit breaker. With it enabled, ECS watches whether the new tasks start and pass health checks, marks the deployment failed after repeated failures, and with rollback enabled returns the service to the last revision that worked. minimumHealthyPercent keeps the old tasks serving while that happens.

Read the lesson: Containers on AWS: ECR, ECS and EKS →

Lambda

Q27A Lambda function runs correctly in a test but fails when invoked through its function URL. What boundaries do you check?senior

I check function URL authentication and resource permissions, then inspect the invocation payload, function logs, timeout and memory settings. I also verify that the handler expects the URL event shape and returns a valid response.

Read the lesson: Lambda: code without servers →

Monitoring & auditing

Q28A CloudWatch alarm exists but no one receives an alert. What do you trace?senior

I inspect the alarm state and metric dimensions, then confirm the alarm action is configured and points to the expected notification target. I also check whether subscribers confirmed delivery and review the alarm's evaluation period and threshold.

Read the lesson: Monitoring and auditing: CloudWatch, CloudTrail and Config →

Messaging

Q29A queue message repeatedly fails processing. How do you keep it from blocking useful work?senior

I configure a dead-letter queue and a redrive policy so a message moves after the allowed number of receives. I monitor the DLQ, inspect the failure and make redrive an intentional operation after fixing the cause.

Read the lesson: Messaging: SES, SNS and SQS →

Security & secrets

Q30When should an application use Secrets Manager instead of storing a credential in configuration?senior

I keep credentials in a managed secret store and grant the workload role only the access it needs. I consider rotation and retrieval behavior, and ensure the value is not copied into logs, source control or an image.

Read the lesson: Security and secrets: KMS, Secrets Manager and threat detection →

Automation & IaC

Q31A CloudFormation change set contains an unexpected replacement. What do you do before executing it?mid

I inspect the proposed resource changes and identify why replacement is required, then check the impact on data and dependencies. I do not execute the change set until the replacement and rollback plan are understood.

Read the lesson: Automation and IaC: CloudFormation, CDK and Systems Manager →

Cost basics

Q32A new AWS account must alert the team before spend gets out of hand. What do you configure first?mid

I create a budget with clear thresholds and notification recipients, then verify that the alerts are delivered. A budget reports and warns about cost; it is not a hard spending cap that automatically shuts resources down.

Read the lesson: Cost basics and the course project →
← Back to the AWS for DevOps course