DEV Community

Aisalkyn Aidarova
Aisalkyn Aidarova

Posted on

interview questions and answers

If you're interviewing for a Senior DevOps Engineer (5–7 years), you should not only know definitions. You should understand why the technology exists, what problem it solves, how it works internally, and when to use it.

1. What is AWS?

Interview Question

What is AWS?

Answer

AWS (Amazon Web Services) is a cloud computing platform provided by Amazon Web Services.

Instead of buying physical servers, networking equipment, and storage, companies rent resources from AWS on demand.

AWS provides:

  • Compute (EC2, Lambda, ECS, EKS)
  • Storage (S3, EBS, EFS)
  • Networking (VPC, Route53, ELB)
  • Databases (RDS, DynamoDB)
  • Security (IAM, KMS, Secrets Manager)

Why Companies Use AWS

Traditional Infrastructure:

Buy Server
Install OS
Configure Network
Manage Hardware
Enter fullscreen mode Exit fullscreen mode

AWS:

Create EC2
Deploy Application
Done
Enter fullscreen mode Exit fullscreen mode

Benefits:

  • No hardware management
  • High availability
  • Pay as you go
  • Auto scaling
  • Global presence

2. What is an Operating System?

Interview Question

What is an Operating System?

Answer

An Operating System (OS) is software that sits between hardware and applications.

Without an OS:

Application
    ↓
Hardware
Enter fullscreen mode Exit fullscreen mode

Application would need to control:

  • CPU
  • Memory
  • Disk
  • Network Card

directly.

With OS:

Application
      ↓
Operating System
      ↓
Hardware
Enter fullscreen mode Exit fullscreen mode

Examples:

  • Linux
  • Windows
  • macOS

3. Linux Architecture

Interview Question

Explain Linux Architecture.

Answer

User
 ↓
Shell
 ↓
Kernel
 ↓
Hardware
Enter fullscreen mode Exit fullscreen mode

Shell

Interface where users type commands.

Examples:

ls
pwd
cd
Enter fullscreen mode Exit fullscreen mode

Popular shells:

  • Bash
  • Zsh
  • Sh

Kernel

Brain of Linux.

Responsibilities:

  • CPU scheduling
  • Memory management
  • Process management
  • Device communication

Hardware

Physical components:

  • CPU
  • RAM
  • SSD
  • Network Card

4. Hardware Components

Interview Question

Explain major hardware components.

CPU

Brain of computer.

Responsible for:

  • Executing instructions
  • Running applications

Check CPU:

lscpu
Enter fullscreen mode Exit fullscreen mode

RAM

Temporary memory.

Stores:

  • Running processes
  • Application data

Check RAM:

free -h
Enter fullscreen mode Exit fullscreen mode

SSD

Permanent storage.

Stores:

  • OS
  • Files
  • Applications

Check disk:

df -h
Enter fullscreen mode Exit fullscreen mode

Network Interface Card (NIC)

Responsible for network communication.

Check:

ip addr
Enter fullscreen mode Exit fullscreen mode

5. Linux Process Management

Interview Question

What is a Process?

Answer

A process is a running program.

Examples:

nginx
java
python
docker
Enter fullscreen mode Exit fullscreen mode

View processes:

ps -ef
Enter fullscreen mode Exit fullscreen mode

or

top
Enter fullscreen mode Exit fullscreen mode

6. Systemd

Interview Question

What is systemd?

Answer

Systemd is Linux's service manager.

Used to:

  • Start services
  • Stop services
  • Restart services
  • Manage boot process

Examples:

systemctl start nginx
systemctl stop nginx
systemctl restart nginx
Enter fullscreen mode Exit fullscreen mode

Check status:

systemctl status nginx
Enter fullscreen mode Exit fullscreen mode

7. Journalctl

Interview Question

How do you check service logs?

Answer

journalctl -u nginx
Enter fullscreen mode Exit fullscreen mode

Last 100 lines:

journalctl -u nginx -n 100
Enter fullscreen mode Exit fullscreen mode

Live logs:

journalctl -f
Enter fullscreen mode Exit fullscreen mode

8. Network Troubleshooting

Interview Question

User cannot access website. How do you troubleshoot?

Step 1: Verify DNS

nslookup google.com
Enter fullscreen mode Exit fullscreen mode

or

dig google.com
Enter fullscreen mode Exit fullscreen mode

Step 2: Verify Network

ping google.com
Enter fullscreen mode Exit fullscreen mode

Step 3: Verify Route

traceroute google.com
Enter fullscreen mode Exit fullscreen mode

Step 4: Verify Port

telnet website.com 443
Enter fullscreen mode Exit fullscreen mode

or

nc -zv website.com 443
Enter fullscreen mode Exit fullscreen mode

Step 5: Verify Listening Port

ss -tulnp
Enter fullscreen mode Exit fullscreen mode

or

netstat -tulnp
Enter fullscreen mode Exit fullscreen mode

Step 6: Check Firewall

iptables -L
Enter fullscreen mode Exit fullscreen mode

or

ufw status
Enter fullscreen mode Exit fullscreen mode

9. EC2

Interview Question

What is EC2?

Answer

Amazon EC2 is a virtual machine running inside AWS.

You choose:

  • CPU
  • RAM
  • Disk
  • OS

