Devops Interview Questions
Devops Interview Questions
=======
1) What are the tools you are using in your environment ?
2) any work exp with azure,GCP
3) what is agile methodology
4) What are the services you are using ?
5) recent task you did
6) about migration on-prem to aws cloud?
7) which idea you suggested to our company? is it implemented?
8) Draw an Architecture Diagram?
9) what is the recent issue you are faced
10) write a mail to your manager, about your this week tasks and next week tasks?
11) You know what Fynd company will do?
12) What did you do in the last 6 months?
13) Tell me what is the recent issue you faced?
14) Tell me about yourself and roles and responsibility and day to day activities and
what type of technologies you are using and what type of automation tool you are
using?
15) Tell me about yourself?
16)Tell me your day to day activities?
17)Tell me a few AWS services and tell me one point about the service?
18) Tell me the services which you are using?
19) How do you secure your AWS Cloud
20) What are the Security Tools available in the Market?
21) Tell me about infra services which you used.
22) How do you ensure your project architecture is highly available?
23) How traffic iteration is happening in your project?
24) What AWS services are you using?
25) How do you send certificate notifications to end users in AWS?
26) How to optimize cost in aws
27) As a team lead, how to design the 3 tier architecture
28) Customer doesn't have the technical skills, what would be your approach
at the requirement stage is final, for proposing the resources
29) How to take this discussion for the next level as a
materializing this project at the requirement stage
IAM
=====
1) explain paas,saas, iaas ?
2) Why do we use IAM?
3) how can you give s3 policy in the IAM role?
4) the iam role created, who used this role how can you know?
5) What is the difference between iam role and trust factor?
6) What is IAM?
7) What is the use of amazon gratuity policy
8) Have you worked on any policies in iam?
9) What is sts assumerole?
10) What is the difference between policies and roles?
11) I have a user. How to attach a role to the user?
12) What is the purpose of user groups?
13) How do you give particular permissions to a service?
EC2
=====
VPC
========
1) What is vpc and what subnet ?
2) diff between nat and igw
3) I have 6 vpc how to connect all vpcs ?
4) What is vpc? Difference between public subnet and private subnet?
5) What is a multi region?
6) I have a 2 aws accounts 1 AWS account have a lower environment and 2 AWS
account have prod? I have 1 AWS account in that account have a prod and lower
environment? So which one is preferred and how prefered?
7) Do you know how to send the logs? and which tool you are using?
8) What is vpc peering and what are vpc endpoints?
9) What are the components in vpc?
10) What is nat-gw in vpc?
11) Vpc peering
12) How do you check logs in vpc?
13)Public subnet and private subnet
14)What is NAT gateway ??
15) What is Nat-GW?
16) What is VPC Peering?
17)Why natgw and IGw are used.
18)How to convert public subnet to private subnet
19) How will you identify which is private subnet and public subnet
20) What is a private link?
21) HPA vs VPC
22) Components of vpc
23) Nat-GW work
24) What is vpc and tell me how it will be created?
25) What is NAT gateway?
26) What are the advantages of a public and private subnet?
27) security purpose, what are the best practices for securing data in vpc?
28) How do you make sure the subnets should be highly available?
29) What is a private ip?
30) What is a gateway?
31) Is it possible to block the port with NACL
32) What is VPC?
33) What is Subnet?
34) How does a private subnet connect to the internet?
35) Have you ever worked with an env where there is no NAT-gateway?
36) What is reverse proxy and forward proxy?
37) Have you used any reverse proxy before?
38) What is bastion host and nat gateway
ROUTE 53
==================
1) for example 40% of users coming from east, remaining 60% users from west?
How can we make it on route 53?
2) routing policy of route53?
3) What is the failover scenario?
4) How does DNS work?
5) What is A name record and C name record?
6) What is Route53 ??
LOAD BALANCERS
==========================
1) What is the difference between nlb and alb ?
2) Types of load balancers?
3) Types of Load Balancer
4) I have a running application but i want to attach one more vm to the same load
balancer appln without down time?
5) What is a sticky session in the Load balancer?
6) Why use Load Balancers?
7) diff b/w application load balancer and network load balancer?
8) what are the security measures that you would take if you have attached a load
balancer and with that some instances are also attached to it.
9) D/f b/w alb and nlb?
10) difference between TCP and UDP?
11) What are the types of load balancers?
12)ALB vs NLB
CLOUD WATCH
===================
1) I have to check the CPU memory in the server. What tools are you using ?
CLOUDFRONT
===================
1) Why use cloudfront?
2) advantage of cloudfront
SECURITY GROUPS
===========================
API
=====
1) What is the api gateway aws?
2) api gateway
EKS
========
1) How do you manage horizontal scaling of worker nodes in EKS?
2) What is your reverse proxy service in EKS?
3) How are your TLS and SSL certificates managed in EKS?
4) What type of service are you using in EKS?
5) How do you upscale volume in EKS?
S3
====
1) Tell me about s3
2) How can s3 be used with ec2 instances?
3) I have a s3 bucket but i don't want to access outside applications?
4) What is versioning in S3
5) I will create 2 s3 buckets in 2 regions with the same name, next what will
happen?
6) How to access s3 which is another account from your account ec2?
7) s3 lifecycle policy
8) How many s3 buckets can we create in 1 Region?
9) s3 lifecycle
10) In s3 some life cycle rules,tell me what is all about?
11) I want to restrict one user to one particular bucket,how you will do?
12) bucket storagetype
13) s3 lifecycle policy
14) how to upload a big data like 1 TB to S3.(multi part uploading)
CLOUD TRAIL
====================
1) purpose of cloud trail?
2) for example i am accessing one of the aws services.In which aws service this
information is available?
LINUX
=========
1) linux commands
2) How do you print a particular column in linux? What command do you use?
3) How do you check disk usage in linux?
4) just open your linux terminal . create one file in that file and replace the word by
another word using sed command.
5) I want to know specific directory storage.
6) The top 5 processes cpu memory i want to know which command is used?
7) in a directory we have a file. How can we delete one month old versions files?
8) Timestamp Protocol in Linux
9) Linux command for Password storage
10) Linux command for unmask
11) Linux to change the other user permission
12) disk utilization linux command?
13) memory utilization linux command
14) What is the threat dump, heap dump ?
15) Difference between grep and egrep?
16) How to check what process is running?
17) Difference between ping and telnet?
18)How do you check memory usage in linux ?
19) basic linux command
20) linux basic commands
21)lsblk
22)mount a vol to instance via commands?
23)What is the purpose of mount command?
24)How can I check memory by using which command?
25)I have a file, where it is we don't know how you can identify it?
26)just your are searching www.google.com, in the backend what its going on?
27)How much of a rating is given in Linux?
28)What is the swipe space command?
29) Can you tell me the SMTP port number?
30) Can you please tell me if the particular port number is running or not?
31) Have you used the SED command?
32) What does awk command?
33) Why are you using the grep command?
34) What is the log's path in Linux?
35) Can you tell me $? ?
36) What is commendable if we want to copy all data from 1 bucket to another
bucket?
37) enter df -h command and print specific data in that which command is used?
38)Root volume is full how will you troubleshoot it
39) How to recover corrupted root vol data?
TERRAFORM
=====================
1) Which files can you keep in main.tf?
2) How can you create 10 instances at a time by using terraform?
3) terraform files?
4) terraform workspace?
5) if tf state file is deleted, how can you delete the resources?
6) What is terraform?
7) State file in terraform
8) How is IaC implemented using AWS
9) I have a tfstate file? How to backup a tfstate file?
10)Two users run the command terraform apply? Which user resource is created
first?
11) I created resources using terraform? in my local remove statefile and again i give
terraform plan, and apply? What happened?
12) What is terraform import?
13)What does terraform refresh do?
14) terraform validate command purpose?
15) Can we have the 5 s3 bucket within the single code?
16) I want to make the 100 ec2 with the same configuration ? what tools u will use?
and how?
17) terraform modules? Have you worked on that?
18)Provisioners in terraform
19)What are Workspaces in Terraform
20) terraform functions? working scenario of terraform with cicd for dockerfile
implementation, how we can have a build up image and its storage, meanwhile
tell us about the tools used for this, which cicd u used and how ? if i have further
changes do i need to write the whole again or some automation can be present?
21) if i will get an error while doing terraform validate whether i will get or not
terraform lock file?
22) write a terraform code to create 10 ec2-instances and attached to the load
balancer
23) How to create all resources? creating manuals using any Ias?
24) I will create 5 databases and I will create some resources on how to set up
using terraform and how to divide different environments.
25) Which command is mostly used in terraform?
26) in terraform tell me the functions?
27) write the terraform code to create the IAM role?
28) terraform particular resource destroy command?
29) Do you work in terraform?
30) How to create a terraform module? Tell me the command?
31) I already have an Aws account. We have to create resources, but why will you
go terraform?
32) terraform lifecycle
33) terraform init
34) In terraform i want to spin up one ec2 instance there will be a 4 lines code which
we will write,what parameters we need to pass can you tell me the lines?
35)Tell me a few commands of terraform ?
36) stages in terraform
37) What does the terraform init ?
38) Did you write terraform code?
39)Which info is available in the tf state file?
40) What happens if we delete the tf state file and then again I applied a terraform
plan and applied what happened?
41) What is a module in terraform?
42) In the module what files are available?
43) what are the different stages of terraform?(pending/ create /update /destroy)
44) terraform init ?
45) where you can store the tf state file?
46)What is terraform init?
47) Terraform module..
48) Terraform block.
49) Null resource in terraform.
50) Terraform taint.
51) Have you worked terraforming ?
52) What is the tfstate file?
53) How to manage the tfstate file?
54) What are the terraform commands used?
55) What does terraform plan command?
56) Did you face any challenge while using terraform?
57) Where do you store your terraform tfstate file and how?
58) what are the terraform modules and advantages
RDS
=====
GIT
=====
1) What is git stash and git rebase ?
2) Do you have git experience ?
3) Tell me about GIT? the purpose of GIT?
4) Tell me about git commands
5) what is your branching strategy
6) What are the strategies in git?
7) What is git merge?
8) What is git rebase?
9) What is git cherry pick?
10)What is git fetch and git pull?
11) how can we revert the deleted branch in git?
12)What are Gitops Practices?
13) What is the use of git cherry pick?
14) Why do we use git stash?
15) What is git rebase?
16) branching strategy used in your environment
17) diff between git merge and git rebase
18) git cherry-pick
19) Gitops strategy
20) about github?
21)What are the commands used for github to create a registry?
22)What is git rebase, git fetch and git full?
23) Merge conflict
24) branching strategies
25) Do you have git experience?
26) Why use git?
27) what does the git add . command?
28) How do push the code local repo to the remote repo?
29) How to create a new branch in git?
30) What is d/f b/w git and svn,why is git more popular?
31) What is git revert and reset?
32) How do you clone a git repo with a tag name?
33) push code into your test-branch(repo) then another team member will merge that code
into the main-branch(repo). then code is not working how do you resolve that?
JENKINS
============
1) What are the stages in Jenkins ?
2) Jenkins master slave configuration
3) What is cicd flow ?
4) Please write a Jenkins file?
5) Difference Between scripted pipeline & Declarative pipeline
6) difference declarative and scripted pipeline?
7) Difference b/w master and slave in Jenkins
8) I have a jenkins machine. How to integrate Jenkins to kubernetes?
9) write the jenkins pipeline
10)How do u configure master slave configuration
11) Plug-ins used in Jenkins
12)How to take backup of Jenkins machine
13)Explain the CICD process
14)how do you call the variables in pipeline
15)how do you pass the secret in jenkins pipeline
16) PING threat in jenkins?
17) How to transfer the console log for a particular jenkins build?
18) CI achieved using jenkins?
19) What is the CICD pipeline?
20) Diff types of Pipeline?
21) How to set up Jenkins' job? Steps to have a Jenkins job?
22) Most useful plugin jenkins?
23) How can you integrate jenkins with kubernetes?
24) Can we monitor jenkins using common monitoring tools
25) Tell me the cicd flow?
26) How can you trigger a job in jenkins?
27) What is a webhook in jenkins?
28) Which server is used for deployment applications in jenkins?
29) If we want to deploy app ec2-to jenkins how do you configure it?
30) Do you have a cicd deployment code deploy and code pipeline?
31) What kind of automation do you have to do in jenkins?
32) define continuous integration and continuous deployment, continuous delivery
33) What are the cicd strategies?
34) Do you work in a prod Environment?
35) In your Organization how to deploy applications? any automation (or) manual?
36) explain your environment cicd flow
37)why we are using jenkins and explain jenkins pipeline
38)If we have two environments, suppose 1.test 2.prod how you are maintaining
these two environments in the same aws account or another aws account and
why ?
39) What is the difference between continuous delivery and deployment?
40) cicd ?
41) What is the Jenkins pipeline?
42) Tell me how you create a Jenkins job and explain step by step?
43)How do you check code quality?
44) Different between scripted pipeline and declarative pipeline?
45) explain your environment cicd flow
46) What type of pipeline is used in your environment?
47) write jenkins file
48) Explain the jenkins architecture?
49) write a scripted pipeline
50) how to trigger jenkins once u have changed the port from 8080 to 8081?
51) Why do we use master-slave architecture?
52) Most useful plugin jenkins?
53) authentication techniques of jenkins
54) Did you write the Jenkins pipeline?
55) What is the purpose of /etc/passwd?
56) where you can store your password file?
57) what happen if we delete that password file
58) Plugins used in Jenkins.
59) How are you using sonarqube?
60)Can you explain the cicd pipeline?
61)What kind of pipeline are you following?
62) What is the difference between a declarative pipeline and a scripted pipeline?
63) What is a multibranch pipeline?
64) How do you manage the pipeline?
65) Write a declarative pipeline with 5 stages?
66)What is elastic trans coders??
67)How do you manage secrets in jenkins ??
68)explain about jenkins and pipline's
Maven
=========
1) What is Archetype in maven?
DOCKER
=============
1) What does docker explain in detail ?
2) I have a Dockerfile in that dockerfile consumes heavy storage? how to decrease
the storage?
3) Difference between copy and add?
4) docker list commands what you have used in your environment?
5) How to create a docker container?
6) Docker image and container?
7) Any way to identify the status of docker containers?
8) What is DOcker?
9) How to login to a container.
10) What are the DOcker networks?
11) Are you creating any Docker network?
12) Why are you creating Docker networks?
13) How can we mount volume on containers?
14) difference between cmd and entry point?
15) How can we see an image in depth?
16) Write a Dockerfile For nginx?
17) .Difference between CMD and Entrypoint?
18) write the docker file for the tomcat
19) explain any kind of dockerfile
20) docker file for tomcat by using ubuntu latest? multi stage layer
21) What is the purpose of docker hub?
22) Difference between CMD and EntryPoint
23) how to identify the port mapping of existing container in docker
24) Difference between ARG and ENV
25) Difference between ADD and COPY Command in docker file?
26) How to decrease Docker Image file size?
27) Difference between cmd and entrypoint
28) In your project how you will use docker and k8s,tell me the process?
29)What is docker and what is the use of docker?
30) How will you scan docker images?
31) Are you following any standards and guidelines to create dockerfile?
32) How many dockerfiles have you written?
33) Can you tell me why we use a multistage dockerfile?
34) Can you tell in a single docker file if we can run multiple CMD commands?
35) Can you tell me what the entry point is?
36) How to list docker networks in docker?
37) How to stop running containers in docker?
38) Have you worked with docker-compose? at least you know why we use
docker-compose?
39) Do you assure or remove root permissions in dockerfile?
40) What is Docker ??
41) Write a dockerfile?
42) What is d/f b/w cmd and entrypoint?
43) What is on build instruction in dockerfile?
44) diff between docker and docker-compose,docker hub
45)Difference between Copy and Add in Docker file
ECS
======
1) tell me ecs service it is one of AWS service?
KUBERNETES
====================
Helm
=====
1) have work on helm
2) directory structure of helm
3) how to check syntax is correct in helm
4) how mapping of value is helm
5) how to build the helm chart
6) advantages of helm
7) .Why do you prefer a helm?
8) What are the folder structures and files created in helm?
ECR
=======
1) what is the permission required for fetch the image from ecr
2) Have you used the EKS service or ECS service?
3) How do you call ecr login credentials into the script write command for it?
ANSIBLE
============
1) Can you write ansible playbook?
2) Ansible playbooks
3) Ansible: What is a module and what is a play book ?
4) I have 200 servers? how to deploy 200 servers at a time?
5) How to deploy multiple servers using Ansible?
6) have you work with ansible and give me one scenario
7) write automation script for copying source code to multiple servers
LAMBDA
============
1) What is the use of the lambda function ?
2) explain lambda functions?
3) What is Auto Scaling in Lambda?
4) I am creating a lambda function. I am trying to download files from s3, am I
unable to do that?
5) lambda function every day at 6pm it will stop, how can you go?
6) lambda service in AWS.
7) different methods to invoke the lambda function?
PYTHON
============
1) Can you write any python programs?
2) Have you written any automation using shell script ?
3) Are you working on any python project to explain that ?
4) write a python program for palindromes?
5) write a program for reversal of a string?
6) write a program the list is to be converted to a string?
7) write a python program to connect rds
8) write a list program using list comprehension?
9) Do you know any programming languages and any scripting languages?
10)write a list program replace with "," by "-" using list functions?
11) write the python program to find the missing number?
12) Using python Arr=(0,0,1,0,1,1,0) all 0's should come to the left side and all 1's
should come to the right side? can you write the syntax
13) Write the python program to fetch the largest number from the list?
14) Have you written any automation using shell script?
15) In the shell script I want to run background?
16)How do you read command line arguments in Shell scripting