LogIn
I don't have account.
Sponsored -55%
Tarkan Top Brand

Tarkan Portable Folding Laptop Desk with Drawer, Cup & Tablet Holder (Black)

Foldable · Anti-slip strip · 60 × 40 cm · No assembly

★★★★★ 4.2 (7,877) 1K+ bought last month
₹899 M.R.P. ₹1,999Save ₹1,100
Buy Now
Adℹ

DevOps Interview Questions and Answers for Intermediate-Level Engineers

Nikhil Bansal
184 Views
Amazon Pay offer
Adℹ

If you've already learned the basics of DevOps and are preparing for interviews, the next step is understanding how DevOps works in real production environments.

At the intermediate level, interviewers usually move beyond simple definitions. Instead of asking "What is CI/CD?" or "What is Docker?", they'll want to know how you've used these technologies, why you chose a particular solution and how you would handle real-world deployment or infrastructure challenges.

That's why this guide focuses on practical DevOps interview questions that are commonly asked for candidates with 1–4 years of experience.

The questions cover topics you'll frequently encounter in interviews, including Docker, Kubernetes, Jenkins, Git, Linux, CI/CD pipelines, Terraform, Ansible, cloud platforms such as AWS, Azure and Google Cloud, monitoring, logging, deployment strategies, networking and infrastructure automation.

The explanations are kept simple and practical so that you understand the concept instead of memorizing definitions.

New to DevOps? Start with the Fundamentals First

If you're just beginning your DevOps journey, it's worth spending some time on the basics before jumping into intermediate concepts. Topics like Kubernetes, Terraform or advanced CI/CD pipelines become much easier to understand once you're comfortable with Git, Linux, Docker, CI/CD and cloud fundamentals.

If you haven't covered those topics yet, we recommend reading our beginner's guide first: DevOps Interview Questions for Freshers: Top 35 Questions & Answers

It covers the concepts that almost every fresher interview starts with, including:

  • What is DevOps?
  • CI/CD and deployment basics
  • Git fundamentals and common commands
  • Docker and Virtual Machines
  • Infrastructure as Code (IaC)
  • Jenkins
  • SSH
  • AWS basics
  • Linux fundamentals
  • Configuration Management
  • Blue-Green Deployment

Once you're comfortable with these topics, come back to this guide and continue with the intermediate interview questions. You'll find them much easier to understand and you'll be better prepared to answer practical, scenario-based questions during interviews.

1. What is the Component-Based Model (CBM) in DevOps?

The Component-Based Model (CBM) is a software design approach where an application is built by combining reusable components instead of creating everything from scratch. Each component performs a specific task and can be developed, tested and maintained independently. Since components are reusable, development becomes faster and maintaining large applications becomes much easier.

For example, an authentication module or a payment module can be reused across multiple applications instead of building it every time.

2. How do you create a CI/CD pipeline in Jenkins?

A Jenkins pipeline automates the process of building, testing and deploying an application whenever new code is pushed to a repository.

The basic steps are:

  1. Install Jenkins and the required plugins.
  2. Connect Jenkins to your Git repository.
  3. Configure tools such as JDK, Maven, Node.js or Docker.
  4. Add the required credentials.
  5. Create a Pipeline or Multibranch Pipeline job.
  6. Add a Jenkinsfile to your project.
  7. Define pipeline stages like Build → Test → Deploy.
  8. Configure Git webhooks so the pipeline runs automatically after every commit.
  9. Monitor builds using Jenkins logs and reports.

This helps teams release software faster while reducing manual work and deployment errors.

3. What's the difference between Chef and Puppet?

Both Chef and Puppet are configuration management tools used to automate server configuration and infrastructure management.

Chef Puppet
Uses Ruby for writing configurations. Uses its own declarative language (Puppet DSL).
Gives developers more flexibility. Easier for managing large infrastructures.
More procedural approach. More declarative approach.
Popular in environments requiring custom automation. Commonly used in large enterprise environments.

Both tools solve the same problem and the choice usually depends on the organization's requirements.

4. What is Git Rebase?

Git Rebase is used to move or replay commits from one branch onto another. Unlike a merge, rebase creates a cleaner and more linear commit history, making the project history easier to read.

For example, before merging a feature branch into main, developers often rebase it so it includes the latest changes from the main branch.

git rebase main

Rebasing is useful for keeping commit history clean, but it should be avoided on shared branches because it rewrites commit history.

5. What is the Selenium Tool Suite?

The Selenium Tool Suite is a collection of tools used for automating web browser testing.

It includes:

  • Selenium IDE – Records and plays back browser actions.
  • Selenium WebDriver – Automates browsers using programming languages like Java, Python or C#.
  • Selenium Grid – Runs tests across multiple browsers and machines simultaneously.
  • Selenium RC – An older component that has now been replaced by WebDriver.

6. What is Selenium IDE?

Selenium IDE is a browser extension that records your actions on a website and converts them into automated test cases. It's a good choice for beginners because it doesn't require much programming knowledge. Developers mainly use it to create simple UI tests or quickly prototype automation scripts.

7. How do you create backups and copy files in Jenkins?

The easiest way to back up Jenkins is by creating a copy of the JENKINS_HOME directory because it contains all jobs, plugins, configurations and build history. To copy files during a pipeline, you can use shell commands.

