86.
Which command shows all service unit files on your system that are currently
loaded?
- A.systemctl --type=service
- B.systemctl --type=service --all
- C.systemctl --list-services
- D.systemctl --show-units | grep services
- Answer & Explanation
- Report
Answer : [A]
Explanation :
Explanation :
The --type=service argument shows all currently loaded services only. |
87.
Which statement about systemd wants is not true?
- A.You can create wants by using the systemctl enable command.
- B.The target to which a specific want applies is agnostic of the associated wants.
- C.Wants are always administered in the /usr/lib/systemd/system directory.
- D.Each service knows to which target its wants should be added.
- Answer & Explanation
- Report
Answer : [C]
Explanation :
Explanation :
Wants are specific to a particular system and for that reason are managed through /etc/systemd/system. |
88.
What is the best solution to avoid conflicts between incompatible units?
- A.Nothing, the unit files have defined for themselves which units they are not compatible with
- B.Disable the service using systemctl disable
- C.Unmask the service using systemctl unmask
- D.Mask the service using systemctl mask .
- Answer & Explanation
- Report
Answer : [D]
Explanation :
Explanation :
Masking a service makes it impossible to enable it. |
89.
Which of the following is not a valid status for systemd services?
- A.Running(active)
- B.Running(exited)
- C.Running(waiting)
- D.Running(dead)
- Answer & Explanation
- Report
Answer : [D]
Explanation :
Explanation :
Running(dead) is not a valid status for systemd services. |
90.
To allow targets to be isolated, you need a specific statement in the target unit
file. Which of the following describes that statement?
- A.AllowIsolate
- B.Isolate
- C.SetIsolate
- D.Isolated
- Answer & Explanation
- Report
Answer : [A]
Explanation :
Explanation :
The required statement is AllowIsolate . All other statements mentioned here are invalid. |