AWS Devops Engineer

filter-iconFilter interviews by

100+ AWS Devops Engineer Interview Questions and Answers

Updated 3 Mar 2025

Q51. What are the Devops tools, you have experience on?

Ans.

I have experience with various DevOps tools including Jenkins, Docker, Ansible, and Terraform.

  • Jenkins

  • Docker

  • Ansible

  • Terraform

Q52. What is docker attached and detached mode how to get out of docker exec without closing the terminal of docker exec

Ans.

Docker attached mode runs a container in the foreground, while detached mode runs it in the background.

  • In attached mode, you can see the container's output in the terminal where it was started.

  • In detached mode, the container runs in the background and you can continue using the terminal.

  • To exit a Docker exec session without closing the terminal, press Ctrl + P, Ctrl + Q.

  • You can also use the command 'exit' or 'Ctrl + D' to exit the Docker exec session.

Q53. How to build an docker image from docker file?

Ans.

To build a Docker image from a Dockerfile, use the 'docker build' command.

  • Navigate to the directory containing the Dockerfile

  • Run the command 'docker build -t .'

  • The '.' at the end of the command specifies the build context

  • The '-t' flag is used to tag the image with a name and optional tag

Q54. what is a launch template?

Ans.

A launch template is a pre-configured set of Amazon Machine Images (AMIs), instance types, and other settings used to launch EC2 instances.

  • Launch templates simplify the process of launching EC2 instances by providing a pre-configured set of settings.

  • They can be used to launch instances in an Auto Scaling group or individually.

  • Launch templates can be versioned and updated to reflect changes in the desired configuration.

  • They can also be shared across AWS accounts and regions.

  • La...read more

Are these interview questions helpful?

Q55. What is ci/cd tool in aws?

Ans.

AWS CodePipeline is the CI/CD tool in AWS.

  • AWS CodePipeline is a fully managed continuous delivery service

  • It automates the build, test, and deploy phases of your release process

  • It integrates with other AWS services like CodeCommit, CodeBuild, and CodeDeploy

  • It supports various third-party tools like Jenkins, GitHub, and Bitbucket

Q56. Terraform use cases and uses of it

Ans.

Terraform is an infrastructure as code tool used to provision and manage cloud resources.

  • Automates infrastructure deployment

  • Supports multiple cloud providers

  • Enables version control for infrastructure

  • Allows for modular and reusable code

  • Facilitates collaboration between teams

  • Examples: provisioning EC2 instances, creating S3 buckets, managing DNS records

Share interview questions and help millions of jobseekers 🌟

man-with-laptop

Q57. How you connected the pipeline with git & k8s

Ans.

I connected the pipeline with git & k8s using webhooks and Kubernetes deployment configurations.

  • Set up webhooks in Git repository to trigger pipeline on code changes

  • Configured Kubernetes deployment configurations to deploy changes from pipeline

  • Used Kubernetes API to interact with the cluster for deployments

Q58. What is Docker , Related to containers , Terraform

Ans.

Docker is a platform for developing, shipping, and running applications in containers, while Terraform is a tool for building, changing, and versioning infrastructure.

  • Docker allows you to package an application and its dependencies into a container for easy deployment and scalability.

  • Containers created with Docker are lightweight, portable, and isolated from the host system.

  • Terraform is used to define and provision infrastructure as code, allowing for automated deployment and...read more

AWS Devops Engineer Jobs

AWS DevOps Engineer 1-6 years
Oracle India Pvt. Ltd.
3.7
Bangalore / Bengaluru
Aws Devops Engineer 4-8 years
Tata Consultancy Services
3.7
Chennai
Capegemini - AWS DevOps Engineer (6-12 yrs) 6-12 years
Capegemini
3.7

Q59. What is terraform state file?

Ans.

Terraform state file is a file that stores the state of your infrastructure managed by Terraform.

  • It keeps track of the current state of your resources in the cloud.

  • Helps Terraform understand what has been created, modified, or deleted.

  • It is used to plan and apply changes to your infrastructure.

  • State file can be stored locally or remotely in a backend like AWS S3 or Terraform Cloud.

Q60. What is DevOps and what is your day today activity.

Ans.

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

  • Collaborating with developers, system admins, and other stakeholders to automate and streamline the software delivery process

  • Implementing continuous integration and continuous deployment (CI/CD) pipelines

  • Monitoring and maintaining the infrastructure and applications in production

  • Using tools like Docker, Kubernetes, Jenkin...read more

