Skip to main content

Command Palette

Search for a command to run...

πŸ” Frequently Asked Questions: DevOps, Linux & Networking

Updated
β€’11 min read
πŸ” Frequently Asked Questions: DevOps, Linux & Networking
V

πŸ‘©β€πŸ’» 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 β€” Navigation

  • cat, touch, nano, vi β€” File management

  • chmod, chown β€” Permissions

  • top, ps, kill β€” Process control

  • df, du β€” Disk usage

  • grep, awk, sed β€” Text filtering

  • systemctl, service β€” Service management

  • scp, 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.

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 & write

  • r-- = group has read

  • r-- = 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:

  • sudo allows 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 content

  • less filename – allows scrolling

  • head filename – shows first 10 lines

  • tail filename – shows last 10 lines

18. How do you check disk usage in Linux?

Answer:

  • df -h β†’ disk space usage

  • du -sh foldername/ β†’ size of a directory

  • ls -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-orientedConnectionless
Reliable (acknowledgment sent)Unreliable (no acknowledgment)
SlowerFaster
Used in: HTTP, FTP, SSHUsed 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:

  1. Physical

  2. Data Link

  3. Network

  4. Transport

  5. Session

  6. Presentation

  7. 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?

ConceptDescription
CIAutomates 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 aux
    
  • Kill 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?

HTTPHTTPS
InsecureSecure (uses SSL/TLS)
Data is sent in plain textData is encrypted
Uses port 80Uses 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!

More from this blog

The CloudOps Journal

10 posts