Linux Server Interview Questions
1. What is Red Hat Enterprise Linux (RHEL)?
Answer:
RHEL is an enterprise-grade Linux operating system developed by Red Hat Enterprise Linux. It is designed for stability, security, scalability, and enterprise support.
2. What are the key features of RHEL?
Answer:
- Enterprise support
- SELinux security
- High availability
- Performance optimization
- Container support
- System management tools
3. What is the difference between RHEL and CentOS?
Answer:
RHEL is a commercial enterprise Linux distribution with vendor support, while CentOS traditionally provided a community-supported version of RHEL-compatible packages.
4. What command displays the RHEL version?
Answer:
cat /etc/redhat-release
5. What is the default shell in RHEL?
Answer:
Bash (Bourne Again Shell).
6. How do you display the hostname?
Answer:
hostname
7. How do you change the hostname permanently?
Answer:
hostnamectl set-hostname server01
8. How do you display the current user?
Answer:
whoami
9. How do you view logged-in users?
Answer:
who
10. How do you display system uptime?
Answer:
uptime
11. How do you check memory usage?
Answer:
free -h
12. How do you display disk usage?
Answer:
df -h
13. How do you view mounted filesystems?
Answer:
mount
14. How do you list files?
Answer:
ls -l
15. How do you create a directory?
Answer:
mkdir data
16. How do you remove a directory?
Answer:
rmdir data
17. How do you create an empty file?
Answer:
touch file.txt
18. How do you copy files?
Answer:
cp source.txt destination.txt
19. How do you move files?
Answer:
mv file1 file2
20. How do you delete files?
Answer:
rm file.txt
21. What command displays running processes?
Answer:
ps -ef
22. How do you kill a process?
Answer:
kill PID
23. How do you force kill a process?
Answer:
kill -9 PID
24. How do you view network interfaces?
Answer:
ip addr
25. How do you test network connectivity?
Answer:
ping google.com
26. What is SSH?
Answer:
SSH (Secure Shell) provides secure remote access to Linux servers.
27. What command is used to connect via SSH?
Answer:
ssh user@server
28. What is the root user?
Answer:
The root user has unrestricted administrative privileges.
29. What is sudo?
Answer:
Sudo allows authorized users to execute commands with elevated privileges.
30. How do you switch to the root user?
Answer:
sudo su -
31. What is systemd?
Answer:
Systemd is the service and system manager used in modern RHEL versions.
32. How do you check service status?
Answer:
systemctl status sshd
33. How do you start a service?
Answer:
systemctl start httpd
34. How do you stop a service?
Answer:
systemctl stop httpd
35. How do you restart a service?
Answer:
systemctl restart httpd
36. How do you enable a service at boot?
Answer:
systemctl enable httpd
37. How do you disable a service?
Answer:
systemctl disable httpd
38. What is SELinux?
Answer:
Security-Enhanced Linux provides mandatory access control for enhanced security.
39. How do you check SELinux status?
Answer:
getenforce
40. What are SELinux modes?
Answer:
- Enforcing
- Permissive
- Disabled
41. How do you view SELinux contexts?
Answer:
ls -Z
42. What is firewalld?
Answer:
The default firewall management service in RHEL.
43. How do you check firewall status?
Answer:
firewall-cmd --state
44. How do you open port 80 permanently?
Answer:
firewall-cmd --permanent --add-port=80/tcp
firewall-cmd --reload
45. What is yum?
Answer:
YUM is the package manager used in older RHEL versions.
46. What is DNF?
Answer:
DNF is the next-generation package manager used in RHEL 8 and later.
47. How do you install a package?
Answer:
dnf install httpd
48. How do you remove a package?
Answer:
dnf remove httpd
49. How do you update packages?
Answer:
dnf update
50. What is a repository?
Answer:
A repository is a source from which software packages are downloaded and installed.
51. How do you view repositories?
Answer:
dnf repolist
52. What is LVM?
Answer:
Logical Volume Manager allows flexible disk management and storage allocation.
53. What are the components of LVM?
Answer:
- Physical Volume (PV)
- Volume Group (VG)
- Logical Volume (LV)
54. How do you display logical volumes?
Answer:
lvs
55. How do you display volume groups?
Answer:
vgs
56. How do you display physical volumes?
Answer:
pvs
57. What is a cron job?
Answer:
A scheduled task that runs automatically at specified times.
58. How do you edit cron jobs?
Answer:
crontab -e
59. How do you view cron jobs?
Answer:
crontab -l
60. What is rsync?
Answer:
A tool used for file synchronization and backups.
61. What is Kickstart?
Answer:
Kickstart automates RHEL installations using predefined configuration files.
62. What is Satellite Server?
Answer:
Red Hat Satellite provides centralized management for RHEL systems.
63. What is Podman?
Answer:
Podman is a daemonless container engine used in RHEL.
64. What is the difference between Podman and Docker?
Answer:
Podman does not require a daemon and supports rootless containers.
65. What is Stratis?
Answer:
Stratis simplifies storage management using LVM and XFS.
66. What is VDO?
Answer:
Virtual Data Optimizer provides compression and deduplication.
67. What is tuned?
Answer:
A performance tuning framework in RHEL.
68. How do you view active tuning profiles?
Answer:
tuned-adm active
69. What is multipathing?
Answer:
Provides multiple physical paths to storage devices for redundancy.
70. What is iSCSI?
Answer:
A protocol that enables block-level storage access over IP networks.
71. What is bonding?
Answer:
Combining multiple network interfaces into a single logical interface.
72. What is teaming?
Answer:
A modern alternative to network bonding.
73. What is journald?
Answer:
The logging service used by systemd.
74. How do you view system logs?
Answer:
journalctl
75. What is kdump?
Answer:
A crash recovery mechanism that captures memory dumps after kernel failures.
76. What is a kernel panic?
Answer:
A critical system error that causes Linux to halt.
77. How do you check kernel version?
Answer:
uname -r
78. What is chroot?
Answer:
A mechanism that changes the apparent root directory for a process.
79. What is NFS?
Answer:
Network File System allows file sharing between Linux systems.
80. What is autofs?
Answer:
Automatically mounts filesystems when accessed.
81. A server is running slowly. What would you check first?
Answer:
- CPU usage (
top) - Memory (
free -h) - Disk utilization (
df -h) - Running processes
82. A filesystem is full. How would you troubleshoot?
Answer:
- Identify large files
- Review logs
- Remove unnecessary files
- Extend storage if required
83. SSH access suddenly stops working. What would you check?
Answer:
- SSH service status
- Firewall rules
- SELinux policies
- Network connectivity
84. Users cannot resolve hostnames. What would you investigate?
Answer:
- DNS settings
/etc/resolv.conf- DNS server availability
85. A service fails to start. What is your approach?
Answer:
- Check service status
- Review logs
- Verify dependencies
- Validate configuration files
86. SELinux is blocking application access. What would you do?
Answer:
- Review audit logs
- Check SELinux contexts
- Create appropriate policies if needed
87. A package installation fails. What would you verify?
Answer:
- Repository availability
- Network connectivity
- Dependencies
- Disk space
88. The system cannot boot after a kernel update. What would you do?
Answer:
- Boot using an older kernel
- Review update logs
- Reinstall or repair the kernel
89. An application cannot write to a directory. What would you check?
Answer:
- Ownership
- Permissions
- SELinux context
90. A cron job is not running. How would you troubleshoot?
Answer:
- Verify cron service
- Check syntax
- Review logs
- Confirm user permissions
91. Disk I/O is very high. What tools would you use?
Answer:
- iostat
- vmstat
- top
- sar
92. A user reports "Permission Denied." What steps would you take?
Answer:
- Check file permissions
- Verify ownership
- Review ACLs
93. Network connectivity is intermittent. What would you investigate?
Answer:
- Interface errors
- Routing
- DNS
- Firewall rules
94. An NFS mount is unavailable. What would you verify?
Answer:
- NFS services
- Export configuration
- Firewall settings
95. A logical volume requires additional storage. How would you extend it?
Answer:
- Extend LV
- Resize filesystem
- Verify available space in VG
96. A server rebooted unexpectedly. What logs would you check?
Answer:
- journalctl
- /var/log/messages
- Hardware logs
97. How would you secure a newly installed RHEL server?
Answer:
- Apply updates
- Configure firewall
- Enable SELinux
- Disable unused services
- Configure SSH security
98. A production application experiences performance degradation. What is your troubleshooting process?
Answer:
- Gather metrics
- Check resources
- Analyze logs
- Identify bottlenecks
- Implement fixes
99. A server loses network connectivity after reboot. What would you check?
Answer:
- NetworkManager
- Interface configuration
- Routing
- DNS
100. During an interview, how would you summarize your Red Hat Linux experience?
Answer:
Highlight expertise in:
- RHEL Administration
- User & Permission Management
- Systemd Services
- SELinux
- Firewalld
- LVM
- Package Management (DNF/YUM)
- Networking
- Troubleshooting
- Performance Tuning
- Automation
- Enterprise Support
Unix Interview Questions
1. What is UNIX?
Answer:
UNIX is a multi-user, multitasking operating system originally developed at Bell Labs. It is known for stability, security, and portability.
2. What are the key features of UNIX?
Answer:
- Multi-user support
- Multitasking
- Security
- Portability
- Hierarchical file system
- Powerful command-line interface
3. What is the UNIX kernel?
Answer:
The kernel is the core component of UNIX that manages hardware resources, memory, processes, and system calls.
4. What is a shell in UNIX?
Answer:
A shell is a command interpreter that allows users to interact with the operating system.
Examples:
- Bourne Shell (sh)
- Korn Shell (ksh)
- C Shell (csh)
- Bash
5. What command displays the current working directory?
Answer:
pwd
6. How do you list files in UNIX?
Answer:
ls
7. How do you display hidden files?
Answer:
ls -la
8. How do you change directories?
Answer:
cd /home/user
9. How do you create a directory?
Answer:
mkdir testdir
10. How do you remove a directory?
Answer:
rmdir testdir
11. How do you create a file?
Answer:
touch file.txt
12. How do you copy files?
Answer:
cp source.txt destination.txt
13. How do you move or rename files?
Answer:
mv oldfile.txt newfile.txt
14. How do you delete a file?
Answer:
rm file.txt
15. How do you display file contents?
Answer:
cat file.txt
16. What command displays the first few lines of a file?
Answer:
head file.txt
17. What command displays the last few lines of a file?
Answer:
tail file.txt
18. How do you search text inside a file?
Answer:
grep "error" logfile.txt
19. What is the root directory?
Answer:
The root directory (/) is the top-level directory in the UNIX filesystem.
20. What is an absolute path?
Answer:
A path starting from the root directory.
Example:
/home/admin/file.txt
21. What is a relative path?
Answer:
A path specified relative to the current directory.
Example:
documents/report.txt
22. What command shows the current user?
Answer:
whoami
23. What command displays logged-in users?
Answer:
who
24. What is a process?
Answer:
A process is an instance of a running program.
25. How do you display running processes?
Answer:
ps -ef
26. How do you terminate a process?
Answer:
kill PID
27. What is a file permission?
Answer:
Permissions control access to files and directories.
28. What are the three permission types?
Answer:
- Read (r)
- Write (w)
- Execute (x)
29. What command changes file permissions?
Answer:
chmod 755 file.sh
30. What command changes file ownership?
Answer:
chown user:group file.txt
31. What is a daemon process?
Answer:
A daemon is a background process that runs without user interaction.
Examples:
- sshd
- cron
- syslogd
32. What is cron?
Answer:
Cron is a scheduler used to automate recurring tasks.
33. How do you edit cron jobs?
Answer:
crontab -e
34. How do you view cron jobs?
Answer:
crontab -l
35. What is the purpose of the /etc/passwd file?
Answer:
Stores user account information.
36. What is stored in /etc/shadow?
Answer:
Encrypted user passwords and password policies.
37. What command displays disk usage?
Answer:
df -h
38. How do you check directory size?
Answer:
du -sh /directory
39. What is an inode?
Answer:
An inode stores metadata about a file such as permissions, ownership, and timestamps.
40. How do you find inode information?
Answer:
ls -i
41. What is a hard link?
Answer:
A hard link is another filename pointing to the same inode.
42. What is a symbolic link?
Answer:
A symbolic link points to another file using its path.
43. How do you create a symbolic link?
Answer:
ln -s source target
44. What is piping in UNIX?
Answer:
Piping sends output from one command as input to another.
Example:
ps -ef | grep ssh
45. What is output redirection?
Answer:
Redirecting command output to a file.
ls > output.txt
46. What does >> do?
Answer:
Appends output to an existing file.
47. What is the difference between grep and egrep?
Answer:
egrep supports extended regular expressions.
48. What command finds files?
Answer:
find / -name "*.log"
49. What is awk?
Answer:
A text-processing utility used for extracting and formatting data.
50. What is sed?
Answer:
A stream editor used for modifying text.
51. What command shows memory usage?
Answer:
vmstat
52. What command displays system uptime?
Answer:
uptime
53. What is NFS?
Answer:
Network File System allows file sharing across UNIX systems.
54. What is SSH?
Answer:
Secure Shell provides encrypted remote access.
55. What command connects to a remote server?
Answer:
ssh user@server
56. What is SCP?
Answer:
Secure Copy transfers files between systems securely.
57. What is rsync?
Answer:
A utility for file synchronization and backups.
58. What is a run level?
Answer:
A predefined operating state of a UNIX system.
59. What is swap space?
Answer:
Disk space used as virtual memory when RAM is exhausted.
60. What is process priority?
Answer:
The scheduling importance assigned to a process.
61. What is kernel tuning?
Answer:
Modifying kernel parameters to optimize system performance.
62. What is the purpose of sysctl?
Answer:
It manages kernel runtime parameters.
63. How do you display kernel parameters?
Answer:
sysctl -a
64. What is load average?
Answer:
The average number of processes waiting for CPU resources.
65. How do you view load average?
Answer:
uptime
66. What is a zombie process?
Answer:
A terminated process whose parent has not yet collected its exit status.
67. What is an orphan process?
Answer:
A process whose parent process has terminated.
68. What is process forking?
Answer:
Creating a new child process from a parent process.
69. What is inter-process communication (IPC)?
Answer:
Mechanisms allowing processes to communicate.
Examples:
- Pipes
- Shared Memory
- Message Queues
- Semaphores
70. What are semaphores?
Answer:
Synchronization mechanisms used to control resource access.
71. What is shared memory?
Answer:
A memory segment accessible by multiple processes.
72. What is RAID?
Answer:
Redundant Array of Independent Disks improves storage performance and availability.
73. What is RAID 0?
Answer:
Disk striping without redundancy.
74. What is RAID 1?
Answer:
Disk mirroring for redundancy.
75. What is RAID 5?
Answer:
Striping with distributed parity.
76. What is filesystem corruption?
Answer:
Damage to filesystem structures causing data access issues.
77. What command checks filesystem integrity?
Answer:
fsck
78. What is system auditing?
Answer:
Monitoring and recording system activities for compliance and security.
79. What is performance tuning?
Answer:
Optimizing CPU, memory, storage, and network resources.
80. What is capacity planning?
Answer:
Forecasting future resource requirements.
81. A server is running slowly. What would you check first?
Answer:
- CPU utilization
- Memory usage
- Disk I/O
- Running processes
82. A filesystem is 100% full. How would you troubleshoot?
Answer:
- Find large files
- Clear logs
- Remove temporary files
- Extend storage if necessary
83. Users cannot log in. What would you investigate?
Answer:
- User account status
- Password expiration
- Authentication services
- Disk space
84. SSH access fails. What should you check?
Answer:
- SSH daemon
- Network connectivity
- Firewall rules
- Configuration files
85. A process consumes excessive CPU. What would you do?
Answer:
- Identify the process
- Analyze workload
- Adjust priority
- Restart if required
86. Memory usage is extremely high. What would you investigate?
Answer:
- Memory leaks
- Application behavior
- Swap usage
87. A cron job is not executing. What should you verify?
Answer:
- Cron service
- Syntax
- User permissions
- Logs
88. An application cannot access a file. What should you check?
Answer:
- File permissions
- Ownership
- Path correctness
89. A user accidentally deleted important files. What options are available?
Answer:
- Restore from backup
- Check snapshots
- Recover from storage systems
90. Network connectivity is intermittent. What would you investigate?
Answer:
- Interface errors
- Routing
- DNS
- Network hardware
91. Disk I/O is very high. Which tools would you use?
Answer:
- iostat
- vmstat
- sar
92. The system won't boot. What is your approach?
Answer:
- Check boot logs
- Verify filesystem integrity
- Examine hardware
- Use recovery mode
93. A daemon keeps crashing. What would you check?
Answer:
- Logs
- Resource usage
- Configuration
- Dependencies
94. A backup job failed. How would you troubleshoot?
Answer:
- Review logs
- Check storage availability
- Verify permissions
95. Users report slow file access over NFS. What would you investigate?
Answer:
- Network latency
- Server performance
- NFS configuration
96. How would you secure a newly deployed UNIX server?
Answer:
- Apply patches
- Disable unnecessary services
- Configure firewalls
- Enforce strong authentication
97. A server unexpectedly rebooted. What logs would you review?
Answer:
- System logs
- Hardware logs
- Application logs
98. An application upgrade caused service failures. What would you do?
Answer:
- Roll back changes
- Review logs
- Validate dependencies
99. Multiple users complain about poor system performance. What is your troubleshooting methodology?
Answer:
- Gather information
- Monitor resources
- Analyze bottlenecks
- Implement corrective actions
- Validate results
100. During an interview, how would you summarize your UNIX administration experience?
Answer:
Highlight experience in:
- UNIX System Administration
- User & Group Management
- Filesystems
- Process Management
- Shell Scripting
- NFS
- SSH
- Performance Tuning
- Security Hardening
- Backup & Recovery
- Troubleshooting
AWS Interview Questions
1. What is AWS?
Answer:
AWS (Amazon Web Services) is a cloud computing platform that provides on-demand services such as computing, storage, networking, databases, security, and analytics.
2. What are the main advantages of AWS?
Answer:
- Pay-as-you-go pricing
- Scalability
- High availability
- Global infrastructure
- Security
- Managed services
3. What is Cloud Computing?
Answer:
Cloud computing is the delivery of computing resources over the internet instead of maintaining physical infrastructure.
4. What are the cloud service models?
Answer:
- IaaS (Infrastructure as a Service)
- PaaS (Platform as a Service)
- SaaS (Software as a Service)
5. What is an AWS Region?
Answer:
A Region is a geographic location containing multiple Availability Zones.
Example:
- Mumbai (ap-south-1)
- Ohio (us-east-2)
6. What is an Availability Zone (AZ)?
Answer:
An Availability Zone is an isolated data center within a Region designed for fault tolerance.
7. What is an Edge Location?
Answer:
Edge Locations are AWS sites used by CloudFront and Route 53 to deliver content with low latency.
8. What is EC2?
Answer:
Amazon EC2 (Elastic Compute Cloud) provides virtual servers in the cloud.
9. What is an AMI?
Answer:
Amazon Machine Image is a template used to launch EC2 instances.
10. What are EC2 instance types?
Answer:
- General Purpose
- Compute Optimized
- Memory Optimized
- Storage Optimized
- GPU Instances
11. What is EBS?
Answer:
Elastic Block Store provides persistent block-level storage for EC2 instances.
12. What is Amazon S3?
Answer:
Simple Storage Service (S3) is an object storage service offering high durability and scalability.
13. What are S3 Storage Classes?
Answer:
- Standard
- Intelligent-Tiering
- Standard-IA
- One Zone-IA
- Glacier Instant Retrieval
- Glacier Flexible Retrieval
- Glacier Deep Archive
14. What is an S3 Bucket?
Answer:
A bucket is a container used to store objects in Amazon S3.
15. What is AWS IAM?
Answer:
Identity and Access Management controls authentication and authorization in AWS.
16. What is an IAM User?
Answer:
An IAM User represents an individual identity with AWS permissions.
17. What is an IAM Role?
Answer:
An IAM Role provides temporary permissions to users, applications, or AWS services.
18. What is an IAM Policy?
Answer:
A JSON document defining permissions for AWS resources.
19. What is MFA?
Answer:
Multi-Factor Authentication adds an additional security layer beyond passwords.
20. What is VPC?
Answer:
A Virtual Private Cloud is an isolated virtual network within AWS.
21. What is a Subnet?
Answer:
A subnet is a segment of a VPC where AWS resources are deployed.
22. Difference between Public and Private Subnet?
Answer:
| Public Subnet | Private Subnet |
|---|---|
| Internet Access | No Direct Internet Access |
| Public IP Allowed | Typically No Public IP |
| Web Servers | Databases |
23. What is an Internet Gateway?
Answer:
An Internet Gateway allows communication between a VPC and the internet.
24. What is a Route Table?
Answer:
A Route Table controls network traffic routing within a VPC.
25. What is a Security Group?
Answer:
A Security Group acts as a virtual firewall for EC2 instances.
26. What is a Network ACL?
Answer:
A Network Access Control List controls traffic at the subnet level.
27. Difference between Security Group and NACL?
Answer:
| Security Group | NACL |
|---|---|
| Instance Level | Subnet Level |
| Stateful | Stateless |
| Allow Rules Only | Allow and Deny Rules |
28. What is Route 53?
Answer:
AWS Route 53 is a scalable DNS and domain management service.
29. What is CloudFront?
Answer:
CloudFront is AWS's Content Delivery Network (CDN).
30. What is Elastic IP?
Answer:
A static public IPv4 address that can be associated with AWS resources.
31. What is Auto Scaling?
Answer:
Automatically adjusts EC2 capacity based on demand.
32. What is an Auto Scaling Group?
Answer:
A collection of EC2 instances managed automatically for availability and scaling.
33. What is Elastic Load Balancer (ELB)?
Answer:
Distributes traffic across multiple targets.
34. What are ELB Types?
Answer:
- Application Load Balancer (ALB)
- Network Load Balancer (NLB)
- Gateway Load Balancer (GWLB)
35. What is an ALB?
Answer:
Application Load Balancer operates at Layer 7 and supports HTTP/HTTPS traffic.
36. What is an NLB?
Answer:
Network Load Balancer operates at Layer 4 and handles high-performance TCP/UDP traffic.
37. What is RDS?
Answer:
Relational Database Service provides managed relational databases.
38. Which databases are supported by RDS?
Answer:
- MySQL
- PostgreSQL
- MariaDB
- SQL Server
- Oracle
39. What is Multi-AZ Deployment?
Answer:
Creates a standby database in another Availability Zone for high availability.
40. What is Read Replica?
Answer:
A read-only copy of a database used to improve read performance.
41. What is Amazon DynamoDB?
Answer:
A fully managed NoSQL database service.
42. What is AWS Lambda?
Answer:
A serverless compute service that runs code without managing servers.
43. What is Serverless Computing?
Answer:
Running applications without provisioning or managing servers.
44. What is API Gateway?
Answer:
A service used to create and manage APIs.
45. What is SNS?
Answer:
Simple Notification Service provides pub/sub messaging.
46. What is SQS?
Answer:
Simple Queue Service provides message queuing between applications.
47. Difference between SNS and SQS?
Answer:
| SNS | SQS |
|---|---|
| Push Model | Pull Model |
| Broadcast | Queue Based |
| Multiple Subscribers | Single Consumer Pattern |
48. What is CloudWatch?
Answer:
A monitoring and observability service for AWS resources.
49. What are CloudWatch Metrics?
Answer:
Performance measurements collected from AWS services.
50. What are CloudWatch Alarms?
Answer:
Alerts triggered when metrics cross thresholds.
51. What is CloudTrail?
Answer:
Records AWS API activity for auditing and compliance.
52. What is AWS Config?
Answer:
Tracks resource configurations and compliance.
53. What is Systems Manager (SSM)?
Answer:
Provides centralized operational management of AWS resources.
54. What is Parameter Store?
Answer:
A secure storage service for configuration data and secrets.
55. What is Secrets Manager?
Answer:
A service used to securely store and rotate secrets.
56. What is EFS?
Answer:
Elastic File System provides scalable shared storage.
57. What is FSx?
Answer:
Managed file storage for Windows and high-performance workloads.
58. What is AWS Backup?
Answer:
Centralized backup service for AWS resources.
59. What is AWS Organizations?
Answer:
A service used to manage multiple AWS accounts centrally.
60. What is AWS Control Tower?
Answer:
A service that automates multi-account AWS environments.
61. What is AWS Well-Architected Framework?
Answer:
A framework for designing secure, reliable, efficient, and cost-optimized cloud solutions.
62. What are the six pillars of Well-Architected?
Answer:
- Operational Excellence
- Security
- Reliability
- Performance Efficiency
- Cost Optimization
- Sustainability
63. What is AWS Direct Connect?
Answer:
A dedicated private connection between on-premises infrastructure and AWS.
64. What is Transit Gateway?
Answer:
A central hub connecting multiple VPCs and on-premises networks.
65. What is VPC Peering?
Answer:
A private connection between two VPCs.
66. What is NAT Gateway?
Answer:
Allows private subnet resources to access the internet.
67. What is AWS WAF?
Answer:
Web Application Firewall protects web applications from attacks.
68. What is AWS Shield?
Answer:
A managed DDoS protection service.
69. What is AWS KMS?
Answer:
Key Management Service manages encryption keys.
70. What is AWS Certificate Manager?
Answer:
Provides SSL/TLS certificates.
71. What is Elastic Beanstalk?
Answer:
A platform service for deploying applications.
72. What is ECS?
Answer:
Elastic Container Service manages Docker containers.
73. What is EKS?
Answer:
Elastic Kubernetes Service provides managed Kubernetes.
74. What is Fargate?
Answer:
Serverless compute engine for containers.
75. What is CloudFormation?
Answer:
Infrastructure as Code service using templates.
76. What is Terraform and how does it differ from CloudFormation?
Answer:
Terraform is multi-cloud IaC, while CloudFormation is AWS-specific.
77. What is AWS Glue?
Answer:
A serverless ETL service for data integration.
78. What is Amazon Redshift?
Answer:
A fully managed data warehouse service.
79. What is Amazon Athena?
Answer:
A serverless query service for data stored in S3.
80. What is AWS Lake Formation?
Answer:
A service for building secure data lakes.
81. Your website experiences sudden traffic spikes. What AWS services would you use?
Answer:
- Auto Scaling
- Load Balancer
- CloudFront
- Multi-AZ deployment
82. An EC2 instance is unreachable. What would you check?
Answer:
- Security Groups
- NACLs
- Route Tables
- Instance status
- SSH configuration
83. S3 objects are accidentally deleted. How can you recover them?
Answer:
Enable Versioning and restore previous object versions.
84. A database server fails. How do you minimize downtime?
Answer:
Use RDS Multi-AZ deployment.
85. Users report slow application performance. What should you investigate?
Answer:
- CloudWatch metrics
- CPU utilization
- Database latency
- Network throughput
86. A private EC2 instance needs internet access. What would you configure?
Answer:
A NAT Gateway in a public subnet.
87. How would you secure sensitive data in AWS?
Answer:
- IAM
- KMS encryption
- MFA
- Security Groups
- Secrets Manager
88. An application requires global low-latency access. What would you use?
Answer:
CloudFront CDN.
89. How would you reduce AWS costs for idle workloads?
Answer:
- Rightsizing
- Auto Scaling
- Savings Plans
- Reserved Instances
90. A Lambda function times out frequently. What would you investigate?
Answer:
- Memory allocation
- Timeout settings
- External dependencies
- Code optimization
91. Multiple VPCs need connectivity. What is the best solution?
Answer:
AWS Transit Gateway.
92. How would you implement disaster recovery?
Answer:
- Cross-region backups
- Replication
- Route 53 failover
- Multi-region architecture
93. A public-facing application is under DDoS attack. What services help?
Answer:
- AWS Shield
- AWS WAF
- CloudFront
94. A production server must not have direct internet exposure. What architecture would you recommend?
Answer:
Private subnet behind an Application Load Balancer.
95. How would you monitor unauthorized API activity?
Answer:
CloudTrail combined with CloudWatch alerts.
96. Your company needs centralized management for multiple AWS accounts. What would you implement?
Answer:
AWS Organizations and Control Tower.
97. An RDS database has high read traffic. How can you improve performance?
Answer:
Deploy Read Replicas.
98. How would you automate infrastructure deployment?
Answer:
CloudFormation or Terraform.
99. A workload requires high availability across regions. What architecture would you design?
Answer:
- Multi-region deployment
- Route 53 failover
- Data replication
- Load balancing
100. During an AWS interview, how should you explain your cloud experience?
Answer:
Structure your answer as:
Requirement → AWS Services Chosen → Architecture Design → Security Considerations → Cost Optimization → Business Outcome
Highlight practical experience with:
- EC2
- S3
- IAM
- VPC
- RDS
- Lambda
- CloudWatch
- Load Balancers
- Security
- Automation
- Disaster Recovery
VMware Interview Questions
1. What is VMware?
Answer:
VMware is a virtualization platform that allows multiple virtual machines (VMs) to run on a single physical server, improving resource utilization and flexibility.
2. What is Virtualization?
Answer:
Virtualization is the process of creating virtual versions of computing resources such as servers, storage, networks, and operating systems.
3. What are the benefits of virtualization?
Answer:
- Reduced hardware costs
- Better resource utilization
- Faster provisioning
- Simplified disaster recovery
- Improved scalability
4. What is a Hypervisor?
Answer:
A hypervisor is software that creates and manages virtual machines.
5. What are the types of Hypervisors?
Answer:
| Type 1 | Type 2 |
|---|---|
| Bare Metal | Hosted |
| Runs directly on hardware | Runs on OS |
| Better performance | Lower performance |
Examples:
- ESXi (Type 1)
- Workstation (Type 2)
6. What is VMware ESXi?
Answer:
ESXi is VMware's bare-metal hypervisor used to run and manage virtual machines.
7. What is vCenter Server?
Answer:
vCenter Server provides centralized management for multiple ESXi hosts and virtual machines.
8. What is a Virtual Machine (VM)?
Answer:
A software-based computer that runs its own operating system and applications.
9. What are the main VM components?
Answer:
- Virtual CPU (vCPU)
- Memory (vRAM)
- Virtual Disk (VMDK)
- Virtual Network Adapter
10. What is a VMDK?
Answer:
Virtual Machine Disk (VMDK) is the file format used to store VM disks.
11. What is VMware Tools?
Answer:
A package installed inside a VM that improves performance, synchronization, and management.
12. Why is VMware Tools important?
Answer:
- Better graphics performance
- Time synchronization
- Graceful shutdown
- Driver optimization
13. What is a Datastore?
Answer:
A datastore is a logical storage container where VM files are stored.
14. What types of Datastores are supported?
Answer:
- VMFS
- NFS
- vSAN
- vVols
15. What is VMFS?
Answer:
VMware File System is a clustered file system designed for virtualization.
16. What is NFS Datastore?
Answer:
A datastore hosted on a Network File System server.
17. What is vSphere?
Answer:
vSphere is VMware's virtualization platform that includes ESXi and vCenter.
18. What is a Template?
Answer:
A master image used to deploy multiple virtual machines quickly.
19. What is Cloning?
Answer:
Creating an exact copy of a virtual machine.
20. What is a Snapshot?
Answer:
A snapshot captures the state of a VM at a specific point in time.
21. When should snapshots be used?
Answer:
- Before upgrades
- Before configuration changes
- For short-term rollback
22. What are the limitations of snapshots?
Answer:
- Consume storage
- Reduce performance
- Not a replacement for backups
23. What is a Resource Pool?
Answer:
A logical grouping of CPU and memory resources.
24. What is a Virtual Switch (vSwitch)?
Answer:
A software-based switch used for VM networking.
25. What is a Port Group?
Answer:
A collection of ports on a vSwitch with common network settings.
26. What is VM Power State?
Answer:
The operational state of a VM:
- Powered On
- Powered Off
- Suspended
27. What is VM Suspension?
Answer:
Saving a VM's memory state to disk and pausing execution.
28. What is Thin Provisioning?
Answer:
Allocating storage dynamically as data grows.
29. What is Thick Provisioning?
Answer:
Allocating all configured storage space immediately.
30. What command-line interface is available for ESXi?
Answer:
ESXCLI.
31. What is vMotion?
Answer:
vMotion allows live migration of a running VM between ESXi hosts without downtime.
32. What are the requirements for vMotion?
Answer:
- Shared storage
- Compatible CPUs
- vMotion network
- vCenter Server
33. What is Storage vMotion?
Answer:
Migrates VM storage between datastores without downtime.
34. What is Enhanced vMotion Compatibility (EVC)?
Answer:
Allows hosts with different CPU generations to participate in vMotion.
35. What is DRS?
Answer:
Distributed Resource Scheduler automatically balances workloads across hosts.
36. How does DRS work?
Answer:
It analyzes CPU and memory utilization and recommends or performs VM migrations.
37. What is HA?
Answer:
High Availability automatically restarts VMs if a host fails.
38. What is the purpose of VMware HA?
Answer:
Minimize downtime during host failures.
39. What is Admission Control?
Answer:
A HA feature ensuring enough resources exist for failover.
40. What is Fault Tolerance (FT)?
Answer:
Provides continuous availability by maintaining a secondary VM copy.
41. Difference between HA and FT?
Answer:
| HA | FT |
|---|---|
| Restarts VM | No Restart |
| Short Downtime | Zero Downtime |
| Host Failure Recovery | Continuous Availability |
42. What is a Cluster?
Answer:
A group of ESXi hosts managed together.
43. What is Distributed Switch (VDS)?
Answer:
A centralized virtual networking solution managed through vCenter.
44. Advantages of VDS?
Answer:
- Centralized management
- Consistent configuration
- Network monitoring
45. What is Host Profile?
Answer:
A template for standardizing ESXi host configurations.
46. What is Auto Deploy?
Answer:
Automates ESXi host deployment over the network.
47. What is vSphere Lifecycle Manager?
Answer:
Automates patching and upgrades.
48. What is VM Encryption?
Answer:
Encrypting virtual machine files for security.
49. What is Secure Boot?
Answer:
Ensures only trusted software loads during startup.
50. What is TPM?
Answer:
Trusted Platform Module provides hardware-based security.
51. What is Storage Policy Based Management (SPBM)?
Answer:
Allows storage requirements to be defined as policies.
52. What is Storage DRS?
Answer:
Balances VM storage across datastores.
53. What is a Content Library?
Answer:
A centralized repository for VM templates and ISO files.
54. What is VM Hardware Version?
Answer:
Defines the virtual hardware features available to a VM.
55. What is NUMA?
Answer:
Non-Uniform Memory Access optimizes memory access on multi-CPU systems.
56. What is CPU Overcommitment?
Answer:
Assigning more vCPUs than physical CPU cores.
57. What is Memory Ballooning?
Answer:
A memory reclamation technique used by ESXi.
58. What is Transparent Page Sharing (TPS)?
Answer:
Shares identical memory pages between VMs.
59. What is Memory Compression?
Answer:
Compresses memory pages before swapping.
60. What is Swapping in VMware?
Answer:
Moving memory pages to disk when RAM is insufficient.
61. What is VMware vSAN?
Answer:
A software-defined storage solution that combines local disks into shared storage.
62. What are vSAN Benefits?
Answer:
- Hyperconverged infrastructure
- Scalability
- Simplified management
63. What is vSAN Storage Policy?
Answer:
Defines availability and performance requirements.
64. What is vVols?
Answer:
Virtual Volumes provide VM-aware storage management.
65. What is NSX?
Answer:
VMware's network virtualization platform.
66. What is Micro-Segmentation?
Answer:
Applying security controls at the VM level.
67. What is Cross-vCenter vMotion?
Answer:
Migration of VMs between different vCenter Servers.
68. What is Linked Mode?
Answer:
Provides a single management view across multiple vCenters.
69. What is VMware Aria Operations (formerly vRealize Operations)?
Answer:
A monitoring and analytics platform for VMware environments.
70. What is SRM?
Answer:
Site Recovery Manager automates disaster recovery.
71. What is VM Replication?
Answer:
Copying VM data to another site for disaster recovery.
72. What is Storage Multipathing?
Answer:
Using multiple storage paths for redundancy and performance.
73. What is Host Isolation?
Answer:
Occurs when a host loses communication with management networks.
74. What is APD?
Answer:
All Paths Down indicates storage connectivity loss.
75. What is PDL?
Answer:
Permanent Device Loss indicates storage is permanently unavailable.
76. What is VM Affinity Rule?
Answer:
Keeps selected VMs together on the same host.
77. What is Anti-Affinity Rule?
Answer:
Keeps VMs separated across hosts.
78. What is ESXi Lockdown Mode?
Answer:
Restricts direct host access for security.
79. What is VMware Tanzu?
Answer:
A Kubernetes platform integrated with vSphere.
80. What is Lifecycle Management in VMware?
Answer:
Managing updates, patches, firmware, and compliance.
81. A VM is running slowly. What would you check first?
Answer:
- CPU usage
- Memory usage
- Disk latency
- Network performance
82. A host fails unexpectedly. What happens if HA is enabled?
Answer:
HA automatically restarts affected VMs on another host.
83. vMotion fails. What would you investigate?
Answer:
- Network connectivity
- CPU compatibility
- Storage accessibility
- Licensing
84. A datastore reaches 100% utilization. What actions would you take?
Answer:
- Remove snapshots
- Migrate VMs
- Expand storage
- Review storage consumption
85. Users report poor application performance. How would you troubleshoot?
Answer:
- Check VM resources
- Review host utilization
- Analyze storage latency
86. A snapshot has been left for several months. What risks exist?
Answer:
- Storage growth
- Performance degradation
- Backup complications
87. A VM cannot connect to the network. What should you verify?
Answer:
- Port Group
- VLAN
- Virtual NIC
- Physical switch configuration
88. Storage latency suddenly increases. What would you investigate?
Answer:
- SAN performance
- Disk contention
- Queue depth
- Storage paths
89. DRS is not balancing workloads. What could be wrong?
Answer:
- DRS disabled
- Affinity rules
- Resource constraints
90. HA fails to restart VMs after a host crash. What should be checked?
Answer:
- Admission Control
- Cluster configuration
- Shared storage
91. A VM requires zero downtime during maintenance. Which feature would you recommend?
Answer:
vMotion.
92. Multiple hosts lose access to storage. What troubleshooting steps would you follow?
Answer:
- Check SAN switches
- Verify storage controllers
- Review multipathing
93. How would you secure a VMware environment?
Answer:
- MFA
- RBAC
- Lockdown Mode
- Secure Boot
- Network Segmentation
94. A VM accidentally gets deleted. What recovery options are available?
Answer:
- Backup restoration
- Replication recovery
- Snapshot recovery (if available)
95. A company wants disaster recovery for critical applications. What VMware solution would you recommend?
Answer:
Site Recovery Manager (SRM) with replication.
96. A host reports high CPU contention. What should you analyze?
Answer:
- CPU Ready Time
- Overcommitment
- VM resource allocation
97. An ESXi host enters isolation state. What happens?
Answer:
HA isolation response policies determine whether VMs continue running, shut down, or restart elsewhere.
98. How would you migrate hundreds of VMs to a new cluster?
Answer:
- Capacity planning
- DRS utilization
- vMotion scheduling
- Validation testing
99. What design considerations are important for a highly available VMware environment?
Answer:
- HA
- DRS
- Redundant networking
- Redundant storage
- Backup and DR planning
100. During a VMware interview, how should you explain your experience?
Answer:
Use this framework:
Environment Size → VMware Products Used → Responsibilities → Troubleshooting Experience → Business Outcomes
Example:
"Managed a 20-host VMware vSphere environment supporting 500+ virtual machines. Responsible for ESXi administration, vCenter management, HA/DRS configuration, storage management, performance tuning, patching, and disaster recovery planning. Successfully reduced downtime through HA implementation and optimized resource utilization using DRS and vMotion."
This structure demonstrates both technical expertise and real-world VMware administration experience.

