Curated

Troubleshooting

0 votes

Questions147

  1. Question 1

    Troubleshooting

    A finance manager asks why missing the 99.5% availability figure in a customer contract triggers service credits, while missing the engineering team's own 99.9% availability goal costs nothing. Which statement explains the difference?

    Show the answer

    Correct answerB. The contract figure is an SLA, a formal agreement with defined consequences when missed

    A service level agreement (SLA) is a formal commitment to a customer that includes remedies such as service credits. The internal goal is an SLO, which guides engineering priorities but has no contractual penalty.

    Open this question
  2. Question 2

    Troubleshooting

    A platform team sets an internal goal that 99.9% of API requests must succeed over a rolling 30-day window. No customer contract references this goal and no penalties apply if it is missed. Which term describes this goal?

    Show the answer

    Correct answerD. SLO, a target for a service level

    A service level objective (SLO) is a target value for an SLI over a time window, set internally to guide reliability work. It is not an SLA, because an SLA is a formal agreement with a customer that carries consequences when missed.

    Open this question
  3. Question 3

    Troubleshooting

    For one month, monitoring shows a measured availability SLI of 99.2%. The team's SLO is 99.9% and the customer SLA is 99.0%. Which conclusion is correct?

    Show the answer

    Correct answerA. The SLO was missed but the SLA was met, so no contractual penalty applies

    The SLI of 99.2% is below the 99.9% SLO but above the 99.0% SLA, so the internal target was missed while the contract was still met. Claiming both were missed ignores that the SLA threshold is lower than the SLO.

    Open this question
  4. Question 4

    Troubleshooting

    A hosting provider's customer SLA promises 99.9% monthly availability. The operations team must now choose an internal SLO for the same service. Which SLO is most appropriate?

    Show the answer

    Correct answerA. 99.95%, which is stricter than the SLA and warns the team before a breach

    An SLO is normally set stricter than the SLA so the team sees the target slipping and can act before the contractual promise is broken. An SLO equal to the SLA is tempting, but it leaves no margin once the SLO is missed.

    Open this question
  5. Question 5

    Troubleshooting

    An engineer configures Prometheus to calculate the percentage of HTTP requests that complete successfully in under 300 ms over the last five minutes. What does this calculated value represent?

    Show the answer

    Correct answerD. An SLI, because it is a measured value of service behavior

    A service level indicator (SLI) is a quantitative measurement of behavior, such as the fraction of fast, successful requests. An SLO is tempting, but it is the target the SLI is compared against, not the measurement itself.

    Open this question
  6. Question 6

    Troubleshooting

    A UPS supports SNMP. Operators must be notified within seconds when it switches to battery power, but the monitoring server polls devices only every five minutes. Which method BEST meets this need?

    Show the answer

    Correct answerC. Configure the UPS to send an SNMP trap to the manager

    An SNMP trap is sent by the device itself when the event occurs, so notification does not wait for a poll cycle. Faster GET polling is tempting, but even a 60-second interval can delay the alert and adds constant query load.

    Open this question
  7. Question 7

    Troubleshooting

    A monitoring server must collect interface counters and CPU load from a managed network switch. The switch firmware does not allow third-party software to be installed. Which acquisition method BEST fits this situation?

    Show the answer

    Correct answerC. Poll the switch over SNMP from the server

    SNMP polling is agentless: the server queries the switch's built-in SNMP agent for counters and load, so nothing needs installing. A host-based monitoring agent is the tempting choice, but it requires installing software, which the firmware forbids.

    Open this question
  8. Question 8

    Troubleshooting

    Administrators must search for failed logins across 40 Linux servers from a single location. Each server rotates its local logs after one week, and investigations often need older entries. Which approach BEST meets this requirement?

    Show the answer

    Correct answerB. Forward each server's logs to a central log collector

    Log aggregation, such as rsyslog forwarding to a central collector, gathers entries in one searchable place and keeps them beyond local rotation. Longer local retention is tempting, but it still leaves logs scattered across 40 hosts.

    Open this question
  9. Question 9

    Troubleshooting

    An administrator needs detailed per-process metrics from a Linux server and wants collection to continue when the link to the monitoring server drops. Which two characteristics of agent-based monitoring support this requirement? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersA. The agent can queue data until the server is reachable againD. A local daemon can sample process-level data on the host

    An agent runs on the host, so it can read process-level data directly and buffer samples during an outage. Needing no installed software and being limited to a remote protocol's data describe agentless monitoring, which cannot do either.

    Open this question
  10. Question 10

    Troubleshooting

    A monitoring platform must learn about a failed CI build as soon as it happens, without repeatedly querying the CI server. Which data acquisition method fits?

    Show the answer

    Correct answerB. A webhook the CI server sends to a receiver URL when a build fails

    AWhy not this: Polling repeatedly queries the server, which the requirement rules out, and it can lag by up to a minute.

    BWhy this is right: A webhook pushes an HTTP request to a preconfigured URL the moment the event occurs.

    CWhy not this: SNMP GET is also polling, and a CI build result is not something SNMP normally exposes.

    DWhy not this: Copying logs hourly is batch collection, so the failure would be seen up to an hour late.

    A webhook is push-based: the source sends an HTTP request, usually a POST, to a receiver URL as soon as the event occurs. Polling is the opposite model, where the monitoring system repeatedly asks the source for its status.

    Open this question
  11. Question 11

    Troubleshooting

    An administrator must forward all authentication messages from a server to a central log host at loghost.example.com. The transfer must use TCP on port 514 so messages are not silently lost. Which rsyslog rule meets this requirement?

    Show the answer

    Correct answerA. authpriv.* @@loghost.example.com:514

    In rsyslog's legacy syntax, a double @@ sends to the remote host over TCP, and authpriv is the facility for authentication messages. A single @ uses UDP, which gives no delivery guarantee. The mail facility would forward the wrong messages.

    Open this question
  12. Question 12

    Troubleshooting

    An administrator wants a notification script to run automatically whenever backup.service enters a failed state. The notification is implemented as a separate systemd unit named notify-failure@.service. Which configuration accomplishes this?

    Show the answer

    Correct answerB. Add OnFailure=notify-failure@%n.service to the [Unit] section of backup.service

    OnFailure= in the [Unit] section activates the listed unit when the service enters the failed state, and %n passes the failing unit's name. Restart=on-failure only restarts the service and sends no notification. OnSuccess= triggers on the opposite condition.

    Open this question
  13. Question 13

    Troubleshooting

    A nightly cron job in a user's crontab sometimes fails and prints errors to stderr. The administrator wants these errors emailed to ops@example.com. Which TWO actions are required? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersC. Run a local MTA that can deliver or relay outgoing mailD. Set MAILTO=ops@example.com in the crontab

    Cron mails a job's output to the address in MAILTO, but it hands the message to the local MTA, which must be running and able to relay it. cron.allow only controls who may use cron. Piping to logger sends output to syslog, not email.

    Open this question
  14. Question 14

    Troubleshooting

    A Nagios service check on a monitored host runs check_disk -w 20% -c 10% -p /var. The /var filesystem currently has 14% free space. What state does the check return?

    Show the answer

    Correct answerB. WARNING

    With check_disk, -w and -c are thresholds on free space. Free space of 14% is below the 20% warning threshold but above the 10% critical threshold, so the state is WARNING. CRITICAL would require free space under 10%.

    Open this question
  15. Question 15

    Troubleshooting

    A Prometheus alert fires whenever node CPU usage exceeds 90%, and brief spikes are paging the on-call engineer. The team wants the alert to fire only when usage stays above 90% for 10 continuous minutes. Which change to the alerting rule achieves this?

    Show the answer

    Correct answerA. Add for: 10m to the alert rule

    The for clause keeps an alert in pending state until the expression has been true for the whole duration, which filters out transient spikes. repeat_interval only controls how often an already firing alert is re-notified, so spikes would still page.

    Open this question
  16. Question 16

    Troubleshooting

    A newly created systemd service, app.service, fails immediately at start. The output of systemctl status shows "status=203/EXEC," and journalctl reports "Failed at step EXEC spawning /opt/app/run.sh: Permission denied." What is the MOST likely cause?

    Show the answer

    Correct answerB. The script referenced by ExecStart does not have the execute permission set

    Status 203/EXEC with "Permission denied" means systemd could not execute the ExecStart target, typically because the file lacks the execute bit (chmod +x fixes it). An ordering dependency or rate limit would produce different messages, and an OOM kill would appear as a SIGKILL result.

    Open this question
  17. Question 17

    Troubleshooting

    After a series of I/O errors, an application reports that it cannot write to /data. The mount output shows the ext4 filesystem on /dev/sdb1 is now mounted read-only, and dmesg contains "EXT4-fs error" and "Remounting filesystem read-only." What is the BEST next step?

    Show the answer

    Correct answerB. Back up the data, unmount the filesystem, and run fsck on /dev/sdb1

    The kernel remounted the filesystem read-only to protect it after detecting errors, so it should be repaired with fsck while unmounted. Forcing a read-write remount ignores the underlying corruption and risks further data loss; permissions and quotas are not the cause.

    Open this question
  18. Question 18

    Troubleshooting

    A web server's application fails to create session files in /var/lib/app and logs "No space left on device." Running df -h shows the filesystem mounted on /var at 42% used. Which command should the administrator run next to confirm the most likely cause?

    Show the answer

    Correct answerC. df -i /var

    Free blocks with a "No space left on device" error points to inode exhaustion, and df -i shows inode usage per filesystem. du -sh reports block consumption, which df -h already shows is low, so it will not reveal a shortage of inodes.

    Open this question
  19. Question 19

    Troubleshooting

    An administrator edits ~/.bash_profile to add a custom directory and logs in again. Every command, including ls and cp, now returns "command not found," although the commands still exist under /usr/bin. What is the BEST way to restore normal operation?

    Show the answer

    Correct answerB. Export a corrected PATH that includes /usr/bin and /bin, then fix the line in ~/.bash_profile

    The edit overwrote PATH so the shell cannot find executables that are still intact. Resetting PATH for the session and correcting the profile line fixes the cause. Reinstalling packages or restoring directories is unnecessary, and ldconfig only affects shared libraries.

    Open this question
  20. Question 20

    Troubleshooting

    After a kernel package update, a server reboots and halts with "Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)." The previous kernel is still installed. Which three actions are appropriate to diagnose and resolve the problem? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersA. Select the previous kernel entry from the GRUB menu to boot the systemD. Regenerate the initramfs for the new kernel, such as with dracut, from a booted or chrooted environmentF. Verify that the root= parameter and filesystem UUID in the GRUB configuration match the actual root device

    Booting the old kernel restores access, and a missing or incomplete initramfs or a wrong root= value prevents the kernel from finding the root filesystem. Swap, quota files and systemd-logind do not affect the kernel's ability to mount root.

    Open this question
  21. Question 21

    Troubleshooting

    A server can ping 8.8.8.8 successfully, but ping example.com returns "Temporary failure in name resolution." Running dig @8.8.8.8 example.com returns the correct address. What is the MOST likely cause?

    Show the answer

    Correct answerA. The resolver is configured with an unreachable or incorrect DNS server

    Traffic to an external IP works and a query to a working DNS server succeeds, so only the server configured in the resolver settings is failing. A missing default gateway would also break the ping to 8.8.8.8.

    Open this question
  22. Question 22

    Troubleshooting

    A server's network connection drops intermittently and SSH sessions reset. On a neighboring host, ip neigh shows the server's IP address alternating between two different MAC addresses. The server uses a static address inside the range the DHCP server hands out. Which three actions help confirm and resolve the problem? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersA. Run arping -D -I eth0 against the server's address to see whether another host answersB. Compare the MACs in the ARP cache with the server's own to identify the second hostF. Exclude the static address from the DHCP pool or create a reservation for it

    A duplicate address check, matching the conflicting MAC to a device, and removing the overlap between static and DHCP ranges address an IP conflict. Changing the MTU or restarting sshd does not stop two hosts from claiming one IPv4 address.

    Open this question
  23. Question 23

    Troubleshooting

    Users report that a website takes about 30 seconds to load from a Linux workstation and then works. On the workstation, curl -4 returns immediately, while curl -6 hangs until it times out. The site name has both A and AAAA records, and the workstation has a global IPv6 address and an IPv6 default route via the local router. What is the MOST likely cause?

    Show the answer

    Correct answerC. The client tries the IPv6 address first, but IPv6 traffic is dropped beyond the local router, so each attempt times out before it falls back to IPv4

    The name has an AAAA record, so the client tries IPv6 first. The local route exists, but IPv6 traffic is dropped upstream, so the attempt times out before the client falls back to IPv4. NXDOMAIN would make the lookup fail outright, not delay and then succeed. Fast curl -4 results also rule out an IPv4 problem.

    Open this question
  24. Question 24

    Troubleshooting

    A server's eth0 link is up, but file transfers run far below expected speed. The output of ethtool eth0 shows Speed: 100Mb/s, Duplex: Half and Auto-negotiation: on, and ip -s link shows rising errors. The switch port is hard-coded to 100 Mb/s full duplex. What is the BEST fix?

    Show the answer

    Correct answerC. Set the switch port to auto-negotiation to match the server NIC

    A forced switch port does not take part in negotiation, so the auto-negotiating NIC falls back to half duplex, causing a duplex mismatch and errors. Both ends must use matching settings. Raising the MTU does nothing for a duplex mismatch.

    Open this question
  25. Question 25

    Troubleshooting

    An administrator can SSH to a remote host across a VPN tunnel and ping it with default-size packets. However, scp transfers of large files stall and TLS handshakes to the host hang. The tunnel interface MTU is 1400, while the local NIC MTU is 1500. Which command BEST confirms an MTU mismatch along the path?

    Show the answer

    Correct answerD. ping -M do -s 1472 10.20.0.5

    Ping with -M do sets the don't-fragment bit, and a 1472-byte payload makes a 1500-byte packet that cannot cross a 1400-byte tunnel, so it fails. Flood ping still sends small default-size packets, which pass the tunnel and hide the mismatch.

    Open this question
  26. Question 26

    Troubleshooting

    As root, an administrator tries to append a line to /etc/app.conf and gets "Operation not permitted." The file is owned by root with mode 0644, the filesystem is mounted read-write, and SELinux is in permissive mode. What is the BEST way to resolve the problem?

    Show the answer

    Correct answerA. Check for the immutable flag with lsattr and clear it with chattr -i

    Root is blocked despite correct mode bits, a read-write mount and permissive SELinux, which points to the immutable extended attribute. lsattr shows it and chattr -i clears it. An ACL entry cannot override the immutable flag, and root already bypasses ACL checks.

    Open this question
  27. Question 27

    Troubleshooting

    An administrator moves a site directory from /home/dev/site to /srv/web with mv. Apache, running on an SELinux-enforcing server, now returns 403 Forbidden for every page. Standard permissions and ownership are correct, the pages load after setenforce 0, and ausearch -m avc shows denials involving the user_home_t type. What is the BEST fix?

    Show the answer

    Correct answerD. Add a file context rule for /srv/web with semanage fcontext, then apply it with restorecon -R

    mv keeps the old user_home_t label, so the files need the httpd_sys_content_t type. A persistent semanage fcontext rule plus restorecon applies it. The httpd_enable_homedirs boolean only permits access to home directories, which does not help because the files are no longer there.

    Open this question
  28. Question 28

    Troubleshooting

    A user can no longer log in over SSH even though the password is correct. Other users are unaffected. The authentication log shows repeated failures for this account followed by a pam_faillock message that the account is temporarily locked. What is the BEST action to restore access?

    Show the answer

    Correct answerD. Clear the failed-attempt counter with faillock --user for that account and the --reset option

    pam_faillock tracks failed attempts per user and locks the account until the counter is reset or the timeout expires. faillock --user <name> --reset clears it. Restarting sshd does not clear the counters, which PAM stores in the faillock tally files.

    Open this question
  29. Question 29

    Troubleshooting

    An administrator connects from a hardened Linux workstation to an old network appliance by SSH and gets "Unable to negotiate: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1." The appliance cannot be upgraded for several months. What is the BEST way to connect while limiting the security impact?

    Show the answer

    Correct answerB. Add a Host entry for the appliance in ~/.ssh/config that appends the legacy key exchange algorithm

    The failure is a key exchange (KEX) algorithm mismatch, and a per-host KexAlgorithms override enables the weak algorithm only for that device. The system-wide LEGACY policy would weaken every connection. Clearing known_hosts or disabling host key checking does not affect key exchange negotiation.

    Open this question
  30. Question 30

    Troubleshooting

    A RHEL workstation's curl command to an internal HTTPS service fails with "unable to get local issuer certificate." Other workstations connect without errors. The server certificate is unexpired and its name matches the host. openssl s_client -connect shows the server sending its full chain, ending at the internal root CA. The failing workstation has never had that root CA installed. What is the BEST fix?

    Show the answer

    Correct answerC. Copy the internal root CA certificate to /etc/pki/ca-trust/source/anchors/ on the workstation and run update-ca-trust

    The server already sends a complete chain, and other clients validate it, so the fault is the workstation's trust store lacking the internal root. On RHEL, placing the root in the anchors directory and running update-ca-trust fixes it. Appending the intermediate on the server is wrong because the chain is already complete. Using -k only disables verification.

    Open this question
  31. Question 31

    Troubleshooting

    Users report random SSH disconnects and timeouts to a server. On the server, ip -s link shows RX errors and CRC/frame counts climbing on eth0, and ping shows packet loss and jitter. What is the most likely cause?

    Show the answer

    Correct answerB. A faulty cable or switch port corrupting frames

    Rising CRC and frame errors point to physical-layer corruption, such as a bad cable, port, or duplex mismatch, causing drops, jitter, and disconnects. A stale DNS entry would cause failed name resolution, not frame errors on the interface.

    Open this question
  32. Question 32

    Troubleshooting

    After a reboot, a server takes about 90 seconds longer than usual to reach the login prompt. systemd-analyze blame lists a mnt-data.mount unit as the slowest. Which cause is most likely?

    Show the answer

    Correct answerA. An /etc/fstab entry for an NFS share on an unreachable server

    A mount unit for a remote share that cannot be reached waits for the mount timeout, delaying boot unless options like nofail or a timeout are set. A small swap partition does not delay a specific mount unit during startup.

    Open this question
  33. Question 33

    Troubleshooting

    A server with 4 cores shows a load average of 25, yet CPU utilization is mostly idle. Which TWO conditions are likely causes? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersB. Many processes waiting on a failing disk that keeps retrying readsC. Many processes blocked in uninterruptible sleep on a hung NFS mount

    Linux counts processes in uninterruptible (D state) sleep toward load, so stalled NFS or disk I/O inflates load while CPUs idle. A single pinned process adds only about 1 to load, and idle sleeping daemons are not counted.

    Open this question
  34. Question 34

    Troubleshooting

    Free memory on a server falls steadily over several days until dmesg shows "Out of memory: Killed process". Which cause fits this pattern?

    Show the answer

    Correct answerB. A memory leak in a long-running process

    AWhy not this: Page cache is reclaimable, so the kernel frees it under memory pressure instead of killing processes.

    BWhy this is right: A leak keeps consuming memory until RAM and swap run out, and the kernel's OOM killer then ends a process.

    CWhy not this: Running out of inodes stops new files from being created; it does not use up memory.

    DWhy not this: A process in D state waits on I/O and raises load, but it does not steadily consume memory.

    A leaking process steadily consumes memory until RAM and swap cannot satisfy allocations, so the kernel's OOM killer terminates a process to recover memory.

    Open this question
  35. Question 35

    Troubleshooting

    A database server responds slowly. In top, CPU shows 0.5% user, 1% system, and 48% wa, and the load average is 14 on a 4-core system. Which is the most likely cause?

    Show the answer

    Correct answerD. The disk subsystem saturating under the I/O request load

    High wa with almost no user or system time means processes are stalled waiting on storage, which raises the load average. A CPU-bound loop would instead show high user time and low wa.

    Open this question
  36. Question 36

    Troubleshooting

    A team is writing down an SLO for its checkout service. Which of the following is a well-formed SLO?

    Show the answer

    Correct answerC. 99% of checkout requests complete in under 400 ms, measured over a rolling 28-day window

    A usable SLO pairs a user-facing SLI with a numeric target and a time window. The CPU goal measures a resource rather than user experience, and the ticket-response credit is an SLA term because it carries a financial penalty.

    Open this question
  37. Question 37

    Troubleshooting

    A team is defining reliability measurements for a web service monitored with Prometheus. Which three of the following are SLIs? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersA. The ratio of successful synthetic probe checks to total probe checksB. The percentage of HTTP requests that return a non-5xx status codeC. The 95th percentile response time of API requests

    An SLI is a measured indicator of service behaviour, such as latency, error ratio or probe success ratio. The 99.9% target is an SLO, the allowed downtime is an error budget derived from it, and the refund clause is an SLA term, so none of those are measurements.

    Open this question
  38. Question 38

    Troubleshooting

    A team's SLO is 99.9% availability over 30 days. By day 12, a series of outages has consumed the entire error budget for the window. The team follows an error budget policy. What should the team do next?

    Show the answer

    Correct answerB. Pause risky feature releases and prioritise reliability work until the budget recovers

    An exhausted error budget signals that reliability must take priority over new change, so releases are slowed while stability work is done. Renegotiating the SLA is tempting, but the SLA is a contract and the budget is an internal SLO mechanism.

    Open this question
  39. Question 39

    Troubleshooting

    A team has an SLO of 99.9% availability measured over a 30-day window. Assuming the service is expected to be up the whole window, approximately how much downtime does the error budget allow?

    Show the answer

    Correct answerC. About 43 minutes

    The error budget is the 0.1% of the window the SLO allows to fail: 0.001 × 43,200 minutes ≈ 43.2 minutes. About 4.3 minutes corresponds to a 99.99% target, which is the most tempting wrong figure.

    Open this question
  40. Question 40

    Troubleshooting

    Which term names the measured value of service behaviour, such as request latency or error rate, that is compared against a target?

    Show the answer

    Correct answerD. Service level indicator (SLI)

    AWhy not this: The SLO is the target the measurement is compared against, not the measurement itself.

    BWhy not this: The SLA is the external agreement with consequences, not the measured value.

    CWhy not this: The error budget is the failure an SLO allows over a period, not the measured value.

    DWhy this is right: An SLI is the quantitative measurement, such as latency or error rate, compared against an SLO.

    An SLI is the measured value, the SLO is the target set for that value, and the SLA is the external agreement with consequences. The SLI is the measurement evaluated against an SLO.

    Open this question
  41. Question 41

    Troubleshooting

    Compliance rules require that SNMP data collected from core routers be authenticated per user and encrypted in transit. Which configuration BEST meets these rules?

    Show the answer

    Correct answerA. SNMPv3 with the authPriv security level and a dedicated user

    SNMPv3 at the authPriv level provides per-user authentication and encryption. A non-default community string with v2c is tempting, but it is a shared plaintext string that provides neither user authentication nor encryption.

    Open this question
  42. Question 42

    Troubleshooting

    A load balancer fronts three Linux web servers. One server's application lost its database connection and returns HTTP 503 for every request, yet the host still answers pings and accepts TCP connections on port 443. Which acquisition method should the load balancer use to remove only that server from rotation?

    Show the answer

    Correct answerD. An HTTP request to a status URL that must return a 200 response

    An application-level HTTP health check detects that the service is failing even though the host is up. A TCP connect test is the tempting choice, but it still succeeds because the port stays open while the application returns errors.

    Open this question
  43. Question 43

    Troubleshooting

    A monitoring server polls a firewall using SNMP. The administrator needs to collect a vendor-specific session-count metric, but the tool shows only a numeric OID and cannot name or interpret the value. What should the administrator do?

    Show the answer

    Correct answerC. Import the vendor's MIB file into the monitoring tool

    A MIB file maps vendor-specific OIDs to names and data types so the tool can interpret polled values. A read-write community string is tempting, but it only changes access rights and does not explain what the OID means.

    Open this question
  44. Question 44

    Troubleshooting

    A security policy forbids installing any new software on 15 legacy Linux servers. SSH key access is already in place, and the monitoring server must check disk usage and load average every few minutes. Which method BEST meets this requirement?

    Show the answer

    Correct answerB. Agentless checks that run commands over SSH on each server

    Agentless monitoring runs commands remotely over the existing SSH access, so nothing new is installed. An snmpd service for traps is tempting, but it is software that would have to be installed and configured, which the policy forbids.

    Open this question
  45. Question 45

    Troubleshooting

    A team wants a Linux server to start a deployment script as soon as code is merged in a hosted Git repository. A cron job now queries the repository every five minutes, which delays deployments and wastes requests. Which method BEST replaces the polling?

    Show the answer

    Correct answerB. A webhook sent by the repository to an HTTP endpoint on the server

    A webhook pushes an HTTP request to the server the moment the merge event occurs, so no polling is needed. Shortening the cron interval is tempting but still polls, still wastes requests, and still leaves a delay.

    Open this question
  46. Question 46

    Troubleshooting

    A Nagios service has max_check_attempts set to 3, and its first check fails. If the failure continues, when does Nagios send a problem notification?

    Show the answer

    Correct answerC. After the third consecutive failed check, when the state becomes hard

    AWhy not this: The first failure puts the service in a soft state, which does not trigger notifications.

    BWhy not this: notification_interval controls repeat notifications after the first; the first comes when the state turns hard.

    CWhy this is right: After max_check_attempts consecutive failures the state becomes hard, and the notification is sent then.

    DWhy not this: Acknowledging a problem suppresses further notifications; it is not needed for the first one.

    Nagios treats the first failures as a soft state and rechecks the service. It sends notifications only once the failure persists for max_check_attempts and the state becomes hard. This filters out transient failures.

    Open this question
  47. Question 47

    Troubleshooting

    A team runs Prometheus with Alertmanager. Alerts labelled severity="critical" must page the on-call engineer through the oncall-pager receiver. All other alerts must keep going to the default email receiver. Which Alertmanager configuration achieves this?

    Show the answer

    Correct answerD. A child route under the root route that matches severity="critical" and sets receiver to oncall-pager

    Alertmanager routing trees match on labels and send matching alerts to a chosen receiver, so a child route with a severity matcher does this. Inhibit rules only suppress alerts while another alert is firing. They do not choose a destination.

    Open this question
  48. Question 48

    Troubleshooting

    An administrator has just added an rsyslog rule that forwards auth.alert messages to a remote collector. The rule must be tested without waiting for a real event. Which command generates a message that the rule should match?

    Show the answer

    Correct answerB. logger -p auth.alert "test alert"

    logger -p sets the facility and priority of the message, so -p auth.alert produces a message that matches the rule. The -t option only sets the tag, so the message would use the default user.notice and miss the rule.

    Open this question
  49. Question 49

    Troubleshooting

    An administrator wants rsyslog to write every message of priority err or higher, from any facility, to /var/log/alerts.log. Messages of lower priority must not be written there. Which rule does this?

    Show the answer

    Correct answerD. *.err /var/log/alerts.log

    A selector of *.err matches priority err and every higher priority (crit, alert, emerg) for all facilities. The *.=err form matches only err exactly, so it would miss crit and above.

    Open this question
  50. Question 50

    Troubleshooting

    Alertmanager emails the on-call team about a CPU alert that stays unresolved all day. The same notification arrives every hour. The team wants a reminder only every 12 hours while the alert is still firing. Which Alertmanager setting should be changed?

    Show the answer

    Correct answerD. repeat_interval set to 12h

    repeat_interval controls how long Alertmanager waits before resending a notification for an alert group that is still firing. group_interval sets the wait before notifying about new alerts added to an existing group, so it does not govern repeat reminders.

    Open this question