├── AWS ├── Ansible ├── Containerisation ├── DevOPS ├── DevOps ├── Git ├── Linux └── README.md /AWS: -------------------------------------------------------------------------------- 1 | # Interview-Questions 2 | AWS-Devops Questions 3 | 4 | What kind of instances have you created in AWS ? 5 | What is the context level cache in AWS ? 6 | What is NAT gate way and IGW ? 7 | How can you access data in AWS EBS ? 8 | How to configure SSL in ALB ? 9 | How to use Replica in S3 ? 10 | What is RDS? 11 | What is route table ? 12 | What is VPC ? 13 | What is the differences between Public and private subnets ? 14 | While you create Nat gateway which subnet do you use ? what are all the parameters do you consider ? 15 | How does the load balancer works ? 16 | How do you handle the point in spike ? 17 | 18 | 19 | 20 | 21 | 1.How do you increase RAM for a EC2 instance? 22 | 23 | 2. How do you maintain DR in a cloud? 24 | 25 | 3. How do you configure SSL in Tomcat? 26 | 27 | 28 | 1.what is chef work flow 29 | 30 | 2.how we get the properites of node 31 | 3.what is resourse 32 | 4.what is diff b/w chef server and chef client 33 | 5.what is run list 34 | 6.what is diff b/w cookbook and recipe 35 | 7.how bootstrap will work & what is process 36 | 8.which language chef deploy 37 | 38 | 39 | 1) tell me your roles and responsabilites ? 40 | 41 | 2) what is python- boto ? 42 | 43 | 3) are you using private cloud ? 44 | 45 | 4) how to create the aws instances using configuration tools ? 46 | 47 | 5) asking on modules ? 48 | 49 | 6) ci/cd work flow ? 50 | 51 | 7) asking about plugins in jenkins ? 52 | 53 | 8) explain ansible playbook ? 54 | 55 | 9) how to deploy the artifacts ? 56 | 57 | 10) how to build the artifacts ? 58 | 59 | 11) git fetch ? 60 | 61 | 12) git pull ? 62 | 63 | 13) Difference between COPY and ADD in dockerfile ? 64 | -------------------------------------------------------------------------------- /Ansible: -------------------------------------------------------------------------------- 1 | Ansible Interview Questions 2 | 3 | 4 | 1. What is inventory file used for and default inventory host location? 5 | 6 | The Ansible inventory file defines the hosts and groups of hosts upon which commands, modules, and tasks in a playbook operate. The file can be in one of many formats depending on your Ansible environment and plugins. The default location for the inventory file is /etc/ansible/hosts. If necessary, you can also create project-specific inventory files in alternate locations. 7 | 8 | 2. What is ansible configuration file used for and its default path? 9 | 10 | If you want to modify some settings in ansible we will use ansible configuration file. The default path will be /etc/ansible/ansible.cfg 11 | 12 | 3. Do you write your inventory file? 13 | Yes 14 | 15 | 4. How many types of variables and precedence? 16 | 17 | There are almost 16 variable precedence in ansible where extra vars have highist precedence 18 | 19 | 5. Write the command to find the python version on nodes? 20 | 21 | 6. What is the file structure of ansible roles? 22 | 23 | Ansible roles can be as complex or as simple as you need. Sometimes, it is helpful to start simple and iterate into a more complex role as you shore up the base functionality. 24 | 25 | 7. What happen when one node or instance is unreachable? 26 | 27 | 8. What happen when one task is failed in playbook? 28 | 29 | 9. I have 20 servers , I want to install one package in 5 servers and other package in next 5 servers..like that How to write in ansible script for that…Explain? 30 | 31 | 10. What is the architecture of ansible? 32 | 33 | 11. How do I supply variables while executing the playbook in ansible? 34 | 35 | 36 | 12. Explain about the tags in ansible? 37 | 38 | 39 | 13. How to execute failure playbook again? 40 | 41 | 42 | 43 | 14. How is ansible diffrent than any other configuration management tool? 44 | 45 | 46 | 15. Ansible playbooks are written in what format? 47 | 48 | 49 | 16. What is a module in Ansible? 50 | 51 | 17. What is inventory used for in ansible? 52 | 53 | 18. Name three places where ansible variables can be stored? 54 | 55 | 19. What connection anible establishes with linux and windows node. 56 | 57 | 20. Diffrence between Remote and local execution in ansible. 58 | 59 | 21. What is the purpose and location of ansible.cfg file. 60 | 61 | 22. Name any two settings from anible.cfg file. 62 | 63 | 23. Please write below a sample inventory file with host, group & group of groups syntax in it. 64 | 65 | 66 | 24. What is the diffrence between group_vars & host_vars directory? 67 | 68 | 25. What are adhocs commands used for & write below syntax of a ad hocs command? 69 | 70 | 26. Write below ad hoc command to gather fact varibales on all the hosts from the inventory file? 71 | 72 | 27. What format does ansible ad hoc command returns the output? 73 | 74 | 28. Name three types of modules in ansible? 75 | 76 | 29. Name any 10 modules in ansible that you have used. 77 | 78 | 30. How to list all the ansible core modules from command line. 79 | 80 | 31. How to display all the options/attributes for apt module from command line. 81 | 82 | 32. How can you check mandatory option for any module from command line? 83 | 84 | 33. What is setup module used for? 85 | 86 | 34. Write down sample global play declaration 87 | 88 | 35. Write down any two tasks from playbook with its proper format and names. 89 | 90 | 36. Whats is the diffrence between sudo and become module and its purpose. 91 | 92 | 37. Write down playbook syntax of starting ntp service on webserver and dbservers host group at once. 93 | 94 | 38. How to take user input from a playbook? 95 | 96 | 39. What is debug module used for in playbooks? 97 | 98 | 40. How to store output of any task into a varible from playbook? 99 | 100 | 41. What are handlers used for in ansible and how is it diffrent from tasks? 101 | 102 | 42. Conditional execution in ansible is used for what purpose and write down its syntax with small description? 103 | 104 | 43. What are templates used for and its format? 105 | 106 | 44. What are ansible roles and its purpose? 107 | 108 | 45. Command to generate ansible roles directory structure. 109 | 110 | 46. Name 5 directories from ansible roles. 111 | 112 | Ansible interview Questions 113 | 114 | 115 | 47. What is {{ }} symbol used for in ansible. 116 | 117 | 48. Write down all the places where we can define variables according to its precedence. 118 | 119 | 49. Write down syntax of dictionary variable? 120 | 121 | TRUE or FALSE 122 | 123 | 124 | 50. Setup module gets executed after executing any ad hoc command. 125 | True 126 | False 127 | 128 | 51. Anible playbooks are written in XML format. 129 | True 130 | False 131 | 132 | 52. ansible.cfg file is list of plays. 133 | True 134 | False 135 | 136 | 137 | 138 | 53. Fact variables is generated by ansible and we do not need to create fact varibales. 139 | True 140 | False 141 | 142 | 54. Anible is written in Python langueage. 143 | True 144 | False 145 | 146 | 55. Ansible works on Master and client relationship, where ansible control server package is installed on master and ansible client package is installed on all the clients. 147 | True 148 | False 149 | 150 | 56. Ansible loop module is with_items. 151 | True 152 | False 153 | 154 | 57. All the templates in ansible roles has to be defined in main.yml file inside templates directory. 155 | True 156 | False 157 | 158 | 58. All the roles uploaded in ansible galaxy website is written and owned by Ansible inc(organization). 159 | True 160 | False 161 | 162 | 59. Ansible can only get installed on Linux machine but can manage Linux and windows nodes. 163 | True 164 | False 165 | 166 | 167 | 60. Write a Ansible task that can copy the file to remote location with the ownership of Jboss? 168 | 169 | 170 | 61. What is local action in Ansible? 171 | 172 | 173 | 62. What are the roles in Ansible? 174 | 175 | 176 | 63. Write a playbook for installation of apache in ubuntu and centos? 177 | 178 | 179 | 64.How to create a role in ansible? 180 | 181 | 182 | 65. Different types of inventories in ansible? 183 | 184 | 185 | 66. if we want system information of machine how we will get the data with ansible like we use facter in puppet ? 186 | 187 | 67. In which language we write playbooks in ansible? 188 | 189 | 68. Activity that we use with ansibles or advantage Functionality or purpose of ansible using in your project? 190 | 191 | 69. How to launch an LDAP server using ansible? 192 | 193 | 70. How ansible works.. and what are the playbook written other than the basic playbooks ? 194 | 195 | 71. For example there are 4 aps server running and 4 websers running and we have a new code change and this change should automatically copy to these different servers using ansible, how I will come to know new code is generated. 196 | 197 | Use Jenkins with POLL SCM option and after artifact is generated using ansible to push suing copy module. 198 | 199 | 72. Have u done any automation like app goes down then for self healing of the app kind of the thing. 73 .Have u written any playbook. Explain it 200 | 74. what is a dynamic inventory in ansible? 201 | 75. How can you manage cloud services with ansible? 202 | 76. How can you protect sensitive information in ansible? 203 | 77. How can you save the output of module execution in ansible? 204 | 78. How can you manage error handling? 205 | 79. what are conditionals in ansible? 206 | 80. write a playbook to create AMI on AWS? 207 | 81. How can you the fact varibales in ansible? 208 | 82. can we create an ansible module ? 209 | 83 . How can you do provisioning with ansible? 210 | 84 . BASH Vs Python Vs Configuration Management Tools? 211 | 85. How can you update a single table in a Database with ansible? 212 | 86. What type of roles you used in your playbook explain ? 213 | 87. How to create and use the Dynamic inventory ? 214 | 88. Write a playbook for installing AppDynamics and configure the agents for the same ? 215 | -------------------------------------------------------------------------------- /Containerisation: -------------------------------------------------------------------------------- 1 | Interview questions 2 | 3 | 1) What is docker why we are using docker difference between vm? 4 | 2) What is docker cloud & how it is different from docker hub what is the features over docker hub ? 5 | 3) What is docker compose ? 6 | 4) How you will link when the docker containers is in different virtual machine is there any configuration in docker compose file are any command or any variable? 7 | 5) What you will do if one master got corrupted, can we create multiple masters? 8 | 6) What you will do in case any pod deleted? 9 | 7) What is namespaces in kubernetes can you tell me some? 10 | 8) Can you tell me some commands using in kubernetes ? 11 | 9) Tell me the command to create cluster? 12 | 10) Difference between rc and rs? 13 | 11) What is kubernetes? 14 | 12) What is the difference between kubctl & kops? 15 | 13) Why you are using kubectl can you explin why we are using ? 16 | 14) Why we using kops? 17 | 15) What is the difference between docker cloud and docker swarm? 18 | 16) How to attach a volume in cluster at some time the container will be deleted then rs will re-create new container then how to attach that container automatically and how to restore the volume automatically to re-created container? 19 | 17) How many projects you used kubernetes? 20 | 18) N number of docker containers deployed to different vms how will you manage there is no kubernetes installed? 21 | 19) If installed kubernetes how you will deploy this containers into kubernetes cluster? 22 | 20) Can you tell me the command for creating kubernetes cluster in vm? 23 | 21) How many nodes we required to create kubernetes cluster? 24 | 22) We have nearly 15 nodes in my organization all are decentralized so which node I need to create as a master? Is their any possibility to make all the machines as masters? 25 | 23) Our applications are decentralized I don’t want distributed environment if any thing happens to the master all will collapse , can we create multiple masters? 26 | 24) What is the difference between kubectl and minikube? 27 | 25) If any container down in my cluster how you will rectify? 28 | 26) How do you manage your application secrets in k8s? 29 | 30 | 31 | Echo $0 32 | 33 | 27) How to write a script when the first command is executed then execute the below script? 34 | 35 | A) Java --version 36 | If [ $? –eq 0 ] 37 | Then 38 | Echo “print the variable ” 39 | Else 40 | Echo “prin the variable” 41 | fi 42 | 28) How to print the exact file name by using command ? 43 | 44 | A) First assign path as a variable 45 | 46 | awk -F '/' '{print $(NF-1)}' <<< "$a" 47 | 48 | 29) Can you tell me the syntax for for loop and while loop? 49 | 30) How to dictionary in python? 50 | 51 | A) Dict={a:10,b:10} 52 | 53 | 54 | 31) How to add another variable c, with key 10 to the above dictionary ? 55 | 32) How to replace existing dictionary? 56 | 57 | Dict=[c:10] 58 | 59 | 33) How to print shell name? 60 | 34) How to assign a all the arguments to a single variable? 61 | 35) How to print the current processid of current shell? 62 | 36) How to know the file that is entering randomly to my script? 63 | 37) How to divide two variables in shell script? 64 | 38) What is trap? 65 | 39) What is shift in shell script? 66 | 40) How to run our script in background? 67 | 41) How to know the running back ground process id ? 68 | 42) What is $*, $$ and $@? 69 | 43) How to print only directories? 70 | 44) How to print the directory only started with number? 71 | 45) How to grep two strings at a time? 72 | 46) How to grep a string that is started with some string and ends with some string like a…..b ? 73 | 47) How to print string that starts with a? 74 | 48) Did you worked on arrays? 75 | 49) How will you give access of your script to a particular user? 76 | 50) How to access background running scripts and their pid? 77 | 51) How to run our script in foreground? 78 | 79 | 80 | 1) Current roles & responsibilities? 81 | 82 | 2) What is Docker compose? 83 | 84 | 3) What is Docker server version? 85 | 86 | 4) What are the advantages of Docker? 87 | 88 | 5) How do you setup Docker in Jenkins in production environment? 89 | 90 | 6) How do create Docker image from Docker file? 91 | 92 | 7) How do you deploy the Docker image generated in the testing environment to 93 | production environment in Jenkins? 94 | 95 | 8) What is Docker data centre? 96 | 97 | 9) What is Docker hub & uses? 98 | 99 | 10) What are the types of Docker networks? 100 | 101 | 11) How do you define network in the Docker compose file? 102 | 103 | 12) What are the basic parameters required in the Docker compose file? 104 | 105 | 13) What is Docker interlock? 106 | 107 | 14) What is overlay networking? 108 | 109 | 15) How to communicate between 2 containers present in separate network? 110 | 111 | 16) How to store the data present in the Docker container in the AWS? 112 | 113 | 17) If we define the Docker volume in the docker compose file is it possible to share 114 | data with the EFS, NFS? 115 | 116 | 18) Differnce between image and container 117 | 118 | 19) How to Run containers 119 | 120 | 20) Why we need to mention dual ports(8080:8080) in docker run command 121 | 122 | 21) Differnce between Copy and Add 123 | 124 | 22) How to write a docker file to deploy a war file 125 | 126 | i. We have private repository and don’t have base images .how can deploy a war file? 127 | 128 | ii. Write a simple docker file to deploy a war file by using base images? 129 | 130 | 23) Difference between docker compose and docker swarm 131 | 132 | 24) Why we need to use docker compose? 133 | 134 | 25) Tell me about Docker Network 135 | 136 | 26) What is the difference between Docker Swarm ,Compose and Kubernetes ? 137 | 138 | 27) How does the containers communicate when the containers are running in different hosts? 139 | 140 | 28) What is the difference between CMD and RUN 141 | 142 | 29) How can you transfer the data from one container to another ? 143 | 144 | 30) How do you monitor your containerized applications? 145 | 146 | 147 | -------------------------------------------------------------------------------- /DevOPS: -------------------------------------------------------------------------------- 1 | DevOps Interview Questions 2 | 3 | ================================================ 4 | Questions covers the below tools/topics 5 | ================================================ 6 | GIT 7 | Jenkins 8 | Ansible 9 | Dockers & Containers 10 | Kubernetes 11 | OpenShift 12 | AWS 13 | CI/CD 14 | Scripting(Shell/Python) 15 | Infra as a code (Terraform or Cloud Formation) 16 | Linux (RHEL) 17 | Monitoring (Application Monitoring, Log monitoring) 18 | 19 | 20 | -------------------------------------------------- 21 | GIT 22 | ------------------------------------------------- 23 | * What is GIT ? 24 | * What is difference between GIT & Github ? 25 | * Why we use GIT ? 26 | * What is SCM & VCS ? 27 | * What are the process of pushing the code to Github Repository ? 28 | * Why do we commit ? 29 | * What are the commands of GIT to push the code ? 30 | * How you can merge a git repository with another ? 31 | * What is branching in git ? 32 | * Different types of branching in GIT ? 33 | * What is merge conflict in git ? 34 | * How you can resolve merge conflict if you are merging same 35 | project and in the same branch ? 36 | 37 | ==================================================== 38 | Jenkins 39 | ==================================================== 40 | 41 | * What is Jenkins ? 42 | * Why we use Jenkins ? 43 | * What are the other tools/technologies present in market other than 44 | Jenkins for CI/CD ? 45 | * How to move Jenkins from one server to another ? 46 | * How to create Jenkins backup ? 47 | * What are plugins in Jenkins ? 48 | * What are the default plugins installed in Jenkins ? 49 | * How to schedule builds in Jenkins ? 50 | * Difference between Ant, Maven, Gradle ? 51 | * Difference between Jenkins, Teamcity and Bamboo ? 52 | * How to configure a cloud access in Jenkins ? 53 | * What is Jenkins slaves ? 54 | * How to run a groovy script in Jenkins ? 55 | * What is Jenkins Pipeline ? 56 | * What are different types of Jenkins Pipeline ? 57 | * What is Declarative pipeline in Jenkins ? 58 | * Is Jenkins a CI tool or both CI/CD ? 59 | * How to install Jenkins with non root access in Linux ? 60 | * If you have 200 employees in your company, how you can assign Jenkins 61 | access to these employee how you can give permission in Jenkins ? 62 | 63 | Jenkins Task 64 | 65 | Task 1 66 | Write the Jenkins pipeline code for Java & Php application 67 | Task 2 68 | Write the Jenkinsfile code to build a Java application with Maven with error handling 69 | Task 3 70 | Complete the following tasks: 71 | 1. Jenkins setup on linux 72 | 2. Setup app server with apache to deploy an app. 73 | 3. create three jobs on jenkins 74 | 4. Pull the code from git repo 75 | 5. Build the application 76 | 6. deploy an app on apache using ansible. 77 | 7. app deploy should work with single trigger hit(git pull job -> build app -> deploy on apache server) 78 | 8. job should get triggered on git push on git repo 79 | 80 | Ansible 81 | 82 | * What is Ansible ? 83 | * What is Configuration Management ? 84 | * Is Ansible only a tool for Configuration Management ? 85 | * What are the components of Ansible ? 86 | * How Ansible works ? 87 | * What are the other tools in market other than Ansible ? 88 | * How Ansible is different from Chef & Puppet ? 89 | * What is Inventory in Ansible ? 90 | * What are the types of Inventories ? 91 | * What is play & playbook ? 92 | * Difference between hosts & groups ? 93 | * What is Roles ? 94 | * How to install a Role ? 95 | * How to install multiple roles ? 96 | * How to create roles ? 97 | * What is Dynamic Inventory & when we use it & for what ? 98 | * Where is the Ansible Configuration file located ? 99 | * What are the different ways other than SSH by which Ansible 100 | can connect to remote hosts ? 101 | * What is variable in Ansible ? 102 | * What are different types of variables ? 103 | * How to assign variables in group vars & hosts vars ? 104 | * Difference between File & Template directory in Roles ? 105 | * Difference between default & vars directory in Roles ? 106 | * What is Jinja 2 template ? 107 | * What is modules in Ansible ? 108 | * Difference between COPY & FILE modules ? 109 | * Difference between SHELL & COMMAND modules ? 110 | * What is Setup module ? what it does ? 111 | * What is register & debug in Ansible ? 112 | * What is changed_when in Ansible ? 113 | * Can we disable automatic facts gathering in Ansible ? 114 | * How error handling can be done in Ansible ? 115 | * How to ignore failed commands in Ansible ? 116 | * What is handlers ? Why we use Handlers in Ansible ? 117 | * What is Privilege Escalation in Ansible ? 118 | * Task to connect(SSH) Ansible to remote host using another user & 119 | run the playbook to the remote host using with another user ? 120 | * What is Ansible vault ? 121 | * How to decrypt a vault file ? 122 | * How to encrypt a string in Ansible using Ansible Vault ? 123 | * If a string is encrypted in a file with a password then how to pass 124 | the password using parameter while decrypting ? 125 | * If a file is encrypted using password & password is stored in a file 126 | how to pass the file to decrypt the file ? 127 | * If a file is encrypted using password & password is also encrypted 128 | then how to provide the password while decrypting the file ? 129 | * What is Ansible galaxy ? 130 | * What is Tags in Ansible ? Why it is used ? 131 | * What is lookup in Ansible playbook ? 132 | * How to control the command failure in Ansible ? 133 | * How to debug your playbook ? 134 | * What is diff mode ? 135 | * What is Dry Run in Ansible & how to do that ? 136 | * What is pre task & post task ? 137 | * How you can run your all tasks at once ? 138 | * What is block in Ansible ? 139 | * What are different variable scopes ? 140 | * How variable precedence takes place ? 141 | * Difference between include & import ? 142 | * How to include custom modules in Ansible ? 143 | * Describe the role directory structure ? 144 | 145 | Ansible Task 146 | 147 | Task 1 148 | Part 1. Write Ansible playbook to automate Jenkins deployment 149 | Part 2. Write Ansible role to install Docker & setup Kubernetes cluster 150 | Automate the pipeline creation in Jenkins to create docker container & deploy on Kubernetes cluster 151 | Task 2 152 | Write ansible playbook for below tasks: 153 | 1. Install apache server and deploy sample html application 154 | 2. Create /var/www/example.com 155 | 3. deploy a sample application to the above directory 156 | 4. create a virtual host for deploy application and set it as default virtualhost 157 | 158 | 159 | Dockers & Containers 160 | 161 | * Whats is docker ? 162 | * Difference between container & VMs ? 163 | * Difference between Docker & Virtualization ? 164 | * Difference between container and image ? 165 | * How image builds ? 166 | * What are image layers ? 167 | * How image layers work ? 168 | * What is overlayfs ? 169 | * Where the image layers can be found in which directory ? 170 | * How can we check the content of each layer ? 171 | * How to check the layers stacked with image ? 172 | * What is Union Mount & AUFS ? 173 | * Why use Union mount system for Docker ? 174 | * What are the 3 different directories in /var/lib/docker/aufs ? 175 | * How to run an image ? 176 | * How to tag an image ? 177 | * How to Link one container with another ? 178 | * How do you sequence the containers? A first then B should execute after that ? 179 | * How to create a volume in docker container to store data ? 180 | * How to mount a local directory into a container ? 181 | * How to expose a port no to access container ? 182 | * What is entrypoint in docker ? 183 | * What is dockerfile ? 184 | * Difference between ADD & COPY parameters in dockerfile ? 185 | * How to create a bridge in container ? 186 | * How a container gets an internal IP ? 187 | * Can we check the process of a container inside as well as outside the container ? 188 | * Can we check the container process on docker host ? 189 | * How kernel isolates to run the container and how resources managed by the kernel ? 190 | * What is namespace and cgroups ? 191 | * What is docker-compose and docker-swarm ? 192 | * How you can give different network IP to the container ? 193 | * What are the parameters of dockerfile ? 194 | * Is there any windows container also available ? 195 | * How to stop a container ? 196 | * How to run a container in background ? 197 | * How to go inside a container if container is running in background ? 198 | * How to check running containers ? 199 | * How to remove an image ? 200 | * How to run an image which is in tar format ? 201 | * Command to check the process of a container ? 202 | * How to check resource utilisation of a container ? 203 | * How to create an image ? 204 | * How to save changes of a container ? 205 | * What are registries ? 206 | * Difference between docker commands: up, run & start ? 207 | * Can we run more than one process in a container ? 208 | * How to remove a paticular layer from a container ? 209 | * Give me a command to remove all exited conatiners ? 210 | 211 | Docker Task 212 | Part 1. Write a Docker file to create a Docker image which should have Wordpress installed 213 | Part 2. Write a Docker file to create a Docker image for database 214 | 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. 215 | 216 | 217 | Kubernetes 218 | 219 | * What is Kubernetes ? 220 | * What are Kubernetes Components ? 221 | * What is etcd ? 222 | * What is master & minion ? 223 | * How to make quorum of cluster? 224 | * What is Replication controller & what it does ? 225 | * What is ingress ? 226 | * What is RBAC and how can you configure RBAC in a k8's Cluster ? 227 | * Difference between Kubernetes & Docker Swarm ? 228 | * How can you rollbck the previous version of application in Kuberntes? 229 | * Scenario: There are 2 tables, emp, empsal if there schema changes, 230 | How does that deployment happens into containers/POD automatically? 231 | * How does container know that application is getting failure ? 232 | * Difference between nodeport, clusterIP, load balancer & ingress ? 233 | * What is kubectl & kubelet ? 234 | * What is the use of Kube-controller manager ? 235 | * What is pod ? 236 | * How many containers can run in a pod ? 237 | * How many containers can be launched in a node ? 238 | * What is the role of Kube-Scheduler ? 239 | * How the 2 pods communicate with each other ? 240 | * How 2 containers inside a pod communicate with each other ? 241 | * What is Flannel & why we use it ? 242 | * Difference between Flannel & Calico ? 243 | 244 | OpenShift 245 | 246 | * What is Openshift ? 247 | * Difference between Openshift & Kubernetes ? 248 | * What is Services Layer ? 249 | * How to expose a service in Openshift ? 250 | * What are the 3 components of any created project ? 251 | * What is router in default or in any project while creating project ? 252 | * What do you mean by identity provider in Openshift? 253 | * How do you create a New user identity ? 254 | * Where is the user identity located ? 255 | * What is project in Openshift ? 256 | * What are the types of permissions/role bindings in Openshift ? 257 | * How to check the permission of user ? 258 | * How to describe anything in Openshift ? 259 | * How to check no of projects ? 260 | * How to assign a role/permission to a user ? 261 | * What is clusterrolebinding in openshift ? 262 | * What is the process/working of POD creation ? 263 | * What is Builder POD ? 264 | * What is deployer POD ? 265 | * How to create a New application POD ? 266 | * How to check logs of POD ? 267 | * What is Deployment Configuration & why we need DC ? 268 | * What is SVC & why we need SVC ? 269 | * What is RC (Replication Controller) ? 270 | * How to check DC of POD & how to edit DC ? 271 | * How to create route ? 272 | * How to expose svc ? 273 | * How to do rollout ? 274 | * How to increase replica ? 275 | * What is Source to Image in Openshift ? 276 | * What is builder image ? 277 | * What are the process to create source to image ? 278 | * How to give the Cluster role/permission to the user ? 279 | * How to create secure route ? 280 | * What is PV & PVC ? 281 | * What are access modes in PV ? 282 | * What is node selector ? 283 | * What are the two regions in projects ? 284 | * Difference between template & Deployment Configuration ? 285 | * How to migrate whole cluster to another ? 286 | * How to manually migrate container ? 287 | 288 | AWS 289 | 290 | * What is Amazon RDS ? 291 | * What is EC2, S3, EBS ? 292 | * What is VPC & why we require to create VPC ? 293 | * Is is possible to scale an Ec2 Instance vertically ? 294 | * How is Amazon RDS, Redshift & DynamoDB different ? 295 | * How is a spot Instance different from an On-demand Instance ? 296 | * How Infrastructure As Code processed & executes in AWS ? 297 | * If your Linux-build server getting slow down, what will you do to check ? 298 | * Types of EBS storage ? 299 | * How to backup a running instance ? 300 | * How to secure s3 bucket ? 301 | * What are the security available for users to access S3 ? 302 | * How to create AMI ? 303 | * What are the main components of CloudFormation ? 304 | * What is mapping in cloudformation template ? 305 | * How is YAML different from JSON ? 306 | * Different types of ELB ? 307 | * What is autoscaling group ? 308 | * Which type of ELB is good for application load ? 309 | * What is difference between application load balancer & classic load balancer ? 310 | * What is metrics in cloudwatch ? 311 | * Is it possible to recover your lost private key ? 312 | * How can you connect your EC2 Instance if you lost your key ? 313 | * While connecting to your EC2 instances, what are the possible connection issues one might face ? 314 | * What is Subnet & how many subnets are there in a VPC ? 315 | * Why do we make subnets ? 316 | * What is routing table ? 317 | * How you can connect a private subnet with a public subnet ? 318 | * Can VPC peering possible in two different region ? 319 | 320 | AWS Task 321 | 322 | Task 1 323 | 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). 324 | Task 2 325 | 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. 326 | 327 | 328 | 329 | Scripting (SHELL/Python) 330 | Shell Task 331 | Task1 332 | 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. 333 | 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. 334 | DB user for Wordpress should also be made automatically from within the script and same should be set in Wordpress conf file. 335 | Task 2 336 | Bash script to setup a whole JAVA application stack on a server. 337 | This script should install all components needed for a Java/Grails application. 338 | 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 339 | 340 | CI/CD 341 | 342 | * What is CI & CD ? 343 | * What is CI/CD pipeline ? 344 | * Difference between Continuous Delivery & Deployment ? 345 | * List the important tools & technologies used in Devops ? 346 | 347 | Linux (RHEL) 348 | 349 | * What is Linux ? 350 | * What are Linux OS Flavors ? 351 | * Difference between Debian & RPM based OS ? 352 | * What is Kernel ? 353 | * Explain the boot process of Linux OS ? 354 | * How is RHEL different from CentOS ? 355 | * What is the Latest version of RHEL ? 356 | * What is Grub ? 357 | * Difference between Grub & Grub2 ? 358 | * What is boot loader ? 359 | * Do you think the boot process in RHEL 7 is faster than RHEL 6 ? If yes, How ? 360 | * What is .rpm & .deb ? 361 | * What is RPM ? 362 | * What is YUM ? 363 | * Different methods to install the rpm based packages ? 364 | * What is Bash ? 365 | * What is SHell ? 366 | * How many types of SHells are there ? * Explain the daily used basic commands like cp, mv, rm ? 367 | * What is the significance of touch command ? 368 | * In how many ways you can create a file ? 369 | * How to delete the content from a file ? 370 | * Explain the process/work behind hitting the google.com ? how you access google.com ? 371 | * How many types of permissions are there ? What is chmod ? 372 | * What is sticky bit ? 373 | * What is ACLs ? 374 | * What is SetGID, SetUID & Stickybit ? 375 | * Location where all the user information are stored ? 376 | * File where user password are stored ? 377 | * What is the default permission of a file ? 378 | * What is the significance of -rvf ? 379 | * What is PV, VG & LV ? 380 | * What are the types of file system ? 381 | * What is XFS ? 382 | * Can we reduce XFS file system ? 383 | * How can we extend LV ? 384 | * Command to check running process ? 385 | * Command to check RAM usage ? 386 | * Command to check Disk usage ? 387 | * Difference between ps -aux & top command ? 388 | * What are the ways to check CPU usage ? 389 | * How to check CPU details ? 390 | * Explain the steps to create a partition & how to format with file system ? 391 | * Explain the steps to create LV ? 392 | * Explain steps to reduce XFS & EXT files systems ? 393 | * Significance of .bashrc file ? 394 | * How you check the kernel version ? 395 | * How you check the Red hat release version ? 396 | * Significance of resolv.conf file ? 397 | * What is DNS ? How you resolve DNS ? Types of DNS records ? 398 | * Difference between Nginx & HTTP Server ? 399 | * Port no of HTTP, FTP, SSH, HTTPS ? 400 | * What is SSH ? How you generate SSH-keys ? 401 | * What is Private & public key ? How they authenticate ? 402 | * Configuration file of SSH ? 403 | * Configuration file of HTTP ? 404 | * What is Virtual Hosting ? How you configure virtual hosting ? 405 | * Explain ifconfig command ? 406 | * Difference between IPv4 & IPv6 ? 407 | * What is MAC address ? can we change the physical address ? 408 | * How to check system uptime ? 409 | * How to check memory information ? 410 | * What is SWAP ? 411 | * What is the exact memory free in your system ? 412 | * What is cache memory ? 413 | * What if you can do rm -rvf / ? 414 | * Kinds of permission in Linux ? 415 | * What is vim & vi ? 416 | * What is pipe | ? 417 | * What is grep command ? 418 | * What Find command does ? 419 | * How to redirect commands output ? 420 | * What is systemd in Linux ? 421 | * What does systemctl do ? 422 | * If you run a command like nautilus in terminal, whether it will block your terminal or not ? 423 | * If yes, whats the solution of this to not to unblock the terminal without closing the command application? 424 | * What is rsyslog ? 425 | * What is SSH-tunnel ? 426 | * How to set history size ? 427 | * How to extend VG ? 428 | * What are logical & extended partitions ? 429 | * Explain the steps to reset root password at boot time ? 430 | * What are run-levels ? How many types of run levels are there ? 431 | * How we change the run level ? 432 | * How to check the logs ? 433 | * Difference between Journalctl & tail command ? 434 | * What does the subscription-manager do ? 435 | * How to archive a file ? 436 | * What is umask ? 437 | * How to kill a process ? 438 | * How to assign IP address manually ? 439 | * How to assign static IP address to a system ? 440 | * Explain the different types of Linux process states ? 441 | * What is a Zombie process ? 442 | * What is KVM ? 443 | * What is hypervisor ? 444 | * Difference between MBR & GPT ? 445 | * How you can mount a file system permanently ? 446 | * What is cron ? How to setup a cron job ? 447 | * What is Kickstart ? 448 | * How to create a network bridge in Linux ? 449 | * Difference between iptables & firewalld 450 | * What is SElinux ? 451 | * What is ISCSI & targetcli ? 452 | * Difference between NFS & SAMBA ? 453 | * What is nfsnobody ? 454 | * What is SSHFS ? 455 | * What is Kerberos ? 456 | * How to secure NFS with Kerberos ? 457 | * What is the difference between telnet & SSH ? 458 | * What is DHCP ? 459 | * What is Kickstart file ? 460 | * What is NTP Server ? How to configure NTP ? 461 | 462 | Monitoring 463 | 464 | * Why we use monitoring ? 465 | * What are the different tools & technologies for monitoring ? 466 | * How we monitor our applications & servers differently ? 467 | * What is Prometheus ? How is different from other monitoring tools ? 468 | * What is ELK stack ? 469 | * Why we use Grafana ? 470 | * How we query different outputs in Prometheus ? 471 | * What type of graph can be implemented in Grafana ? 472 | -------------------------------------------------------------------------------- /DevOps: -------------------------------------------------------------------------------- 1 | 1.Tell me about u r self briefly 2 | 3 | 2. Roles and Responsibilities 4 | 5 | 3.How to create virtualhost in apache 6 | 7 | 4.Versions(like ansible, git, mysql,) 8 | 9 | 5. Write a playbook for installation of apache in ubuntu and centos 10 | 11 | 6. Document root of apache and tomcat 12 | 13 | 7. what is the configuration file in tomcat 14 | 15 | 8.Defaults port numbers(apache, tomcat, mysql) 16 | 17 | 9.How to connect client and server(windows to linux) 18 | 19 | 10.What is SSH 20 | 21 | 11.What are Docker file commands 22 | 23 | 12.How to create a link between two containers 24 | 25 | 13.How to port forward in dockerfile 26 | 27 | 14.Difference between small 'p' and capital 'P'(Docker) 28 | 29 | 15.How to create a job in Jenkins 30 | 31 | 16.What plugins are u used in your project 32 | 33 | 17.How to create a role in ansible 34 | 35 | 18.what are challenges you are faced? 36 | 37 | 19. Are u faced performance issue 38 | 39 | 20.How to launch a instance from AWS ? 40 | 21. Tell me exactly what does mysqldump do? 41 | 42 | 43 | 21.how to merge the code 44 | 45 | 22. How to write custom scripts in Maven 46 | 47 | 23.how to find a specific line in a file 48 | 49 | 24. Are u involved in ShellScripts 50 | 51 | 25. How to configure yaml file in vagrant file 52 | 53 | 26. How does the SSH communicate with bash while passing username and Password ? 54 | -------------------------------------------------------------------------------- /Git: -------------------------------------------------------------------------------- 1 | Git Interview Questions 2 | 1. What is Version control system or Source code manager? 3 | 2. Benefits of VCS or SCM? 4 | 3. What is Git and What is a repository in GIT? 5 | 4. Diffrence between Git and SVN? 6 | 5. Two types of git authentication? 7 | 6. Branches in Git and its purpose? 8 | 7. What is Pull requests? 9 | 8. How to install git in Linux & Windows? 10 | 9. How to setup repository though command line? 11 | 10. How to setup repository in github and clone it? 12 | 11. What is git clone command used for? 13 | 12. What is git config command user for? 14 | 13. Git config data is stored in what location? 15 | 14. Git config global and local files? 16 | 15. Content of git config file? 17 | 16. Git add command’s purpose? 18 | 17. How to remove/rename files in local git repo? 19 | 18. git commit command’s purpose? 20 | 19. How to sync local git repo data with github? 21 | 20. git fetch? 22 | 21. git merge? 23 | 22. git pull? 24 | 23. How to change branches in local git repo? 25 | 24. What is the difference between ‘git remote’ and ‘git clone’? 26 | 25. git status? 27 | 26. What is the function of ‘git rm’? 28 | 27. What is the function of ‘git checkout’ in git? 29 | 28. What is the use of ‘git log’? 30 | 29. Explain what is commit message? 31 | 30. How to setup github ssh authentication? 32 | 31. What is git webhooks? 33 | 33.Tell me the branching strategies you followed for your project? 34 | 34. What is git rebase? 35 | 35. What is git stash? 36 | 36. What is the difference between git pull and git fetch? 37 | 37. Differnce between git and svn? 38 | 38. Advantages of git compare with svn? 39 | 39. Explain about staging area in git? 40 | 40. How do you check after git merge …where merging is correctly or not? 41 | 41. How to create branch and delete a branch? 42 | 42. Do you get any conflicts while merging..how can u resolve conflicts? 43 | 43. How can u implement authentication and authorization in git? 44 | 44. What is the difference between git rebase and git merge? 45 | 45. How to merge the code? 46 | 46. Pull request in git hub - ---git pull 47 | 47. Forking a repository in git hub? 48 | 48. Diff between svn and git ---svn is centralized version control and git is Distributed Version Control.? 49 | 49. What is forking in git repositories? 50 | 50. explain about soft and hard reset and their difference? 51 | 51. What kind of branching and merging you worked on GIT. 52 | 52. with this kind of environment and the git release branching, does it work in Agile methodology? 53 | 53. What is tagging in GIT and what is the diff between feature branching and tagging? 54 | 54. How can you restrict a user to push the code to the repository only if the code does not meet the quality ? 55 | 55. When will you perform Git rebase and git revert and git Merge ? Why? 56 | -------------------------------------------------------------------------------- /Linux: -------------------------------------------------------------------------------- 1 | 1. script/command to delete last word from every line in a file 2 | 3 | awk '{gsub("[a-zA-Z0-9]*$", "");print}' 4 | 5 | To replace last word with hello in every line 6 | 7 | awk '{gsub("[a-zA-Z0-9]*", "hello");print}' 8 | 9 | 2.script/command to find the files with more than 1gb size 10 | 11 | find -size +1G -type f 12 | 13 | 3. What is Swap Space? 14 | 4. What is the maximum length for a file name in Linux? 15 | 5.Which partition stores the system configuration files in Linux system? 16 | 6. Which command is used to uncompress gzip files? 17 | 7. What is the difference between soft and hard mounting points? 18 | 8. What are the file permissions in Linux? 19 | 9. more questions are from sed, find and awk . 20 | 10. How to check Memory stats and CPU stats as a Linux admin? 21 | 11.How to reduce or shrink the size of LVM partition? 22 | 12. How can you enhance the security of password file? 23 | 13. What is the difference between Cron and Anacron? 24 | 14. What command is used to check the number of files, disk space and each user’s defined quota? 25 | 15. how can you manage memory in linux machines? 26 | 16. 18. What is the name and path of the main system log? 27 | 17. how to manage logical volumes? 28 | 18. Explain /proc filesystem? 29 | 19. What are the fields in the/etc/passwd file? 30 | 20. How do you terminate an ongoing process? 31 | 21. How can you know the execution time of a command? 32 | 22. How can you append one file to another in Linux? 33 | 23. How you can run an Linux program in the background simultaneously when you start your Linux Server? 34 | 24. How to check previous command is success or not ? 35 | 25. Give me a command to create a file with specific size ? 36 | 26. How can you mount an extra disk to an existing filesystem ? 37 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Interview-Questions 2 | AWS-Devops Questions 3 | 4 | --------------------------------------------------------------------------------