CompTIA certification · Exam SK0-005

SK0-005 Mock Exam Page 13

CompTIA Server+

Free SK0-005 mock exam questions 121–130, each with the answer and an explanation.

20 questions · 20 minutes · free, no sign-up

Free SK0-005 questions

121–130 of 146 free
Question 121 Choose 1
A server administrator receives the following output when trying to ping a local host:

Which of the following is MOST likely the issue?
Show answerHide answer

Correct answer: A Firewall

Explanation

Explanation

When a local host pings another device and receives "Destination Host Unreachable," it means one of two things:

The local system (the one running the ping) determined there is no route to the destination.
An intermediate router sent an ICMP "Destination Unreachable" message back to the sender.
Since the devices are on the local network, a common cause for traffic to be blocked before it can establish a connection is a firewall 🛡️.

A software firewall on the destination host can be configured to drop ICMP echo requests (pings) without sending a "Host Unreachable" reply.
However, if the error is a "Reply From : Destination Host Unreachable," it typically indicates an ARP failure or a routing problem on the local network that is preventing the packet from ever leaving the sender's local subnet.

In the context of the options provided, a firewall is a very common cause for a specific protocol (ICMP) to be blocked, leading to an unreachable status, even when other network functions (like ARP) might be working but are being intercepted or dropped by the security policy.

Why the Other Options are Less Likely

B. DHCP (Dynamic Host Configuration Protocol):
If DHCP had failed, the local host would likely have an APIPA address (e.g., 169.254.x.x) or no IP address at all, which would result in general network failure and possibly a "Network is unreachable" error, not the specific "Host Unreachable" message from a ping on the local network.

C. DNS (Domain Name System):
DNS is used for name resolution. If DNS were the issue, the command would fail to resolve the hostname and return "Unknown host" or "Name or service not known," not a successful lookup followed by a connectivity error. Since the server administrator is pinging a "local host," they may be using the IP address, which bypasses DNS entirely.

D. VLAN (Virtual Local Area Network):
A VLAN misconfiguration would typically manifest as the hosts being on different network segments without proper routing, which is a routing issue (a possible cause of "Host Unreachable"). However, a firewall is a more direct and easily isolated control that can specifically block the ICMP protocol used by ping, making it a more likely first point of failure to check.
Question 122 Choose 1
An administrator discovers a Bash script file has the following permissions set in octal notation;

777

Which of the following is the MOST appropriate command to ensure only the root user can modify and execute the script?
Show answerHide answer

Correct answer: A chmod go-rw>:

Explanation

Explanation:

The current permission of 777 in octal notation is a major security risk.

Let's break it down:

Octal 7 means: read (4) + write (2) + execute (1) = 7
777 means: User (owner) has read, write, execute; Group has read, write, execute; Others (everyone else) has read, write, execute
This means ANY user on the system can modify, read, and execute this script.

Why chmod go-rwx is Correct:

The command chmod go-rwx removes (-) all permissions (read, write, execute) for both the group (g) and others (o).
Resulting permissions: rwx------ (Octal 700)
User (root): read, write, execute
Group: no permissions
Others: no permissions
This ensures only the root user (the owner) can modify and execute the script, which is exactly what the question requires.

Why the Other Options Are Incorrect:

B. chmod u=rwx
This sets the user's permissions to read, write, execute, but does not change the existing group and others permissions.
Result: rwxrwxrwx (still 777) - no change to the security risk.

C. chmod u+wx
This adds (+) write and execute permissions for the user, but the user already has these permissions (from the 777).
Result: rwxrwxrwx (still 777) - no meaningful change.

D. chmod g-rwx
This only removes permissions from the group (g), but leaves others (o) with full permissions.
Result: rwx---rwx (Octal 707) - others can still modify and execute the script.

Conclusion:
Only option A (chmod go-rwx) comprehensively addresses the security issue by removing all permissions from both group and others, ensuring only the root user has access to modify and execute the script.
Question 123 Choose 1
A server room contains ten physical servers that are running applications and a cluster of three dedicated hypervisors. The hypervisors are new and only have 10% utilization. The Chief Financial Officer has asked that the IT department do what it can to cut back on power consumption and maintenance costs in the data center. Which of the following would address the request with minimal server downtime?
Show answerHide answer

