AMAADOR ACADEMYالشهاداتالتحقق من شهادة

LNXPLS

الاختبار النهائي — التحضير لامتحان CompTIA Linux+ XK0‑006 (الإصدار V8)

أجب عن الأسئلة الـ42. تحتاج إلى 80% أو أكثر للنجاح. يمكنك إعادة المحاولة كلما أردت.

هذا الاختبار النهائي متاح بـالإنجليزية.

ادرس الدورة ←

السؤال 1According to CompTIA, what is the passing score for Linux+ XK0-006?
السؤال 2Which XK0-006 domain carries the largest weight?
السؤال 3An administrator must stop the floppy module from loading on every boot of a server. What is the correct approach?
السؤال 4A server boots to a graphical login, but it is a headless web server. The team wants it to boot to a text multi-user mode from now on. Which command does this?
السؤال 5A third-party vendor ships a self-contained monitoring agent as a tarball. Following the FHS, where should it be installed?
السؤال 6Which man page section documents configuration file formats such as fstab?
السؤال 7After a new disk was added, a server sometimes names the data disk sdb and sometimes sdc. The fstab entry uses /dev/sdb1 and the mount fails on some boots. What is the best fix?
السؤال 8An administrator must shrink an XFS filesystem on a logical volume by 10 GiB to free space for another volume. What is true?
السؤال 9A volume group has no free space. A new 100 GiB disk /dev/sdd is installed. Which sequence lets you extend /dev/datavg/applv?
السؤال 10Which RAID level needs at least three disks and survives the loss of one disk using distributed parity?
السؤال 11An NFS share is added to /etc/fstab on a laptop that is often off the office network. The team wants the laptop to boot normally when the server is unreachable. Which option helps most?
السؤال 12Which command shows block devices as a tree with their sizes and mount points?
السؤال 13On an Ubuntu server, a script must find out which installed package provides /usr/bin/curl. Which command does this?
السؤال 14An administrator runs apt upgrade on a new Debian server, but no packages are offered even though updates were published yesterday. What was most likely skipped?
السؤال 15A backup job is slowing down a production server. The team wants the running job (PID 4210) to yield CPU to other processes without stopping it. Which command fits?
السؤال 16A daemon is hung and ignores kill 2315. The administrator has already waited and checked that no data is being written. What is the next step?
السؤال 17Which command lists listening TCP and UDP sockets with the owning process, in numeric form?
السؤال 18dig intranet.example.com returns the right address, but an application on the same server resolves the name to an old IP. What should you check first?
السؤال 19An administrator installs chronyd and wants it to start now and at every boot. Which single command does both?
السؤال 20A colleague edited /usr/lib/systemd/system/app.service to add an environment variable. After a package update the change is gone. How should it be done?
السؤال 21A nightly report is scheduled with a systemd timer on a laptop that is often off at night. The team wants a missed run to happen at the next boot. Which setting does this?
السؤال 22User ana is in the groups ana and web. An admin runs usermod -G docker ana. What is the result?
السؤال 23A file shows permissions -rwxr-x---. What is the octal mode?
السؤال 24A container runs nginx with podman run -d -p 8080:80 nginx. Pages uploaded into the container disappear each time it is recreated. What should the team change?
السؤال 25A user installed their public key on a server, but SSH still asks for a password. authorized_keys is mode 666 and ~/.ssh is mode 777. What is the most likely cause?
السؤال 26The web operations group must be able to restart nginx and nothing else as root. What is the best sudo approach?
السؤال 27On a RHEL server, an admin ran firewall-cmd --add-service=https. It worked, but after a reboot HTTPS is blocked again. What was missing?
السؤال 28An application on a RHEL server must connect to a remote database, but SELinux blocks httpd from making network connections. What is the correct fix?
السؤال 29Which tool sets up full-disk or partition encryption on Linux?
السؤال 30After an incident, the security team wants to know whenever anyone writes to or changes the attributes of /etc/shadow. Which tool is designed for this?
السؤال 31A script contains: if [ $1 = "prod" ]; then … When run with no argument it prints “unary operator expected”. What fixes it?
السؤال 32In Bash, what does the special variable $? contain?
السؤال 33An admin wants both normal output and errors of ./deploy.sh saved in deploy.log, replacing any old log. Which line does this?
السؤال 34A bad commit that changed NTP settings has already been pushed to the shared main branch and pulled by colleagues. How should it be undone?
السؤال 35An Ansible playbook is run twice on the same hosts. The second run reports changed=0 for every task. What does this show?
السؤال 36Which tool is agentless and pushes configuration to managed hosts over SSH using YAML playbooks?
السؤال 37After adding a disk, a server drops into emergency mode at boot. The journal shows a timeout waiting for a device listed in /etc/fstab. What is the best first action?
السؤال 38An admin deleted a 30 GiB log file, but df still shows the filesystem full. du does not find the space. What explains this?
السؤال 39A 4-core server feels slow. top shows a load average of 9, CPU user time at 6% and wa (iowait) at 70%. Where should the investigation focus?
السؤال 40A client gets “connection timed out” when connecting to port 5432 on a database server. On the server, ss shows postgres listening on 0.0.0.0:5432. What is the most likely cause?
السؤال 41User omar gets “Permission denied” opening /srv/reports/q3/summary.txt. The file is 644 and owned by omar. Which check is the most useful next?
السؤال 42A Java service on a server stops several times a day without an error in its own log. Which source is most likely to show why?