Cloud Devops Engineer

40+ Cloud Devops Engineer Interview Questions and Answers

Updated 13 Feb 2025
search-icon
Q1. What are the different types of EC2 instances based on their costs?
Ans.

Different types of EC2 instances based on costs include On-Demand Instances, Reserved Instances, and Spot Instances.

  • On-Demand Instances: Pay for compute capacity by the hour or second with no long-term commitments.

  • Reserved Instances: Reserved capacity for 1 or 3 years, offering significant discounts compared to On-Demand pricing.

  • Spot Instances: Bid on spare Amazon EC2 computing capacity, often available at a fraction of the cost of On-Demand instances.

Q2. What command can be run to import a pre-exported Docker image into another Docker host?
Ans.

The command to import a pre-exported Docker image into another Docker host is 'docker load'.

  • Use the 'docker load' command followed by the file path of the exported image to import it into the new Docker host.

  • For example, 'docker load < exported_image.tar' will import the image from the file 'exported_image.tar'.

Q3. Wt is ansible and how to write play book in ansible?

Ans.

Ansible is an open-source automation tool used for configuration management, application deployment, and task automation.

  • Ansible uses YAML syntax to write playbooks

  • Playbooks contain a set of tasks to be executed on remote hosts

  • Ansible uses SSH protocol to connect and execute tasks on remote hosts

  • Playbooks can be used for various tasks such as installing packages, configuring services, and managing users

  • Example playbook: - name: Install Apache hosts: webserver become: true tas...read more

Q4. What is the difference between CMD and ENTRYPOINT in a Dockerfile?
Ans.

CMD specifies the default command to run when a container is started, while ENTRYPOINT specifies the executable to run when the container starts.

  • CMD can be overridden at runtime by passing arguments to docker run command

  • ENTRYPOINT cannot be overridden at runtime, but arguments can be passed to it using docker run command

  • CMD is often used for specifying the main application to run in the container

  • ENTRYPOINT is commonly used for defining the executable that runs the main applic...read more

Are these interview questions helpful?
Q5. What is the use of lifecycle hooks in Auto Scaling?
Ans.

Lifecycle hooks in Auto Scaling allow you to perform custom actions before instances launch or terminate.

  • Lifecycle hooks can be used to pause the instance launch process to perform custom actions, such as bootstrapping or configuration setup.

  • They can also be used to pause the instance termination process to allow for data backup or graceful shutdown.

  • By using lifecycle hooks, you can ensure that your instances are properly configured and prepared before they become fully opera...read more

Q6. Can you describe the lifecycle of a Docker container?
Ans.

The lifecycle of a Docker container involves creation, running, pausing, stopping, and deletion.

  • Creation: Docker container is created from an image using 'docker run' command.

  • Running: Container is started and runs the specified application or service.

  • Pausing: Container can be paused using 'docker pause' command to temporarily stop its processes.

  • Stopping: Container can be stopped using 'docker stop' command, which halts its processes.

  • Deletion: Container is removed using 'docke...read more

Share interview questions and help millions of jobseekers 🌟

man-with-laptop
Q7. When should you use Git rebase or Git merge?
Ans.

Git rebase is used to maintain a linear project history, while Git merge is used to combine branches.

  • Use Git rebase when you want to maintain a clean and linear project history.

  • Use Git merge when you want to combine branches while preserving the commit history.

  • Rebasing is useful for keeping feature branches up to date with the main branch.

  • Merging is useful for integrating changes from multiple branches into a single branch.

  • Rebasing can lead to a cleaner history but can cause ...read more

Q8. Can you explain Amazon EC2 in brief?
Ans.

Amazon EC2 is a web service that provides resizable compute capacity in the cloud.

  • Amazon EC2 stands for Elastic Compute Cloud

  • It allows users to rent virtual servers on which to run their own applications

  • Users can choose from a variety of instance types with different CPU, memory, storage, and networking capacities

  • EC2 instances can be easily scaled up or down based on demand

  • Users only pay for the compute capacity they actually use

Cloud Devops Engineer Jobs

