๐Ÿงช Ansible MCQ Quiz Hub

Ansible MCQ Questions

Choose a topic to test your knowledge and improve your Ansible skills

___________ is something that is used for streamlining the development and deployment process.





โœ… Correct Answer: 2

_________ is a combination of multiple pieces working together to become an automation tool.





โœ… Correct Answer: 3

What are the features of Ansible?





โœ… Correct Answer: 4

IaC stands for?





โœ… Correct Answer: 4

___________ is a repository of Ansible roles that can be shared among users and can be directly dropped into playbooks for execution. C. D.





โœ… Correct Answer: 3

How many types of modules in Ansible?





โœ… Correct Answer: 2

YAML or files are like any formatted text file with few sets of rules just like JSON or XML.





โœ… Correct Answer: 1

In Which Language Ansible engine written?





โœ… Correct Answer: 4

What language is an Ansible playbooks are written in by default ?





โœ… Correct Answer: 4

The task is a unit action of Ansible.





โœ… Correct Answer: 1

NCS has collaborated with Red Hat on several initiatives around Ansible automation. Which are some of those?





โœ… Correct Answer: 4

Red Hat Ansible Automation Platform offers new features. Which are the ones?





โœ… Correct Answer: 4

Command to verify the current ansible version





โœ… Correct Answer: 2

Ansible Content Collections is the new way to build and consume What command shows you CPU and memory utilization for running processes?





โœ… Correct Answer: 2

What command displays your current username?





โœ… Correct Answer: 4

How to install ansible using RHEL?





โœ… Correct Answer: 1

Tests reachability using ping from Cisco IOS network devices





โœ… Correct Answer: 1

This is a usecase for ansible Facts





โœ… Correct Answer: 2

In which programming language is Ansible based on?





โœ… Correct Answer: 3

How do you use variables in ansible?





โœ… Correct Answer: 1

What extension do the template files in Ansible have?





โœ… Correct Answer: 3

Which ones are alternatives to Ansible?(choose all that apply)





โœ… Correct Answer: 3

Ansible is able to deploy and manage automation of your entire IT footprint. Which are the ones that can be managed by Ansible?





โœ… Correct Answer: 4

Ansible program files that contains ansible plug-in documentation





โœ… Correct Answer: 3

What is Ansible?





โœ… Correct Answer: 2

What does orchestration in Ansible mean?





โœ… Correct Answer: 3

An ______ command is a single, manually-run Ansible task that you want to perform quickly





โœ… Correct Answer: 2

Which of following commands will check ansible inventory and group variable





โœ… Correct Answer: 1

Command to check the playbook for syntax errors, but it does not execute it.





โœ… Correct Answer: 1

Ansible is based on





โœ… Correct Answer: 4

In which format ansible playbooks are written?





โœ… Correct Answer: 2

Which option is used for specifying the variable while running ansible playbook?





โœ… Correct Answer: 4

Ansible is written in





โœ… Correct Answer: 4

From a playbook, I want to run only 1 task and ignore others. Which of the below can I use?





โœ… Correct Answer: 2

Which option in ad-hoc command is used to execute a module?





โœ… Correct Answer: 2

Which of the below creates new authentication key pairs?





โœ… Correct Answer: 2

Which of tasks run on notifying?





โœ… Correct Answer: 1

Which of the command line option is used for selecting the username for play?





โœ… Correct Answer: 1

Which option is used to select inventory file?





โœ… Correct Answer: 1

___ is used to access shell environment variables?





โœ… Correct Answer: 1

To increase verbosity during execution of playbook, we can use





โœ… Correct Answer: 2

Conditional statement in ansible is





โœ… Correct Answer: 2

Which directory contains default values for variables of a role?





โœ… Correct Answer: 2

Linux commands can be run using module/s





โœ… Correct Answer: 4

How to continue running tasks even if a task is failed?





โœ… Correct Answer: 4

Jinja2 - Guess the output of : {{ [2,2,3,4] | unique }}





โœ… Correct Answer: 2

Jinja2 - Guess the output of : {{ [2,3,4] | intersect( [4,5,6] ) }}





โœ… Correct Answer: 2

Jinja2 - Guess the output of : {{ ["Hello","World"] | join(" ") }}





โœ… Correct Answer: 3

Error handling in block module uses





โœ… Correct Answer: 4

Which of the below module installs .rpm file on centos/rhel machines?





โœ… Correct Answer: 2