For Linux:

cp source destination

For Windows:

copy source destination

Many teams also use plugins like ThinBackup to schedule automatic Jenkins backups.

8. How do you create a Jenkins job?

Creating a Jenkins job is straightforward.

  1. Open the Jenkins dashboard.
  2. Click New Item.
  3. Enter a job name.
  4. Select the project type (Freestyle or Pipeline).
  5. Configure the Git repository.
  6. Add build triggers.
  7. Configure build and deployment steps.
  8. Save the configuration.
  9. Click Build Now to execute the job.

Once configured, Jenkins can automatically build and deploy the application whenever new code is pushed.

9. Explain Docker architecture.

Docker follows a client-server architecture. Its main components are:

  • Docker Client – Accepts Docker commands from the user.
  • Docker Daemon (dockerd) – Builds and manages images, containers, networks and volumes.
  • Docker Images – Read-only templates used to create containers.
  • Docker Containers – Running instances of Docker images.
  • Docker Registry – Stores Docker images (Docker Hub is the most popular registry).
  • Docker Compose – Manages multi-container applications using a YAML file.

Together, these components make it easy to build, ship and run applications consistently across different environments.

10. What is the DevOps lifecycle?

The DevOps lifecycle describes the stages involved in developing, releasing and maintaining software. It is a continuous cycle rather than a one-time process. The major stages are:

  • Continuous Planning
  • Continuous Development
  • Continuous Integration
  • Continuous Testing
  • Continuous Deployment (or Continuous Delivery)
  • Continuous Monitoring
  • Continuous Feedback
  • Continuous Operations

Each phase helps teams release software faster while maintaining quality and reliability.

11. What is the difference between Git Merge and Git Rebase?

Both commands combine changes from different branches, but they work differently.

Git Merge Git Rebase
Preserves complete commit history. Creates a cleaner, linear history.
Adds a merge commit. Doesn't create a merge commit.
Safer for shared branches. Best for local feature branches.
Easier for beginners. Requires more care because it rewrites history.

A common interview answer is:

Use Merge when preserving history is important. Use Rebase when you want a clean commit history before merging.

12. What's the difference between DataOps and DevOps?

Although the names sound similar, they solve different problems.

DataOps DevOps
Focuses on managing data pipelines and analytics. Focuses on building, testing and deploying software.
Used by data engineers and analytics teams. Used by software development and operations teams.
Improves data quality, reliability and availability. Improves software delivery speed and reliability.
Automates data workflows. Automates software development and deployment workflows.

In simple terms, DataOps manages data, while DevOps manages software delivery.

13. What are the 7 Cs of DevOps?

The 7 Cs represent the continuous practices followed in DevOps.

  • Continuous Development
  • Continuous Integration
  • Continuous Testing
  • Continuous Delivery
  • Continuous Deployment
  • Continuous Monitoring
  • Continuous Feedback

Some organizations also include Continuous Operations as an additional practice. Together, these practices help teams build, test, release, monitor and improve software continuously.

14. Explain the "Shift Left" concept in DevOps.

"Shift Left" means moving testing, security checks and code quality reviews earlier in the software development process instead of waiting until the end.

For example, instead of finding security issues after deployment, teams run security scans during development or as part of the CI/CD pipeline. By identifying problems early, developers can fix them faster and at a much lower cost.

In short, the earlier you detect a problem, the easier and cheaper it is to fix.

15. What is Infrastructure as Code (IaC)? What are its benefits and challenges?

Infrastructure as Code (IaC) is the practice of managing infrastructure using code instead of configuring servers and cloud resources manually.

For example, instead of creating virtual machines, networks and databases through the AWS console every time, you can define everything in code using tools like Terraform, AWS CloudFormation or Pulumi. Whenever you need the same environment, you simply execute the code. This approach makes infrastructure easier to manage, especially in large projects.

Benefits of IaC

  • Faster infrastructure provisioning
  • Consistent environments across development, testing and production
  • Easy to version and review changes using Git
  • Reduces manual errors
  • Makes scaling and disaster recovery much simpler

Challenges of IaC

  • Requires learning IaC tools and best practices
  • Managing large infrastructure codebases can become complex
  • Secrets and credentials must be handled securely
  • Poorly written infrastructure code can impact production systems

16. How can you achieve zero-downtime deployments?

Zero-downtime deployment means releasing a new version of an application without interrupting users. Instead of stopping the existing application and replacing it with a new version, the new version is deployed while the current version is still running. Once everything is verified, user traffic is gradually switched to the new version.

Some popular deployment strategies include:

  • Blue-Green Deployment – Maintain two production environments and switch traffic once the new version is ready.
  • Canary Deployment – Release the update to a small percentage of users first, then gradually increase the rollout.
  • Rolling Deployment – Update application instances one by one instead of replacing them all at once.

These strategies reduce deployment risk and make rollbacks much easier if something goes wrong.

17. How do you secure a CI/CD pipeline?

A CI/CD pipeline has access to source code, production servers and deployment credentials, so securing it is essential. Some common security practices include:

  • Store secrets in a secure vault instead of hardcoding them.
  • Use role-based access control (RBAC).
  • Enable Multi-Factor Authentication (MFA).
  • Scan dependencies and container images for vulnerabilities.
  • Run automated security tests as part of the pipeline.
  • Rotate API keys and access tokens regularly.
  • Keep detailed audit logs of pipeline activities.