AVP, Cloud DevOps Engineer - Platform 6-11 years
Synchrony
4.3
Hyderabad / Secunderabad
AVP, Cloud DevOps Engineer - Platform 10-14 years
Synchrony International Services
4.3
Hyderabad / Secunderabad
Lead Cloud DevOps Engineer/Delivery Head 18-20 years
HSBC electronic data processing india pvt ltd
4.0
Pune
Q9. What do you know about git stash?
Ans.

Git stash is a command in Git that temporarily shelves changes you've made to your working directory.

  • Git stash is used to save changes that are not ready to be committed yet.

  • It allows you to switch branches without committing changes.

  • You can apply the stashed changes later on using 'git stash apply'.

  • You can list all stashed changes with 'git stash list'.

  • You can remove stashed changes with 'git stash drop'.

Q10. Docker Files. Difference between CMD and ENTRYPOINT ,ADD and COPY instructions

Ans.

CMD and ENTRYPOINT are used to define the default command to run in a container. ADD and COPY are used to add files to a container.

  • CMD is used to specify the default command to run when a container is started. It can be overridden by passing a command to docker run.

  • ENTRYPOINT is similar to CMD, but it is not overridden by passing a command to docker run. It is used to define the main command that should be run in the container.

  • ADD and COPY are used to add files to a container...read more

Q11. Load Balancer types , difference between application load balancer and network load balancer

Ans.

Application Load Balancer and Network Load Balancer are two types of load balancers used in cloud computing.

  • Application Load Balancer operates at the application layer and is used to distribute traffic to multiple targets based on the content of the request.

  • Network Load Balancer operates at the transport layer and is used to distribute traffic to multiple targets based on IP protocol data.

  • Application Load Balancer supports HTTP/HTTPS protocols and can route traffic based on U...read more

Q12. Wt is Jenkins and CI/CD pipeline ?

Ans.

Jenkins is an open-source automation tool used for continuous integration and continuous delivery (CI/CD) pipelines.

  • Jenkins is a popular tool in the DevOps ecosystem.

  • It allows developers to automate the build, test, and deployment processes.

  • CI/CD pipeline refers to the automated workflow of building, testing, and deploying software.

  • Jenkins enables the creation and management of CI/CD pipelines.

  • It integrates with version control systems like Git to trigger builds and deploymen...read more

Q13. What is Auto Scaling in AWS?
Ans.

Auto Scaling in AWS is a feature that automatically adjusts the number of compute resources in response to changes in demand.

  • Automatically adjusts the number of EC2 instances based on traffic or performance metrics

  • Helps maintain application availability and reduce costs by scaling up or down as needed

  • Can be configured to scale based on CPU utilization, network traffic, or custom metrics

  • Example: Auto Scaling group can be set up to add more instances during peak hours and remov...read more

Q14. What are Docker images?
Ans.

Docker images are lightweight, standalone, executable packages that contain everything needed to run a piece of software.

  • Docker images are built from Dockerfiles, which specify the environment and dependencies needed for the software to run.

  • Images can be stored in Docker registries like Docker Hub for easy sharing and distribution.

  • Containers are created from Docker images and run as isolated processes on a host machine.

  • Docker images are layered, meaning they can be built on t...read more

Q15. What is the process for deploying an application on target servers?

Ans.

The process involves packaging the application, transferring it to target servers, configuring the environment, and starting the application.

  • Package the application into a deployable format (e.g. Docker image, WAR file)

  • Transfer the packaged application to target servers using tools like Ansible, Jenkins, or manual SCP

  • Configure the environment on target servers (e.g. setting up database connections, environment variables)

  • Start the application on target servers and monitor for ...read more

Q16. What are Docker Namespaces?
Ans.

Docker Namespaces are a feature in Docker that isolates containers from each other and the host system.

  • Namespaces provide a way to isolate processes, network, and filesystem for containers.

  • Examples of namespaces include PID (process IDs), NET (networking), and MNT (mount points).

  • Each container runs in its own set of namespaces, providing a level of isolation and security.

Q17. 1)what is kubernetes? 2)what is devops kpi? how to get all pods list? how to delete multiple pods in one command line?

