▶ MCQ Portal
Home
Medical
Neet-Ug
4
Ssc-Cgl
General_Awareness
5
Devops
Ansible
10
Aws
5
Azure
10
Docker
5
Jenkins
5
Kubernetes
5
Terraform
10
⚑ Feedback
Home
ansible
Exam3
Exam3
devops / ansible
• 5 questions
Question 1 of 5
Which Ansible module manages packages on Debian/Ubuntu systems?
A.
yum
B.
package
C.
apt
D.
dnf
Question 2 of 5
What does the `state: absent` parameter do in most Ansible modules?
A.
Skips the task
B.
Ensures the resource does not exist (removes it)
C.
Marks the task as optional
D.
Runs the task only if the resource is missing
Question 3 of 5
Which module is used to run arbitrary shell commands on remote hosts?
A.
command
B.
run
C.
exec
D.
bash
Question 4 of 5
What is the difference between the `command` and `shell` modules?
A.
They are identical
B.
`shell` runs through /bin/sh and supports pipes/redirects; `command` does not
C.
`command` is faster; `shell` is more secure
D.
`shell` only works on Linux; `command` works everywhere
Question 5 of 5
Which module manages Linux services (start/stop/enable)?
A.
init
B.
systemd
C.
service
D.
Both service and systemd
← Back
Submit Answers ✓