Skip to content

Latest commit

 

History

History
50 lines (41 loc) · 3.56 KB

Devops_mock_interview_2.md

File metadata and controls

50 lines (41 loc) · 3.56 KB

GIT

  1. Lets say your organization has github and bitbucket to store code, you have cloned a repo onto your local and changed directory name. after some days one of your team members asks you to share clone link, how would you provide the same?
  2. I have shell script to delete particular dependency ( repo is maven project ). before running the script i need to clone repo to my local, here point to note i should only clone master branch and only last commit ( last commit has all the code ) how would you do this?
  3. what is submodule and why we need submodule?
  4. Lets say you have changed 5 files a,b,c,d and e in a repo and you did git add ., now all the files are in staging area, now i decided not to commit file d. how would delete it from staging area?

Maven

  1. what is multi module project in maven and what are the setting you want to do in multi module parent and child project? what is dependency management?
  2. what is transitive dependency?

Jenkins

  1. Have you worked on commit based job in jenkins? what settings you need to do in jenkins and github to setup commit based job?
  2. you want to create 50 freestyle jobs with same configurations, but only change is job name. how would you achieve the same?
  3. How can you copy job from your local jenkins instance to other local jenkins instance?

Unix and Shell scripting

  1. write a script which accepts file or folder, if its folder delete it else print "this is a file"?
  2. How to check whether particular port is already in use or not?
  3. Logic for checking whether supplied string for a script is palindrome or not? what are all the commands you will use?
  4. command to get number of lines in a file?

Ansible

  1. Lets say i have 4 machines consider 1 as ansible master other 3 as nodes, what are the basic setup you need to do for ansible cluster?
  2. what are ansible roles? why we need ansible roles? have you worked on ansible galaxy?
  3. What are ansible facts?
  4. Can we have windows machine as ansible master? as node?have you worked on any windows modules? can you list few?any extra configuration do we need to do?

Docker

  1. Have you worked on multi-stage dockerfile and why we need that?
  2. Lets say i have container which is attached with a volume, if container crashes what happens to volume?
  3. can you copy a file form local to run container?

Kubernetes

  1. what is init container and side-car container?can you give simple scenario where we use these conatiners?
  2. which one is default deployment strategy? how it works?
  3. command to check the container logs in pod?
  4. what are the types of services present in kubernetes?
  5. What is the link between pod and service?