Ans.

Kubernetes is an open-source container orchestration platform that automates the deployment, scaling, and management of containerized applications.

  • Kubernetes is used to manage containerized applications across multiple hosts.

  • It provides features like automatic scaling, self-healing, and rolling updates.

  • To get a list of all pods, use the command 'kubectl get pods'.

  • To delete multiple pods in one command line, use the command 'kubectl delete pods ...'.

Q18. Difference between Git rebase and Git merge

Ans.

Git rebase modifies the commit history while Git merge creates a new merge commit.

  • Git rebase rewrites the commit history by moving the entire feature branch to the tip of the master branch

  • Git merge creates a new merge commit that combines the changes from both branches

  • Rebasing is useful for keeping a linear commit history while merging is useful for combining multiple branches

  • Rebasing can cause conflicts if multiple developers are working on the same branch

  • Merging can result ...read more

Q19. Explain Jenkins pipeline of your Project

Ans.

Jenkins pipeline automates the software delivery process by defining a set of steps and actions to be executed.

  • Pipeline is defined using a Jenkinsfile

  • Pipeline stages define the steps to be executed

  • Pipeline can include parallel stages and conditional steps

  • Pipeline can integrate with other tools like Git, Docker, and Kubernetes

Q20. Wt is AWS cloud? And it's uses

Ans.

AWS cloud is a secure and scalable cloud computing platform provided by Amazon Web Services.

  • AWS cloud provides a wide range of services such as computing power, storage, databases, and networking.

  • It allows businesses to quickly scale their infrastructure up or down based on demand.

  • AWS cloud offers high availability, reliability, and security.

  • It enables organizations to reduce costs by paying only for the resources they use.

  • Examples of AWS cloud services include Amazon EC2, Am...read more

Q21. What is nodeport? and ingress? and loadbalancer

Ans.

NodePort, Ingress, and LoadBalancer are Kubernetes services used for exposing applications externally.

  • NodePort is a service that exposes an application on a static port on each node in the cluster.

  • Ingress is a service that exposes HTTP and HTTPS routes from outside the cluster to services within the cluster.

  • LoadBalancer is a service that exposes an application externally using a cloud provider's load balancer.

  • NodePort and LoadBalancer services can be used with TCP and UDP pro...read more

Q22. Is there any drawbacks you can say about cloud?

Ans.

One drawback of cloud is potential security risks and data privacy concerns.

  • Security risks: Cloud services are vulnerable to cyber attacks and data breaches.

  • Data privacy concerns: Users may have limited control over their data stored in the cloud.

  • Dependency on internet connection: Cloud services require a stable internet connection for access and functionality.

  • Cost: Cloud services can become expensive, especially for large-scale usage.

  • Compliance issues: Some industries have s...read more

Q23. Why cloud is important on your data privacy?

Ans.

Cloud is important for data privacy as it provides secure storage, encryption, and access controls.

  • Cloud providers offer advanced security measures to protect data from unauthorized access.

  • Data stored in the cloud is encrypted, making it difficult for hackers to decipher.

  • Cloud platforms allow for granular access controls, ensuring only authorized users can view or modify data.

  • Regular security updates and patches are applied by cloud providers to protect against new threats.

  • Cl...read more

Q24. What do you know about VNET and NSGs?

Ans.

VNET is a virtual network in Azure that allows resources to securely communicate. NSGs are network security groups that control inbound and outbound traffic.

  • VNET stands for Virtual Network and is used to connect Azure resources together securely

  • NSGs are Network Security Groups that act as a virtual firewall to control inbound and outbound traffic to Azure resources

  • NSGs contain security rules that allow or deny traffic based on source and destination IP address, port, and prot...read more

Q25. Ansible playbooks, how to execute them

Ans.

Ansible playbooks are executed using the 'ansible-playbook' command in the terminal.

  • Use the 'ansible-playbook' command followed by the playbook file name to execute a playbook.

  • Specify the inventory file using the '-i' flag if it's not the default 'hosts' file.

  • Use the '-e' flag to pass extra variables to the playbook if needed.

  • View the playbook execution output for any errors or warnings.

  • Example: ansible-playbook myplaybook.yml -i inventory_file -e 'var=value'

