Curated

Troubleshooting

0 votes

Questions147

  1. Question 51

    Troubleshooting

    df shows /var at 100% used, but du -sh /var accounts for far less space. Which cause fits these readings?

    Show the answer

    Correct answerA. A running process still holds open a file that has been deleted

    AWhy this is right: The deleted file has no directory entry for du to find, but its blocks stay allocated until it is closed.

    BWhy not this: Running out of inodes shows in df -i; it does not make block usage in df disagree with du.

    CWhy not this: df counts allocated blocks, so sparse files make it report less, not their full apparent size.

    DWhy not this: du sums file blocks and never counts reserved blocks; df is the one that accounts for reservation.

    Space from a deleted file is not freed until every process holding it open closes it or exits. df counts the allocated blocks, while du only walks existing directory entries. lsof +L1 finds such files, and restarting the process frees the space.

    Open this question
  2. Question 52

    Troubleshooting

    A user named jdoe receives "Disk quota exceeded" when saving files under /home, although df -h shows the filesystem is 60% used. Other users can write normally. Which command BEST shows the user's usage, limits and grace period?

    Show the answer

    Correct answerC. quota -u jdoe

    quota -u displays a user's block and inode usage against soft and hard limits, plus any grace period. du only reports usage, not the limits that are causing the error. ulimit sets per-process resource limits, not filesystem quotas.

    Open this question
  3. Question 53

    Troubleshooting

    On a RHEL-family system, an administrator adds a kernel parameter to GRUB_CMDLINE_LINUX in /etc/default/grub and reboots. The output of cat /proc/cmdline does not include the new parameter. Which step was MOST likely skipped?

    Show the answer

    Correct answerB. Running grub2-mkconfig -o /boot/grub2/grub.cfg to rebuild the configuration

    GRUB reads the generated grub.cfg at boot, not /etc/default/grub, so the file must be regenerated after editing. On RHEL-family systems that is grub2-mkconfig; Debian-family systems use update-grub. grub2-install writes the bootloader to disk but does not regenerate the menu configuration.

    Open this question
  4. Question 54

    Troubleshooting

    A Java-based service stops every few hours with no application error logged. systemctl status shows "code=killed, status=9/KILL," and memory use on the host climbs steadily before each stop. Which command BEST confirms the cause of the termination?

    Show the answer

    Correct answerB. dmesg | grep -i 'killed process'

    The kernel log records Out of memory messages and the process the OOM killer terminated, which matches SIGKILL and steadily rising memory use. coredumpctl lists crashes such as segmentation faults (SIGSEGV), not a SIGKILL sent by the OOM killer.

    Open this question
  5. Question 55

    Troubleshooting

    An administrator adds a line to /etc/fstab for a new data disk and reboots. The server drops to emergency mode, and systemd reports "Dependency failed for /data." The disk is healthy and visible as /dev/sdb1. What is the BEST fix?

    Show the answer

    Correct answerB. Correct the UUID in /etc/fstab using blkid output, then run mount -a

    A wrong UUID or device in fstab makes the mount unit fail, and systemd drops to emergency mode. Matching the entry to blkid output and testing with mount -a fixes it. fsck repairs filesystem damage, but the disk here is healthy and the entry is wrong.

    Open this question
  6. Question 56

    Troubleshooting

    A two-NIC bond0 on a server is set to mode 802.3ad (LACP). Both slaves show MII Status: up, but /proc/net/bonding/bond0 shows the partner MAC address as 00:00:00:00:00:00 and the aggregator contains only one port. The switch ports are configured as ordinary access ports. What is the BEST fix?

    Show the answer

    Correct answerD. Group the switch ports into an LACP port channel that matches the bond configuration

    Mode 802.3ad needs a peer that speaks LACP; an all-zero partner MAC shows no LACP partner is negotiating. Configuring a matching port channel on the switch fixes it. Disabling miimon is tempting, but it only stops link monitoring and does not create an LACP partner.

    Open this question
  7. Question 57

    Troubleshooting

    A new server answers ping, but SSH connection attempts from an admin workstation time out rather than being refused. On the server, ss -tlnp shows sshd listening on 0.0.0.0:22, and firewall-cmd --list-all shows the public zone with only the dhcpv6-client service. What is the BEST fix?

    Show the answer

    Correct answerB. Permanently add the ssh service to the public zone and reload firewalld

    A timeout with sshd already listening means firewalld is silently dropping port 22 traffic, so the ssh service must be allowed permanently in the active zone. Restarting sshd is tempting, but it is already bound to all interfaces and the daemon is not the problem.

    Open this question
  8. Question 58

    Troubleshooting

    After a static IPv4 configuration is applied to eth0, a server can ping hosts on its own subnet, but ping 10.20.30.40 on another network returns "Network is unreachable." The output of ip route show lists only the directly connected subnet. What is the BEST fix?

    Show the answer

    Correct answerC. Add a default route through the local router and make it persistent in the connection profile

    "Network is unreachable" means no route matches the destination, and the missing default gateway is the cause. Adding it to the profile makes it survive restarts. DNS changes are tempting, but the ping targets an IP address, so name resolution is not involved.

    Open this question
  9. Question 59

    Troubleshooting

    ip link shows eth0 as <NO-CARRIER,BROADCAST,MULTICAST,UP> with state DOWN. What is the most likely cause?

    Show the answer

    Correct answerD. An unplugged cable or a failed switch port

    AWhy not this: IP addressing sits above the link layer and does not change carrier state.

    BWhy not this: The UP flag shows the interface is administratively up; it was not set down.

    CWhy not this: Routing sits above the link layer, so a missing gateway does not cause NO-CARRIER.

    DWhy this is right: NO-CARRIER on an UP interface means no link signal, pointing to the cable, transceiver or switch port.

    NO-CARRIER means the NIC detects no link signal, so the fault is in the cable, transceiver, or switch port. An IP address or routing misconfiguration is tempting, but those sit above the link layer and do not change carrier state.

    Open this question
  10. Question 60

    Troubleshooting

    A server in a newly created VLAN repeatedly sends DHCPDISCOVER messages, as shown by dhclient -v, and never receives an offer. Servers in other VLANs obtain leases normally, and the DHCP server resides in a different VLAN. What is the MOST likely cause?

    Show the answer

    Correct answerD. The router interface for the new VLAN has no DHCP relay configured

    DHCPDISCOVER is a broadcast that does not cross VLANs, so the new VLAN's router interface needs a DHCP relay (IP helper) to forward it. A wrong DNS server is tempting, but it affects name resolution after a lease is obtained, not the lease exchange itself.

    Open this question
  11. Question 61

    Troubleshooting

    An administrator adds "Listen 3131" to the Apache configuration on a server with SELinux in enforcing mode. The httpd service now fails to start, and the journal shows "(13)Permission denied: AH00072: make_sock: could not bind to address [::]:3131." Which three actions help confirm and resolve the problem? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersC. Run semanage port -l and filter for http_port_t to list the permitted portsE. Run semanage port -a -t http_port_t -p tcp 3131, then restart httpdF. Run ausearch -m avc -ts recent to confirm a denial on the port bind

    The AVC log confirms SELinux blocked the bind, the port list shows 3131 is not labeled http_port_t, and semanage adds the label. The httpd_can_network_connect boolean governs outbound connections, not binding to a port, so it does not help.

    Open this question
  12. Question 62

    Troubleshooting

    Key-based SSH login for user alex fails, and the server falls back to a password prompt. The public key in ~/.ssh/authorized_keys is correct and the file mode is 0600. The authentication log shows "Authentication refused: bad ownership or modes for directory /home/alex," and the home directory is mode drwxrwxrwx. Which action BEST fixes the problem?

    Show the answer

    Correct answerA. Remove group and other write permission from /home/alex with chmod go-w

    With StrictModes enabled, sshd rejects keys when the home directory is writable by group or others, so removing that write access fixes the cause. Disabling StrictModes also works but removes a protection and does not fix the permissions.

    Open this question
  13. Question 63

    Troubleshooting

    A cleanup script running as root cannot delete the expired file /var/log/app/old.log and returns "Operation not permitted." The file is owned by root:root with mode 0644, the filesystem is mounted read-write, and SELinux is in permissive mode. Which action BEST resolves the problem?

    Show the answer

    Correct answerC. Run lsattr to confirm an immutable attribute, then clear it with chattr -i

    The immutable attribute blocks deletion and modification even for root, regardless of permissions. lsattr confirms it and chattr -i clears it. Changing the mode does nothing here, because the attribute check happens separately from permission bits.

    Open this question
  14. Question 64

    Troubleshooting

    An administrator adds a vendor's internal package repository on an RPM-based server. Running dnf install for a package from it fails with "Public key for package.rpm is not installed," and the repository file has gpgcheck=1. Which action BEST resolves the problem while keeping package verification in place?

    Show the answer

    Correct answerC. Verify the key fingerprint with the vendor, then import the key with rpm --import

    The package signature cannot be verified because the vendor's public key is missing, so importing the key after confirming its fingerprint fixes the error and keeps verification. Cleaning the cache does not add a key, and disabling the check removes the protection.

    Open this question
  15. Question 65

    Troubleshooting

    getfacl report.txt shows user:alice:rw- and mask::r--. Alice cannot write to the file. What is the cause?

    Show the answer

    Correct answerB. The mask limits Alice's named entry, so her effective permission is read only

    AWhy not this: Named user entries work on regular files as well as directories.

    BWhy this is right: The mask caps named user, named group and owning group entries, so rw- masked by r-- gives read only.

    CWhy not this: The other entry applies only to users matched by no other entry; Alice is matched by her named entry.

    DWhy not this: The owning user entry applies only to the file's owner; it does not override Alice's named entry.

    The ACL mask sets the maximum effective permissions for named user, named group and owning group entries, so a read-only mask limits the entry to read. Running chmod on the group bits changes the mask, which is a common cause of lost access.

    Open this question
  16. Question 66

    Troubleshooting

    A Linux server running several Java services has become very sluggish. vmstat 5 shows the si and so columns consistently in the thousands, free memory near zero, and the b column rising. User CPU time is low. Which is the most likely cause?

    Show the answer

    Correct answerB. The combined memory demand of the services exceeds physical RAM, so the system is thrashing.

    Sustained swap-in and swap-out with almost no free memory and low user CPU is thrashing caused by insufficient RAM for the workload. A saturated core would show high CPU use on that core and little swap activity.

    Open this question
  17. Question 67

    Troubleshooting

    A Linux gateway intermittently fails to accept new client connections, while established sessions keep working. CPU and memory usage are normal. dmesg shows repeated 'nf_conntrack: table full, dropping packet' messages. Which is the most likely cause?

    Show the answer

    Correct answerC. The connection tracking table is exhausted by the number of concurrent connections.

    The nf_conntrack message means the tracking table is full, so packets for new connections are dropped while existing tracked flows continue. An MTU mismatch would affect large packets generally and would not produce this specific log message.

    Open this question
  18. Question 68

    Troubleshooting

    A web server with 2 vCPUs is slow. vmstat shows cs above 150000 per second, high sy time, a run queue (r) of 40, and si, so, and wa all at 0. A newly deployed application starts a new thread for every request. Which is the most likely cause?

    Show the answer

    Correct answerA. Too many runnable threads compete for too few CPUs, forcing constant scheduler context switches.

    A very high cs rate with a long run queue and high system time means too many runnable threads share too few CPUs. Swapping and disk stalls are ruled out because si, so, and wa are all zero.

    Open this question
  19. Question 69

    Troubleshooting

    A batch job on a 16-core server runs far slower than expected. mpstat -P ALL 5 shows CPU 3 at 100% user time while the other 15 cores are more than 95% idle. The load average is about 1.0. Which is the most likely cause?

    Show the answer

    Correct answerB. The job is single-threaded, so it is limited to the speed of one core.

    One core pinned at 100% user time with the rest idle and a load near 1.0 is a CPU bottleneck from a single-threaded process. Swapping or I/O waits would show wa or swap activity and not saturated user time.

    Open this question
  20. Question 70

    Troubleshooting

    Applications on a file server stall intermittently. dmesg repeatedly shows 'blk_update_request: I/O error, dev sda, sector ...' and 'ata1.00: failed command: READ FPDMA QUEUED'. smartctl reports a rising Reallocated_Sector_Ct on sda. Which is the most likely cause?

    Show the answer

    Correct answerD. The physical disk is failing and developing bad sectors.

    Kernel I/O errors on a specific device combined with growing reallocated sectors point to a failing drive, a hardware error. A scheduler or cache problem would reduce performance but would not log device-level I/O errors.

    Open this question
  21. Question 71

    Troubleshooting

    A provider's customer contract states that Severity 1 support tickets receive a first response within 30 minutes. It also states that 10% of the monthly fee is refunded for each month in which this commitment is missed. Which term describes this commitment?

    Show the answer

    Correct answerC. SLA

    An SLA is a contractual commitment to a customer with defined remedies, and it can cover things other than availability, such as response time. An SLO is tempting, but it is an internal target and carries no contractual refund.

    Open this question
  22. Question 72

    Troubleshooting

    A provider's SLA promises 99.9% monthly availability and excludes maintenance announced at least 72 hours in advance. In one month, the only downtime was a three-hour maintenance window announced a week earlier. Monitoring shows a raw availability SLI of about 99.6%. What is the SLA status for the month?

    Show the answer

    Correct answerA. The SLA is met because the contract excludes announced maintenance from the calculation

    An SLA is judged by the contract's own definition of availability, which here excludes announced maintenance. Without that window, availability is 100%. Comparing the raw SLI to the SLA figure ignores the contractual exclusion. No SLO is needed to determine SLA status.

    Open this question
  23. Question 73

    Troubleshooting

    A team calculates the percentage of successful HTTP requests every minute from load balancer logs. In SLA, SLI and SLO terminology, what does this measured percentage represent?

    Show the answer

    Correct answerA. An SLI, a quantitative measurement of service behavior

    A service level indicator (SLI) is the measured value of some aspect of service behavior, such as the share of successful requests. An SLO is the target set for that measurement, not the measurement itself. An SLA is the agreement with customers that attaches consequences to missing a target.

    Open this question
  24. Question 74

    Troubleshooting

    A customer's contract guarantees 99.9% monthly availability and says nothing about latency. Users report pages taking over five seconds to load, although the service stayed up all month. The provider also keeps an internal latency SLO. Which statement is correct?

    Show the answer

    Correct answerB. The SLA is not breached because it covers only availability, but the internal latency SLO may be missed

    An SLA binds the provider only to the metrics written into the contract, so a latency problem does not breach an availability-only SLA. The internal latency SLO can still be missed. Treating an SLO miss as an SLA breach confuses internal targets with contractual ones.

    Open this question
  25. Question 75

    Troubleshooting

    A team runs an internal build service used only by its own developers. Prometheus already records the ratio of successful build requests, but the team cannot say whether the current value is acceptable. What should the team define next?

    Show the answer

    Correct answerD. An SLO that sets a target for the success-ratio SLI

    The success ratio is an SLI, and an SLO supplies the target that makes it possible to judge whether the value is acceptable. An error budget is derived from an SLO, so it cannot come first. An SLA is not needed for a purely internal service.

    Open this question
  26. Question 76

    Troubleshooting

    A branch firewall cannot run extra software and does not expose its security event details through SNMP, but it supports remote logging. Administrators want its event messages stored on the central log server. Which method BEST meets this need?

    Show the answer

    Correct answerA. Configure the firewall to forward syslog messages to the collector

    Forwarding syslog messages to the central collector moves event records off a device that cannot host software. Interface counters are metrics rather than event messages, and an agent cannot be installed on this firewall.

    Open this question
  27. Question 77

    Troubleshooting

    Several routers are configured to send SNMP traps to a Linux monitoring server, but no traps are recorded. Polling the same routers works. The firewall on the monitoring server permits only inbound SSH and responses to its own polling requests. Which change BEST restores trap reception?

    Show the answer

    Correct answerD. Allow inbound UDP port 162 on the monitoring server

    Managed devices send SNMP traps unsolicited to the manager on UDP port 162, so that port must accept inbound packets. Port 161 is the agent's polling port, and port 514 carries syslog, so opening them would not admit traps.

    Open this question
  28. Question 78

    Troubleshooting

    A Linux server runs a backup script nightly that finishes in about 20 seconds. The monitoring system polls the server once a minute and often misses whether the job succeeded or failed. Which method BEST captures every result?

    Show the answer

    Correct answerD. Have the script send its result to the monitoring system when it finishes

    A short-lived job is best reported by pushing its outcome to the monitoring system on completion, so no result depends on poll timing. Faster polling is wasteful and still misses events, and ping only shows the host is reachable, not job status.

    Open this question
  29. Question 79

    Troubleshooting

    Which two acquisition methods let the monitored source start the transfer of data when an event occurs, without waiting for the monitoring system to request it? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersB. SNMP trapsC. Webhooks

    Traps and webhooks are event-driven: the source sends the message when something happens. SNMP GET polling and SSH command checks are pull methods, because the monitoring server starts each request on its schedule.

    Open this question
  30. Question 80

    Troubleshooting

    A monitoring server polls a Linux host's SNMP agent for interface counters. Which statement describes this exchange?

    Show the answer

    Correct answerD. The server sends GET requests to the agent, which listens on UDP port 161

    AWhy not this: Reversed: the manager sends GET requests; port 162 is where the manager receives traps.

    BWhy not this: SNMP polling normally uses UDP port 161, not TCP.

    CWhy not this: Traps are pushed by the agent, not polled, and they go to UDP port 162.

    DWhy this is right: In polling, the manager sends GET requests and the agent answers on UDP port 161.

    The manager initiates polling with GET requests, and the agent on the managed device answers on UDP port 161. Traps work the other way, with the device sending to the manager on UDP port 162.

    Open this question
  31. Question 81

    Troubleshooting

    An administrator saves a new alert rule file at /etc/prometheus/rules/cpu.yml, but the rule does not appear on the Prometheus Alerts page. Which TWO actions are required to load it? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersB. Add the file path under rule_files in prometheus.ymlD. Reload Prometheus so it re-reads its configuration

    Prometheus loads only rule files listed under rule_files, and it must be reloaded to read the change. Adding an Alertmanager receiver is tempting, but receivers control notification delivery and have no effect on whether a rule is loaded.

    Open this question
  32. Question 82

    Troubleshooting

    A Nagios service definition for a web check notifies the on-call contact on every state change, including WARNING. The team wants notifications only for CRITICAL states and for recoveries. Which directive should be set in the service definition?

    Show the answer

    Correct answerC. notification_options c,r

    notification_options c,r limits notifications to CRITICAL states and recoveries. The w,r value is tempting, but it notifies on WARNING and never on CRITICAL; c,u omits recovery notices and adds UNKNOWN.

    Open this question
  33. Question 83

    Troubleshooting

    Planned maintenance on db01 will run for two hours and will trigger several alerts. The team wants notifications for that host suppressed only during the window, without editing rule files or Alertmanager configuration. Which action meets this requirement?

    Show the answer

    Correct answerB. Run amtool silence add with an instance="db01:9100" matcher and --duration=2h

    A silence mutes matching alerts for a fixed time and expires automatically, so no configuration changes are needed. Stopping Alertmanager is tempting, but it would suppress notifications for every host, not only db01.

    Open this question
  34. Question 84

    Troubleshooting

    When a server's NodeDown alert (severity="critical") is firing, the on-call engineer also receives many severity="warning" alerts for disk, CPU and service checks from that same server. The warnings must be suppressed only while the critical alert for the same instance is firing. Which Alertmanager configuration does this?

    Show the answer

    Correct answerA. An inhibit_rules entry with source severity="critical", target severity="warning" and equal: [instance]

    An inhibition rule mutes target alerts while a matching source alert fires, and equal: [instance] limits this to the same host. A route to an empty receiver is tempting, but it drops warnings permanently, even when no critical alert is firing.

    Open this question
  35. Question 85

    Troubleshooting

    A rack power failure makes 40 servers fire an alert named HostDown, and the on-call engineer receives 40 separate emails. The team wants one notification per alertname and datacenter label that lists every affected host. Which Alertmanager route setting achieves this?

    Show the answer

    Correct answerD. group_by: ['alertname', 'datacenter']

    group_by batches alerts that share the listed label values into one notification, so grouping on alertname and datacenter yields one message per datacenter. Grouping by instance is tempting, but it creates a separate group, and so a separate notification, for every host.

    Open this question
  36. Question 86

    Troubleshooting

    A database server's /data volume, an ext4 filesystem on /dev/sdc1, suddenly became read-only. Applications now fail with "Read-only file system" when writing, although the mount was originally read-write and file permissions are unchanged. Which three actions are appropriate to diagnose and resolve the problem? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersA. Review dmesg or journalctl -k for I/O or ext4 errors that triggered the read-only remountE. Check the health of the underlying disk with smartctl -a /dev/sdcF. Unmount the volume, or boot to rescue mode, and run fsck on the unmounted filesystem

    The kernel remounts ext4 read-only after detecting errors, so the logs, disk health and an offline fsck identify and repair the cause. Remounting read-write without investigation risks further corruption, and permissions are not the issue.

    Open this question
  37. Question 87

    Troubleshooting

    Applications writing to /var/spool/app fail with "No space left on device". df -h /var shows a 40 GB ext4 filesystem with 22 GB used and 18 GB available. What is the BEST way to confirm and resolve the problem?

    Show the answer

    Correct answerB. Run df -i to check inode usage, then remove the large number of small files consuming the inodes

    Plenty of free blocks but write failures point to inode exhaustion, which ext4 fixes at creation time. df -i shows IUse% at 100%, and deleting the many small files frees inodes. Releasing reserved blocks is wrong because 18 GB is already available, so block space is not the problem.

    Open this question
  38. Question 88

    Troubleshooting

    A custom service written in C exits unpredictably with "Segmentation fault (core dumped)." systemd-coredump is enabled on the host, and the binary was built with debug symbols. Which command BEST helps identify the function and source line that caused the crash?

    Show the answer

    Correct answerD. coredumpctl gdb appd to open the latest core dump in the debugger and inspect the backtrace

    A segmentation fault is an invalid memory access, and a backtrace from the core dump in gdb points to the faulting function and line. OOM messages describe a kernel kill with SIGKILL, which is a different failure from a segfault.

    Open this question
  39. Question 89

    Troubleshooting

    A newly installed PCIe network adapter does not appear in the output of ip link. lspci lists the device, but lspci -k shows no "Kernel driver in use" line for it. The matching module exists under /lib/modules for the running kernel, and a file in /etc/modprobe.d/ contains a blacklist line naming that module. What is the BEST fix?

    Show the answer

    Correct answerC. Remove the blacklist entry for the module, then load it with modprobe

    The blacklist entry stops the module from loading automatically, so the device has no driver. Removing it and running modprobe binds the driver. Running depmod only rebuilds the dependency map and does not load modules, and the module already matches the running kernel.

    Open this question
  40. Question 90

    Troubleshooting

    An administrator's SSH session dropped while apt upgrade was running on a Debian server. Now every apt install command stops, reporting that dpkg was interrupted and that the problem must be corrected manually. What is the BEST next step?

    Show the answer

    Correct answerB. Run dpkg --configure -a to finish configuring the packages left half-installed

    The interrupted upgrade left packages unpacked but not configured, and dpkg --configure -a completes that pending work. Running apt clean only removes cached archives and leaves the dpkg state unchanged, so the same error returns.

    Open this question
  41. Question 91

    Troubleshooting

    A server at 192.168.1.50 loses connections intermittently. Its journal contains "IPv4: duplicate address 192.168.1.50 detected!", and neighbor tables on other hosts show the MAC address for that IP changing between two values. Which command, run from another host on the same segment, BEST identifies the conflicting device?

    Show the answer

    Correct answerC. arping -I eth0 192.168.1.50 to see replies arriving from two different MAC addresses

    arping works at layer 2, so replies from two different MAC addresses for one IP prove a conflict and reveal the second device. ping and traceroute work at layer 3 and cannot show which MAC is answering, so they cannot isolate the duplicate.

    Open this question
  42. Question 92

    Troubleshooting

    A new application on a RHEL server listens on TCP 8080. ss -tlnp shows it bound to 0.0.0.0:8080, and curl to localhost:8080 succeeds. Remote clients time out, and firewall-cmd --list-ports does not include 8080. The change must persist across reboots. What is the BEST fix?

    Show the answer

    Correct answerB. Run firewall-cmd --permanent --add-port=8080/tcp, then firewall-cmd --reload

    A timeout with a working local connection points to the firewall dropping the traffic. Adding the port with --permanent and reloading opens it now and after reboot. A runtime-only rule is lost at restart, and binding to loopback would block remote access entirely.

    Open this question
  43. Question 93

    Troubleshooting

    A server on the 192.168.1.0/24 network was configured with the address 192.168.1.20/16 and a default gateway of 192.168.1.1. It reaches local hosts, but ping 192.168.2.10, a host in another network behind the router, returns "Destination Host Unreachable" from the server itself. ip neigh shows 192.168.2.10 as FAILED. What is the BEST fix?

    Show the answer

    Correct answerA. Change the prefix length to /24 so that 192.168.2.0/24 is not treated as on-link

    With a /16 mask the server considers 192.168.2.10 on-link and ARPs for it directly, which fails because the host is behind the router. Correcting the prefix to /24 sends that traffic to the gateway. A default route already exists, and flushing the cache would only repeat the failed ARP.

    Open this question
  44. Question 94

    Troubleshooting

    A server's eth0 link is up, but file transfers are very slow. ethtool eth0 reports Speed: 100Mb/s, Duplex: Full and Auto-negotiation: off, and ip -s link shows rising error and carrier counts. The switch port is set to auto-negotiate, and both ends support 1 Gb/s. What is the BEST fix?

    Show the answer

    Correct answerA. Re-enable auto-negotiation with ethtool -s eth0 autoneg on

    A forced speed and duplex on the NIC against an auto-negotiating switch port causes a duplex mismatch, which produces errors and poor throughput. Enabling auto-negotiation on the NIC lets both ends agree on 1 Gb/s full duplex. Changing MTU or queue length does not touch the negotiation fault.

    Open this question
  45. Question 95

    Troubleshooting

    A dual-stack web server has both IPv4 and a global IPv6 address from router advertisements. Clients that resolve the server's name get both A and AAAA records and see 30-second delays before pages load. curl -4 to the server responds instantly, while curl -6 times out. Which three actions are appropriate to diagnose and resolve the problem? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersA. Check ip -6 route show on the server for a valid IPv6 default routeC. Review the nftables or firewalld rules to confirm IPv6 traffic to the service port is allowedE. Test the IPv6 path with ping -6 to the gateway and to an external address

    The failure is limited to IPv6, so verify the IPv6 default route, test reachability with ping -6, and confirm the firewall permits IPv6 to the service. Removing IPv4 would break the working path, and the keepalive time only affects how long idle established connections wait before probes, so it does not change connection setup delay.

    Open this question
  46. Question 96

    Troubleshooting

    A vulnerability scan reports a Redis service with no authentication that is reachable from the internet on TCP 6379. The only client is an application on the same host. ss -tlnp shows redis-server listening on 0.0.0.0:6379. What is the BEST fix?

    Show the answer

    Correct answerC. Set bind 127.0.0.1 in redis.conf and restart the service

    Because only local clients need the service, binding it to the loopback address removes the network exposure. Changing the port only obscures the service, and a scan would still find it. File permissions on the configuration do not limit who can connect.

    Open this question
  47. Question 97

    Troubleshooting

    A PHP application served by Apache on an SELinux-enforcing RHEL server cannot connect to a PostgreSQL database at 10.0.5.20 on TCP 5432. Connectivity tests from the host succeed, and the application works after setenforce 0. ausearch -m avc shows httpd_t denied name_connect to postgresql_port_t. What is the BEST fix?

    Show the answer

    Correct answerA. Run setsebool -P httpd_can_network_connect_db on to allow Apache database connections

    The denial is httpd_t connecting to a database port, which the persistent httpd_can_network_connect_db boolean permits. Relabelling files does not help because the denial is about a network connection, not a file context. Permissive mode removes protection system-wide.

    Open this question
  48. Question 98

    Troubleshooting

    A web administrator moves site content to /data/site on a RHEL-based server running SELinux in enforcing mode. Apache (httpd) now returns 403 Forbidden even though the files are readable by all users. ausearch shows an AVC denial for httpd_t reading files labeled default_t. What is the BEST fix?

    Show the answer

    Correct answerB. Add a file context rule with semanage fcontext for /data/site(/.*)?, then run restorecon -Rv /data/site

    The denial comes from the SELinux file label, not from permissions. A semanage fcontext rule records the correct type persistently, and restorecon applies it to the existing files. chcon sets the label but is not recorded in policy, so a relabel or restorecon can revert it. Disabling SELinux or opening permissions does not fix the label.

    Open this question
  49. Question 99

    Troubleshooting

    After a home directory is restored from backup, user jlee can no longer log in over SSH with a key. The client ends with "Permission denied (publickey)" and /var/log/secure shows "Authentication refused: bad ownership or modes for directory /home/jlee." The directory is mode 0777. What is the BEST fix?

    Show the answer

    Correct answerC. Remove group and world write access from the home directory with chmod go-w /home/jlee

    With StrictModes enabled, sshd refuses keys when the home directory is writable by others, so the mode must be corrected. Turning StrictModes off hides the problem and weakens security. Replacing the key does not help because the key is not the problem.

    Open this question
  50. Question 100

    Troubleshooting

    After hardening an Nginx server that uses an RSA certificate, administrators set ssl_ciphers to only ECDHE-ECDSA suites. Clients that support only TLS 1.2 now fail with "handshake failure," and openssl s_client reports "no shared cipher." TLS 1.3 clients still connect. What is the BEST fix?

    Show the answer

    Correct answerA. Add strong ECDHE-RSA AES-GCM suites to the ssl_ciphers list and reload Nginx

    An RSA certificate cannot be used with ECDSA-only suites, so TLS 1.2 clients have no usable cipher; adding strong ECDHE-RSA suites fixes this. TLS 1.3 clients work because its suites are configured separately. Re-enabling TLS 1.0/1.1 would bring back obsolete protocols and would not fix the missing suites.

    Open this question