HomeExamsIMS AcademyTETAIMSADMIC1020
TETAIMSADMIC1020

Infosys Certified Associate in IaC using Ansible

Practice with real exam-pattern questions for Infosys Certified Associate in IaC using Ansible. Each question includes a detailed explanation to help you understand the concept, not just memorise the answer. Try 10 questions free — no login required.

IntermediateIMS Academy50 min
Free questions

10 Infosys Certified Associate in IaC using Ansible practice questions with answers

Real Lex exam-pattern multiple-choice questions for the Infosys Certified Associate in IaC using Ansible certification. Each question includes the correct answer. The full question bank is available to Premium members.

  1. Question 1

    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

      Correct
    • B

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

    • C

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

    • D

      It will create a subnet without cidr_block

  2. Question 2

    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

      Correct
    • B

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

    • C

      Yes, it will be executed as expected

    • D

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

  3. Question 3

    You are required to install Python package “ansible” in the Linux environment. Which of the following user is the BEST recommended one for owning this package?

    • any OS user that will be newly created

      Correct
    • B

      root

    • C

      sudo su

    • D

      ec2-user

  4. Question 4

    You are creating an EC2 instance through Ansible code as part of automating infrastructure management. You are supposed to pass all the inputs that are required for the “ec2” module during run time.

    Which of the following modules you need to describe before invoking “ec2” module?

    (i) ec2_vpc_net_info

    (ii) ec2_vpc_subnet_info

    (iii) ec2_ami_info

    (iv) ec2_group_info

    • Only (i) and (ii)

      Correct
    • B

      Only (i), (ii) and (iii)

    • C

      Only (ii) and (iv)

    • D

      All of the options

  5. Question 5

    You as an administrator want to create and manage the security group through Ansible code. You need to pass the values to the parameters of the module ec2_group during run time without hard coding any input in the playbook. Hence, you describe the existing AWS services for gathering the information that are needed for creating a security group.

    Which of the following module you need to refer/invoke prior invoking ec2_group module, so that you can pass the required inputs to ec2_group during run time?

    (i) ec2_vpc_net_info

    (ii) ec2_subnet_info

    (iii) ec2_instance_info

    • Only (i) and (ii)

      Correct
    • B

      Only (i) and (iii)

    • C

      Only (i)

    • D

      All of the options

  6. Question 6

    A VPC named retail_vpc (172.22.0.0/16) is already existing in the region ap-south-1. The default AWS profile has been configured with the region ap-south-1. You also want to create another VPC with the same tag name and cidr_block. You have written the below to accomplish the same.

    - name: Create VPC

    ec2_vpc_net:

    name: retail_vpc

    state: present

    cidr_block: 172.22.0.0/16

    resource_tags: { "Environment":"Development" }

    # line 7

    Which of the following parameter should be added in line 7, so that this code will create another VPC with the same tag name and cidr_block?

    • multi_ok: disable

      Correct
    • B

      multi_ok: false

    • C

      multi_ok: true

    • D

      multi_ok: enable

  7. Question 7

    Identify the CORRECT options from the below Ansible module with its respective functionality. [Choose 2 options]

    • elb_application_lb - Manage an Application load balancer

      Correct
    • B

      elb_application_lb_fact - Gather facts about application ELBs in AWS

    • C

      elb_classic_lb - Creates or destroys Amazon ELB

    • D

      elb_classic_lb_fact - Gather facts about EC2 Elastic Load Balancers in AWS

  8. Question 8

    You are required to install the needed software and configure the webserver by sending an instruction to an instance at launch.

    Which of the following statement(s) should be taken care with the user data parameter of EC2 module, so that the requirement will be finished successfully?

    (i) Shell scripts must start with the #! characters and the path to the interpreter

    (ii) Scripts entered as user data are run as the non-root user

    • Only (i)

      Correct
    • B

      Only (ii)

    • C

      Both (i) and (ii)

    • D

      Neither (i) nor (ii)

  9. Question 9

    As per the requirement, you are required to describe the volumes that are already attached with the instance through code. You need to view the encryption status, size, type and IOPS details.

    Which of following module(s) you can use to accomplish this requirement?

    (i) ec2_vol_info

    (ii) ec2_instance_info

    • Only (i)

      Correct
    • B

      Only (ii)

    • C

      Either (i) or (ii)

    • D

      Neither (i) nor (ii)

  10. Question 10

    Identify the CORRECT keys that are returned as an output of ec2_vpc_route_table_info module with its respective datatype. [Choose 2 options]

    • associate_state – list

      Correct
    • B

      route_table_id – string

    • C

      tags – dictionary

    • D

      name – list

Pricing

Pay once. Clear every cert this year.

One subscription, full Telegram channel access, every PDF posted during your membership.

Monthly
50% OFF
₹1,300₹2,600
Per month · cancel anytime
  • Full access to all 1,357+ certifications
  • Monthly updated question banks
  • Telegram private channel access
  • Cancel anytime
Get Monthly
POPULAR
Quarterly
44% OFF
₹1,800₹3,200
That's ₹600/mo · billed for 3 months
  • Everything in Monthly
  • Save ₹2,100 vs monthly billing
  • Priority answer key requests
  • Best for increasing DQ score fast
Get Quarterly
BEST VALUE
Lifetime
52% OFF
₹2,400₹5,000
One-time · lifetime access
  • Everything in Quarterly
  • Lifetime channel access — no renewals
  • All future certifications included
  • Priority response from admin team
Get Lifetime
FAQ

Common questions, straight answers.

A monthly-updated Telegram channel where we post real exam-pattern question banks and detailed answer keys for 1,357+ Infosys Lex certifications. You join once, you get every PDF posted during your membership.

Right after payment on our Graphy page, you'll receive a private invite link to the Telegram channel. Access is instant — usually under 30 seconds.

We compile question banks from the actual Lex test pattern, sourced and verified by 180K+ community members who've recently cleared these exams. Match rate is consistently 85–95%.

Every single month. When Infosys rolls out new versions of certifications, we post updated dumps within 7–10 days. You'll see channel activity weekly.

Clearing certifications is one of the highest-weighted DQ factors. Members typically clear 3–5 certifications in their first 3 months, which moves DQ scores up by a full band.

i
InfyLexDumps

Independent exam preparation platform for Infosys Lex certifications. Real exam-pattern question banks, monthly updates, 180K+ community members.

Join Premium Telegram
Contact
  • @prepflixadmin
  • admin@prepflix.net
This platform is an independent educational resource and is not affiliated with or endorsed by Infosys Ltd. All certification names referenced are property of their respective owners.
© 2026 InfyLexDumps
Join Premium Telegram