The idea is to identify security issues as early as possible rather than after deployment.

18. Why are monitoring and logging important in DevOps?

Building and deploying an application is only part of the job. Once the application is live, you need to know whether it's working correctly. That's where monitoring and logging become important.

  • Monitoring tracks the health and performance of applications, servers and infrastructure in real time.

  • Logging records application events and errors, making it easier to investigate problems.

Some commonly used tools include:

  • Prometheus
  • Grafana
  • ELK Stack
  • Loki
  • Splunk
  • AWS CloudWatch

Good monitoring helps teams detect issues early, while centralized logging makes troubleshooting much faster.

19. What is Immutable Infrastructure?

Immutable Infrastructure is an approach where servers are never modified after they're deployed.

If you need to update an application or operating system, you don't log in and make changes manually. Instead, you create a new server or container with the updated configuration and replace the old one.

This approach offers several advantages:

  • Consistent environments
  • Easier rollbacks
  • Reduced configuration drift
  • Better reliability

The main challenge is handling applications that store data locally, as they require additional planning for persistent storage.

20. What is Serverless Computing?

Serverless computing is a cloud model where developers focus only on writing application code while the cloud provider manages the servers behind the scenes. You don't have to provision servers, install operating systems or worry about scaling infrastructure.

Popular serverless services include:

  • AWS Lambda
  • Azure Functions
  • Google Cloud Functions

Some advantages of serverless computing are:

  • No server management
  • Automatic scaling
  • Pay only for actual usage
  • Faster application development

Serverless works particularly well for APIs, event-driven applications, scheduled tasks and background jobs.

21. What are Blue-Green and Canary Deployments?

Both Blue-Green and Canary deployments reduce deployment risk, but they release new versions differently.

Blue-Green Deployment

Two identical production environments are maintained.

  • Blue contains the current stable version.
  • Green contains the new version.

Once testing is complete, all user traffic is switched to the Green environment. If any issue occurs, traffic can immediately be redirected back to Blue.

Canary Deployment

Instead of switching everyone at once, the new version is released gradually. For example:

  • 5% of users receive the new version.
  • If everything works correctly, increase the rollout to 20%, then 50% and finally 100%.

Canary deployments reduce risk because only a small group of users is affected if something goes wrong.

22. How do you optimize a Docker container for better performance?

Optimizing Docker images improves build speed, reduces storage usage and makes deployments faster. Some common best practices are:

  • Use lightweight base images such as Alpine.
  • Remove unnecessary packages and files.
  • Use multi-stage builds.
  • Minimize Docker image layers.
  • Cache dependencies whenever possible.
  • Avoid running containers as the root user.
  • Keep images small by installing only production dependencies.

Smaller images download faster, start quicker and consume fewer resources.

23. How do you perform a rollback in Kubernetes?

If a deployment introduces an issue, Kubernetes allows you to roll back to the previous working version. The most common command is:

kubectl rollout undo deployment <deployment-name>

Kubernetes stores deployment history, making rollbacks quick and reliable.

If you're using Helm, you can also roll back using:

helm rollback <release-name> <revision>

Keeping deployment history makes recovering from failed releases much easier.

24. How do you optimize a CI/CD pipeline for faster deployments?

A slow CI/CD pipeline delays development and reduces team productivity. Some effective optimization techniques include:

  • Cache dependencies between builds.
  • Run independent tests in parallel.
  • Build only modified components instead of the entire project.
  • Reuse Docker image layers.
  • Skip unnecessary jobs for documentation-only changes.
  • Automate deployments.
  • Use incremental builds whenever possible.

The goal isn't just to make the pipeline faster, but also to keep it reliable.

25. What are Sidecar Containers in Kubernetes?

A Sidecar Container is an additional container that runs alongside the main application container inside the same Kubernetes Pod. Instead of adding extra responsibilities to the application, these tasks are handled by the sidecar.

Common sidecar use cases include:

  • Log collection
  • Monitoring
  • Service proxy
  • Security
  • Configuration updates

Since both containers share the same network and storage, they can work together efficiently while keeping the application code clean.

26. What is the difference between Monolithic, SOA and Microservices Architecture?

These are three different approaches to designing software applications.

| Feature | Monolithic | SOA | Microservices | | | -- | -- | | | Architecture | Single application | Collection of enterprise services | Collection of small independent services | | Deployment | Entire application is deployed together | Services may be deployed independently but often depend on shared infrastructure | Every service can be deployed independently | | Communication | Internal method calls | Usually through an Enterprise Service Bus (ESB) | REST APIs, gRPC or messaging systems | | Scalability | Scale the whole application | Partial service scaling | Scale individual services independently | | Technology | Usually one technology stack | Often follows enterprise standards | Each service can use its own technology stack | | Failure Impact | One failure can affect the whole application | Shared components may become bottlenecks | Failures are isolated to individual services |

When should you use each?

  • Monolithic Architecture is a good choice for small projects and startups.
  • SOA (Service-Oriented Architecture) works well for large enterprise systems that integrate multiple business applications.
  • Microservices Architecture is ideal for large, cloud-native applications that require independent deployments, high scalability and faster development.
Responses (0)

Write a response

CommentHide Comments

