Skip to content

Latest commit

 

History

History
53 lines (46 loc) · 3.73 KB

Devops_mock_interview_1.md

File metadata and controls

53 lines (46 loc) · 3.73 KB

GIT

  1. Why we need git? What makes git unique from other tools like SVN?
  2. Let's say i have maven repo cloned on to my local, did some changes and i have build the code now target folder will be generated. So now when i do git operations like git add, git commit or any other git operations target folder should not be considered, how would you achieve the same?
  3. difference between git pull and git fetch?
  4. How to clone specific branch in git?

Maven

  1. when i issue mvn install what all things happen in background?
  2. what are the settings you need to do before running mvn deploy?
  3. why maven takes much time for 1st execution and from 2nd execution it will take less time?

Unix and Shell Scripting

  1. How to get present working folder?
  2. How to copy files from local windows machine to cloud based Linux machine?
  3. A shell script named test.sh can accept 4 parameters i.e, a,b,c,d. the parameters wont be supplied in order always and number of parameters might also vary( only 2 parameters user might supply sometimes), how to identify position of letter c?

Ansible

  1. Why we need ad-hoc ansible commands, scenario where you have used ansible ad-hoc command?
  2. When i need detailed logs on executing ansible playbook what option i need to use?
  3. what is ansible.cfg file?
  4. what are the modules have you worked on? which module will you use for getting the file from node to master?
  5. Lets say i have a playbook which has 5 tasks in playbook, first 2 tasks should run on local machine and other 3 tasks should run on node?

Jenkins

  1. How to save only last 5 builds of jenkins job?
  2. Have you worked on Jenknsfile? can we use docker container as a node in Jenkinsfile? Who will handle docker container creation and deletion? If i am building a maven project always docker container is fresh instance it will try to download dependency from repository, what measures you will take to reduce build time?
  3. Why we need multi branch pipeline?
  4. If you forget Jenkins password, how would you login back?

Docker

  1. Any 3 best practices of docker?
  2. Difference between docker stop and docker kill?
  3. Command to list conatiners which state is exited?
  4. command to clean-up docker host ( deleting stopped conatiners, dangling images and unused networks)?
  5. What version of docker you have used? Specific reason to use that particular version?
  6. Can we have multiple CMD in Dockerfile?
  7. Have you worked on docker swarm and docker compose?

Kubernetes

  1. Can we have multiple conatiners in a pod? Can we have similar conatiners in a pod? Lets say i have 4 conatiners, one of them has failed how would you check which container has failed?
  2. What is liveness and readiness probe? Why we need them?
  3. Have you worked on kubernetes monitoring? Which tools you have used?
  4. Can we deploy a pod on particular node?