CompTIA Linux+ (XK0-006) - Blueprint Practice Exam 1

Suggested duration: 60 minutes

Exam code: XK0-006

By Oleksandr Andrushchenko — Published on

40 questions ยท Free

Start exam

40 original practice questions covering the current exam domains, with explanations for every answer. This fixed-length choice-based practice set does not reproduce official performance-based tasks or scaled scoring.

Questions — 40

  1. A backup job should run repeatedly even when no interactive user is logged in. Which two scheduling mechanisms can meet this requirement? Select 2.
  2. A backup script must stop and report failure when its copy command returns a nonzero exit status. What should the script inspect?
  3. A container should retain its database data when the container is deleted and recreated. What should be used?
  4. A deleted large log file still occupies disk space because a daemon keeps it open. What is the appropriate diagnosis?
  5. A developer wants to review local Git changes before recording a commit. Which command shows unstaged tracked-file differences?
  6. A dual-stack Linux server needs its current IP addresses and prefix lengths displayed. Which command fits?
  7. A file should be readable and writable by its owner, readable by its group, and inaccessible to everyone else. Which mode fits?
  8. A host resolves names correctly but cannot reach a remote subnet. Its interface address is correct and local peers are reachable. Which command helps examine the likely issue?
  9. A Linux administrator adds a filesystem to /etc/fstab using its UUID rather than /dev/sdb1. What is the main benefit?
  10. A Linux host needs to resolve internal names before public DNS is queried, using a few explicit static mappings. Which file commonly provides those mappings under the normal files-first resolver configuration?
  11. A Linux process uses almost all of one CPU core. Which tool can identify the process interactively?
  12. A Linux server has a new partition that should use ext4. Which command creates the filesystem and overwrites existing filesystem structures on that partition?
  13. A Linux server should accept incoming HTTPS but reject unneeded inbound services under a default-deny policy. Which control implements this requirement?
  14. A local account must expire on a defined contract end date. Which tool can set the account expiration date?
  15. A new disk should be encrypted before it stores restricted application data. Which Linux technology provides a standard disk-encryption format commonly managed with cryptsetup?
  16. A non-root user receives permission denied when entering a directory even though a file inside is readable. Which permission is needed on each parent directory to traverse the path?
  17. A package upgrade is interrupted and leaves dependency errors. What is the best recovery approach?
  18. A Python automation task parses application settings supplied as JSON. Which approach is appropriate?
  19. A recently edited /etc/fstab entry causes a boot-time mount failure. What should be checked during controlled recovery?
  20. A server has almost no available memory and frequently pages anonymous memory to disk. Which command gives a quick overview of RAM and swap consumption?
  21. A server reports no space left on device although df -h shows free blocks. Millions of tiny files exist. What should be checked next?
  22. A service needs a confidential key file readable only by its own service account. What is the appropriate arrangement?
  23. A shared directory should cause new files to inherit its group ownership on a typical supported filesystem. Which special permission should be set?
  24. A shell script assigns a path containing spaces to a variable and passes it to a command. What prevents unintended word splitting of that argument?
  25. A shell script should process each of several given filenames as a separate argument, including names containing spaces. Which expansion best preserves the argument boundaries?
  26. A systemd server should enter a command-line multiuser environment by default rather than a graphical login. Which target is appropriate?
  27. A systemd service fails at startup. Which command displays journal records restricted to that unit?
  28. A systemd service is running now but must also start automatically on later boots. Which command directly enables that startup configuration?
  29. A system's journal records repeated out-of-memory kills during peak workload. What should be investigated?
  30. A user may restart one application service but must not receive a general root shell. What is the best approach?
  31. A web application should accept local TCP connections only on 127.0.0.1 because a reverse proxy handles external requests. What should be checked?
  32. A web service refuses to start because its TCP port is already in use. What should the administrator do?
  33. Administrators should log in over SSH with individually registered keys, and direct root login should be prohibited. What configuration supports this?
  34. An administrator adds an existing user to an additional supplementary group without removing current supplementary groups. Which command fits?
  35. An administrator needs a logical volume to grow when more physical storage is added. Which technology provides this storage abstraction?
  36. An administrator wants to install an approved package on a Debian-family system and resolve its dependencies from configured repositories. Which command fits?
  37. An administrator wants to see which processes own listening TCP ports on Linux, with sufficient privilege. Which command fits?
  38. An AI assistant suggests a shell command that deletes files recursively. What should an administrator do before running it in production?
  39. An Ansible playbook should be safe to run repeatedly without recreating an existing user each time. Which quality is desired?
  40. An SELinux-enforcing system denies a web server access after files were moved from a home directory into its normal content path. Standard ownership and modes are correct. What should be examined first?

Comments — 0

Related exams