No Comments yet.

"},"4":{"id":4,"name":"ZEBRONICS Blanc mouse ad","otherData":"{}","contentFormat":2,"content":"
Sponsored -53%
Zebronics #1 Best Seller

ZEBRONICS Blanc Slim Wireless Mouse — Rechargeable, BT + 2.4GHz (Black)

Up to 1600 DPI · Silent clicks · 63g · Multicolor LED

★★★★★ 4.0 (9,512) 5K+ bought last month
₹376 M.R.P. ₹799Save ₹423
Buy Now
"},"2":{"id":2,"name":"Crousal Ads","otherData":"{}","contentFormat":2,"content":"
Sponsored -34%
iQOO Amazon's Choice

iQOO Z10 Lite 5G — Cyber Green, 4GB RAM, 128GB Storage

Dimensity 6300 · 50MP Sony AI Camera · 6000 mAh · IP64

★★★★★ 4.0 (2,052) 500+ bought last month
₹18,997 M.R.P. ₹28,999Save ₹10,002
Buy Now
"},"1":{"id":1,"name":"Banner Ads","otherData":"{}","contentFormat":2,"content":"\n
\n \n \n \"Amazon\n \n
"}}},"blogDetails":{"isWriter":false,"likes":0,"isLikedByUser":false,"tagIds":[186,196,291,408,448,449,457],"tags":[{"id":186,"name":"Architecture","maskingName":"architecture","isFeatured":false},{"id":196,"name":"Software Design","maskingName":"software-design","isFeatured":true},{"id":291,"name":"Distributed System","maskingName":"distributed-system","isFeatured":false},{"id":408,"name":"DevOps Automation","maskingName":"devops-automation","isFeatured":false},{"id":448,"name":"Interview Preparation","maskingName":"interview-preparation","isFeatured":true},{"id":449,"name":"Interview Preparation Tips","maskingName":"interview-preparation-tips","isFeatured":true},{"id":457,"name":"Interview Questions","maskingName":"interview-questions","isFeatured":true}],"comments":[],"bookmark":{"isBookmarked":false,"count":0},"author":{"userId":"MjlfNF84LVsxNzNdMm4tdENfQU5nZV9fSXQ=","name":"Nikhil Bansal"},"viewCount":183,"showBannerImage":false,"seoTags":"intermediate DevOps interview questions, DevOps interview questions for experienced, DevOps interview questions 2 years experience, DevOps interview questions 3 years experience, DevOps interview questions 4 years experience, Docker interview questions, Kubernetes interview questions, Jenkins interview questions, Git interview questions, Terraform interview questions, AWS DevOps interview questions, Linux interview questions, CI/CD interview questions, Ansible interview questions, DevOps interview preparation, cloud engineer interview, SRE interview questions, DevOps guide","content":"

If you've already learned the basics of DevOps and are preparing for interviews, the next step is understanding how DevOps works in real production environments.

\n

At the intermediate level, interviewers usually move beyond simple definitions. Instead of asking \"What is CI/CD?\" or \"What is Docker?\", they'll want to know how you've used these technologies, why you chose a particular solution and how you would handle real-world deployment or infrastructure challenges.

\n

That's why this guide focuses on practical DevOps interview questions that are commonly asked for candidates with 1–4 years of experience.

\n

The questions cover topics you'll frequently encounter in interviews, including Docker, Kubernetes, Jenkins, Git, Linux, CI/CD pipelines, Terraform, Ansible, cloud platforms such as AWS, Azure and Google Cloud, monitoring, logging, deployment strategies, networking and infrastructure automation.

\n

The explanations are kept simple and practical so that you understand the concept instead of memorizing definitions.

\n

New to DevOps? Start with the Fundamentals First

\n

If you're just beginning your DevOps journey, it's worth spending some time on the basics before jumping into intermediate concepts.\nTopics like Kubernetes, Terraform or advanced CI/CD pipelines become much easier to understand once you're comfortable with Git, Linux, Docker, CI/CD and cloud fundamentals.

\n

If you haven't covered those topics yet, we recommend reading our beginner's guide first:\nDevOps Interview Questions for Freshers: Top 35 Questions & Answers

\n

It covers the concepts that almost every fresher interview starts with, including:

\n\n

Once you're comfortable with these topics, come back to this guide and continue with the intermediate interview questions. You'll find them much easier to understand and you'll be better prepared to answer practical, scenario-based questions during interviews.

\n

1. What is the Component-Based Model (CBM) in DevOps?

\n

The Component-Based Model (CBM) is a software design approach where an application is built by combining reusable components instead of creating everything from scratch.\nEach component performs a specific task and can be developed, tested and maintained independently. Since components are reusable, development becomes faster and maintaining large applications becomes much easier.

\n

For example, an authentication module or a payment module can be reused across multiple applications instead of building it every time.

\n

2. How do you create a CI/CD pipeline in Jenkins?

\n

A Jenkins pipeline automates the process of building, testing and deploying an application whenever new code is pushed to a repository.

\n

The basic steps are:

