Menu ×

Interview Preparation Guide

Most Asked DevOps Interview Questions

Here we have compiled the most probable DevOps interview questions asked in the industry. You will learn about software version control, Git repository, reverting a commit in Git, Vagrant, continuous testing elements, and the importance of continuous integration, testing, and deployment. These questions are curated after discussing with many interviewers and DevOps Training experts.

DevOps Tools

Git
Maven
Jenkins
Docker
Ansible
Terraform
Kubernetes
Interview Questions
Showing 81 - 90 of 325 results
81. What is the best way to make content redistributable?

Create Roles for a set of tasks and share it over Ansible Galaxy, so that it can be reusable/redistributable.

82. How to generate encrypted passwords for the user module?

Using Ansible ad-hoc command you can generate encrypted passwords for modules:
ansible all -i localhost -m debug -a msg={{ my_password | password_hash(sha512, my_secretsalt) }}

83. How can you connect to other devices within Ansible?

Whatever might be the other device you get the IP of that machine and save it to the inventory file and of course you have a ping module.
$ ansible - m ping hostname

84. Explain Module in Ansible?

Ansible has a huge number of modules (called the ‘module library’) as it can be written in any language. Actually Ansible works by connecting target servers and copying and executing a small program in those target servers those small programs are called Ansible modules. Playbook is a high level declarative script, you just have to invoke modules and modules does the entire thing happen.

85. Can you build your own modules with Ansible?

Yes, we can create our own Ansible modules. As it can be written in any language it becomes easy for everyone to write their own custom modules. And these are capable of controlling system resources, like services, directories, files, and handling executing system commands also.

86. How can you find information in Ansible?

Ansible is very simple and powerful, to get all the information of all target server just need to execute the following command:
ansible all -m setup

87. What is ask_pass in ansible?

This controls whether an ansible playbook should prompt for a password by default or not. Usually, it won’t ask. You can set True or False for it in /etc/ansible/ansible.cfg file. ask_pass = True/False

88. What is ask_sudo_pass?

This controls whether an ansible playbook should prompt for a sudo password by default or not. Usually, it won’t ask. You can set True or False for it in /etc/ansible/ansible.cfg file. ask_sudo_pass = True/False

89. What is ask_vault_pass?

This controls whether an ansible playbook should prompt for a vault password by default or not. Usually, it won’t ask. You can set True or False for it.

90. Where is the unit testing available in Ansible?

Unit tests are available in test/units. To test any file in ansible follow the command:
$ ansible-test units --tox

Contact us
    +91 9 6276 6276 9
    +1 (866)693-2179
Available 24x7 for your queries