Q61. Linux command to find disc utilization?

Ans.

Command to find disk utilization in Linux?

  • Use 'df' command to display disk space utilization

  • Use '-h' option to display sizes in human-readable format

  • Use '-T' option to display file system type

  • Use '-x' option to exclude certain file system types

  • Example: 'df -hT -x tmpfs -x devtmpfs'

Q62. What is Codepipeline used for

Ans.

CodePipeline is a continuous integration and continuous delivery service for fast and reliable application and infrastructure updates.

  • Automates the build, test, and deploy phases of your release process

  • Supports integration with various AWS services like CodeBuild, CodeDeploy, and Lambda

  • Allows for custom actions and third-party integrations

  • Provides visualization of the entire release process with customizable dashboards

Q63. What is roles in ansible?

Ans.

Roles in Ansible are a way to group tasks, handlers, variables, and other related files together for easier management and reuse.

  • Roles help in organizing and structuring Ansible playbooks.

  • They promote reusability and modularity by allowing tasks to be grouped together.

  • Roles can be shared and reused across different playbooks.

  • Each role typically consists of directories like tasks, handlers, templates, vars, and defaults.

  • Roles can be installed using Ansible Galaxy or manually c...read more

Q64. kubernetes pod creation teplicatset events in kubernetes ingress controller

Ans.

Kubernetes pod creation and replicaset events in Kubernetes Ingress controller.

  • Pod creation involves defining a pod specification in a YAML file and using 'kubectl create' command to create the pod.

  • Replicaset events can be monitored using 'kubectl describe replicaset' command to check for events related to the replicaset.

  • Ingress controller manages external access to services in a Kubernetes cluster by routing traffic based on rules defined in the Ingress resource.

  • Events relat...read more

Q65. What is the your role in AWS cloud ?

Ans.

As an AWS DevOps Engineer, my role involves designing, implementing, and maintaining cloud infrastructure to support development and deployment processes.

  • Designing and implementing scalable and reliable AWS cloud infrastructure

  • Automating deployment processes using tools like AWS CloudFormation or Terraform

  • Monitoring and optimizing performance of AWS resources

  • Implementing security best practices to protect data and applications

  • Collaborating with development and operations team...read more

Q66. What are the tools are you familiar

Ans.

I am familiar with various DevOps tools such as Jenkins, Ansible, Docker, Kubernetes, Git, and AWS services.

  • Jenkins for continuous integration and continuous delivery

  • Ansible for configuration management and automation

  • Docker and Kubernetes for containerization and orchestration

  • Git for version control

  • AWS services such as EC2, S3, Lambda, and CloudFormation for cloud infrastructure management

Q67. Hiw can you ensure high availability and scalability during deploying an application.

Ans.

To ensure high availability and scalability during deploying an application, utilize load balancing, auto-scaling, fault tolerance, and monitoring.

  • Implement load balancing to distribute traffic evenly across multiple servers.

  • Utilize auto-scaling to automatically adjust the number of instances based on traffic demand.

  • Design for fault tolerance by using redundant components and failover mechanisms.

  • Monitor the application and infrastructure for performance issues and scale proac...read more

Q68. What I'd diff between git fetch and git pull

Ans.

git fetch downloads changes from the remote repository, while git pull downloads changes and merges them into the current branch.

  • git fetch only downloads changes from the remote repository, but does not merge them into the current branch

  • git pull downloads changes from the remote repository and merges them into the current branch

  • git fetch is useful for reviewing changes before merging, while git pull is a shortcut for fetching and merging in one command

Q69. What is a NAT gateway?

Ans.

A NAT gateway is a managed network address translation service provided by AWS.

  • It allows instances in a private subnet to connect to the internet or other AWS services.

  • It provides better availability and bandwidth than a NAT instance.

  • It automatically scales to meet traffic demands.

  • It can be used to reduce the attack surface of instances in a private subnet.

  • It can be used to access resources in a VPC from a remote network.

Q70. How lambda works?

Ans.

AWS Lambda is a serverless computing service that runs code in response to events and automatically manages the computing resources required.

  • Lambda functions are triggered by events such as changes to data in an S3 bucket, updates to a DynamoDB table, or HTTP requests via API Gateway.

  • Lambda functions can be written in languages like Node.js, Python, Java, and more.

  • AWS Lambda automatically scales to handle the incoming traffic and only charges for the compute time used.