\n
    \n
  1. Install Jenkins and the required plugins.
  2. \n
  3. Connect Jenkins to your Git repository.
  4. \n
  5. Configure tools such as JDK, Maven, Node.js or Docker.
  6. \n
  7. Add the required credentials.
  8. \n
  9. Create a Pipeline or Multibranch Pipeline job.
  10. \n
  11. Add a Jenkinsfile to your project.
  12. \n
  13. Define pipeline stages like Build → Test → Deploy.
  14. \n
  15. Configure Git webhooks so the pipeline runs automatically after every commit.
  16. \n
  17. Monitor builds using Jenkins logs and reports.
  18. \n
\n

This helps teams release software faster while reducing manual work and deployment errors.

\n

3. What's the difference between Chef and Puppet?

\n

Both Chef and Puppet are configuration management tools used to automate server configuration and infrastructure management.

\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
ChefPuppet
Uses Ruby for writing configurations.Uses its own declarative language (Puppet DSL).
Gives developers more flexibility.Easier for managing large infrastructures.
More procedural approach.More declarative approach.
Popular in environments requiring custom automation.Commonly used in large enterprise environments.
\n

Both tools solve the same problem and the choice usually depends on the organization's requirements.

\n

4. What is Git Rebase?

\n

Git Rebase is used to move or replay commits from one branch onto another.\nUnlike a merge, rebase creates a cleaner and more linear commit history, making the project history easier to read.

\n

For example, before merging a feature branch into main, developers often rebase it so it includes the latest changes from the main branch.

\n
git rebase main\n
\n

Rebasing is useful for keeping commit history clean, but it should be avoided on shared branches because it rewrites commit history.

\n

5. What is the Selenium Tool Suite?

\n

The Selenium Tool Suite is a collection of tools used for automating web browser testing.

\n

It includes:

\n\n

6. What is Selenium IDE?

\n

Selenium IDE is a browser extension that records your actions on a website and converts them into automated test cases.\nIt's a good choice for beginners because it doesn't require much programming knowledge.\nDevelopers mainly use it to create simple UI tests or quickly prototype automation scripts.

\n

7. How do you create backups and copy files in Jenkins?

\n

The easiest way to back up Jenkins is by creating a copy of the JENKINS_HOME directory because it contains all jobs, plugins, configurations and build history.\nTo copy files during a pipeline, you can use shell commands.

\n

For Linux:

\n
cp source destination\n
\n

For Windows:

\n
copy source destination\n
\n

Many teams also use plugins like ThinBackup to schedule automatic Jenkins backups.

\n

8. How do you create a Jenkins job?

\n

Creating a Jenkins job is straightforward.

\n
    \n
  1. Open the Jenkins dashboard.
  2. \n
  3. Click New Item.
  4. \n
  5. Enter a job name.
  6. \n
  7. Select the project type (Freestyle or Pipeline).
  8. \n
  9. Configure the Git repository.
  10. \n
  11. Add build triggers.
  12. \n
  13. Configure build and deployment steps.
  14. \n
  15. Save the configuration.
  16. \n
  17. Click Build Now to execute the job.
  18. \n
\n

Once configured, Jenkins can automatically build and deploy the application whenever new code is pushed.

\n

9. Explain Docker architecture.

\n

Docker follows a client-server architecture.\nIts main components are:

\n\n

Together, these components make it easy to build, ship and run applications consistently across different environments.

\n

10. What is the DevOps lifecycle?

\n

The DevOps lifecycle describes the stages involved in developing, releasing and maintaining software.\nIt is a continuous cycle rather than a one-time process.\nThe major stages are:

\n\n

Each phase helps teams release software faster while maintaining quality and reliability.

\n

11. What is the difference between Git Merge and Git Rebase?

\n

Both commands combine changes from different branches, but they work differently.

\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
Git MergeGit Rebase
Preserves complete commit history.Creates a cleaner, linear history.
Adds a merge commit.Doesn't create a merge commit.
Safer for shared branches.Best for local feature branches.
Easier for beginners.Requires more care because it rewrites history.
\n

A common interview answer is:

\n
\n

Use Merge when preserving history is important. Use Rebase when you want a clean commit history before merging.

\n
\n

12. What's the difference between DataOps and DevOps?

\n

Although the names sound similar, they solve different problems.

\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
DataOpsDevOps
Focuses on managing data pipelines and analytics.Focuses on building, testing and deploying software.
Used by data engineers and analytics teams.Used by software development and operations teams.
Improves data quality, reliability and availability.Improves software delivery speed and reliability.
Automates data workflows.Automates software development and deployment workflows.
\n

In simple terms, DataOps manages data, while DevOps manages software delivery.

\n

13. What are the 7 Cs of DevOps?

\n

The 7 Cs represent the continuous practices followed in DevOps.

\n\n

Some organizations also include Continuous Operations as an additional practice.\nTogether, these practices help teams build, test, release, monitor and improve software continuously.

\n

14. Explain the \"Shift Left\" concept in DevOps.

\n

\"Shift Left\" means moving testing, security checks and code quality reviews earlier in the software development process instead of waiting until the end.

\n

For example, instead of finding security issues after deployment, teams run security scans during development or as part of the CI/CD pipeline.\nBy identifying problems early, developers can fix them faster and at a much lower cost.

\n

In short, the earlier you detect a problem, the easier and cheaper it is to fix.

\n

15. What is Infrastructure as Code (IaC)? What are its benefits and challenges?

\n

Infrastructure as Code (IaC) is the practice of managing infrastructure using code instead of configuring servers and cloud resources manually.

