Skip to content

Latest commit

 

History

History
52 lines (45 loc) · 2.87 KB

Devops_mock_interview_8.md

File metadata and controls

52 lines (45 loc) · 2.87 KB

Unix & Shell

  1. Lets say you have a script that will take more than a day to execute, in this case how do you run that script. Also as user you might not able to keep machine in interactive mode for longer period.
  2. is it possible to store a commands output, either success or failure to the same file?
  3. what is debug mode in shell script?
  4. set of commands executed at multiples places in shell script, want to standardize that is it possible something like to define function?
  5. In shell script can we supply parameters to functions?
  6. what is the use of shift command?
  7. difference between break and exit 0 in shell script?
  8. delete files which are older than 10 days?
  9. delete empty files in a given directory?

Monitoring

  1. what is the importance of monitoring?
  2. difference between metrics monitoring and log monitoring, give example for both type of monitoring?
  3. how do we configure endpoint in promethus to scrape the data?
  4. what is the use of node exporter and alert manager in prometheus?
  5. Can we monitor jenkins using prometheus? Also can we send mailer when jenkins is down?
  6. what are metric types that prometheus can accept?

kubernetes

  1. explain any 4 different types of pod statuses and also the reasons that why pod might go into that state?
  2. what are operators and give one example where we can use operator?
  3. what is the importance of kubeconfig file? Also lets say when you login to kuberenets by default it will pointed to default namespace, if i want list any objects which are other namespace need concate -n option for all the kubectl commands, is there a way we can set the namaspace to aviod -n option in all the commands?
  4. given a object how do we find api version and kind with respect to cluster?
  5. any work around to bring one pod out of rotation, when multiple replicas has been deployed?

Jenkins

  1. list of best practices to follow while writing Jenkins pipeline?
  2. Is it possible to run each stage on different agaent?
  3. Is it possible to change success or error message that we see in console ouput ?
  4. Have list of command that has to executed in certain directory in the code, is it possible to do the same?
  5. Can we have versioning on Jenkins freestyle job?

Ansible

  1. Is it possible to set fact using ansible playbook?
  2. can we concate line to exsisting file in remote server, example exporting env variable in bashrc? ( also imporatnt when the playbook runs again if the value exsists then you should not insert)
  3. Difference between copy and template module?
  4. In one of the template file need to use remote machine ip, how do we read the machine ip value?

Devops General Interview Questions

  • Daily activites of devops engineer
  • challenges that you have faced while working devops
  • what are the envirnments which are there in the organization
  • How the deployents move from one env to other env