├── README.md └── interviewquestions ├── cicd ├── companywise ├── wipro ├── Happiestmindes ├── goodworklabs ├── capgemini ├── harman ├── legato_healthtechnologies ├── saplabs ├── accenture ├── LandT ├── sonata_software ├── ibm ├── softwareAG ├── others └── cts ├── monitoring ├── git ├── scripting ├── kubernetes ├── jenkins ├── openshift ├── aws ├── docker ├── ansible └── linux /README.md: -------------------------------------------------------------------------------- 1 | # interviewquestions 2 | aws/devops interview questions 3 | -------------------------------------------------------------------------------- /interviewquestions/cicd: -------------------------------------------------------------------------------- 1 | CI/CD 2 | ######### 3 | * What is CI &CD ? 4 | * What is CI/CD pipeline ? 5 | * Difference between Continuous Delivery &Deployment ? 6 | * List the important tools & technologies used in Devops ? 7 | -------------------------------------------------------------------------------- /interviewquestions/companywise/wipro: -------------------------------------------------------------------------------- 1 | 1. What is DevOps? 2 | 2. Why do we need a DevOps? 3 | 3. How do you configure the job in Jenkins? 4 | 4. What are the roles you played in your laptop? 5 | 5. How do you configure ansible in Jenkins? 6 | 6. Difference between ant and maven? 7 | 7. Git workflow? 8 | 8. Maven lifecycle? 9 | 9. Where do you find errors in Jenkins? 10 | 10. How do you integrate sonar Qube in Jenkins? 11 | -------------------------------------------------------------------------------- /interviewquestions/companywise/Happiestmindes: -------------------------------------------------------------------------------- 1 | 1. Write a program to count no of times each word present in the string and save it in the 2 | dictionary? 3 | 2. Git Merge and rebase? 4 | 3. What is docker file how it works? 5 | 4. What are the ansible tasks? 6 | 5. How to deploy to 100 servers at a time? 7 | 6. What is docker volume? 8 | 7. What have you done in these years what are tools involved? 9 | 8. Have you worked on ansible modules? 10 | -------------------------------------------------------------------------------- /interviewquestions/monitoring: -------------------------------------------------------------------------------- 1 | Monitoring 2 | ############ 3 | * Why we use monitoring ? 4 | * What are the different tools & technologies for monitoring ? 5 | * How we monitor our applications & servers differently ? 6 | * What is Prometheus ? How is different from other monitoring tools ? 7 | * What is ELK stack ? 8 | * Why we use Grafana ? 9 | * How we query different outputs in Prometheus ? 10 | * What type of graph can be implemented in Grafana ? 11 | -------------------------------------------------------------------------------- /interviewquestions/companywise/goodworklabs: -------------------------------------------------------------------------------- 1 | 1. How do you configures3 bucket? 2 | 2. Differences between git rebase and git merge? 3 | 3. What is git init? 4 | 4. What is git clone? 5 | 5. If there is suddenly the file is deleted in git and how do you get it back? 6 | 6. What is CI/CD? 7 | 7. What is the purpose of Docker? 8 | 8. In Jenkins how can you find log files? 9 | 9. By using Ansible how to deploy in Jenkins? 10 | 10. What is the use of ansible? 11 | 11. What is configuration management? 12 | -------------------------------------------------------------------------------- /interviewquestions/companywise/capgemini: -------------------------------------------------------------------------------- 1 | 1. Roles and Responsibilities? 2 | 2. Daily activities what you have done in the current project? 3 | 3. Jenkins workflow and write a script for this workflow? 4 | 4. In Ubuntu sever what is a public key and private key? 5 | 5. Write a script what you are done daily? 6 | 6. Three members have same password one I have to change write a script for this example? 7 | 7. Write a script for how to push the repository and build the job in Jenkins? 8 | 8. About project? 9 | 9. What are EC2 and VPC how we create & write a script? 10 | -------------------------------------------------------------------------------- /interviewquestions/git: -------------------------------------------------------------------------------- 1 | GIT 2 | ########### 3 | * What is GIT ? 4 | * What is difference between GIT &Github ? 5 | * Why we use GIT ? 6 | * What is SCM &VCS ? 7 | * What are the process of pushing the code to GithubRepository ? 8 | * Why do we commit ? 9 | * What are the commands of GIT to push the code ? 10 | * How you can merge a git repository with another ? 11 | * What is branching in git ? 12 | * Different types of branching in GIT ? 13 | * What is merge conflict in git ? 14 | * How you can resolve merge conflict if you are merging same 15 | project and in the same branch ? 16 | -------------------------------------------------------------------------------- /interviewquestions/companywise/harman: -------------------------------------------------------------------------------- 1 | 1. Tell about yourself? 2 | 2. What is Lambda? 3 | 3. How does it work? 4 | 4. I want to run my job today at 5 pm how do you configure? 5 | 5. Write Terraform code for an S3 bucket and attach a policy? 6 | 6. Explain Jenkins CI/CD? 7 | 7. What I am policy? 8 | 8. Write a Terraform code for EC2? 9 | 9. Explain about GIT Branching in your project? 10 | 10. Write a sample playbook? 11 | 11. What is the ansible modules? 12 | 12. Have used any pre-defined modules in your project? 13 | 13. Write a sample boto3 script? 14 | 14. What type of deployments do you follow in your project? 15 | -------------------------------------------------------------------------------- /interviewquestions/companywise/legato_healthtechnologies: -------------------------------------------------------------------------------- 1 | 1. Tell about yourself? 2 | 2. Difference between Classic ELB and Application ELB? 3 | 3. Git branching Structure? 4 | 4. Why ansible? 5 | 5. What is autoscaling? 6 | 6. How do resolve production issues? 7 | 7. What is the launch configuration? 8 | 8. Different types of storage in S3? 9 | 9. Difference between EBS and NFS? 10 | 10. What are Glacier and Snowball? 11 | 11. Where do you check build logs in Jenkins? 12 | 12. What is CROS in s3? 13 | 13. What has required one resource in was to communicate with other resources? 14 | 14. Tell about your project? 15 | 15. How many builds you do daily? 16 | -------------------------------------------------------------------------------- /interviewquestions/companywise/saplabs: -------------------------------------------------------------------------------- 1 | 1. #chmod 444 in root user? Change the above permissions to 777? 2 | 2. #curl www.google.com is not working and telnet www.google.com is working now? 3 | 3. I am having two instances in public and private subnets, I am pinged from one server to another 4 | server and getting any response but by using telnet on port 23 it's working now? 5 | 4. What is SSL? And how it works internally? 6 | 5. My webservers are running in private subnet I want to route my ELB Traffic to web servers in 7 | private subnets? 8 | 6. What is NAT Instance/NAT Gateway? 9 | 7. Why is SG? 10 | 8. Mostly asked on networking, ports, and protocols 11 | -------------------------------------------------------------------------------- /interviewquestions/companywise/accenture: -------------------------------------------------------------------------------- 1 | 1. Difference between SVN and GIT? 2 | 2. Difference between ant and maven? 3 | 3. What are the version control tools are using in the present market? 4 | 4. Git commit? 5 | 5. Git push and fetch? 6 | 6. How to create a repository in GitHub? 7 | 7. How to push the file in the GitHub flow? 8 | 8. Have you worked on maven scripts? 9 | 9. About branching strategies? 10 | 10. Maven lifecycle? 11 | 11. About pom.xml? 12 | 12. How build job in Jenkins? 13 | 13. How to create continuous deployment in Jenkins? 14 | 14. Poll SCM? 15 | 15. In Jenkins how to give backup from one server to another server? 16 | 16. Difference between Docker and ansible? 17 | -------------------------------------------------------------------------------- /interviewquestions/companywise/LandT: -------------------------------------------------------------------------------- 1 | 1.What is webhook? 2 | 2.d/f b/w pull and fetch? 3 | 3.what is rebase? 4 | 4.d/f b/w fetch and merge? 5 | 5.how to delete remote branch? 6 | 6.how to know the how many branches are merged? 7 | 7.how to delete docker containers? 8 | 8.what is docker compose? 9 | 9.what purpose we use docker-compose? 10 | 10.what is dockerfile? 11 | 11.which instructions are in dockerfile? 12 | 12.what is master/slave archestructure? 13 | 13.d/f b/w pollscm and build periodiacally? 14 | 14.what is inventoryfile? 15 | 15.what is ansible? 16 | 16.what playbooks you write? 17 | 17.how to write apache with ansible ad-hoc commands? 18 | 18.what is variable host? 19 | 19.what is sonarqube? 20 | 20.what purpose we are using sonarqube? 21 | 21.d/f b/w virtulations and docker? 22 | 22.d/f b/w docker image and docker container? 23 | 23.what is dangaling images? 24 | -------------------------------------------------------------------------------- /interviewquestions/scripting: -------------------------------------------------------------------------------- 1 | Scripting (SHELL/Python) 2 | ####################### 3 | Shell Task 4 | ############# 5 | Task1 6 | Bash script to setup a whole LAMP stack, PHP app can be Wordpress and DB can be MySQL. This script should install all components needed for a Wordpress website. 7 | We should be able to run this script on a local machine or server and after execution of the script it should have Wordpress Running via Nginx/Apache. 8 | DB user for Wordpress should also be made automatically from within the script and same should be set in Wordpressconf file. 9 | Task 2 10 | Bash script to setup a whole JAVA application stack on a server. 11 | This script should install all components needed for a Java/Grails application. 12 | Once the script is run it should have the java application running and being served via Nginx on local machine or server. Sample java application can be simply a tomcat war etc 13 | -------------------------------------------------------------------------------- /interviewquestions/companywise/sonata_software: -------------------------------------------------------------------------------- 1 | 1. Yours and responsibilities? 2 | 2. Can tell what are issues you faced in your project? How do you resolve it and how do you 3 | come to know the issues? 4 | 3. To what extent your project is automated? 5 | 4. Where did save all application logs? 6 | 5. Jenkins full flow? 7 | 6. Explain me how do you take backups for RDS? 8 | 7. What are the play books you have written? 9 | 8. From where you run Terraform? 10 | 9. How many environments your maintaining? 11 | 10. Do you know python? 12 | 11. Do you any knowledge on setting up BigData cluster? 13 | 12. Tell about what are metric in the dashboard? 14 | 13. How does auto scaling work? 15 | 14. What type of ELB you used in the project? 16 | 15. How many servers are there in you production and location? 17 | 16. Are you only using cloud watch for monitoring? 18 | 17. Did you get got any awards? 19 | 18. What are the daily activities? 20 | 19. What is the build trigger? 21 | 20. What POLL SCM? 22 | 21. Did you use only SonarQube for static code analysis? 23 | 22. What are the plugins have used in the project? 24 | -------------------------------------------------------------------------------- /interviewquestions/companywise/ibm: -------------------------------------------------------------------------------- 1 | 1. Difference between GitHub and BitBucket? 2 | 2. Use of git commit and purpose? 3 | 3. Difference between rebasing and merge? 4 | 4. Maven repositories? 5 | 5. About pom.xml? 6 | 6. Dependencies in pom.xml? what dependency have you used in your project? 7 | 7. Jenkins workflow? 8 | 8. How to build a job in Jenkins by using git and maven? 9 | 9. What is the use of maven in Jenkins? 10 | 10. Where you find an error in Jenkins? 11 | 11. Where can you find the particular error in logs? 12 | 12. Difference between Vagrant and AWS? 13 | 13. Use of AMI? 14 | 14. Purpose and use of s3? 15 | 15. What is CI/CD? 16 | 16. What are the modules you have used in ansible? 17 | 17. Location and configuration file in ansible? 18 | 18. Docker purpose and usage? 19 | 19. The flow of SonarQube? why we use it? 20 | 20. What is the use of quality gates in sonarqube? 21 | 21. Suppose we give 30 % quality I want you to define in quality gates? 22 | 22. What is the use of Jira tool? 23 | 23. As a DevOps engineer why we use Jira Tool? 24 | 24. Why we use pipeline in Jenkins? Flow? 25 | 25. What is Release management due to production? 26 | -------------------------------------------------------------------------------- /interviewquestions/kubernetes: -------------------------------------------------------------------------------- 1 | Kubernetes 2 | ############## 3 | * What is Kubernetes ? 4 | * What are KubernetesComponents ? 5 | * What is etcd ? 6 | * What is master &minion ? 7 | * How to make quorum of cluster? 8 | * What is Replication controller & what it does ? 9 | * What is ingress ? 10 | * Difference between Kubernetes&DockerSwarm ? 11 | * How can you rollbck the previous version of application in Kuberntes? 12 | * Scenario: There are 2 tables, emp, empsal if there schema changes, 13 | How does that deployment happens into containers/POD automatically? 14 | * How does container know that application is getting failure ? 15 | * Difference between nodeport, clusterIP, load balancer &ingress ? 16 | * What is kubectl&kubelet ? 17 | * What is the use of Kube-controller manager ? 18 | * What is pod ? 19 | * How many containers can run in a pod ? 20 | * How many containers can be launched in a node ? 21 | * What is the role of Kube-Scheduler ? 22 | * How the 2 pods communicate with each other ? 23 | * How 2 containers inside a pod communicate with each other ? 24 | * What is Flannel & why we use it ? 25 | * Difference between Flannel &Calico ? 26 | -------------------------------------------------------------------------------- /interviewquestions/companywise/softwareAG: -------------------------------------------------------------------------------- 1 | 1. Why Terraform? why not others? 2 | 2. Daily roles and responsibilities? 3 | 3. Can Terraform used for another cloud provisioning? 4 | 4. If my RDS is running out of space how will you resolve that without launching other RDS? 5 | 5. What is Lambda and how it works? 6 | 6. How will you take backups using Lambda? 7 | 7. What are a soft link and hard link? 8 | 8. What is inode? 9 | 9. What is unmask? Where would you set it so that it affects all users? 10 | 10. How can you fix “chmod –x /usr/bin/chmod”? 11 | 11. How would you find all files by user “barray” that are older than 10 days, a third word of the 12 | filename is “L”? 13 | 12. What are the 3 standard streams in Linux can you redirect them? 14 | 13. How would you make a bash script print verbose/p so you can debug it? 15 | 14. Write a simple script that called with “Foo” prints “bar” and when called with “bar” prints “foo”. 16 | Every other option should print “Try again”? 17 | 15. How do you delete a file named “*”? 18 | 16. What is ARP? What does it do? 19 | 17. What is Nat? Uses? 20 | 18. What are VLAN & uses? 21 | 19. What is VPN & Uses? 22 | 20. Types of storage in AWS? 23 | 21. Difference between S3 & Glacier? 24 | 22. Components of VPC? 25 | 23. Difference between EC2 and ECS? 26 | 24. What is DNS? Uses? 27 | 25. What are TCP & UDP and the difference between them? 28 | 26. Why you won’t go with EC2 for installing Database? Why RDS? 29 | -------------------------------------------------------------------------------- /interviewquestions/jenkins: -------------------------------------------------------------------------------- 1 | Jenkins 2 | ########## 3 | * What is Jenkins ? 4 | * Why we use Jenkins ? 5 | * What are the other tools/technologies present in market other than 6 | Jenkins for CI/CD ? 7 | * How to move Jenkins from one server to another ? 8 | * How to create Jenkins backup ? 9 | * What are plugins in Jenkins ? 10 | * What are the default plugins installed in Jenkins ? 11 | * How to schedule builds in Jenkins ? 12 | * Difference between Ant, Maven, Gradle ? 13 | * Difference between Jenkins, Teamcity and Bamboo ? 14 | * How to configure a cloud access in Jenkins ? 15 | * What is Jenkins slaves ? 16 | * How to run a groovy script in Jenkins ? 17 | * What is Jenkins Pipeline ? 18 | * What are different types of Jenkins Pipeline ? 19 | * What is Declarative pipeline in Jenkins ? 20 | * Is Jenkins a CI tool or both CI/CD ? 21 | * How to install Jenkins with non root access in Linux ? 22 | * If you have 200 employees in your company, how you can assign Jenkins 23 | access to these employee how you can give permission in Jenkins ? 24 | Jenkins Task 25 | ############## 26 | Task 1 27 | Write the Jenkins pipeline code for Java &Php application 28 | Task 2 29 | Write the Jenkinsfile code to build a Java application with Maven with error handling 30 | Task 3 31 | Complete the following tasks: 32 | 1. Jenkins setup on linux 33 | 2. Setup app server with apache to deploy an app. 34 | 3. create three jobs on jenkins 35 | 4. Pull the code from git repo 36 | 5. Build the application 37 | 6. deploy an app on apache using ansible. 38 | 7. app deploy should work with single trigger hit(git pull job -> build app -> deploy on apache server) 39 | 8. job should get triggered on git push on git repo 40 | -------------------------------------------------------------------------------- /interviewquestions/openshift: -------------------------------------------------------------------------------- 1 | OpenShift 2 | ########### 3 | * What is Openshift ? 4 | * Difference between Openshift&Kubernetes ? 5 | * What is Services Layer ? 6 | * How to expose a service in Openshift ? 7 | * What are the 3 components of any created project ? 8 | * What is router in default or in any project while creating project ? 9 | * What do you mean by identity provider in Openshift? 10 | * How do you create a New user identity ? 11 | * Where is the user identity located ? 12 | * What is project in Openshift ? 13 | * What are the types of permissions/role bindings in Openshift ? 14 | * How to check the permission of user ? 15 | * How to describe anything in Openshift ? 16 | * How to check no of projects ? 17 | * How to assign a role/permission to a user ? 18 | * What is clusterrolebinding in openshift ? 19 | * What is the process/working of POD creation ? 20 | * What is Builder POD ? 21 | * What is deployerPOD ? 22 | * How to create a New application POD ? 23 | * How to check logs of POD ? 24 | * What is Deployment Configuration & why we need DC ? 25 | * What is SVC & why we need SVC ? 26 | * What is RC (Replication Controller) ? 27 | * How to check DC of POD & how to edit DC ? 28 | * How to create route ? 29 | * How to expose svc ? 30 | * How to do rollout ? 31 | * How to increase replica ? 32 | * What is Source to Image in Openshift ? 33 | * What is builder image ? 34 | * What are the process to create source to image ? 35 | * How to give the Cluster role/permission to the user ? 36 | * How to create secure route ? 37 | * What is PV &PVC ? 38 | * What are access modes in PV ? 39 | * What is node selector ? 40 | * What are the two regions in projects ? 41 | * Difference between template & Deployment Configuration ? 42 | * How to migrate whole cluster to another ? 43 | * How to manually migrate container ? 44 | -------------------------------------------------------------------------------- /interviewquestions/companywise/others: -------------------------------------------------------------------------------- 1 | 1. What is AWS? 2 | 2. What is a cloud? 3 | 3. What is EC2? 4 | 4. What is VPC? 5 | 5. What is AZ? 6 | 6. What is ELB? 7 | 7. What is VPC peering? 8 | 8. What is the aim of VPC peering? 9 | 9. Why use VPC peering, real-time example? 10 | 10. What is SG? 11 | 11. What is cloud front/CDN? 12 | 12. What is a lambda, what is the use of it? 13 | 13. What have you developed using Lambda? 14 | 14. What is automation have you done for with lambda? 15 | 15. What is cloud watch? 16 | 16. What is cloud formation? 17 | 17. What is DevOps? 18 | 18. What is Agile and waterfall methods? 19 | 19. What tools does DevOps contain? 20 | 20. What is git lifecycle? 21 | 21. What is build? Explain technically? 22 | 22. What is automation in DevOps? 23 | 23. What is CI/CD? 24 | 24. What are the stages in Jenkins? 25 | 25. Is Only Jenkins enough for automation? 26 | 26. Where will deploy the application? 27 | 27. Difference between NaCl and SG? 28 | 28. S3 lifecycle? 29 | 29. What is the use of the IAM role? 30 | 30. How many subnets assign to the routing table? 31 | 31. What is the static IP? 32 | 32. How will get access to private subnets? 33 | 33. Can you increase the size of root volume without shutdown the instance? 34 | 34. Df –h? 35 | 35. What is ELB? How many types are there? 36 | 36. What is autoscaling? 37 | 37. What is hosted zone and uses of recordset? 38 | 38. Types in R53? 39 | 39. How will take up backup for volumes? 40 | 40. How to encrypt the root volume? 41 | 41. How will access AS account? 42 | 42. What is the subnet group in DB? 43 | 43. How do you connect to windows instances? 44 | 44. Port numbers of RDP, SSH, and HTTPS? 45 | 45. What is the difference between EBS, S3, and EFS? 46 | 46. What type of data do you store in s3 and EBS? 47 | 47. Replication s3? 48 | 48. Why use events in cloud watch in AWS? 49 | 49. What is the difference between VPC level security and system level security? 50 | 50. If you lost the pem file then how will you connect to EC2? 51 | -------------------------------------------------------------------------------- /interviewquestions/aws: -------------------------------------------------------------------------------- 1 | AWS 2 | ########### 3 | * What is Amazon RDS ? 4 | * What is EC2, S3, EBS ? 5 | * What is VPC & why we require to create VPC ? 6 | * Is is possible to scale an Ec2 Instance vertically ? 7 | * How is Amazon RDS, Redshift &DynamoDBdifferent ? 8 | * How is a spot Instance different from an On-demand Instance ? 9 | * How Infrastructure As Code processed & executes in AWS ? 10 | * If your Linux-build server getting slow down, what will you do to check ? 11 | * Types of EBS storage ? 12 | * How to backup a running instance ? 13 | * How to secure s3 bucket ? 14 | * What are the security available for users to access S3 ? 15 | * How to create AMI ? 16 | * What are the main components of CloudFormation ? 17 | * What is mapping in cloudformationtemplate ? 18 | * How is YAML different from JSON ? 19 | * Different types of ELB ? 20 | * What is autoscalinggroup ? 21 | * Which type of ELB is good for application load ? 22 | * What is difference between application load balancer & classic load balancer ? 23 | * What is metrics in cloudwatch ? 24 | * Is it possible to recover your lost private key ? 25 | * How can you connect your EC2 Instance if you lost your key ? 26 | * While connecting to your EC2 instances, what are the possible connection issues one might face ? 27 | * What is Subnet & how many subnets are there in a VPC ? 28 | * Why do we make subnets ? 29 | * What is routing table ? 30 | * How you can connect a private subnet with a public subnet ? 31 | * Can VPC peering possible in two different region ? 32 | AWS Task 33 | ############# 34 | Task 1 35 | Write a script which will based on “Number of requests” metric of the ALB/ELB scale up webapp EC2 instances under the Load Balancer, increase AWS Elasticsearch Nodes count, and change the instance size of a MongoDB EC2 instance from m4.large to m4.xlarge. (without using ASG). 36 | Task 2 37 | Architecture Diagram for a PHP/JAVA/Python based application to be hosted on AWS with all mentions like VPC, AWS/any other cloud platform services, well defined network segregation. 38 | -------------------------------------------------------------------------------- /interviewquestions/companywise/cts: -------------------------------------------------------------------------------- 1 | 1. What IAM Role and policy? 2 | 2. What is the Terraform plan? 3 | 3. What is lambda? 4 | 4. How will run lambda and where you will configure lambda? 5 | 5. How lambda run on secluding and event-based? 6 | 6. What is cloud watch? Have you configured any custom metrics? 7 | 7. What are the metrics available on your dashboard? 8 | 8. How do you configure CPU Utilization on your dashboard? 9 | 9. How can I attach SSL for the s3 bucket? 10 | 10. What type of encryption have you done in your project? 11 | 11. S3 bucket having a policy for only read-only but you're having full access for you? Can you 12 | modify s3 objects? 13 | 12. Why are you using Terraform? Why not boto3? 14 | 13. What is CDN? 15 | 14. Have created a Jenkins pipeline? 16 | 15. How will attach policy for IAM users by group or individual? 17 | 16. What type of deployments you’re using in the project? 18 | 17. Have you used any tool for creating customized AMIS? 19 | 18. What is connection draining? 20 | 19. How your ELB shares traffic? 21 | 20. What is auto-scaling? 22 | 21. Types of Load Balancers and example? 23 | 22. What is the run time of Lambda? 24 | 23. What is the memory size of lambda? 25 | 24. How can I run lambda for more time? 26 | 25. By using lambda what are automation you’re performed in your project? 27 | 26. Why you’re not using boto3 for infrastructure provisioning? 28 | 27. What are the modules you used in Lambda? 29 | 28. Have created SNS topic? 30 | 29. In your VPC all IPS are finished you have a requirement for resources how to provision it? 31 | 30. What is groovy? 32 | 31. Why we go for Groovy in Jenkins and where you save Jenkins file. 33 | 32. What is Ansible? Why is it used? 34 | 33. Which language did you use in Ansible? 35 | 34. Where will you run Terraform code in the remote or local machine? 36 | 35. What is access key and secret key? 37 | 36. What are the Terraform modules? Have used any modules in the project? 38 | 37. What are the environments in your project? 39 | 38. Have you used the same account for all environments? 40 | 39. For every environment do you have different Jenkins servers? 41 | 40. Where you write and save lambda code? 42 | -------------------------------------------------------------------------------- /interviewquestions/docker: -------------------------------------------------------------------------------- 1 | Dockers & Containers 2 | ###################### 3 | * Whats is docker ? 4 | * Difference between container &VMs ? 5 | * Difference between Docker&Virtualization ? 6 | * Difference between container and image ? 7 | * How image builds ? 8 | * What are image layers ? 9 | * How image layers work ? 10 | * What is overlayfs ? 11 | * Where the image layes can be found in which directory ? 12 | * How can we check the content of each layer ? 13 | * How to check the layers stacked with image ? 14 | * What is Union Mount &AUFS ? 15 | * Why use Union mount system for Docker ? 16 | * What are the 3 different directories in /var/lib/docker/aufs ? 17 | * How to run an image ? 18 | * How to tag an image ? 19 | * How to Link one container with another ? 20 | * How do you sequence the containers? A first then B should execute after that ? 21 | * How to create a volume in docker container to store data ? 22 | * How to mount a local directory into a container ? 23 | * How to expose a port no to access container ? 24 | * What is entrypoint in docker ? 25 | * What is dockerfile ? 26 | * Difference between ADD & COPY parameters in dockerfile ? 27 | * How to create a bridge in container ? 28 | * How a container gets an internal IP ? 29 | * Can we check the process of a container inside as well as outside the container ? 30 | * Can we check the container process on dockerhost ? 31 | * How kernel isolates to run the container and how resources managed by the kernel ? 32 | * What is namespace and cgroups ? 33 | * What is docker-compose and docker-swarm ? 34 | * How you can give different network IP to the container ? 35 | * What are the parameters of dockerfile ? 36 | * Is there any windows container also available ? 37 | * How to stop a container ? 38 | * How to run a container in background ? 39 | * How to go inside a container if container is running in background ? 40 | * How to check running containers ? 41 | * How to remove an image ? 42 | * How to run an image which is in tar format ? 43 | * Command to check the process of a container ? 44 | * How to check resource utilisation of a container ? 45 | * How to create an image ? 46 | * How to save changes of a container ? 47 | * What are registries ? 48 | * Difference between docker commands: up, run &start ? 49 | * Can we run more than one process in a container ? 50 | Docker Task 51 | ############# 52 | Part 1. Write a Docker file to create a Docker image which should have Wordpress installed 53 | Part 2. Write a Docker file to create a Docker image for database 54 | Now, use Docker compose to bring up the above Docker images as containers. Database container should mount the local host's “/etc/mysql” volume into it's (containers) /etc/mysql directory. 55 | 56 | -------------------------------------------------------------------------------- /interviewquestions/ansible: -------------------------------------------------------------------------------- 1 | Ansible 2 | ########## 3 | * What is Ansible ? 4 | * What is Configuration Management ? 5 | * Is Ansible only a tool for Configuration Management ? 6 | * What are the components of Ansible ? 7 | * How Ansibleworks ? 8 | * What are the other tools in market other than Ansible ? 9 | * How Ansible is different from Chef &Puppet ? 10 | * What is Inventory in Ansible ? 11 | * What are the types of Inventories ? 12 | * What is play &playbook ? 13 | * Difference between hosts &groups ? 14 | * What is Roles ? 15 | * How to install a Role ? 16 | * How to install multiple roles ? 17 | * How to create roles ? 18 | * What is Dynamic Inventory & when we use it & for what ? 19 | * Where is the Ansible Configuration file located ? 20 | * What are the different ways other than SSH by which Ansible 21 | can connect to remote hosts ? 22 | * What is variable in Ansible ? 23 | * What are different types of variables ? 24 | * How to assign variables in group vars& hosts vars ? 25 | * Difference between File & Template directory in Roles ? 26 | * Difference between default &vars directory in Roles ? 27 | * What is Jinja 2 template ? 28 | * What is modules in Ansible ? 29 | * Difference between COPY & FILE modules ? 30 | * Difference between SHELL & COMMAND modules ? 31 | * What is Setup module ?what it does ? 32 | * What is register & debug in Ansible ? 33 | * What is changed_when in Ansible ? 34 | * Can we disable automatic facts gathering in Ansible ? 35 | * How error handling can be done in Ansible ? 36 | * How to ignore failed commands in Ansible ? 37 | * What is handlers ? Why we use Handlers in Ansible ? 38 | * What is Privilege Escalation in Ansible ? 39 | * Task to connect(SSH) Ansible to remote host using another user & 40 | run the playbook to the remote host using with another user ? 41 | * What is Ansiblevault ? 42 | * How to decrypt a vault file ? 43 | * How to encrypt a string in Ansible using AnsibleVault ? 44 | * If a string is encrypted in a file with a password then how to pass 45 | the password using parameter while decrypting ? 46 | * If a file is encrypted using password & password is stored in a file 47 | how to pass the file to decrypt the file ? 48 | * If a file is encrypted using password & password is also encrypted 49 | then how to provide the password while decrypting the file ? 50 | * What is Ansiblegalaxy ? 51 | * What is Tags in Ansible ? Why it is used ? 52 | * What is lookup in Ansibleplaybook ? 53 | * How to control the command failure in Ansible ? 54 | * How to debug your playbook ? 55 | * What is diff mode ? 56 | * What is Dry Run in Ansible& how to do that ? 57 | * What is pre task & post task ? 58 | * How you can run your all tasks at once ? 59 | * What is block in Ansible ? 60 | * What are different variable scopes ? 61 | * How variable precedence takes place ? 62 | * Difference between include &import ? 63 | * How to include custom modules in Ansible ? 64 | * Describe the role directory structure ? 65 | Ansible Task 66 | ############# 67 | Task 1 68 | Part 1. Write Ansible playbook to automate Jenkins deployment 69 | Part 2. Write Ansible role to install Docker& setup Kubernetes cluster 70 | Automate the pipeline creation in Jenkins to create docker container & deploy on Kubernetes cluster 71 | Task 2 72 | Write ansible playbook for below tasks: 73 | 1. Install apache server and deploy sample html application 74 | 2. Create /var/www/example.com 75 | 3. deploy a sample application to the above directory 76 | 4. create a virtual host for deploy application and set it as default virtualhost 77 | -------------------------------------------------------------------------------- /interviewquestions/linux: -------------------------------------------------------------------------------- 1 | Linux (RHEL) 2 | ############ 3 | * What is Linux ? 4 | * What are Linux OS Flavors ? 5 | * Difference between Debian& RPM based OS ? 6 | * What is Kernel ? 7 | * Explain the boot process of Linux OS ? 8 | * How is RHEL different from CentOS ? 9 | * What is the Latest version of RHEL ? 10 | * What is Grub ? 11 | * Difference between Grub &Grub2 ? 12 | * What is boot loader ? 13 | * Do you think the boot process in RHEL 7 is faster than RHEL 6 ? If yes, How ? 14 | * What is .rpm & .deb ? 15 | * What is RPM ? 16 | * What is YUM ? 17 | * Different methods to install the rpm based packages ? 18 | * What is Bash ? 19 | * What is SHell ? 20 | * How many types of SHells are there ? * Explain the daily used basic commands like cp, mv, rm ? 21 | * What is the significance of touch command ? 22 | * In how many ways you can create a file ? 23 | * How to delete the content from a file ? 24 | * Explain the process/work behind hitting the google.com ?how you access google.com ? 25 | * How many types of permissions are there ? What is chmod ? 26 | * What is sticky bit ? 27 | * What is ACLs ? 28 | * What is SetGID, SetUID&Stickybit ? 29 | * Location where all the user information are stored ? 30 | * File where user password are stored ? 31 | * What is the default permission of a file ? 32 | * What is the significance of -rvf ? 33 | * What is PV, VG &LV ? 34 | * What are the types of file system ? 35 | * What is XFS ? 36 | * Can we reduce XFS file system ? 37 | * How can we extend LV ? 38 | * Command to check running process ? 39 | * Command to check RAM usage ? 40 | * Command to check Disk usage ? 41 | * Difference between ps -aux & top command ? 42 | * What are the ways to check CPU usage ? 43 | * How to check CPU details ? 44 | * Explain the steps to create a partition & how to format with file system ? 45 | * Explain the steps to create LV ? 46 | * Explain steps to reduce XFS & EXT files systems ? 47 | * Significance of .bashrcfile ? 48 | * How you check the kernel version ? 49 | * How you check the Red hat release version ? 50 | * Significance of resolv.conffile ? 51 | * What is DNS ? How you resolve DNS ? Types of DNS records ? 52 | * Difference between Nginx& HTTP Server ? 53 | * Port no of HTTP, FTP, SSH, HTTPS ? 54 | * What is SSH ? How you generate SSH-keys ? 55 | * What is Private & public key ? How they authenticate ? 56 | * Configuration file of SSH ? 57 | * Configuration file of HTTP ? 58 | * What is Virtual Hosting ? How you configure virtual hosting ? 59 | * Explain ifconfigcommand ? 60 | * Difference between IPv4 &IPv6 ? 61 | * What is MAC address ?can we change the physical address ? 62 | * How to check system uptime ? 63 | * How to check memory information ? 64 | * What is SWAP ? 65 | * What is the exact memory free in your system ? 66 | * What is cache memory ? 67 | * What if you can do rm -rvf/ ? 68 | * Kinds of permission in Linux ? 69 | * What is vim &vi ? 70 | * What is pipe | ? 71 | * What is grepcommand ? 72 | * What Find command does ? 73 | * How to redirect commands output ? 74 | * What is systemd in Linux ? 75 | * What does systemctldo ? 76 | * If you run a command like nautilus in terminal, whether it will block your terminal or not ? 77 | * If yes, whats the solution of this to not to unblock the terminal without closing the command application? 78 | * What is rsyslog ? 79 | * What is SSH-tunnel ? 80 | * How to set history size ? 81 | * How to extend VG ? 82 | * What are logical & extended partitions ? 83 | * Explain the steps to reset root password at boot time ? 84 | * What are run-levels ? How many types of run levels are there ? 85 | * How we change the run level ? 86 | * How to check the logs ? 87 | * Difference between Journalctl& tail command ? 88 | * What does the subscription-manager do ? 89 | * How to archive a file ? 90 | * What is umask ? 91 | * How to kill a process ? 92 | * How to assign IP address manually ? 93 | * How to assign static IP address to a system ? 94 | * Explain the different types of Linux process states ? 95 | * What is a Zombie process ? 96 | * What is KVM ? 97 | * What is hypervisor ? 98 | * Difference between MBR &GPT ? 99 | * How you can mount a file system permanently ? 100 | * What is cron ? How to setup a cronjob ? 101 | * What is Kickstart ? 102 | * How to create a network bridge in Linux ? 103 | * Difference between iptables&firewalld 104 | * What is SElinux ? 105 | * What is ISCSI &targetcli ? 106 | * Difference between NFS &SAMBA ? 107 | * What is nfsnobody ? 108 | * What is SSHFS ? 109 | * What is Kerberos ? 110 | * How to secure NFS with Kerberos ? 111 | * What is the difference between telnet &SSH ? 112 | * What is DHCP ? 113 | * What is Kickstartfile ? 114 | * What is NTP Server ? How to configure NTP ? 115 | --------------------------------------------------------------------------------