\n

For example, instead of creating virtual machines, networks and databases through the AWS console every time, you can define everything in code using tools like Terraform, AWS CloudFormation or Pulumi. Whenever you need the same environment, you simply execute the code.\nThis approach makes infrastructure easier to manage, especially in large projects.

\n

Benefits of IaC

\n\n

Challenges of IaC

\n\n

16. How can you achieve zero-downtime deployments?

\n

Zero-downtime deployment means releasing a new version of an application without interrupting users.\nInstead of stopping the existing application and replacing it with a new version, the new version is deployed while the current version is still running. Once everything is verified, user traffic is gradually switched to the new version.

\n

Some popular deployment strategies include:

\n\n

These strategies reduce deployment risk and make rollbacks much easier if something goes wrong.

\n

17. How do you secure a CI/CD pipeline?

\n

A CI/CD pipeline has access to source code, production servers and deployment credentials, so securing it is essential.\nSome common security practices include:

\n\n

The idea is to identify security issues as early as possible rather than after deployment.

\n

18. Why are monitoring and logging important in DevOps?

\n

Building and deploying an application is only part of the job. Once the application is live, you need to know whether it's working correctly.\nThat's where monitoring and logging become important.

\n\n

Some commonly used tools include:

\n\n

Good monitoring helps teams detect issues early, while centralized logging makes troubleshooting much faster.

\n

19. What is Immutable Infrastructure?

\n

Immutable Infrastructure is an approach where servers are never modified after they're deployed.

\n

If you need to update an application or operating system, you don't log in and make changes manually. Instead, you create a new server or container with the updated configuration and replace the old one.

\n

This approach offers several advantages:

\n\n

The main challenge is handling applications that store data locally, as they require additional planning for persistent storage.

\n

20. What is Serverless Computing?

\n

Serverless computing is a cloud model where developers focus only on writing application code while the cloud provider manages the servers behind the scenes.\nYou don't have to provision servers, install operating systems or worry about scaling infrastructure.

\n

Popular serverless services include:

\n\n

Some advantages of serverless computing are:

\n\n

Serverless works particularly well for APIs, event-driven applications, scheduled tasks and background jobs.

\n

21. What are Blue-Green and Canary Deployments?

\n

Both Blue-Green and Canary deployments reduce deployment risk, but they release new versions differently.

\n

Blue-Green Deployment

\n

Two identical production environments are maintained.

\n\n

Once testing is complete, all user traffic is switched to the Green environment. If any issue occurs, traffic can immediately be redirected back to Blue.

\n

Canary Deployment

\n

Instead of switching everyone at once, the new version is released gradually.\nFor example:

\n\n

Canary deployments reduce risk because only a small group of users is affected if something goes wrong.

\n

22. How do you optimize a Docker container for better performance?

\n

Optimizing Docker images improves build speed, reduces storage usage and makes deployments faster.\nSome common best practices are:

\n\n

Smaller images download faster, start quicker and consume fewer resources.

\n

23. How do you perform a rollback in Kubernetes?

\n

If a deployment introduces an issue, Kubernetes allows you to roll back to the previous working version.\nThe most common command is:

\n
kubectl rollout undo deployment <deployment-name>\n
\n

Kubernetes stores deployment history, making rollbacks quick and reliable.

\n

If you're using Helm, you can also roll back using:

\n
helm rollback <release-name> <revision>\n
\n

Keeping deployment history makes recovering from failed releases much easier.

\n

24. How do you optimize a CI/CD pipeline for faster deployments?

\n

A slow CI/CD pipeline delays development and reduces team productivity.\nSome effective optimization techniques include:

\n\n

The goal isn't just to make the pipeline faster, but also to keep it reliable.

\n

25. What are Sidecar Containers in Kubernetes?

\n

A Sidecar Container is an additional container that runs alongside the main application container inside the same Kubernetes Pod.\nInstead of adding extra responsibilities to the application, these tasks are handled by the sidecar.

\n

Common sidecar use cases include:

\n\n

Since both containers share the same network and storage, they can work together efficiently while keeping the application code clean.

\n

26. What is the difference between Monolithic, SOA and Microservices Architecture?

\n

These are three different approaches to designing software applications.

\n

| Feature | Monolithic | SOA | Microservices |\n| | -- | -- | |\n| Architecture | Single application | Collection of enterprise services | Collection of small independent services |\n| Deployment | Entire application is deployed together | Services may be deployed independently but often depend on shared infrastructure | Every service can be deployed independently |\n| Communication | Internal method calls | Usually through an Enterprise Service Bus (ESB) | REST APIs, gRPC or messaging systems |\n| Scalability | Scale the whole application | Partial service scaling | Scale individual services independently |\n| Technology | Usually one technology stack | Often follows enterprise standards | Each service can use its own technology stack |\n| Failure Impact | One failure can affect the whole application | Shared components may become bottlenecks | Failures are isolated to individual services |

\n

When should you use each?

