Try a few cards
All cards143
- Define SLA in service monitoring.
A Service Level Agreement is a formal contract between provider and customer that defines the promised service level. It typically specifies remedies, such as credits or penalties, when the promise is missed.
- Define SLI in service monitoring.
A Service Level Indicator is a measured metric of service behavior, such as uptime percentage, latency or error rate. It supplies the actual data that is compared against targets.
- Which of SLA, SLI and SLO is legally binding and carries penalties for a miss?
SLA, the Service Level Agreement. SLOs are usually set stricter than the SLA so the team has a buffer before a penalty is triggered.
- Which term names an internal target value for a service metric, such as 99.9% availability?
SLO, or Service Level Objective. It sets the goal that the measured SLI is expected to meet, and it usually carries no contractual penalty.
- Name the term for the measured value: 99.95% of requests succeeded this month.
SLI, or Service Level Indicator. It is the actual measurement, which is then judged against the SLO target.
- What is an SNMP trap?
An unsolicited alert a managed device sends to the monitoring server when a defined event occurs. It is push-based, unlike polling, where the manager requests values from the device.
- Which command writes a test message to syslog to verify a log-based alert rule?
logger. It sends a message to the system log, so you can confirm a pattern-matching alert fires without waiting for a real event.
- Which Prometheus component groups, deduplicates, and routes alerts to receivers?
Alertmanager. The Prometheus server evaluates alert rules and sends firing alerts to it for handling.
- Define alert fatigue.
Alert fatigue is when responders begin ignoring alerts because too many are noisy or low-value. Tuning thresholds and assigning severity levels reduces it.
- What is the metric value called that triggers an alert when crossed?
A threshold. Monitoring tools often define separate warning and critical thresholds so alerts escalate with severity.
- Which protocol do monitoring tools use to send alert emails to a mail server?
SMTP. Prometheus Alertmanager, for example, is configured with an SMTP smarthost to deliver email notifications.
- What does a filesystem remounting itself read-only usually indicate?
Detected errors or an underlying device problem. With the errors=remount-ro mount option (set in fstab on Debian-based root filesystems, for example), the kernel makes the filesystem read-only to prevent further damage, so check dmesg and run fsck while unmounted.
- Which command shows inode usage per filesystem, used to diagnose inode exhaustion?
df -i. When IUse% is 100%, new files fail with "No space left on device" even though df -h shows free blocks.
- Name the issue: a disk has free blocks but cannot create new files.
Inode exhaustion. It usually comes from huge numbers of tiny files, and the fix is to delete them, since inodes cannot be added to an existing ext4 filesystem.
- Which command lets you read the previous boot's kernel and service logs after a crash?
journalctl -b -1. It shows the journal from the prior boot, provided persistent journal storage is enabled in /var/log/journal.
- Which tool reports per-user block and inode usage against limits when diagnosing quota issues?
repquota. Run as root with a mount point, such as repquota /home, or with -a for all quota-enabled filesystems. It lists each user's usage, soft limit and hard limit.
- Which command shows the default gateway when hosts on other subnets are unreachable?
ip route show (or ip route). A missing or wrong default route entry means traffic can only reach the local subnet.
- Which command detects an IP address conflict by probing the address on the local network?
arping with duplicate address detection (arping -D). A reply from another MAC address for the same IP means two hosts are using that address.
- Name the issue: small pings succeed but large packets or transfers hang.
An MTU mismatch. Packets larger than a link's MTU get dropped or fragmented, so confirm with ping using the don't-fragment option and a set payload size.
- Which tool shows whether a network interface has link detected and its negotiated speed and duplex?
ethtool. It reports link status, speed, duplex and auto-negotiation state, so a mismatch or a missing link shows up immediately.
- Which command resolves a hostname against a chosen DNS server to isolate a DNS failure?
dig @server hostname. If this succeeds while the default resolver fails, the problem lies in the client's resolver configuration, such as /etc/resolv.conf.
- What does the -P option do in setsebool -P?
It makes the SELinux boolean change persistent across reboots. Without -P, the new value is lost at the next restart.
- Which openssl command shows a certificate's validity start and expiry dates?
openssl x509 -noout -dates -in cert.pem, which prints the notBefore and notAfter values. An expired certificate is a common cause of TLS handshake failures.
- Which command resets a file's SELinux context to the policy default?
restorecon, which relabels files according to the loaded policy's file context rules. Add -R to recurse and -v to show what changed.
- Name the file attribute that blocks even root from modifying or deleting a file.
The immutable attribute, set with chattr +i. It appears in lsattr output and must be removed with chattr -i before the file can be changed.
- Which command searches the audit log for recent SELinux denials?
ausearch -m avc -ts recent, which lists AVC denial records. Pipe the output to audit2why to see why access was denied.
- Name the kernel mechanism that kills processes when memory and swap run out.
The OOM killer, which selects a process by its oom_score and terminates it to free memory. Its actions are recorded in the kernel log, viewable with dmesg or journalctl -k.
- Most common cause of high load average with low CPU usage?
Processes blocked on I/O, typically waiting on slow disk or network storage. Uninterruptible (D state) processes count toward load average even though they use no CPU.
- Likely cause of high context switching on a busy server?
Too many runnable processes or threads competing for too few CPU cores, or excessive interrupts. The CPU spends time switching between tasks instead of doing useful work.
- What does a high wa value in top indicate?
The CPU is idle while waiting for disk or other I/O to finish. Likely causes are a saturated or failing disk, or slow remote storage such as NFS.
- What condition produces heavy swapping and a sluggish terminal?
Physical memory exhaustion, which forces the kernel to page memory out to swap. Disk is far slower than RAM, so every swapped page access stalls processes.
- An SLI is the contractual agreement between a provider and a customer that specifies penalties when the service falls below an agreed level.
The contract with consequences is the SLA. An SLI is a measured indicator of service behavior, such as request latency or error rate, and it carries no penalties on its own.
- An SLO is typically set stricter than the matching SLA so that a team can detect and correct degradation before the contractual commitment is breached.
An SLO is an internal target for an SLI, and it is commonly tighter than the SLA, for example a 99.95% SLO against a 99.9% SLA. This gives a safety margin before penalties apply.
- An SLO is the raw measurement collected from a service, such as the percentage of requests that returned successfully over the past hour.
The raw measurement is the SLI. An SLO is the target set for that measurement, such as 99.9% successful requests over 30 days, and the SLI is compared against it.
- An SNMP trap is sent when the monitoring server polls a managed device on UDP port 161 and requests the current value of an object.
Polling with a get request on UDP port 161 is how a manager pulls data. A trap is an unsolicited notification pushed from the agent to the manager, normally on UDP port 162, when an event occurs.
- A webhook is the best method for a monitoring server to repeatedly poll a service's status endpoint at fixed intervals to confirm the service is healthy.
Repeated interval checks of a status endpoint describe a health check. A webhook is event-driven: the source sends an HTTP callback to a configured URL when an event occurs, so no polling is needed.
- An agentless monitoring approach collects data from a Linux host over remote protocols such as SSH or SNMP without installing a dedicated monitoring daemon on that host.
Agentless monitoring queries the target remotely using existing services like SSH or SNMP, so no vendor-specific collector runs on it. An agent-based approach installs a local daemon that gathers metrics and sends them to the server.
- In a Prometheus alerting rule, the for clause delays an alert from firing until its expression has remained true for the specified duration.
The for clause keeps an alert in the pending state until the condition holds continuously for that duration, which filters out brief spikes. If the condition clears first, the alert never fires.
- In a Prometheus deployment, the Prometheus server itself groups, deduplicates, and sends alert notifications to receivers such as email or chat services.
The Prometheus server only evaluates alerting rules and pushes firing alerts to Alertmanager. Alertmanager is the component that groups, deduplicates, silences, and routes notifications to receivers.
- A Nagios service check that returns exit code 1 reports a CRITICAL state, and exit code 2 reports a WARNING state.
Nagios plugin exit codes are 0 for OK, 1 for WARNING, 2 for CRITICAL, and 3 for UNKNOWN. The statement swaps the warning and critical codes, which would send alerts at the wrong severity.
- When memory is exhausted, the kernel's OOM killer selects the process with the lowest oom_score to terminate first.
The OOM killer terminates the process with the highest oom_score, meaning the one judged to be the best candidate for freeing memory. A lower oom_score makes a process less likely to be killed, and the kill is recorded in the kernel log.
- On a Debian-based system, a damaged GRUB configuration file is regenerated with the grub2-mkconfig command.
Debian-based systems use update-grub (a wrapper for grub-mkconfig) to regenerate the GRUB configuration. The grub2-mkconfig name is the RHEL-family convention, where the output usually goes to /boot/grub2/grub.cfg.
- Running journalctl -u followed by a unit name displays the log entries for that specific systemd unit, which helps determine why the unit failed to start.
The -u option filters the journal to messages from the named unit, so startup errors, exit codes and dependency failures for that service appear together. Pairing it with systemctl status gives the unit's current state.
- When a Linux host can ping other hosts on its own subnet but cannot reach any host on a different subnet, a missing or incorrect default gateway in the routing table is a likely cause.
Same-subnet traffic is delivered directly at layer 2 without a router, while traffic to other subnets needs a default route pointing to a reachable gateway. Missing DNS settings would break name resolution, not IP-level reachability to remote subnets.
- When a host's DHCP lease fails and it cannot reach a DHCP server, the NetworkManager or dhclient client typically assigns a 169.254.0.0/16 link-local address, which is routable across the internet.
Link-local 169.254.0.0/16 (APIPA-style) addresses are assigned when DHCP fails, but they are not routable beyond the local link. The fix is to restore DHCP connectivity or configure a static address, not to rely on the link-local one.
- If a host resolves a name to both an AAAA and an A record and IPv6 connectivity is broken, connections to that name can hang or be slow until they fall back to IPv4.
Dual-stack clients often prefer IPv6, so a broken IPv6 path causes timeouts before fallback to IPv4. Fixing the IPv6 route or disabling IPv6 on the interface resolves it. A missing A record would not cause this delay.
- When an SSH client fails with "no matching key exchange method found" against an older server, the correct fix is to delete the server's entry from the client's known_hosts file.
This error means the client and server share no key exchange algorithm, so the fix is to adjust KexAlgorithms or upgrade the outdated server. The known_hosts file stores host keys to verify server identity. Editing it helps with a host key changed warning, not with algorithm negotiation.
- An SELinux boolean changed with setsebool and no -P option stays in effect after the system reboots.
Without -P, setsebool changes only the running policy, so the value reverts at reboot. The -P option writes the change to the persistent policy. Confusing this with setenforce or the config file is tempting, but those control the SELinux mode, not boolean values.
- A user can be denied an action on a file even though a named-user ACL entry grants it, because the ACL mask limits effective permissions, and getfacl shows the reduced result as #effective.
The ACL mask caps the effective permissions of named user entries, named group entries, and the owning group. getfacl marks the reduced permissions with #effective. Resetting the mask with setfacl -m m::rwx restores the intended access, whereas checking only the ls -l mode bits would hide the cause.
- A large number of failed SSH log-in attempts from many different external addresses most commonly indicates a brute-force or password-spraying attack.
Automated credential guessing against exposed services such as sshd produces many failures in the authentication logs, often from many sources. Misconfigured clients usually produce failures from a single source, not widespread ones.