1. What is Hardware?
Hardware is any physical component of a computer system.
Examples:
- CPU
- RAM
- SSD/HDD
- Motherboard
- Network Card
- Power Supply
- Keyboard
- Monitor
Think of hardware as everything you can physically touch.
2. What is Software?
Software is a set of instructions that tell hardware what to do.
Examples:
Operating Systems
- Linux
- Windows
- macOS
Applications
- Browser
- Microsoft Word
- Zoom
- Slack
Programming Languages
- Python
- Java
- JavaScript
3. What is CPU?
CPU = Central Processing Unit
CPU is the brain of the computer.
Responsibilities:
- Execute instructions
- Perform calculations
- Process requests
- Run applications
Example:
When opening Chrome:
- CPU receives command
- CPU processes instruction
- RAM stores temporary data
- Chrome appears on screen
Interview Question:
What happens if CPU reaches 100% utilization?
Answer:
- System becomes slow
- Applications freeze
- Response time increases
- Requests queue up
Troubleshooting:
top
htop
Check CPU-consuming processes.
4. What is RAM?
RAM = Random Access Memory
Temporary memory.
Stores:
- Running applications
- Active processes
- Temporary data
Example:
When opening:
- Chrome
- VS Code
- Slack
All are loaded into RAM.
Important:
RAM is volatile.
If power is lost:
RAM data disappears.
Interview Question:
Difference between RAM and SSD?
RAM:
- Faster
- Temporary
- Volatile
SSD:
- Slower than RAM
- Permanent
- Persistent
5. What is SSD?
SSD = Solid State Drive
Permanent storage.
Stores:
- OS
- Applications
- Documents
- Databases
Advantages:
- Faster than HDD
- No moving parts
- Better performance
Commands:
df -h
lsblk
6. What is a Server?
A server is a computer that provides services to other computers.
Examples:
- Web Server
- Database Server
- Mail Server
Example:
User requests:
www.amazon.com
Request reaches server.
Server returns webpage.
7. What is a Virtual Machine?
VM = Virtual Machine
A software-based computer.
Runs on physical hardware.
Example:
One physical server:
64 CPU
256 GB RAM
Can host:
VM1
VM2
VM3
VM4
Benefits:
- Isolation
- Cost savings
- Scalability
Examples:
- VMware
- VirtualBox
- Hyper-V
- EC2
8. What is Linux?
Linux is an operating system.
Responsibilities:
- Process management
- Memory management
- User management
- File system management
Common Commands:
pwd
ls
cd
mkdir
rm
cp
mv
Process Commands:
ps -ef
top
htop
kill -9 PID
Disk Commands:
df -h
du -sh
Memory:
free -m
9. Linux Troubleshooting
Server Slow
Check:
top
Questions:
- CPU high?
- Memory high?
- Disk full?
Disk Full
df -h
Find large files:
du -sh /*
Application Down
Check:
systemctl status nginx
Logs:
journalctl -xe
10. What is Networking?
Networking allows devices to communicate.
Example:
Laptop → Router → Internet → Server
11. What is IP Address?
Unique address assigned to device.
Example:
192.168.1.10
Like a home address.
12. What is Router?
Router connects different networks.
Example:
Home Network
|
Router
|
Internet
Functions:
- Route traffic
- NAT
- Internet connectivity
13. What is Switch?
Switch connects devices within same network.
Example:
PC1
PC2
Printer
Server
All connected to switch.
Switch uses MAC addresses.
Router uses IP addresses.
Interview Question:
Router vs Switch?
Switch:
- Same network
- MAC address
Router:
- Different networks
- IP address
14. What is Load Balancer?
Distributes traffic across servers.
Example:
Users
|
Load Balancer
|
|---- Server1
|---- Server2
|---- Server3
Benefits:
- High Availability
- Scalability
- Fault Tolerance
AWS Types:
- ALB
- NLB
15. What is EC2?
EC2 = Elastic Compute Cloud
AWS virtual machine service.
Features:
- CPU
- RAM
- Storage
- Networking
Use cases:
- Web servers
- Applications
- Databases
Entity: Amazon Web Services EC2 is one of the core compute services.
16. What is EBS?
EBS = Elastic Block Store
Storage attached to EC2.
Think:
EC2 = Computer
EBS = Hard Drive
Characteristics:
- Block storage
- Persistent
- Snapshot support
Types:
- gp3
- io2
- st1
Interview:
Can EBS exist without EC2?
Yes.
Volume remains after instance termination if configured.
17. What is EFS?
EFS = Elastic File System
Shared storage.
Many EC2s can mount same filesystem.
Example:
EC2-1
EC2-2
EC2-3
|
EFS
Use:
- Shared files
- Web content
- Kubernetes shared storage
Difference:
EBS:
- Single instance typically
EFS:
- Multiple instances
18. What is S3?
S3 = Simple Storage Service
Object storage.
Stores:
- Images
- Videos
- Logs
- Backups
Features:
- Highly durable
- Scalable
- Versioning
- Lifecycle Policies
Example:
Store:
photo.jpg
backup.zip
logs.tar
inside bucket.
19. What is IAM?
IAM = Identity and Access Management
Controls permissions.
Components:
IAM User
Permanent identity.
IAM Group
Collection of users.
IAM Policy
Permissions document.
IAM Role
Temporary permissions.
Interview:
User vs Role?
User:
- Permanent
Role:
- Temporary
20. What is SAML?
SAML = Security Assertion Markup Language
Used for Single Sign-On (SSO).
Example:
Employee logs into:
- Company Portal
Automatically accesses:
- AWS
- Salesforce
- Workday
without re-entering password.
Flow:
User
|
Identity Provider
|
AWS
Examples:
- Okta
- Microsoft Entra ID
21. What is OpenID Connect (OIDC)?
Modern authentication protocol.
Built on OAuth 2.0.
Used by:
- Google Login
- GitHub Login
- Microsoft Login
Example:
Login with Google
Website trusts Google.
Google verifies identity.
Website receives token.
Difference:
SAML:
- XML
- Enterprise
OIDC:
- JSON/JWT
- Modern Cloud Apps
22. What is API Gateway?
API Gateway receives API requests.
Example:
User
|
API Gateway
|
Lambda
Responsibilities:
- Authentication
- Authorization
- Rate limiting
- Routing
23. What is Lambda?
Lambda is serverless compute.
You upload code.
AWS manages servers.
Example:
User Uploads File
|
S3
|
Lambda
Lambda executes automatically.
Benefits:
- No server management
- Pay only when used
- Auto scaling
24. What is Auto Scaling Group (ASG)?
Automatically adjusts EC2 count.
Example:
Traffic increases:
2 EC2
→
6 EC2
Traffic decreases:
6 EC2
→
2 EC2
Benefits:
- Cost savings
- High availability
25. Most Common Troubleshooting Questions
Website Not Loading
Check:
ping
nslookup
curl
Questions:
- DNS working?
- Server up?
- Application running?
- Security Group open?
EC2 Reachable but Website Not Working
Check:
systemctl status nginx
Check:
netstat -tulpn
or
ss -tulpn
Verify service listening on port 80.
High CPU
top
Find process.
Possible causes:
- Infinite loop
- Memory leak
- Too many requests
High Memory
free -m
Check:
ps aux --sort=-%mem
Cannot SSH to Server
Verify:
- Instance running
- Security Group allows port 22
- Correct key pair
- NACL allows traffic
- Route table correct
Internet Not Working
Check:
ping 8.8.8.8
If works:
DNS issue.
Check:
nslookup google.com
Most Important Interview Question
Explain how a user opens a website from browser.
Answer:
- User types URL.
- DNS resolves domain to IP.
- Browser sends request.
- Router forwards traffic.
- Internet routes packet.
- Load Balancer receives request.
- Load Balancer sends request to EC2.
- Application processes request.
- Database returns data.
- EC2 sends response back.
- Browser displays webpage.
This question tests networking, DNS, servers, load balancers, applications, and cloud knowledge all at once.
Top comments (0)