Technical interview in Devops on Ansible

ยท

2 min read

Good day guys you applied for a DevOps job role and after you submitted your application and after a review of your application a mail was sent to attend verbal/ technical Interview 30 mins verbal and one hour for the technical. Fast forward on the d-day, after the first round of interview on DevOps generally you were given the following to answer by sharing your screen as you do remember your examiner is watching you and wants to see exactly what your thought process is and how you go about solving this.

Things he will be on the look out for:

i. How familiar you are with Aws infrastructure and its services while creating the aws Ec2 instance and the necessary security group settings for this task

ii. How you set up ssh connection to connect to the the server you created.

iii. He doesn't expect you to know off hand most of the commands but even if you browse for them do you know exactly what to check for, he is testing you on that.

iv. He is checking how organize you are,do you know what to do to deliver on a task and your time management.

V. He is checking how you connect all the dots by using Devops tools.

Now Let's go:

  1. What is the meaning of inventory, modules and tasks in Ansible.

2.Use any method of your choice to create an Aws Ec2 instance name it "testserver"

3.On the testserver install an Ansible

4.You were given two servers IP addresses (15.206.78.239) and (15.206.27.122) store these two IP address in Ansible inventory hosts file /etc/ansible/hosts with the group name "appserver".

5.Write an Ansible playbook installing nginx web server on each of these two servers whose ip addresses you were given. Show the task and the modules to carry out this task on the playbook yaml file you are going to create.

(The above is a snippet of a technical interview you can be confronted with attempt it to practice)

Remember your response must follow DevOps best practices ๐Ÿคท๐Ÿƒ

ย