Q71. What is bash?

Ans.

Bash is a command language interpreter for Unix-like operating systems.

  • Bash stands for Bourne Again SHell.

  • It is the default shell for most Unix-like systems.

  • Bash allows users to execute commands, write scripts, and automate tasks.

  • It supports features like command substitution, variables, loops, conditionals, and functions.

  • Bash scripts have a .sh file extension.

Q72. What is difference between Dockers and ansible

Ans.

Docker is a containerization platform used to package and run applications, while Ansible is a configuration management tool used for automating IT infrastructure tasks.

  • Docker is used to create containers that encapsulate an application and its dependencies, providing a lightweight and portable environment.

  • Ansible is used for automating tasks such as configuration management, application deployment, and orchestration of IT infrastructure.

  • Docker containers are isolated environ...read more

Q73. What is Devopps and explain real time use cases

Ans.

DevOps is a software development approach that combines development and operations to improve collaboration and efficiency.

  • DevOps aims to automate and streamline the software development lifecycle.

  • Real-time use cases include continuous integration and delivery, infrastructure as code, and monitoring and logging.

  • CI/CD pipelines enable frequent and reliable software releases.

  • Infrastructure as code allows for version-controlled and automated infrastructure provisioning.

  • Monitorin...read more

Q74. Spme Troubleshooting scenarios on CI CD part

Ans.

Troubleshooting scenarios on CI/CD pipeline

  • Check for any failed builds or deployments in the pipeline

  • Review the logs and error messages to identify the root cause

  • Verify the configuration settings for the CI/CD tools and integrations

  • Ensure proper permissions and access controls are set up correctly

  • Test the pipeline with a simple change to see if the issue persists

Q75. code to check given number is prime or not

Ans.

Code to check if a given number is prime or not.

  • Iterate from 2 to square root of the number and check for divisibility.

  • If the number is divisible by any number other than 1 and itself, it is not prime.

  • Return true if the number is prime, false otherwise.

Q76. difference between iam role and iam group?

Ans.

IAM role is used to grant permissions to entities, while IAM group is used to group users with similar permissions.

  • IAM role is used to delegate permissions to entities like EC2 instances or Lambda functions

  • IAM group is used to group users with similar permissions for easier management

  • IAM role can be assumed by trusted entities, while IAM group is used for managing user permissions

Q77. Explain the architecture of the current project

Ans.

The current project architecture is a microservices-based system deployed on AWS using Docker containers and Kubernetes for orchestration.

  • Microservices architecture with separate services for different functionalities

  • Docker containers used for packaging and deploying each microservice

  • Kubernetes used for container orchestration and scaling

  • AWS services like EC2, S3, RDS, and Lambda used for various components

  • Load balancers for distributing traffic among microservices

Q78. What is architecture of kubernetes

Ans.

Kubernetes architecture consists of master nodes and worker nodes, with components like API server, scheduler, controller manager, and kubelet.

  • Kubernetes architecture follows a master-slave model.

  • Master nodes manage the cluster and worker nodes run applications.

  • Key components include API server, scheduler, controller manager, and kubelet.

  • Nodes communicate with each other through the kube-api server.

  • ETCD is used for storing configuration data.

Q79. Define S3 and fs tab disadvantages

Ans.

S3 is a scalable object storage service provided by AWS. fs tab is a configuration file used to mount file systems in Linux.

  • S3 disadvantages: eventual consistency, limited metadata search capabilities, and data retrieval costs.

  • fs tab disadvantages: incorrect configuration can cause system boot failure, security risks if not properly secured, and can be difficult to manage in large environments.

Q80. what is trust ppolicy in IAM

Ans.

