HomeExamsIMS AcademyTETAIMSADMIC2012
TETAIMSADMIC2012

Infosys Certified Associate in Ansible Automation

Practice with real exam-pattern questions for Infosys Certified Associate in Ansible Automation. 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 Ansible Automation practice questions with answers

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

  1. Question 1

    What is the term used for a host from which system administrators run Ansible to control all the nodes?

    • Control Node

      Correct
    • B

      Ansible Master

    • C

      Server

    • D

      Managed host

  2. Question 2

    The administrator must prepare a report and requires the ipv4 address of all the managed nodes, he tries to use the ad-hoc command to fetch the required data.

    Which of the following ad-hoc command will fetch the ipv4 address of the managed nodes?

    • ansible all -m setup -a "filter=*ipv4*"

      Correct
    • B

      ansible all -m setup -a "where=*ipv4*"

    • C

      ansible all -m setup -a "filter==*ipv4*"

    • D

      ansible all -m setup -a "where==*ipv4*"

  3. Question 3

    The administrator has created a playbook with two tasks, first task to install the tigervnc package and the second task to copy the configuration file for apache service. The first task has failed because the package is not available in the repository. He wants to continue with the execution of the playbook.

    Which of the following configuration must be updated to the first task to continue with the playbook execution?

    • ignore_errors: yes

      Correct
    • B

      skip_errors: yes

    • C

      neglect_errors: yes

    • D

      exclude_errors: yes

  4. Question 4

    The admin wants to update the color code for error messages in Ansible from red to orange.

    Which of the following configuration should he open to update the color code?

    • /etc/ansible/ansible.cfg

      Correct
    • B

      /etc/ansible/ansible.conf

    • C

      /etc/ansible/ansible.conf.d/ansible.conf

    • D

      /etc/ansible/ansible.conf.d/ansible.cfg

  5. Question 5

    James is a Python developer who enables high availability and fault tolerance in application servers. James also develops application in Python which must be hosted in the managed servers.

    The administrator Sainz wants James to manage 50 CentOS machines, and create python scripts to monitor the machines. James should be added to the group’s admins, developers with his default login shell as bash.

    Identify the task to do the same.

    • - user:
          name: james
          shell: /bin/bash
          groups: admins,developers
          append: yes
      

      Correct
    • B
      - user:
          name: james
          shell: /bin/bash
          group: admins,developers
      

    • C
      - user:
          name: james
          shell: /bin/bash
          group: admins,developers
          append: yes
      

    • D
      - user:
          name: james
          default_shell: /bin/bash
          groups: admins,developers
          append: yes
      

  6. Question 6

    The administrator has created his first playbook "first.yml".

    Which of the following syntax denotes the start and end of an playbook?

    • --- and ...

      Correct
    • B

      --- and ---

    • C

      --- and ___

    • D

      --- and ;;;

  7. Question 7

    Zen Inc., has configured Mail Server for one of their Clients. Zen had promised their clients that the servers will have 99.99% availability.

    At the end of the month, the client has requested for the server availability details.

    Which of the following playbook will fetch the required details?

    • ---
      - hosts: mail 
        become: true
        become_method: sudo
        tasks:
        - name: Find the uptime of the server
          register: uptimeoutput
          command: "uptime"
        - debug:
            var: uptimeoutput.stdout_lines
      

      Correct
    • B
      ---
      - hosts: mail
        become: true
        become_method: sudo
        tasks:
        - name: Find the uptime of the server
          command: "uptime"
        - debug:
            var: uptimeoutput.stdout_lines
      

    • C
      ---
      - hosts: mail
        become: true
        become_method: sudo
        tasks:
        - name: Find the uptime of the server
          register: uptimeoutput
          command: "uptime"
        - debug:
            msg: uptimeoutput.stdout_lines
      

    • D
      ---
      - hosts: mail
        become: true
        become_method: sudo
        tasks:
        - name: Find the uptime of the server
          register: uptimeoutput
          command: "uptime"
        - debug:
            - uptimeoutput.stdout_lines
      

  8. Question 8

    The administrator has updated the nginx related packages in the managed nodes under the group webservers. Now the nginx service must be restarted for the update to take effect.

    Which of the following command can be used to restart the nginx service?

    • ansible webservers -m service -a "name=nginx state=restarted" --become -K

      Correct
    • B

      ansible webservers -m service -a "name=nginx state=restarted" --become

    • C

      ansible webservers -m systemctl -a "name=nginx state=restarted" --become -K

    • D

      ansible webservers -m systemctl -a "name=nginx state=restarted" --become

  9. Question 9

    The Administrator Sainz must list the uptime details of all the servers under webgroup listed in the inventory file ansible_hosts.

    Which of the following ad-hoc commands can be used to do the same?

    • ansible webgroup -m command -a uptime -i ansible_hosts

      Correct
    • B

      ansible webgroup -m command -a uptime ansible_hosts

    • C

      ansible webgroup -m command -a uptime --inventory ansible_hosts

    • D

      ansible -g webgroup -m command -a uptime -i ansible_hosts

  10. Question 10

    Robert wants to view the encrypted playbook "playbook.yml" to view the list of users who will be added in the servers as a part of the playbook execution.

    Which of the following command can be used to do the same?

    • ansible-vault view playbook.yml

      Correct
    • B

      cat playbook.yml

    • C

      cat playbook.yml --ask-vault-pass

    • D

      ansible-vault open playbook.yml

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