Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

CompTIA Exam XK0-005 Topic 4 Question 33 Discussion

Actual exam question for CompTIA's XK0-005 exam
Question #: 33
Topic #: 4
[All XK0-005 Questions]

A Linux administrator has defined a systemd script docker-repository.mount to mount a volume for use by the Docker service. The administrator wants to ensure that the Docker service does not start until the volume is mounted. Which of the following configurations needs to be added to the Docker service definition to best accomplish this task?

Show Suggested Answer Hide Answer

Contribute your Thoughts:

Dannette
1 months ago
I'm just picturing the administrator trying to start the Docker service, but it keeps failing because the volume isn't mounted yet. Talk about a mount-uous task!
upvoted 0 times
...
Josue
1 months ago
Wait, should we be using 'Wants' instead of 'Requires'? That way the Docker service will still start even if the mount fails, but it'll try to use the mounted volume if it's available.
upvoted 0 times
Eladia
4 days ago
D) RequiresMountsFor=docker-repository.mount
upvoted 0 times
...
Martina
7 days ago
C) Requires=docker-repository.mount
upvoted 0 times
...
Willard
14 days ago
B) ExecStart=/usr/bin/mount -a
upvoted 0 times
...
Malinda
20 days ago
A) After=docker-repository.mount
upvoted 0 times
...
...
Carmelina
1 months ago
D seems like the way to go. The 'RequiresMountsFor' directive tells systemd to wait for the specific mount unit to be active before starting the Docker service.
upvoted 0 times
...
Rasheeda
1 months ago
I'm pretty sure the answer is A. The 'After' directive ensures that the Docker service starts after the mount unit is active.
upvoted 0 times
Sueann
8 days ago
That makes sense, it's important to have the volume mounted before starting the Docker service.
upvoted 0 times
...
Keneth
17 days ago
Yes, 'After' directive will make sure the Docker service starts after the volume is mounted.
upvoted 0 times
...
Gayla
21 days ago
I think you're right, option A is the correct one.
upvoted 0 times
...
...
Shalon
2 months ago
Option C makes the most sense to me. The 'Requires' directive ensures that the Docker service won't start until the docker-repository.mount unit is active.
upvoted 0 times
Shenika
10 days ago
C) Requires=docker-repository.mount
upvoted 0 times
...
Nguyet
13 days ago
B) ExecStart=/usr/bin/mount -a
upvoted 0 times
...
Lazaro
23 days ago
A) After=docker-repository.mount
upvoted 0 times
...
...
Vernell
2 months ago
I'm not sure, but I think option A) After=docker-repository.mount could also work. It specifies that the Docker service should start after the specified mount unit is active.
upvoted 0 times
...
Goldie
2 months ago
I agree with Laura. Adding Requires=docker-repository.mount to the Docker service definition will make sure that the service waits for the volume to be mounted before starting.
upvoted 0 times
...
Laura
2 months ago
I think the answer is C) Requires=docker-repository.mount because it ensures that the Docker service will only start if the specified volume is mounted.
upvoted 0 times
...
Jesse
2 months ago
I'm not sure, but I think option A) After=docker-repository.mount could also work. It specifies that the Docker service should start after the specified mount unit is active.
upvoted 0 times
...
Bernardine
2 months ago
I agree with Claudio. Adding Requires=docker-repository.mount to the Docker service definition will make sure that the service waits for the volume to be mounted before starting.
upvoted 0 times
...
Claudio
3 months ago
I think the answer is C) Requires=docker-repository.mount because it ensures that the Docker service will only start if the specified volume is mounted.
upvoted 0 times
...

Save Cancel