- Mock interview video - https://youtu.be/lXGAJElFxaA
- Mock interview Answers - https://youtu.be/7WJ31VFk1_Y
- 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?
- 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?
- what is submodule and why we need submodule?
- 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?
- 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?
- what is transitive dependency?
- Have you worked on commit based job in jenkins? what settings you need to do in jenkins and github to setup commit based job?
- you want to create 50 freestyle jobs with same configurations, but only change is job name. how would you achieve the same?
- How can you copy job from your local jenkins instance to other local jenkins instance?
- write a script which accepts file or folder, if its folder delete it else print "this is a file"?
- How to check whether particular port is already in use or not?
- Logic for checking whether supplied string for a script is palindrome or not? what are all the commands you will use?
- command to get number of lines in a file?
- 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?
- what are ansible roles? why we need ansible roles? have you worked on ansible galaxy?
- What are ansible facts?
- 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?
- Have you worked on multi-stage dockerfile and why we need that?
- Lets say i have container which is attached with a volume, if container crashes what happens to volume?
- can you copy a file form local to run container?
- what is init container and side-car container?can you give simple scenario where we use these conatiners?
- which one is default deployment strategy? how it works?
- command to check the container logs in pod?
- what are the types of services present in kubernetes?
- What is the link between pod and service?