\n","categoryId":448,"subCategoryId":448,"contentFormat":5,"blogId":166,"userId":"MjlfNF84LVsxNzNdMm4tdENfQU5nZV9fSXQ=","title":" DevOps Interview Questions and Answers for Intermediate-Level Engineers","url":"devops-interview-questions-and-answers-for-intermediate-level-engineers","bannerImage":"","seoDescription":"Prepare for intermediate DevOps interviews with practical questions on Docker, Kubernetes, Jenkins, Git, CI/CD, AWS, Terraform, Linux and deployment strategies.","generatedOn":"2026-07-19T14:56:03","updatedOn":"2026-07-19T14:56:03"},"popularContents":[{"id":153,"title":"Visa Software Engineer 1 (SDE-1) Interview Experience | CodeSignal OA + Graph-Based Technical Rounds","url":"visa-software-engineer-1-sde-1-interview-experience-codesignal-oa-graph-based-technical-rounds","description":null,"seoDescription":" Ace your Visa SDE-1 interview with this complete interview experience covering CodeSignal OA, graph coding rounds, hiring manager questions and tips.","contentType":5,"generatedOn":"2026-10-07T01:29:38.120367Z","viewCount":0},{"id":135,"title":"Spinny SDE-1 Interview Experience (Selected)","url":"spinny-sde-1-interview-experience-selected","description":null,"seoDescription":"Spinny SDE-1 Interview Experience (Selected) | 4 Rounds Breakdown: Coding, LLD, Java, SQL + Real Interview Questions","contentType":5,"generatedOn":"2026-10-07T01:29:38.1203601Z","viewCount":0},{"id":83,"title":"Uber SDE 2 Interview Experience (5 Rounds, Selected) - Complete DSA Questions with solution, System Design & Managerial Round","url":"uber-sde-2-interview-experience","description":null,"seoDescription":"Uber SDE 2 interview experience with 5 rounds, real DSA questions, system design, coding round, and preparation tips to crack Uber interviews.","contentType":5,"generatedOn":"2026-10-07T01:29:38.1203583Z","viewCount":0},{"id":139,"title":"Blinkit (Eternal) SDE-1 Interview Experience (June 2026) – Offer Received","url":"blinkit-eternal-sde-1-interview-experience-june-2026-offer-received","description":null,"seoDescription":"Blinkit SDE-1 interview experience with a 30 LPA offer. Covers House Robber DP, ticket booking system design, culture fit round and tips.","contentType":5,"generatedOn":"2026-10-07T01:29:38.1203645Z","viewCount":0},{"id":163,"title":"Top 50 SQL Interview Questions and Answers (Beginner to Intermediate)","url":"top-sql-interview-questions-and-answers-beginner-to-intermediate","description":null,"seoDescription":"Top 50 SQL Interview Questions and Answers (Beginner to Intermediate). Top SQL Interview Questions for fresher. Frequently asked SQL interview questions with answers","contentType":2,"generatedOn":"2026-10-07T01:29:38.1197617Z","viewCount":0},{"id":138,"title":"DSA Patterns for Coding Interviews: Complete LeetCode Roadmap (Beginner to Advanced)","url":"dsa-patterns-for-coding-interviews-complete-leetcode-roadmap-beginner-to-advanced","description":null,"seoDescription":"Master every LeetCode pattern for coding interviews. Learn Arrays, Sliding Window, Graphs, Dynamic Programming, Trees, Heaps and more with 250+ curated problem","contentType":5,"generatedOn":"2026-10-07T01:29:38.1203621Z","viewCount":0},{"id":34,"title":"System Design Deep Dive: 25 Essential Interview Questions","url":"system-design-deep-dive-25-essential-interview-questions","description":null,"seoDescription":"","contentType":5,"generatedOn":"2026-10-07T01:29:38.1203518Z","viewCount":0},{"id":175,"title":"American Express (AMEX) Online Assessment Experience (2026) | 3 Coding Questions","url":"american-express-amex-online-assessment-experience-2026-3-coding-questions","description":null,"seoDescription":"Read my American Express Online Assessment 2026 experience with 3 coding questions, C# solutions, approaches, difficulty analysis and preparation tips.","contentType":5,"generatedOn":"2026-10-07T01:29:38.1203689Z","viewCount":0},{"id":35,"title":"Cursor vs Copilot : Which AI Coding Assistant Wins in 2025?","url":"cursor-vs-copilot-which-ai-coding-assistant-truly-wins-in-2025","description":null,"seoDescription":"Compare Cursor vs GitHub Copilot on speed, context awareness, multi-file support, pricing and code quality to choose the best AI coding assistant for developers","contentType":5,"generatedOn":"2026-10-07T01:29:38.1203562Z","viewCount":0},{"id":197,"title":"My Adobe SDE Interview Experience (Aug 2026) 5 Rounds, Selected","url":"my-adobe-sde-interview-experience-aug-2026-5-rounds-selected","description":null,"seoDescription":"Real Adobe SDE interview: 5 rounds, 4 DSA problems (Rotate Array, BSTs, Kth Smallest Matrix), code review & behavioral round. Full solutions + tips.","contentType":5,"generatedOn":"2026-10-07T01:29:38.1203753Z","viewCount":0}],"latestContents":[{"id":219,"title":"6 Tools That Made My Life Easier as a Software Engineer","url":"6-tools-that-made-my-life-easier-as-a-software-engineer","description":null,"seoDescription":"The 6 developer tools I use daily as a software engineer: Git, VS Code, Docker, Postman, Chrome DevTools, and AI assistants, with real tips, mistakes, and trade","contentType":5,"generatedOn":"2026-10-07T01:29:38.1183369Z","viewCount":0},{"id":218,"title":"When Should a Business Use Multiple AI Agents Instead of One?","url":"when-should-a-business-use-multiple-ai-agents-instead-of-one","description":null,"seoDescription":"Single agent or multi-agent AI? Learn the 4 signals that justify splitting agents by knowledge, permissions, and risk, plus routing and handoff tips.","contentType":5,"generatedOn":"2026-10-07T01:29:38.1183433Z","viewCount":0},{"id":216,"title":"AI in Clinical Trials Market Estimated to Experience a Hike in Growth by 2035","url":"ai-in-clinical-trials-market-estimated-to-experience-a-hike-in-growth-by-2035","description":null,"seoDescription":"The exclusive information about market dynamics serves as a valuable guide to predict economic scenarios and initiatives taken to enhance future growth. Our mar","contentType":5,"generatedOn":"2026-10-07T01:29:38.1183452Z","viewCount":0},{"id":217,"title":"AI in Clinical Trials Market Estimated to Experience a Hike in Growth by 2035","url":"ai-in-clinical-trials-market-estimated-to-experience-a-hike-in-growth-by-2035","description":null,"seoDescription":"The exclusive information about market dynamics serves as a valuable guide to predict economic scenarios and initiatives taken to enhance future growth. Our mar","contentType":5,"generatedOn":"2026-10-07T01:29:38.1183468Z","viewCount":0},{"id":215,"title":"What Happens When an AI Agent Doesn't Know the Answer?","url":"what-happens-when-an-ai-agent-doesnt-know-the-answer","description":null,"seoDescription":"Most AI agents fail quietly. They guess instead of saying \"I don't know.\" Here's how to design better fallback and human-handoff behavior.","contentType":5,"generatedOn":"2026-10-07T01:29:38.1183485Z","viewCount":0},{"id":214,"title":"Greedy Algorithms Explained: How They Work, When They Fail and How to Use Them","url":"greedy-algorithms-explained-how-they-work-when-they-fail-and-how-to-use-them","description":null,"seoDescription":"Learn greedy algorithms step by step with C# code Dijkstra, Huffman coding, knapsack and MSTs plus when greedy fails and how to prove it's correct","contentType":5,"generatedOn":"2026-10-07T01:29:38.1183534Z","viewCount":0},{"id":213,"title":"Amazon SDE II Interview Experience (Bangalore, Selected) ~ Aug 2026","url":"amazon-sde-ii-interview-experience-bangalore-selected-aug-2026","description":null,"seoDescription":"Amazon SDE II interview experience from Bangalore covering 4 rounds, DSA, LLD, system design, Leadership Principles, coding questions and selection.","contentType":5,"generatedOn":"2026-10-07T01:29:38.1183551Z","viewCount":0},{"id":212,"title":"How to Get 10x Better AI Answers Without Writing Better Prompts : 10 Proven Techniques","url":"how-to-get-10x-better-ai-answers-without-writing-better-prompts-10-proven-techniques","description":null,"seoDescription":"Get better AI answers without complex prompts. Learn 10 practical techniques using context, examples, tools, feedback, and verification.","contentType":5,"generatedOn":"2026-10-07T01:29:38.1183567Z","viewCount":0},{"id":211,"title":"I Interviewed for a Microsoft SDE I Role. Here's Everything That Happened.","url":"i-interviewed-for-a-microsoft-sde-i-role-heres-everything-that-happened","description":null,"seoDescription":"My real Microsoft SDE I interview experience, all 4 rounds, the exact DSA problems with fully tested solutions, the WhatsApp system design round","contentType":5,"generatedOn":"2026-10-07T01:29:38.1183582Z","viewCount":0},{"id":140,"title":"PolicyBazaar Software Development Engineer (SDE) Interview Experience | DSA, Core CS & System Design","url":"policybazaar-software-development-engineer-sde-interview-experience-dsa-core-cs-system-design","description":null,"seoDescription":"Detailed PolicyBazaar SDE interview experience covering 3 rounds: DSA coding, core CS assessment and system design with key learnings and insights.","contentType":5,"generatedOn":"2026-10-07T01:29:38.11836Z","viewCount":0}],"relatedContents":[{"id":165,"title":"DevOps Interview Questions for Freshers: Top 35 Questions & Answers","url":"devops-interview-questions-for-freshers-top-35-questions-answers","description":null,"seoDescription":"Prepare for DevOps interviews with 35+ beginner-friendly questions and answers covering CI/CD, Git, Docker, Kubernetes, AWS, Jenkins, Terraform and more.","contentType":5,"generatedOn":"2026-10-07T01:29:38.1239928Z","viewCount":0},{"id":67,"title":"Top 20 Coding Interview Questions with In-Depth Answers","url":"top-20-coding-interview-questions-with-in-depth-answers","description":null,"seoDescription":"","contentType":5,"generatedOn":"2026-10-07T01:29:38.1239947Z","viewCount":0},{"id":42,"title":"Best Portfolio Tips for Developer","url":"best-portfolio-tips-for-developer","description":null,"seoDescription":"","contentType":5,"generatedOn":"2026-10-07T01:29:38.1239965Z","viewCount":0}]}}},"source":{"isMobile":false}}; window.__CLIENT_RENDER__ = false;