Cloud Engineer Interview Questions & Answers
40 questions for Cloud Engineer interviews — 3 easy, 31 medium, 6 hard.
About the Cloud Engineer role
A cloud engineer designs, builds and operates infrastructure on AWS, Azure or Google Cloud. They set up VPCs, IAM, compute, storage and databases, automate everything with Infrastructure as Code, and focus on security, availability and cost. They often handle migrations from on-premises data centres to the cloud. Cloud certifications such as AWS Solutions Architect Associate help a lot for this role in India.
Write an IAM policy that gives read-only access to one S3 bucket.
Show answer
You need to bring existing manually created cloud resources under Terraform. How?
Show answer
How do you handle secrets in Terraform and Ansible?
Show answer
Explain the Linux boot process briefly.
Show answer
A production server is very slow. How do you troubleshoot high CPU usage?
Show answer
An EC2 instance in a private subnet cannot download packages from the internet. Why?
Show answer
What are Terraform modules?
Show answer
The application cannot connect to an RDS database. What do you check?
Show answer
Someone made an S3 bucket with customer files public. What do you do?
Show answer
What is load average in Linux and how do you read it?
Show answer
How do you configure an S3 remote backend with locking?
Show answer
Tell me about a time you reduced cloud costs.
Show answer
How do you count unique client IP addresses in an nginx access log?
Show answer
What does set -euo pipefail do in a bash script?
Show answer
You suspect a memory leak in a production service. How do you confirm and handle it?
Show answer
What is remote state and state locking in Terraform?
Show answer
What is the difference between declarative and imperative IaC, and between Terraform and Ansible?
Show answer
What is an inode in Linux?
Show answer
Explain the main components of an AWS VPC.
Show answer
Explain stdin, stdout, stderr and what 2>&1 means.
Show answer
What is configuration drift and how do you detect it with Terraform?
Show answer
What are Ansible roles?
Show answer
What is the difference between count and for_each in Terraform?
Show answer
A production deployment failed halfway. What do you do?
Show answer
Two engineers ran terraform apply at the same time. What could go wrong and how do you prevent it?
Show answer
What is the difference between CMD and ENTRYPOINT?
Show answer
Write a bash script that checks whether a service is running and restarts it if not.
Show answer
Write a script that alerts when any disk partition is above 80 percent used.
Show answer
What does idempotency mean in Ansible?
Show answer
Write an Ansible playbook to install and start nginx.
Show answer
The host disk is filling up because of Docker. How do you clean up and prevent it?
Show answer
How do you create an EKS cluster with eksctl and connect kubectl to it?
Show answer
How do an Application Load Balancer and an Auto Scaling group work together?
Show answer
Tell me about a time you automated a repetitive manual task.
Show answer
How do you prioritise when several teams ask you for infrastructure work at the same time?
Show answer
Tell me about a mistake you made in infrastructure work and what you learned.
Show answer
How do you assume an IAM role in another account using the AWS CLI?
Show answer
The Jenkins controller is slow and builds keep queueing. What do you do?
Show answer
What is the difference between sudo and su?
Show answer
Frequently asked questions
What does a Cloud Engineer do?
A cloud engineer designs, builds and operates infrastructure on AWS, Azure or Google Cloud. They set up VPCs, IAM, compute, storage and databases, automate everything with Infrastructure as Code, and focus on security, availability and cost. They often handle migrations from on-premises data centres to the cloud. Cloud certifications such as AWS Solutions Architect Associate help a lot for this role in India.
Which skills are tested in a Cloud Engineer interview?
Expect questions on AWS networking and IAM, Terraform modules, High availability design, Cloud cost optimisation, Cloud migration. Most rounds also ask you to explain a project and solve one practical problem live.
How do I prepare for a Cloud Engineer interview?
Revise AWS Cloud for DevOps, Infrastructure as Code (Terraform and Ansible), Linux and Shell Scripting first using the topic sheets, practise the questions on this page aloud, then do one full mock interview to practise timing.