π Frequently Asked Questions: DevOps, Linux & Networking

π©βπ» Aspiring DevOps & Cloud Engineer | Learning in Public | Automation Enthusiast Hi! Iβm Vaishnavi Landge, documenting my journey into DevOps, Cloud, CI/CD, and automation. I believe in learning by doing β this blog is my daily space to simplify concepts, share projects, and grow step by step. π Letβs build, automate, and deploy β together!
Letβs reinforce everything weβve learned so far with a set of carefully curated, interview-level FAQs across DevOps, Linux, and Networking β the foundational trio for any DevOps engineer.
π Frequently Asked Questions :
1. What is DevOps and how is it different from traditional software development?
Answer:
DevOps is a cultural and technical movement that bridges the gap between software development (Dev) and IT operations (Ops). Unlike traditional models (like Waterfall) where dev and ops work in silos, DevOps encourages collaboration, automation, and continuous delivery.
2. Why is DevOps needed in modern IT environments?
Answer:
DevOps enables faster deployment, quicker bug fixes, and better collaboration between dev and ops teams. Traditional siloed approaches caused delays and inefficiencies β DevOps solves this with a culture of shared responsibility and automation.
3. What problems does DevOps solve?
Answer:
Slow delivery cycles
Frequent deployment failures
Poor collaboration between teams
Lack of visibility into system health
DevOps introduces automation, monitoring, and CI/CD to fix these issues.
4. What is the DevOps Lifecycle?
Answer:
The DevOps lifecycle is a set of continuous, interconnected phases that aim to automate and streamline the development, deployment, and operations of software systems. It ensures faster delivery, higher quality, and continuous improvement through feedback loops between teams.
Hereβs a breakdown of each stage:
1. Plan π
This phase involves defining business requirements, product features, timelines, and planning for the development process. It's about setting clear goals and aligning the development with customer needs.
π Tools:
Jira
Trello
Confluence
Azure Boards
2. Develop π»
In this phase, developers write the code based on the plan. The code is often stored in version control systems and developed collaboratively using branches.
π Tools:
Git
GitHub / GitLab / Bitbucket
Visual Studio Code
IntelliJ IDEA
3. Build π§
Here, the source code is compiled into executable artifacts. It often involves pulling dependencies, resolving errors, and preparing the app for testing or deployment.
π Tools:
Maven
Gradle
Jenkins
GitHub Actions
Azure Pipelines
4. Test π§ͺ
Automated testing is performed to verify code correctness, functionality, performance, and security. This step helps identify bugs early in the pipeline.
π Tools:
Selenium
JUnit
Postman
TestNG
SonarQube
5. Release π
Once testing is successful, the build is marked as ready for production. This phase includes approvals, versioning, and preparing release notes.
π Tools:
Jenkins
GitHub Actions
GitLab CI/CD
Harness
Spinnaker
6. Deploy π¦
Code is deployed to production or staging environments. DevOps teams aim for automated and zero-downtime deployments.
π Tools:
Kubernetes
Docker
Ansible
Helm
AWS CodeDeploy
Terraform
7. Operate βοΈ
This phase focuses on managing the infrastructure and ensuring application uptime. It includes provisioning servers, configuring environments, and handling scaling.
π Tools:
AWS
Azure
GCP
Kubernetes
Docker Swarm
Ansible
8. Monitor π
Monitoring tools help track application performance, error rates, infrastructure usage, and user behavior. This data is used to improve the next iteration.
π Tools:
Prometheus
Grafana
ELK Stack
Datadog
New Relic
5. Why is Linux so important in DevOps?
Answer:
Linux powers most servers, cloud infrastructure, and containers. DevOps tools like Docker, Kubernetes, Jenkins, and Ansible are Linux-native or Linux-first, so understanding Linux is foundational for automation, scripting, and deployments.
6. What are some must-know Linux commands for DevOps?
Answer:
ls,cd,pwd,mkdirβ Navigationcat,touch,nano,viβ File managementchmod,chownβ Permissionstop,ps,killβ Process controldf,duβ Disk usagegrep,awk,sedβ Text filteringsystemctl,serviceβ Service managementscp,rsync,curl,wgetβ File transfer & networking
7. Why do DevOps engineers prefer Linux?
Answer:
Lightweight & customizable
Better scripting environment
Used in servers, containers, and cloud VMs
Most DevOps tools are Linux-first (like Docker, Kubernetes)
8. What are the key components of Linux architecture?
Answer:
Kernel β Core of the OS
Shell β Command line interpreter
File System β Hierarchical data storage
Services β Background daemons like
sshd,cron
9 . What is the purpose of file permissions in Linux?
Answer:
Linux uses read (r), write (w), and execute (x) permissions for user, group, and others. It ensures that only authorized users can access or modify files.
Example: -rwxr-xr--
Owner: all permissions, Group: read+execute, Others: read only.
10. How do symbolic and hard links differ?
Answer:
Hard link: Points directly to the file's inode (data). Doesnβt break if original is deleted.
Symbolic link (symlink): Points to the file path. Breaks if original file is removed.
11. What is the difference between /etc/passwd and /etc/shadow?
Answer:
/etc/passwd: Stores user account details/etc/shadow: Stores hashed passwords (more secure, restricted access)
12. How can you check the current permissions of a file?
Answer:
Use the ls -l command:
ls -l filename
It shows output like:
-rw-r--r-- 1 user group 1234 Jul 16 12:00 file.txt
Here:
rw-= user has read & writer--= group has readr--= others have read
13. How do you change the owner of a file?
Answer:
Use the chown command.
chown newuser:newgroup filename
Example:
chown vaishnavi:devops file.txt
14. What is the difference between chmod, chown, and chgrp?
Answer:
chmod: Changes permissions (read/write/execute).chown: Changes the owner of the file.chgrp: Changes the group associated with a file.
15. How do you list hidden files in Linux?
Answer:
Use:
ls -a
Files starting with a dot . are hidden (e.g., .bashrc, .gitignore).
16. What is sudo and why is it important?
Answer:
sudoallows a permitted user to run commands as the superuser or another user.Itβs safer than logging in directly as root.
Example:
sudo apt update
17. How do you view the contents of a file?
Answer:
cat filenameβ shows entire contentless filenameβ allows scrollinghead filenameβ shows first 10 linestail filenameβ shows last 10 lines
18. How do you check disk usage in Linux?
Answer:
df -hβ disk space usagedu -sh foldername/β size of a directoryls -lhβ size of files in a directory
19. How to schedule tasks using cron?
Answer:
Edit the crontab file:
crontab -e
Add a cron job:
0 2 * * * /home/vaishnavi/backup.sh
This runs backup.sh every day at 2 AM.
20. What is an IP address and how many classes are there?
Answer:
An IP address is a unique identifier for a device on a network.
There are 5 IP classes:
Class A: 1.0.0.0 β 126.0.0.0 (Large networks)
Class B: 128.0.0.0 β 191.255.0.0 (Medium)
Class C: 192.0.0.0 β 223.255.255.0 (Small)
Class D: Multicast
Class E: Reserved for research
21. What is the difference between TCP and UDP?
Answer:
| TCP (Transmission Control Protocol) | UDP (User Datagram Protocol) |
| Connection-oriented | Connectionless |
| Reliable (acknowledgment sent) | Unreliable (no acknowledgment) |
| Slower | Faster |
| Used in: HTTP, FTP, SSH | Used in: DNS, VoIP, video streaming |
21. What is a MAC address?
Answer:
A MAC address is a hardware-level unique identifier for a deviceβs network interface. While IP changes often, MAC is static β important for security, network control, and device tracking.
22. Whatβs the difference between a public and private IP address?
Answer:
Public IP: Globally unique, accessible over the internet (e.g., your home Wi-Fi IP)
Private IP: Used within internal networks (e.g.,
192.168.x.x,10.x.x.x)
23. What is the OSI model? Why is it important?
Answer:
The OSI model is a conceptual 7-layer framework that describes how data moves through a network.
Layers:
Physical
Data Link
Network
Transport
Session
Presentation
Application
It helps in troubleshooting and understanding protocol responsibilities.
24. What is the purpose of Subnetting?
Answer:
Subnetting divides a network into smaller segments (subnets) for:
Better traffic management
Security isolation
Efficient IP allocation
CIDR notation helps define subnet sizes.
25. What is NAT and how does it work?
Answer:
NAT (Network Address Translation) allows multiple private IP devices to access the internet using a single public IP. It maps internal private IPs to external ones, enabling secure, efficient traffic routing.
26. What is a DNS and how does it work?
Answer:
DNS (Domain Name System) resolves human-readable domain names into IP addresses.
Example: www.google.com β 142.250.195.36
27. What are ports in networking? Give examples.
Answer:
Ports are virtual endpoints for network communication.
Examples:
80 (HTTP)
443 (HTTPS)
22 (SSH)
53 (DNS)
3306 (MySQL)
28. What is CI/CD in DevOps and how does it work?
Answer:
CI/CD stands for Continuous Integration and Continuous Delivery/Deployment.
CI (Continuous Integration): Developers frequently push code to a shared repository. Automated tools run tests and validate the new code, ensuring it integrates well with the existing codebase.
CD (Continuous Delivery/Deployment):
Delivery means the code is always in a deployable state and can be released manually at any time.
Deployment means the code is automatically deployed to production after passing tests.
This pipeline helps catch bugs early and makes software delivery faster, reliable, and automated.
29. What is the difference between Continuous Integration, Continuous Delivery, and Continuous Deployment?
| Concept | Description |
| CI | Automates code merging and testing |
| CD (Delivery) | Automates build, testing, and preparation for release (manual deployment) |
| CD (Deployment) | Fully automates build, testing, and release into production |
30. What are blue-green deployments and canary releases?
Answer:
Blue-Green Deployment: Two environments (Blue and Green) are maintained. One serves live traffic (e.g., Blue), while the other (Green) has the new version. After testing, traffic switches to Green.
β Zero-downtime, safe rollback.
Canary Release: New version is released to a small group of users first. If it works well, it's gradually released to everyone.
π― Useful for detecting issues early without affecting all users.
31. What is Infrastructure as Code (IaC) and why is it important?
Answer:
Infrastructure as Code (IaC) means writing code to provision and manage infrastructure, such as servers, databases, and networks.
π§ Tools: Terraform, AWS CloudFormation, Ansible
π Benefits:
Version control for infrastructure
Automation and consistency
Faster setup of environments
Easy to replicate or roll back changes
IaC is crucial for scalability, collaboration, and automation in modern DevOps workflows.
32. How do you give execute permissions to a script file in Linux?
Answer:
Use the chmod command:
chmod +x script.sh
This lets the system know the file can be run as a program/script.
33. How can you find a file in Linux?
Answer:
Use the find command:
find /path -name filename
π Example:
find /home/vaishnavi -name notes.txt
34. How to view running processes and kill them?
View processes:
ps auxKill a process:
kill <PID>
PID is the Process ID. Use kill -9 <PID> to force stop.
35. What is the purpose of the /etc directory?
Answer:
The /etc directory contains system-wide configuration files.
π Examples:
/etc/passwdβ User account info/etc/hostsβ Hostname to IP mappings/etc/fstabβ Disk mounting details
Itβs a critical directory for Linux system admins.
36. What is a load balancer and why is it used?
Answer:
A load balancer distributes incoming network traffic across multiple servers to:
Improve performance
Prevent overload
Ensure high availability
π οΈ Types:
Layer 4 (Transport-level): Works with TCP/UDP
Layer 7 (Application-level): Works with HTTP/HTTPS
37. How does HTTPS differ from HTTP?
| HTTP | HTTPS |
| Insecure | Secure (uses SSL/TLS) |
| Data is sent in plain text | Data is encrypted |
| Uses port 80 | Uses port 443 |
π HTTPS is essential for securing web applications, especially when handling passwords, credit cards, or sensitive data.
38. What is a firewall and how does it protect your system?
Answer:
A firewall is a security system that monitors and controls incoming and outgoing network traffic based on defined rules.
It blocks unauthorized access while allowing legitimate communication.
39. What is a routing table and why is it important?
Answer:
A routing table is used by routers to determine where to send data packets.
π It contains:
Destination IP
Subnet mask
Gateway
It ensures that your system knows the correct path to forward packets, both internally and externally.
40. What is a VPN and how is it used in DevOps?
Answer:
A VPN (Virtual Private Network) creates a secure tunnel over public networks.
π Why use it in DevOps?
Secure remote access to infrastructure
Safe communication between services over the internet
Connect multiple cloud environments securely
Popular tools: OpenVPN, WireGuard, AWS VP
And that concludes Day 4 of our DevOps Learning Series!
Up next: weβll be unraveling Git, the tool that powers collaboration and version control in every modern DevOps workflow. Donβt miss it!