Correct answer: B Convert the physical servers to the hypervisors and retire the ten servers.

Explanation

Explanation

The scenario describes:

Ten physical servers running applications
Three underutilized hypervisors (10% utilization)
A request to reduce power consumption and maintenance costs with minimal downtime

Server virtualization is the most effective solution because:

Consolidation:

Physical servers are migrated as virtual machines (VMs) onto the hypervisors.
Reduces the number of physical servers in the data center from 10 to 3 hypervisors, significantly cutting power usage, cooling requirements, and maintenance.

Minimal downtime:
Migration tools such as VMware vMotion or Hyper-V Live Migration allow VMs to be moved without shutting down the physical servers, satisfying the “minimal downtime” requirement.

Cost savings:
Fewer physical machines = lower electricity and maintenance costs
Less rack space is required

Reference:
2.1 – Given a scenario, implement server virtualization solutions
2.2 – Apply power and cooling best practices (Virtualization is the industry-standard method to reduce power usage with minimal downtime.)

Incorrect Options

A. Unplug the power cables from redundant power supplies
Reducing power from redundant PSUs does not lower server count or utilization, so cost savings are minimal.
Risky: if one PSU fails, servers could lose power.

C. Reimage the physical servers and retire all ten servers after migration
Reimaging servers would take significant downtime.
Physical servers would need to be rebuilt, configured, and tested before decommissioning.
This is more disruptive than live migration to hypervisors.

D. Convert the ten servers to power-efficient core editions
Upgrading to “power-efficient cores” may marginally reduce power, but:
Servers still run physically
Maintenance costs remain
Savings are far lower than virtualization and consolidation

Summary
To reduce power consumption and maintenance costs while ensuring minimal downtime:
Migrate the workloads from the ten physical servers onto the underutilized hypervisors and retire the ten servers.
Question 124 Choose 1
A server administrator wants to check the open ports on a server. Which of the following commands should the administrator use to complete the task?
Show answerHide answer

Correct answer: D netstat -a

Explanation

Explanation

To check open ports on a server, the correct command is netstat -a. This command displays all active TCP connections and the TCP and UDP ports on which the computer is listening.

Using netstat to Check Ports

The netstat command is the primary built-in tool for checking network connections and listening ports.

Here are common switches to refine your port check:

netstat -a: Shows all active connections and listening ports.

netstat -ab: Adds the b switch to display the executable name involved in creating each connection or listening port, helping you identify which application is using a port.

netstat -ano: The -o switch displays the Process ID (PID) for each connection. You can find the application based on the PID on the Processes tab in Windows Task Manager. The -n option shows addresses and port numbers numerically.

Alternative Methods

If you need to identify the application using a specific port, you can:

Use Task Manager: Run netstat -ano to get the PID, then open Windows Task Manager, go to the Details tab, and match the PID to find the process name.
Try the ss command on Linux: A modern replacement for netstat that is faster and provides similar information.

Why the Other Options Are Incorrect

A. nslookup:
This command is designed for Domain Name System (DNS) querying.
Its function is to resolve hostnames to IP addresses or vice versa.
It provides no information about which ports are open or listening on a server.

B. nbtstat:
This command displays NetBIOS over TCP/IP protocol statistics.
It's an older, specialized tool and is not a general utility for enumerating all open TCP and UDP ports on a modern server.

C. telnet:
This command is used to test connectivity to a single, specific port on a host.
For instance, you could use it to check if port 80 is open.
However, it cannot list all the ports that the server is currently listening on.
Question 125 Choose 1
Which of the following commands should a systems administrator use to create a batch script to map multiple shares'?
Show answerHide answer

Correct answer: B netuse

Explanation

Explanation

The net use command is the standard Windows command-line utility used to connect to, disconnect from, and view information about shared network resources, such as network drives or printers.
When placed inside a batch script (.bat or .cmd file), the administrator can automate the process of mapping multiple shares upon user login or system startup.

The basic syntax to map a share is:

