You are required to gather the details about the VPCs that can be accessed through default profile. Below task has been written to achieve the same.

- name: Describe VPCs

ec2_vpc_net_info:

Will the task work without any error as expected?

No, Error: the field 'hosts' is required but was not set

No, Error: No inventory was parsed, provided hosts list is empty

Yes, it will be executed as expected

Yes, it will be executed without error, but it won’t gather any VPC details

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