XK0-006 Sample Questions With Explanations

About these questions

These five questions are original practice questions that we wrote for PrepKiwi. There is one for each XK0-006 domain, and they follow the scenario style of Linux administration: a short story, a constraint, and options that look reasonable. They are not taken from the real exam, and they do not predict what you will see.

How to use these

Cover the answer and try each question first, without notes. Decide on an answer and note how sure you are. Then open the answer and read the whole explanation, including why the closest wrong option fails. If you miss one, find the topic in the domains explained and try the command on a virtual machine.

Question 1 (System Management)

A monitoring team reports that a syslog collector on a server stopped receiving data on UDP port 514. An administrator needs to list listening UDP sockets with numeric ports and the process that owns each socket. Which command does this?

  • A. ss -tlnp
  • B. ss -s
  • C. ss -ulnp
  • D. ss -uan
Show the answer and explanation

Correct answer: C. The `-u` option selects UDP sockets, `-l` limits the output to listening sockets, `-n` keeps ports numeric and `-p` adds the owning process. Option A is the closest wrong answer: it has the right shape, but `-t` selects TCP, so a UDP listener would not appear. Option B prints summary counts per socket type and no individual sockets. Option D shows all UDP sockets numerically but lacks `-p`, so it does not show which process owns them.

Question 2 (Services and User Management)

An administrator starts a large `tar` job in the foreground of an SSH session. The job must continue running, but the shell is needed for other work. Which sequence suspends the job and lets it continue in the background?

  • A. Press Ctrl+C, then run `bg`
  • B. Press Ctrl+Z, then run `bg`
  • C. Press Ctrl+Z, then run `fg`
  • D. Press Ctrl+D, then run `bg`
Show the answer and explanation

Correct answer: B. Ctrl+Z sends a stop signal that suspends the foreground job and returns the prompt. The `bg` command then resumes that stopped job in the background. Option C is the closest wrong answer: `fg` also resumes the job, but in the foreground, which blocks the shell again. Option A fails because Ctrl+C sends an interrupt that normally ends the job, leaving nothing to resume. Option D fails because Ctrl+D signals end of input and does not suspend a running command.

Question 3 (Security)

A security team is hardening a web server that accepts connections from modern browsers and from internal tools. Which TWO TLS protocol versions should remain enabled? (Select TWO.)

  • A. TLS 1.0
  • B. TLS 1.2
  • C. SSL 3.0
  • D. TLS 1.3
  • E. TLS 1.1
Show the answer and explanation

Correct answers: B and D. TLS 1.2 and TLS 1.3 are the current, supported versions, and a hardened server should offer them with strong cipher suites. TLS 1.0 and TLS 1.1 were formally deprecated by the IETF, and SSL 3.0 was retired even earlier because of known weaknesses. The closest wrong options are A and E, because many older clients still try them, but allowing them weakens the whole server for the sake of legacy compatibility. If a specific legacy client must be supported, that is a risk decision, not a hardening default.

Question 4 (Automation, Orchestration, and Scripting)

A team lead wants to mark the commit that was shipped as version 2.3 so that the tag records who created it, when, and a message. Which command does this?

  • A. git tag v2.3
  • B. git branch v2.3
  • C. git tag -a v2.3 -m “Release 2.3”
  • D. git commit –amend -m “Release 2.3”
Show the answer and explanation

Correct answer: C. The `-a` option creates an annotated tag, which is a full object that stores the tagger, the date and a message. Option A is the closest wrong answer: without `-a`, `-m` or a signing option it creates a lightweight tag, which is only a name pointing to a commit and records none of that information. Option B creates a branch, which moves forward as new commits are added and so does not mark a fixed release. Option D rewrites the message of the latest commit and creates no tag at all.

Question 5 (Troubleshooting)

A newly built server at 192.168.20.15 can reach other hosts on its own subnet but nothing beyond it. The output of `ip route show` lists only the route for 192.168.20.0/24. The gateway for the subnet is 192.168.20.1. Which command fixes the problem until the next reboot?

  • A. ip route add default via 192.168.20.1
  • B. ip addr add 192.168.20.1/24 dev eth0
  • C. ip link set eth0 up
  • D. resolvectl flush-caches
Show the answer and explanation

Correct answer: A. Traffic to other subnets needs a default route that names the gateway. The routing table has none, which matches the symptom. Option C is the closest wrong answer: a down interface would break the local subnet as well, but local traffic works here. Option B would give the server the gateway’s own address, creating a conflict. Option D clears cached DNS answers, which has no effect on routing. Because `ip route add` is not persistent, the administrator should also set the gateway in the persistent network configuration, for example NetworkManager or Netplan.

Next step

Want more on the topics above? See the study plan or the XK0-006 practice tests for hundreds more original questions with explanations for every option.