$$\text{net use } [\text{DriveLetter}:] [\text{\\\ServerName\ShareName}] [\text{/persistent:yes|no}]$$

Example Batch Script for Multiple Shares

A batch script to map two different shares might look like this:

Code snippet

@echo off REM Delete any existing mappings for drives H: and I:
net use H: /delete /y
net use I: /delete /y

REM Map the main 'Home' share to H: and make it persistent
net use H: \\FileServer01\HomeShares\%USERNAME% /persistent:yes

REM Map the 'Public' share to I:
net use I: \\FileServer01\PublicData /persistent:yes

Why Other Options Are Incorrect

A. nbtstat:
This command is used to display NetBIOS over TCP/IP protocol statistics.
It is used for network troubleshooting and provides no function for mapping network drives.

C. tracert:This command is used to trace the route (or path) that a packet takes from the source computer to a destination computer, primarily for network diagnostics.
It has no drive mapping function.

D. netstst:
This command is a typographical error (a misspelling of netstat), and is not a valid Windows command.
The correct command, netstat, is used to display active network connections and listening ports, not to map shares.
Question 126 Choose 1
Users are able to connect to the wireless network, but they are unable to access the internet. The network administrator verifies connectivity to all network devices, and there are no ISP outages. The server administrator removes the old address leases from the active leases pool, which allows users to access the internet. Which of the following is most likely causing the internet issue?
Show answerHide answer

Correct answer: B The DHCP scope is full.

Explanation

Explanation:

This scenario describes a classic symptom of an exhausted DHCP scope.

Let's break down what happened:
How the Problem Manifested:

Users could connect to WiFi: This means they had a valid wireless association with the access point.
But couldn't access the internet: This indicates they either had no IP address or an invalid one.
The fix was clearing old address leases: This immediately freed up IP addresses in the pool.

Why a Full DHCP Scope Causes This:

A DHCP scope has a limited number of IP addresses available for assignment.
When devices connect, they receive a "lease" on an IP address for a specific duration.
If the scope is 100% utilized, new devices cannot get an IP address.
Without a valid IP address, a device cannot communicate on the network, resulting in exactly the symptoms described: local network connectivity (WiFi association) but no internet access.
The administrator clearing "old address leases from the active leases pool" directly confirms this diagnosis. Those old leases were likely from devices that were no longer connected but whose lease periods hadn't expired yet, artificially filling up the scope.

Why the Other Options Are Incorrect:

A. The DHCP exclusion needs to be removed:
Exclusions are ranges reserved to NOT be assigned by DHCP. Removing them would make MORE addresses available, which doesn't align with the problem being solved by clearing existing leases.

C. The DHCP scope options are misconfigured:
If scope options (like default gateway or DNS servers) were wrong, users would get IP addresses but still couldn't access the internet. The problem here was that users couldn't get IP addresses at all until leases were cleared.

D. The DHCP lease times are too short:
Very short leases cause frequent renewal traffic but don't typically prevent initial connection. Extremely long leases could contribute to scope exhaustion, but the immediate fix of clearing leases points to scope capacity, not lease duration, as the root cause.

E. The DHCP reservations need to be configured:
Reservations guarantee specific devices get specific IPs. Not having reservations might cause IP consistency issues but wouldn't prevent new devices from getting any address.

Conclusion:
The evidence overwhelmingly points to a full DHCP scope. The old, unused leases were occupying all available IP addresses, preventing new devices from obtaining network configuration. Clearing these inactive leases immediately solved the problem by returning addresses to the available pool.

Reference:
This is a fundamental network administration concept covered in the objectives under domain 2.2 "Addressing Technologies," which includes DHCP configuration and troubleshooting.
Question 127 Choose 1
After installing a new file server, a technician notices the read times for accessing the same file are slower than the read times for other file servers.
Which of the following is the first step the technician should take?
Show answerHide answer

Correct answer: B Check if the cache is turned on.

Explanation

Explanation

The scenario describes slower read times for accessing the same file compared to other file servers.
Before making hardware changes (memory, storage, or network), the first step in troubleshooting is to check if caching mechanisms are enabled.

This is because:

Caching improves read performance
File servers often use disk caches, RAM caches, or storage controller caches to store frequently accessed data.
If caching is disabled, the server reads data directly from the disk each time, resulting in slower performance.
Minimal impact and risk
Enabling cache does not require new hardware or downtime
Immediate improvement can often be seen once cache is configured correctly
Aligns with troubleshooting best practices
CompTIA Server+ recommends checking system configurations and settings first before making costly hardware upgrades.

Reference:
3.1 – Apply troubleshooting methodology
2.2 – Given a scenario, apply storage technologies and troubleshooting (Cache settings are a key factor in storage performance issues.)

Incorrect Options

A. Add more memory
Adding RAM may improve caching indirectly but is not the first step
The issue could be simply that caching is disabled
Unnecessary hardware changes are costly and may not solve the problem

C. Install faster hard drives
Upgrading drives (HDD → SSD) may improve performance but is premature
The server may already have adequate drives; the performance bottleneck could be configuration, not hardware

D. Enable link aggregation
Link aggregation combines multiple network interfaces for higher network throughput
The issue described is read time from the storage, not network bottleneck
Therefore, this is not the correct first step

Summary
When a new file server shows slower read times than expected:
The first step is to check whether the cache is enabled, as caching is often the main factor affecting file read performance.
Question 128 Choose 1
An organization is donating its outdated server equipment to a local charity. Which of the following describes what the organization should do BEFORE donating the equipment?
Show answerHide answer

Correct answer: D Review all company polices.

Explanation

Explanation

Data Sanitization is Paramount Before donating outdated server equipment, the absolute most critical step an organization must take is data sanitization (or secure data destruction).

Protecting Sensitive Information:
Server hard drives contain sensitive company data, including customer records, proprietary business information, financial data, and user credentials.
Simply deleting files or reformatting the drives is insufficient, as the data can still be recovered using forensic tools.

Compliance and Legal Liability:
Failing to securely wipe data exposes the organization to severe legal penalties and reputational damage due to non-compliance with data privacy regulations (like GDPR, HIPAA, etc.).

"Least Destructive Method":
The prompt specifies the "least destructive method," which typically refers to software-based data wiping or overwriting (using tools that write multiple passes of random data or zeros) rather than physical destruction (shredding or degaussing).
This method ensures the data is unrecoverable while leaving the drives intact and usable for the charity.

Why Other Options Are Not the Primary Requirement

B. Repurpose and recycle any usable server components:
This is a good practice for internal resource management, but it is a business decision, not a mandatory security step required before donation. The primary concern is the data on the drives.

C. Remove all the components from the server:
Removing components would leave the server unusable for the charity and is an unnecessary step. The focus should be on the storage media, not the motherboard, RAM, or power supply.

D. Review all company policies:
While checking policies is generally prudent, the actual execution of the data sanitization procedure (Option A) is the required operational step that fulfills the core purpose of those policies.

Key Concept:

Data Sanitization is the process of deliberately, permanently, and irreversibly removing or destroying the data stored on a storage device (like a hard drive or SSD) to make it unrecoverable.

Why it's Crucial:
Servers are repositories for highly sensitive information (customer data, employee records, proprietary intellectual property). If this data is not properly destroyed, the organization is exposed to data breaches, legal liability, and violations of regulatory mandates (such as HIPAA, GDPR, or state data privacy laws).

The "Least Destructive Method":
The chosen method (Option A) refers to software-based overwriting (wiping) using programs that apply multiple passes of random data or zeros across the entire disk surface. This renders the original data unrecoverable without physically destroying the expensive hardware, allowing the charity to reuse the equipment.
Question 129 Choose 1
An administrator notices nigh traffic on a certain subnetand wouldlike to identify the source of the traffic. Which of the following tools should the administrator utilize?
Show answerHide answer

Correct answer: D Sniffer

Explanation

Explanation

A packet sniffer (also known as a network protocol analyzer) operates in promiscuous mode on a network interface, capturing every frame that passes through the subnet regardless of the destination MAC address.
Once captured, the tool decodes the Ethernet, IP, and transport-layer headers to reveal:

Source and destination IP addresses
Source and destination MAC addresses
Protocol type (TCP, UDP, ICMP, etc.)
Port numbers (for TCP/UDP)
Packet size and timestamp
Payload data (optional, depending on privacy settings)

By applying display filters (e.g., by IP or port) and generating traffic statistics (such as bytes per second per host), the administrator can quickly identify the device responsible for the high traffic volume. Common examples include Wireshark, tcpdump, and Microsoft Network Monitor.

Incorrect Options:

A. Anti-malware
Anti-malware solutions focus on endpoint protection. They use signature-based detection, heuristics, and behavior monitoring to identify and block malicious software on individual hosts. These tools operate at the file and process level within the operating system and have no capability to monitor or capture raw network packets traversing a subnet. They cannot determine which device is generating excessive traffic.

B. Nbtstat
The nbtstat command-line utility is designed specifically for troubleshooting NetBIOS name resolution over TCP/IP (NetBT). It displays statistics such as NetBIOS name tables, cache entries, and session information. Its scope is limited to legacy Windows networking (ports 137–139) and does not provide visibility into general IP traffic, bandwidth usage, or packet-level details across a subnet.

C. Port scanner
A port scanner is an active reconnaissance tool that sends crafted packets (e.g., SYN, ACK, or UDP probes) to target hosts to determine which ports are open and what services are running. While useful for security assessments, it generates its own network traffic and only reports responsiveness from scanned hosts. It cannot passively observe existing traffic flows or identify which device is the source of sustained high bandwidth usage.

References:
Wireshark User’s Guide – Capturing and Analyzing Network Traffic
Microsoft Windows Command-Line Reference – nbtstat
RFC 791– Internet Protocol (IP)
RFC 826 – Ethernet Address Resolution Protocol (ARP)
IEEE 802.3– Ethernet Frame Format
Question 130 Choose 1
An administrator is investigating several unexpected documents and video files that recently appeared in a network share. The administrator checks the properties of the files and sees the author's name on the documents is not a company employee. The administrator questions the other users, but no one knows anything about the files. The administrator then checks the log files and discovers the FTP protocol was used to copy the files to the server. Which of the following needs to be done to prevent this from happening again?
Show answerHide answer

Correct answer: D Disable anonymous access.

Explanation

Explanation

The incident involves an unauthorized external user uploading files to a network share via FTP. The log files confirming FTP usage and the unknown author indicate a failure in access control at the service level. The most direct way to prevent a recurrence is to address this specific authentication vulnerability.

Correct Option

D. Disable anonymous access
This is the correct and most effective solution. FTP servers often have an "anonymous access" feature enabled by default, allowing anyone to connect without valid user credentials. By disabling this feature, the server will require every connection to authenticate with a recognized username and password. This directly prevents an unknown external individual from gaining access and uploading files, resolving the exact security gap that was exploited.

Incorrect Options

A. Implement data loss prevention (DLP)

Reason for Incorrectness:
DLP systems are designed to monitor and prevent sensitive data from leaving the organization (data exfiltration). This incident involves unsanctioned data entering the network. Therefore, DLP is not the appropriate control for this scenario.

B. Configure intrusion detection

Reason for Incorrectness:
While an Intrusion Detection System (IDS) is a valuable security tool, its role is to monitor and alert on suspicious activity after it occurs. It is a detective control, not a preventive one. An IDS might generate an alert about the FTP uploads, but it would not stop them from happening. The question asks for a method to prevent the incident.

C. Turn on User Account Control (UAC)

Reason for Incorrectness:
UAC is a security feature in client operating systems (like Windows) that manages privileges for applications running on that local machine. It has no control over network-level authentication protocols like FTP and cannot prevent a remote user from connecting to a network service.

Reference:
This action aligns with fundamental security best practices for hardening network services, specifically the principle of enforcing authentication to eliminate anonymous access vectors.
Full mock exam

Sit the SK0-005 exam before exam day

Full-length mocks with the same number of questions and the same time limit as the real SK0-005 exam. Every attempt draws a new set of questions from the full bank, so you can keep going until you pass comfortably.

Get full SK0-005 mock exam
  • 90questions per mock
  • 90 mintime limit
  • 493questions in the bank
  • Newmock on every attempt