AWS creates server for you.

Example:

Ubuntu
4 vCPU
16GB RAM
Enter fullscreen mode Exit fullscreen mode

10. EBS

Interview Question

What is EBS?

Answer

Amazon EBS is block storage attached to EC2.

Think:

EC2 = Computer
EBS = Hard Drive
Enter fullscreen mode Exit fullscreen mode

Characteristics:

  • Persistent
  • Attached to one instance
  • Fast
  • Supports snapshots

Example:

EC2
 └── EBS Volume (100GB)
Enter fullscreen mode Exit fullscreen mode

11. EFS

Interview Question

What is EFS?

Answer

Amazon EFS is a shared file system.

Multiple EC2 servers can mount same storage.

EC2-1
EC2-2
EC2-3
   ↓
EFS
Enter fullscreen mode Exit fullscreen mode

Uses NFS protocol on:

Port 2049
Enter fullscreen mode Exit fullscreen mode

EBS vs EFS

Feature EBS EFS
Shared No Yes
Multiple Servers No Yes
Protocol Block NFS
Use Case Database Shared Files

12. S3

Interview Question

What is S3?

Answer

Amazon S3 is object storage.

Stores:

  • Images
  • Videos
  • Backups
  • Logs

Structure:

Bucket
 ├── image.png
 ├── file.pdf
 └── backup.zip
Enter fullscreen mode Exit fullscreen mode

Characteristics:

  • Unlimited storage
  • 11 nines durability
  • Cheap

Common Use Cases

  • Log storage
  • Static websites
  • Backup storage
  • Data lake

13. Lambda

Interview Question

What is Lambda?

Answer

AWS Lambda runs code without managing servers.

Traditional:

EC2
Install OS
Patch Server
Run Code
Enter fullscreen mode Exit fullscreen mode

Lambda:

Upload Code
Execute Function
Done
Enter fullscreen mode Exit fullscreen mode

Triggers:

  • API Gateway
  • S3 Upload
  • EventBridge
  • SNS

Example

User uploads file:

S3 Upload
   ↓
Lambda Trigger
   ↓
Resize Image
Enter fullscreen mode Exit fullscreen mode

14. API Gateway

Interview Question

What is API Gateway?

Answer

Amazon API Gateway is a front door for APIs.

Flow:

User
 ↓
API Gateway
 ↓
Lambda
Enter fullscreen mode Exit fullscreen mode

Responsibilities:

  • Authentication
  • Authorization
  • Rate limiting
  • Routing

Example

GET /students
POST /students
DELETE /students
Enter fullscreen mode Exit fullscreen mode

API Gateway routes requests.


15. Application Load Balancer (ALB)

Interview Question

What is ALB?

Answer

Application Load Balancer distributes traffic across multiple servers.

Without ALB:

10000 users
      ↓
Single Server
Enter fullscreen mode Exit fullscreen mode

Server crashes.


With ALB:

10000 users
      ↓
ALB
   ↓    ↓
EC2-1 EC2-2
Enter fullscreen mode Exit fullscreen mode

Traffic distributed.


Layer

Works at:

OSI Layer 7
Enter fullscreen mode Exit fullscreen mode

HTTP/HTTPS.


Supports

  • Path routing
  • Host routing
  • SSL termination

Example:

/api → Backend
/images → Frontend
Enter fullscreen mode Exit fullscreen mode

16. Auto Scaling Group (ASG)

Interview Question

What is ASG?

Answer

Amazon EC2 Auto Scaling automatically adds or removes EC2 instances.

Example:

Normal:

2 EC2
CPU 30%
Enter fullscreen mode Exit fullscreen mode

Traffic spike:

CPU 90%
Enter fullscreen mode Exit fullscreen mode

ASG launches:

4 EC2
Enter fullscreen mode Exit fullscreen mode

Traffic drops:

Back to 2 EC2
Enter fullscreen mode Exit fullscreen mode

ASG + ALB Together

Production architecture:

Users
   ↓
ALB
   ↓
Target Group
   ↓
Auto Scaling Group
   ↓
EC2 Instances
Enter fullscreen mode Exit fullscreen mode

ALB distributes traffic.

ASG maintains healthy servers.


17. Senior DevOps Scenario Question

Interview Question

A website is down. How do you troubleshoot?

Answer

  1. Check DNS
nslookup website.com
Enter fullscreen mode Exit fullscreen mode
  1. Check connectivity
ping website.com
Enter fullscreen mode Exit fullscreen mode
  1. Check load balancer health
  • ALB Target Group
  1. Check EC2
systemctl status nginx
Enter fullscreen mode Exit fullscreen mode
  1. Check logs
journalctl -u nginx
Enter fullscreen mode Exit fullscreen mode
  1. Check disk
df -h
Enter fullscreen mode Exit fullscreen mode
  1. Check memory
free -h
Enter fullscreen mode Exit fullscreen mode
  1. Check CPU
top
Enter fullscreen mode Exit fullscreen mode
  1. Check listening ports
ss -tulnp
Enter fullscreen mode Exit fullscreen mode
  1. Check security groups and NACLs.

This step-by-step troubleshooting approach is what interviewers expect from a DevOps engineer with several years of experience.

Top comments (0)