Ansible - Automation Sibelius MCQs Solution | TCS Fresco Play

Disclaimer: The primary purpose of providing this solution is to assist and support anyone who are unable to complete these courses due to a technical issue or a lack of expertise. This website's information or data are solely for the purpose of knowledge and education.
Make an effort to understand these solutions and apply them to your Hands-On difficulties. (It is not advisable that copy and paste these solutions).
All Question of the MCQs Present Below for Ease Use Ctrl + F with the question name to find the Question. All the Best!
1. Design goals of Ansible include
All the options mentioned
2. YAML uses tabs for indentation, True or false?
False
3. Ansible acquired by
Red Hat
4. Which of the following is a valid YAML syntax?
path: F:\test
5. Ansible is
All the options mentioned
6. Which configuration management software is Agentless?
Ansible
7. Ansible can deploy to virtualization and cloud environments, Including
All the Options
8. Where is Inventory file located by default?
/etc/ansible/hosts
9. If you do not need any facts from the host, what command would you use?
both gatherfacts: no or gatherfacts: False
10. Which module can be used to copy files from remote machine to control machine?
Fetch
11. Which one is not a valid value of state argument of "file" module?
Folder
12.Which command tells ansible to run the playbook on all the hosts except host1?
ansible-playbook playbooks/PLAYBOOK_NAME.yml -limit 'all:!host1' / ansible-playbook playbooks/PLAYBOOK_NAME.yml --limit "!host1" /
13. Which module copies dynamically generated file from control machine to target hosts?
template
14. Which module will you use to create a directory?
File
15. What module can be used to stop a playbook execution for some time?
pause
16. Ansible modules will apply changes everytime you run Playbook.
False
17. Identify the order of execution of handlers in the below snippet.
test-test1-handler2-handler3-handler_1
18. Handler run only once even if you run the playbook multiple times.
True
19. Which module can be used to force a handler to run in between two tasks?
meta
20. Modules are temporarily stored in the nodes and communicate with the control machine through a ______ protocol over the standard output.
JSON
21. Which Ansible module is used to manage docker services and containers.
docker_service
22. You write comments in Jinja2 as:
{# #}
23. Which module you can use to install Apache in Ubuntu OS?
Apt
24. A Playbook starts with three dots …
False
25. What is the output statement of the following snippet?
tasks:
- name: test
shell: echo "hello"
register: a
debug: msg="the message is {{ a.stdout }}"
syntax error because of conflicting action statements
26. Using which module can you see the list of all the ansible variables?
Setup
27. Which command do you use to do a syntax check on your playbook?
ansible-playbook --syntax-check
28. You cannot define multiple conditions
False
29. Which of these will loop through items randomly?
with_random_choice
30. How do you use variable to apply condition?
when: score == 3
31. How can you reduce the number of SSH connections required?
Pipelining
32. what is the default forks value in configuration file?
5
33. ansible.cfg should be present in
/etc/ansible
34. Ansible can work as a push automated deployment system and as well as a pull automated deployment system?
True
3 5. Ansible has two type of servers
Only node
36. In Try It Out section of this course, what was the value of "changed=?" under "Play Recap", when you executed the same playbook for second time?
2
37. You can activate your privilege escalations using which settings?
become=True
38. How to define the number of parallel processes while communicating to remote hosts?
forks
Post a Comment