Trust policy in IAM defines which entities are trusted to assume roles in AWS

  • Trust policy is a JSON policy document that defines which entities (accounts, users, roles) are trusted to assume roles in AWS

  • It is attached to the IAM role and specifies the trusted entities by their AWS account ID or by using the 'aws' principal

  • Trust policies are used to establish trust relationships between different AWS accounts or services

  • Example: {"Effect": "Allow", "Principal": {"AWS": "arn:aw...read more

Q81. What ways torxpose the application

Ans.

Exposing the application can be done through API Gateway, Load Balancer, or directly through public IP.

  • Use API Gateway to expose RESTful APIs securely

  • Utilize Load Balancer for distributing traffic across multiple instances

  • Expose the application directly through a public IP address

  • Implement security measures such as SSL certificates and firewalls

Q82. What is EC2, what is s3.

Ans.

EC2 is a virtual server in AWS cloud. S3 is a scalable object storage service.

  • EC2 stands for Elastic Compute Cloud and provides resizable compute capacity in the cloud.

  • S3 stands for Simple Storage Service and provides scalable object storage for data backup, archival, and analytics.

  • EC2 instances can be launched in different sizes and configurations based on the user's requirements.

  • S3 allows users to store and retrieve any amount of data from anywhere in the world.

  • Both EC2 and...read more

Q83. Best practices for prometheus and Grafana

Ans.

Best practices for setting up and using Prometheus and Grafana for monitoring and visualization.

  • Use Prometheus for collecting metrics and Grafana for visualizing them.

  • Set up alerting in Prometheus to notify of any issues.

  • Use labels and tags effectively to organize metrics in Grafana.

  • Regularly review and optimize queries and dashboards for performance.

  • Implement security best practices to protect sensitive data.

  • Regularly update Prometheus and Grafana to ensure they are running ...read more

Q84. What is the role of kubernetes pod

Ans.

Kubernetes pod is the smallest deployable unit in Kubernetes that represents a single instance of a running process.

  • Pods can contain one or more containers that share resources like storage and network.

  • Pods are scheduled onto nodes in a Kubernetes cluster.

  • Pods are mortal, meaning they can be created, destroyed, and replaced by the Kubernetes system.

  • Pods can be managed using controllers like Deployments, StatefulSets, and DaemonSets.

Q85. Explain about Kubernetes

Ans.

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

  • Kubernetes is used to manage and automate the deployment of containerized applications.

  • It provides a platform for running and scaling applications across a cluster of machines.

  • Kubernetes ensures high availability and fault tolerance by automatically restarting failed containers.

  • It allows for easy scaling of applications by adding o...read more

Q86. What is docker File ? Explain

Ans.

Dockerfile is a text document that contains all the commands a user could call on the command line to assemble an image.

  • Dockerfile is used to build Docker images by specifying a series of instructions.

  • It includes commands like FROM, RUN, COPY, CMD, etc.

  • Each instruction in the Dockerfile creates a layer in the image.

  • Dockerfile is used to automate the process of creating Docker containers.

  • Example: FROM ubuntu:latest, RUN apt-get update, CMD ["echo", "Hello World"]

Q87. jenkins job creation image in docker

Ans.

Creating a Jenkins job using an image in Docker

  • Create a Dockerfile with necessary configurations for Jenkins job

  • Build a Docker image using the Dockerfile

  • Run a Jenkins container using the Docker image

  • Configure Jenkins job to use the Docker image as the build environment

Q88. explain CI/CD in your project.

Ans.

CI/CD is the process of continuous integration and continuous delivery/deployment.

  • In our project, we use Jenkins as our CI/CD tool.

  • Every time a developer pushes code to the repository, Jenkins automatically builds and tests the code.

  • If the build and tests pass, Jenkins deploys the code to a staging environment for further testing.

  • Once the code is approved in staging, Jenkins deploys it to production.

  • This process ensures that code changes are thoroughly tested and deployed qui...read more

Q89. what is the cloud services?

Ans.

Cloud services refer to on-demand delivery of computing resources over the internet.

  • Cloud services allow users to access and use resources like servers, storage, databases, networking, software, and analytics without the need for physical infrastructure.

  • Examples of cloud services include Amazon Web Services (AWS), Microsoft Azure, Google Cloud Platform, and IBM Cloud.

  • Cloud services offer scalability, flexibility, cost-effectiveness, and the ability to quickly deploy applicati...read more

Q90. What is docker build?

Ans.

Docker build is a command used to create a Docker image from a Dockerfile.

  • Docker build is used to automate the creation of Docker images.

  • It uses a Dockerfile to define the image's contents and configuration.

  • The Dockerfile is a text file that contains instructions for building the image.

  • The build process involves downloading dependencies, installing packages, and configuring the image.

  • The resulting image can be used to create Docker containers.

  • Example: docker build -t myimage ...read more

Q91. error that came across while pod creation

Ans.

Error encountered during pod creation can be due to various reasons such as incorrect configuration, resource constraints, network issues, or image availability.

  • Check the pod configuration file for any syntax errors or misconfigurations

  • Ensure that there are enough resources available on the cluster for pod creation

  • Verify network connectivity and DNS resolution within the cluster

  • Check if the container image specified in the pod configuration is available and accessible

Q92. code to check palyndrome or not

Ans.

Code to check if a given string is a palindrome or not.

  • Create a function that takes a string as input.

  • Remove all non-alphanumeric characters and convert the string to lowercase.

  • Compare the original string with its reverse to check if it is a palindrome.

Q93. What diff add and copy command

Ans.

The 'add' command is used to add files from the source directory to the destination directory in a Dockerfile, while the 'copy' command is used to copy files from the source directory to the destination directory in a Dockerfile.

  • The 'add' command can also accept URLs as the source, while the 'copy' command cannot.

  • The 'add' command can automatically extract compressed files, while the 'copy' command cannot.

  • The 'copy' command is recommended over the 'add' command for copying lo...read more

Q94. What is architecture of devops

Ans.

DevOps architecture refers to the structure and design of tools, processes, and practices that enable collaboration between development and operations teams.

  • DevOps architecture typically includes tools for automation, continuous integration/continuous deployment (CI/CD), monitoring, and collaboration.

  • It involves breaking down silos between development and operations teams to enable faster delivery of software.

  • Common components of DevOps architecture include version control sy...read more

Q95. What is docker, what is DevOps

Ans.

Docker is a containerization platform that allows applications to be packaged and run in isolated environments. DevOps is a software development methodology that focuses on collaboration, automation, and integration between development and operations teams.

  • Docker is a tool designed to make it easier to create, deploy, and run applications by using containers.

  • Containers allow a developer to package up an application with all parts it needs, such as libraries and other dependen...read more

Q96. What is called azure devops

Ans.

Azure DevOps is a set of development tools used for software development, collaboration, and project management.

  • Azure DevOps includes services such as Azure Repos, Azure Pipelines, Azure Boards, Azure Artifacts, and Azure Test Plans.

  • It allows for continuous integration and continuous delivery (CI/CD) pipelines to automate the software delivery process.

  • Teams can use Azure DevOps to plan, track, and collaborate on projects, as well as manage code repositories and build and rele...read more

Q97. What is called 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 integration between developers and IT operations teams.

  • It aims to improve the speed and quality of delivering software applications.

  • DevOps practices include continuous integration, continuous delivery, and infrastructure as code.

  • Tools commonly used in DevOps include Jenkins...read more

Q98. What is mean by 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 integration between developers and IT operations teams.

  • It aims to improve the speed and quality of software delivery by breaking down silos and promoting continuous delivery.

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

  • DevOps practices incl...read more

Q99. What you mean by github

Ans.

GitHub is a web-based platform for version control and collaboration on software development projects.

  • Web-based platform for version control

  • Allows collaboration on software development projects

  • Supports features like issue tracking, pull requests, and code review

  • Popular among developers for hosting code repositories

Q100. how many types of clouds

Ans.

There are three main types of clouds: public, private, and hybrid.

  • Public cloud: Services are delivered over the internet and shared across multiple organizations. Example: AWS, Azure, Google Cloud.

  • Private cloud: Services are maintained on a private network and dedicated to a single organization. Example: VMware, OpenStack.

  • Hybrid cloud: Combination of public and private clouds, allowing data and applications to be shared between them. Example: AWS Outposts, Azure Stack.

Previous
1
2
3
Next
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Interview experiences of popular companies

3.7
 • 10.5k Interviews
3.6
 • 7.6k Interviews
3.7
 • 5.6k Interviews
3.7
 • 4.8k Interviews
3.5
 • 3.8k Interviews
3.8
 • 2.8k Interviews
4.0
 • 2.3k Interviews
3.4
 • 796 Interviews
3.4
 • 7 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

Recently Viewed
SALARIES
Deccan Fine Chemicals
SALARIES
Deccan Fine Chemicals
SALARIES
Deccan Fine Chemicals
SALARIES
Digimetrix Technologies
SALARIES
Deccan Fine Chemicals
DESIGNATION
REVIEWS
Amara Raja Group
No Reviews
INTERVIEWS
Multani Pharmaceuticals
No Interviews
INTERVIEWS
Tata Aerospace Systems
No Interviews
INTERVIEWS
BASF
No Interviews
AWS 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