An administrator is investigating the reason a Linux workstation is not resolving the website http://www.comptia.org. The administrator executes some commands and receives the following output:

Which of the following is the most likely cause?
When troubleshooting name resolution issues in Linux, /etc/hosts entries take precedence over DNS lookups. The workstation's /etc/hosts file contains the line:
CopyEdit
104.18.99.101 www.comptia.org
This means any attempt to access www.comptia.org will resolve to 104.18.99.101, regardless of the real DNS response. However, both dig and nslookup show the correct IP as 104.18.16.29. Because the local /etc/hosts entry overrides DNS, and the hardcoded IP is either incorrect or unreachable, all network traffic to www.comptia.org will fail or not reach the intended destination, resulting in the observed connectivity issue (Destination Host Unreachable).
Other options:
B . The lack of IPv6 support is irrelevant since the host is using IPv4 and the DNS queries for IPv4 (A record) are successful.
C . The firewall would block all HTTP/HTTPS connections, but the error shown is a host unreachable, not a port-specific issue.
D . The nameserver is working; both dig and nslookup queries succeed and return the correct A record.
CompTIA Linux+ Study Guide: Exam XK0-006, Sybex, Chapter 8: 'Networking Fundamentals', Section: 'Troubleshooting Name Resolution'
CompTIA Linux+ XK0-006 Objectives, Domain 2.0: Networking
A Linux software developer wants to use AI to optimize source code used in a commercial product. Which of the following steps should the developer take first?
Linux+ V8 emphasizes security, compliance, and governance when introducing new automation technologies, including AI. Before using AI tools to optimize commercial source code, the developer must ensure that such usage complies with organizational policies.
Option B is correct because verifying company policy is the first and most critical step. AI tools may introduce risks such as intellectual property leakage, licensing conflicts, or regulatory violations. Many organizations restrict how source code can be shared with external systems, including AI services.
The other options are premature. Selecting tools or deploying models should only occur after policy approval. Linux+ V8 highlights governance-first approaches when adopting automation technologies.
Therefore, the correct answer is B.
A user reports recurrent issues with an application, which is currently operational. The systems administrator gathers the following outputs to diagnose the issue:
Out of memory: Kill process (mariadb)
Killed process (mariadb)
mariadb invoked oom-killer
egrep 'Out of memory' /var/log/messages
Multiple entries showing mariadb being killed by OOM killer
free -m
Mem: total 15819, used 10026, free 5174, available 5134
Swap: 0 0 0
sar -r
kbmemused ~67%, no swap usage
Which of the following is a possible cause of this issue?
The correct answer is D. The process is showing signs of a memory leak because the logs clearly indicate repeated activation of the OOM (Out Of Memory) killer, specifically targeting the mariadb process. The OOM killer is triggered when the Linux kernel determines that the system is running critically low on memory and must terminate processes to maintain system stability.
The repeated log entries showing mariadb invoked oom-killer and multiple instances of the process being killed strongly suggest that this application is consuming increasing amounts of memory over time without releasing it properly. This is a classic symptom of a memory leak, where an application continuously allocates memory but fails to free it, eventually exhausting available system resources.
The free -m output shows that while there is still some free memory, swap space is completely unused (0 total). This means the system has no fallback memory, making it more susceptible to OOM conditions. However, the absence of swap alone does not explain why a specific process is repeatedly being killed.
Option A is incorrect because there is no indication of a backup process consuming memory. Option B is incorrect because the system is not using swap at all. Option C is incorrect because cached memory is reclaimable by the kernel and does not typically trigger the OOM killer.
From a Linux+ troubleshooting perspective, identifying repeated OOM events tied to a specific process is a strong indicator of inefficient memory handling or a memory leak. Administrators should investigate the application, apply updates or patches, or restart the service periodically while implementing proper monitoring and possibly adding swap space as a temporary mitigation.
A systems administrator troubleshoots a connectivity issue and needs to determine whether port 449 is open locally. Which of the following commands should the administrator use?
In Linux troubleshooting, identifying which ports are listening for connections is a foundational skill. According to CompTIA Linux+ V8, the ss (socket statistics) utility is the modern replacement for the older netstat command. It is used to dump socket statistics and provides information similar to netstat, but it is faster and can display more detailed TCP and state information.
To check if a specific port (like 449) is open locally, the administrator would run ss -an | grep 449.
-a: Displays both listening and non-listening (for established connections) sockets.
-n: Shows numerical port numbers instead of attempting to resolve them to service names (e.g., showing 443 instead of https).
| grep 449: Filters the output to show only lines containing the desired port number.
If the output shows a line with the state LISTEN on port *:449 or 127.0.0.1:449, the service is successfully running and bound to that port.
The other options are incorrect for the following reasons: ip link (Option A) is used to manage network interfaces (layer 2) and does not show port information (layer 4). dig (Option B) is a DNS lookup tool and cannot check port status. tracepath (Option C) is used to trace the network path to a host and detect MTU issues; it does not report on the state of specific local ports.
Therefore, ss is the verified tool for this troubleshooting task.
Which of the following utilities can securely delete a Linux directory from a filesystem and ensure it cannot be recovered?
The correct answer is B. shred because it is specifically designed to securely delete data by overwriting files multiple times, making data recovery extremely difficult or practically impossible. In Linux environments, simply deleting a file or directory does not remove the actual data from the disk; instead, it only removes the file's reference from the filesystem. Until that space is overwritten, the data can potentially be recovered using forensic tools.
The shred command mitigates this risk by overwriting the contents of files with random data repeatedly before deletion. This aligns with security best practices outlined in Linux+ objectives, particularly in the domain of data protection and secure data disposal. When used with appropriate options (such as recursive handling through scripting or combining with other commands), shred can be applied to files within directories to ensure secure deletion.
Option A (dd) is incorrect because while dd can overwrite disks or partitions with zeros or random data, it is not specifically designed for secure deletion of directories and requires careful manual targeting. Misuse can lead to accidental data loss.
Option C (unlink) is incorrect because it simply removes a file name from the filesystem, similar to rm, without overwriting the data. Therefore, the data remains recoverable.
Option D (rm) is also incorrect because it removes files or directories at the filesystem level but does not securely erase the data. Even with options like -r or -f, it does not overwrite file contents.
From a Linux+ security standpoint, shred is the most appropriate utility among the given options for secure data destruction, helping ensure sensitive information cannot be recovered.
Donald Johnson
17 days agoSharon Hernandez
28 days agoKevin Martin
2 months agoCarol Cooper
2 months agoMark Johnson
3 months agoSandra Young
3 months agoBetty Cooper
3 months agoSarah Perez
3 months agoJustin Parker
2 months agoJustin King
2 months agoMichael Gonzalez
2 months agoAlbina
4 months agoRaul
4 months agoGilma
4 months agoMelodie
4 months agoRosio
5 months ago