Q26. Tell me about working of cloud?

Ans.

Cloud computing involves the delivery of computing services over the internet, including storage, databases, networking, software, and more.

  • Cloud computing allows users to access resources on-demand without the need for physical infrastructure.

  • It offers scalability, flexibility, and cost-efficiency compared to traditional on-premises solutions.

  • Common cloud service models include Infrastructure as a Service (IaaS), Platform as a Service (PaaS), and Software as a Service (SaaS)...read more

Q27. Route 53 routing policies

Ans.

Route 53 routing policies determine how traffic is routed to your resources.

  • There are several routing policies available in Route 53, including simple, weighted, latency-based, geolocation-based, and failover.

  • Simple routing policy sends traffic to a single resource.

  • Weighted routing policy distributes traffic based on weights assigned to each resource.

  • Latency-based routing policy sends traffic to the resource with the lowest latency.

  • Geolocation-based routing policy sends traff...read more

Q28. How to hoast a site in aws?

Ans.

To host a site in AWS, you can use services like Amazon S3, EC2, or Elastic Beanstalk.

  • Use Amazon S3 for static website hosting

  • Use Amazon EC2 for hosting dynamic websites

  • Use AWS Elastic Beanstalk for easy deployment and scaling

Q29. explain application anc network load balancer

Ans.

Load balancers distribute incoming network or application traffic across multiple servers to ensure no single server is overwhelmed.

  • Application load balancer operates at the application layer and directs traffic based on content of the request.

  • Network load balancer operates at the transport layer and routes connections based on IP protocol data.

  • Load balancers improve application availability, scalability, and reliability by distributing traffic efficiently.

  • Examples: AWS Appli...read more

Q30. What is the CI/CD process?

Ans.

CI/CD process is a software development practice where code changes are automatically built, tested, and deployed.

  • Continuous Integration (CI) involves automatically building and testing code changes frequently.

  • Continuous Deployment (CD) involves automatically deploying code changes to production.

  • CI/CD helps in reducing manual errors, improving code quality, and increasing deployment frequency.

  • Popular CI/CD tools include Jenkins, GitLab CI/CD, and CircleCI.

Q31. Write play book to copy files in ansible

Ans.

Playbook to copy files in Ansible

  • Use the 'copy' module in Ansible to copy files

  • Specify source and destination paths in the playbook

  • Run the playbook using 'ansible-playbook' command

Q32. What is the terraform do?

Ans.

Terraform is an infrastructure as code tool used for building, changing, and versioning infrastructure safely and efficiently.

  • Terraform allows users to define infrastructure in a declarative configuration language.

  • It automates the process of provisioning and managing cloud resources.

  • Terraform supports multiple cloud providers such as AWS, Azure, and Google Cloud.

  • It helps in creating reproducible infrastructure and enables infrastructure changes to be versioned.

Q33. Tell me about kubernetes architecture

Ans.

Kubernetes architecture is a container orchestration platform that manages containerized applications across a cluster of nodes.

  • Kubernetes follows a master-slave architecture with a master node and multiple worker nodes.

  • Master node components include API server, scheduler, controller manager, and etcd.

  • Worker node components include kubelet, kube-proxy, and container runtime (e.g. Docker).

  • Pods are the smallest deployable units in Kubernetes, consisting of one or more container...read more

Q34. Difference between deployment and statefull.

Ans.

Deployment refers to the process of releasing a new version of software, while stateful refers to systems that retain data between sessions.

  • Deployment involves releasing new versions of software to servers or environments.

  • Stateful systems retain data between sessions, unlike stateless systems.

  • Stateful applications require more complex management and scaling compared to stateless applications.

  • Examples of stateful applications include databases and file systems.

  • Examples of depl...read more

Q35. Second largest number in an array.

Ans.

Find the second largest number in an array of strings.

  • Convert the array of strings to an array of integers for comparison.

  • Sort the array in descending order and return the second element.

  • Handle cases where there may be duplicates of the largest number.

Q36. What is Linux based Server?

Ans.

