701-100 Exam QuestionsBrowse all questions from this exam

701-100 Exam - Question 19


Which of the following functions are provided by the Ansible apt module? (Choose two correct answers.)

Show Answer
Correct Answer: ABE

The Ansible apt module provides functionality to update an installed package to the latest version and to update the list of available packages from configured repositories. These operations are essential for maintaining system packages and ensuring they are up-to-date. There is no indication that the apt module can re-compile an installed package from the source code, add the URL of a new repository, or install a Linux distribution on an empty target system.

Discussion

6 comments
Sign in to comment
hythaloOptions: AB
Nov 7, 2020

I think is A and B. The apt module usage doesn't mention anything close to E. https://docs.ansible.com/ansible/latest/collections/ansible/builtin/apt_module.html

hector1978Options: AB
Feb 17, 2020

I don't agree. The Ansible apt module can: Update an installed package to the latest version. The correct answer is A and B

hmagrounOptions: AB
Mar 27, 2020

The correct answer is A and B

hamzaabOptions: AB
Jul 28, 2021

A and B

examtp1Options: AB
Aug 30, 2022

The apt module matches more or less the apt-get module, which allows to install a package if it's not installed already, upgrade it if it's installed but a new version is available (answer A), and update the repositories to retrieve the complete list of packages and the available versions (answer B).

billcom
Jun 15, 2020

E is not also wrong and point directly to the overall usage of the apt module