Jack is managing the Cloud infrastructure that is used for hosting the Retail application. He has automated the creation of all VPC related services through Ansible playbook. Below is the task that is used for creating the subnet named “sn-web”.

- name: Create subnet

ec2_vpc_subnet:

state: present

vpc_id: vpc-08914913fce84b46e

tags:

Name: sn-web

map_public: yes

What will be the OUTPUT of the above code?

It will create a subnet with the default cidr_block 10.0.0.0/16

It will create a subnet with the default cidr_block 192.168.0.0/16

It will throw an error "missing required arguments: cidr"

It will create a subnet without cidr_block

Correct Option - c

To get all Infosys Certified Associate in IaC using Ansible Exam questions Join Group https://bit.ly/infy_premium_group

We're passionate about offering best placement materials and courses!! A one stop place for Placement Materials. We daily post Offcampus updates and Placement Materials.

Qtr No. 213, New Town Yehlanka Indore 454775

admin@prepflix.in