A Linux based server is a computer system that runs on a Linux operating system, providing services and resources to clients over a network.

  • Linux based servers are commonly used for web hosting, email hosting, file sharing, and other network services.

  • They are known for their stability, security, and flexibility compared to other operating systems.

  • Examples of popular Linux server distributions include Ubuntu Server, CentOS, and Red Hat Enterprise Linux.

Q37. What blue green deployment?

Ans.

Blue green deployment is a software release strategy that reduces downtime and risk by running two identical production environments.

  • In blue green deployment, one environment (blue) is currently live and serving production traffic, while the other environment (green) is idle.

  • The new version of the software is deployed to the idle environment (green) and tested thoroughly.

  • Once the new version is deemed stable, traffic is switched from the blue environment to the green environm...read more

Q38. What is devops?

Ans.

DevOps is a software development methodology that combines software development (Dev) with IT operations (Ops) to shorten the systems development life cycle.

  • DevOps focuses on collaboration, automation, and monitoring throughout the software development lifecycle.

  • It aims to increase the speed of software delivery, improve reliability, and build scalable and secure systems.

  • Tools commonly used in DevOps include Jenkins, Docker, Kubernetes, and Ansible.

Q39. How alb will work

Ans.

ALB stands for Application Load Balancer, which distributes incoming application traffic across multiple targets, such as EC2 instances.

  • ALB routes traffic based on rules defined by the user

  • Supports path-based routing, host-based routing, and routing based on HTTP headers

  • Can handle WebSocket traffic, HTTP/2, and gRPC protocols

  • Provides SSL termination, content-based routing, and sticky sessions

Q40. What is kubeadm?

Ans.

kubeadm is a tool used to bootstrap Kubernetes clusters.

  • kubeadm helps in setting up a minimum viable Kubernetes cluster.

  • It automates the process of configuring the cluster's control plane.

  • It is part of the Kubernetes project and is used for cluster initialization.

  • kubeadm simplifies the process of creating a Kubernetes cluster by handling complex tasks like TLS certificate generation.

Q41. Explain version control tool

Ans.

Version control tool is a system that records changes to a file or set of files over time so that you can recall specific versions later.

  • Tracks changes made to files

  • Allows multiple users to collaborate on a project

  • Helps in reverting back to previous versions if needed

  • Examples: Git, SVN, Mercurial

Q42. Design two tire architecture

Ans.

Two-tier architecture consists of presentation layer and data layer.

  • Presentation layer handles user interface and client-side logic.

  • Data layer manages data storage and retrieval.

  • Example: Web application with frontend (presentation layer) and backend database (data layer).

Q43. Kubernetes working

Ans.

Kubernetes is an open-source container orchestration platform for automating deployment, scaling, and management of containerized applications.

  • Kubernetes automates the deployment, scaling, and management of containerized applications.

  • It provides features like self-healing, load balancing, and service discovery.

  • Kubernetes uses declarative configuration to define the desired state of the application.

  • It supports horizontal scaling by adding or removing containers based on resour...read more

Q44. list aws services

Ans.

AWS offers a wide range of services for cloud computing, storage, databases, machine learning, and more.

  • EC2 (Elastic Compute Cloud) - virtual servers in the cloud

  • S3 (Simple Storage Service) - scalable object storage

  • RDS (Relational Database Service) - managed relational databases

  • Lambda - serverless computing

  • SNS (Simple Notification Service) - push notifications

  • DynamoDB - NoSQL database

  • Elastic Beanstalk - easy deployment and scaling of web applications

  • IAM (Identity and Access M...read more

Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Interview Questions for Cloud Devops Engineer Related Skills

Interview experiences of popular companies

3.7
 • 10.4k Interviews
3.6
 • 7.5k Interviews
3.8
 • 5.6k Interviews
3.4
 • 1.4k Interviews
3.5
 • 787 Interviews
3.7
 • 584 Interviews
3.7
 • 533 Interviews
3.6
 • 146 Interviews
3.7
 • 117 Interviews
View all

Calculate your in-hand salary

Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary

Cloud Devops Engineer Interview Questions
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter