
Dive Into Ansible - From Beginner to Expert in Ansible - Dynamic Inventories
Interactive Video
•
Information Technology (IT), Architecture
•
University
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Read more
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a key requirement for a dynamic inventory in Ansible?
It must be a static file.
It should be an executable file.
It must be written in Python.
It should not accept command-line options.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which command-line option is used to list the inventory in a dynamic inventory script?
--display
--inventory
--show
--list
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What format does the dynamic inventory script return its data in?
XML
CSV
YAML
JSON
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What module is used in Python to capture command-line options for the dynamic inventory script?
sys
argparse
json
os
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the _meta key in the dynamic inventory script?
To enhance performance by embedding host variables
To store static data
To execute scripts faster
To list all available hosts
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How does Ansible improve the efficiency of dynamic inventories with the _meta key?
By using a different programming language
By storing data in XML format
By increasing the number of hosts
By reducing the number of script calls for host variables
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a potential issue when running a dynamic inventory script with a large number of hosts?
It will only list the first 10 hosts.
It will not return any host variables.
It may not execute at all.
It could take a significant amount of time.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?