Courseiva
hardMultiple ChoiceObjective-mapped

XK0-006 Practice Question: A container started with the above Compose…

Exhibit

Refer to the exhibit.

Exhibit:
{
  "compose": {
    "version": "3.8",
    "services": {
      "app": {
        "image": "myapp:latest",
        "cap_add": ["NET_ADMIN"],
        "cap_drop": ["ALL"]
      }
    }
  }
}

A container started with the above Compose configuration fails to set the system time (clock_settime syscall). Which additional capability is required?

⚠ Common exam trap

CompTIA often tests the distinction between `SYS_TIME` and the non-existent `SYS_CLOCK` to trap candidates who assume a capability name must match the syscall name exactly.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

SYS_TIME

The `clock_settime` syscall requires the `SYS_TIME` capability to modify the system clock. In Docker Compose, capabilities are added via the `cap_add` directive, and without `SYS_TIME`, the container lacks the privilege to change the system time, resulting in a failure.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • SYS_NICE

    Why it's wrong here

    Allows adjusting process priority, not time.

  • SYS_TIME

    Why this is correct

    Required for changing the system clock.

  • SYS_RESOURCE

    Why it's wrong here

    Used for resource limits, not time.

  • SYS_CLOCK

    Why it's wrong here

    Not a valid Linux capability.

About these practice questions

This XK0-006 question is part of Courseiva's 979-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This XK0-006 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the XK0-006 exam.