Home Machine learning ARTIFICIAL INTELLIGENCE Devops Interview questions and answers | Devops mock interview 1 Answers

Devops Interview questions and answers | Devops mock interview 1 Answers


This video covers the answers for Devops mock interview 1

Please do watch mock interview video – https://youtu.be/i7YJesoeWFI

Git hub link – https://github.com/DeekshithSN

If you wish to support me :- https://www.paypal.com/paypalme/DeekshithSN?locale.x=en_GB

List of questions

————————————————————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 —————————————————————–
5. when i issue mvn install what all things happen in background?
6. what are the settings you need to do before running mvn deploy?
7. why maven takes much time for 1st execution and from 2nd execution it will take less time?

——————————————— Unix and Shell Scripting ————————————————————
8. How to get present working folder?
9. How to copy files from local windows machine to cloud based Linux machine?
10. 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?

11. Why we need ad-hoc ansible commands, scenario where you have used ansible ad-hoc command?
12. When i need detailed logs on executing ansible playbook what option i need to use?
13. what is ansible.cfg file?
14. what are the modules have you worked on? which module will you use for getting the file from node to master?
15. 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?

16. How to save only last 5 builds of jenkins job?
17. 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?
18. Why we need multi branch pipeline?
19. If you forget Jenkins password, how would you login back?

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

27. 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?
28. What is liveness and readiness probe? Why we need them?
29. Have you worked on kubernetes monitoring? Which tools you have used?
30. Can we deploy a pod on particular node?

#devops #devopsvideos #devopstutorial #jenkins #jenkinsvideos
#jenkinstutorial #docker #dockertutorial #devopsprojects
#devopsrealtime #devopshandson #devopsinterview #devopsissues
#devopspracticals #ansible #ansibletutorial #monitoring
#prometheus #maventutorial #kubernetes #kubernetestutorial
#cicd #jenkinspipeline #pipeline #terraform #terraformtutorial
#devopstraining #realtimetrainingdevops #handson


Previous articleDevops Interview questions and answers | Devops mock interview 1 Answers
Next articlePreparing for a Python Interview: 10 Things You Should Know


Please enter your comment!
Please enter your name here