Unit 4 - Practice Quiz

CSC202 60 Questions
0 Correct 0 Wrong 60 Left
0/60

1 Which command is commonly used to display detailed information about the CPU architecture on a Linux system?

Managing Devices, Processes, Memory, and the Kernel: Gather hardware information Easy
A. lspci
B. lscpu
C. free
D. lsusb

2 Which command is used to view a snapshot of the currently running processes on a Linux system?

Managing Devices, Processes, Memory, and the Kernel: Manage processes Easy
A. netstat
B. ls
C. df
D. ps

3 What is the primary purpose of the kill command in Linux?

Managing Devices, Processes, Memory, and the Kernel: Manage processes Easy
A. To send a signal to a process, usually to terminate it
B. To create a new process
C. To check the status of a process
D. To delete a file

4 Which command provides a summary of the total, used, and free memory (both RAM and swap) on a Linux system?

Managing Devices, Processes, Memory, and the Kernel: Manage memory Easy
A. df
B. du
C. free
D. vmstat

5 Which command and option would you use to display the current Linux kernel release version?

Managing Devices, Processes, Memory, and the Kernel: Manage the Linux kernel Easy
A. lsmod
B. kernel -v
C. uname -r
D. dmesg

6 On a modern Linux system using systemd, which command is used to start a service, for example, the httpd service?

Managing Services: Manage system services Easy
A. init httpd start
B. service httpd start
C. systemctl start httpd
D. /etc/init.d/httpd start

7 To configure a service to start automatically every time the system boots, which systemctl command should be used?

Managing Services: Manage system services Easy
A. start
B. restart
C. enable
D. status

8 What is the main purpose of the Network Time Protocol (NTP) service?

Managing Services: Configure common system services Easy
A. To provide secure remote shell access
B. To transfer files between computers
C. To synchronize computer clocks over a network
D. To resolve domain names to IP addresses

9 Which command is used on systemd-based systems to query and change the system locale and keyboard layout settings?

Managing Services: Configure localization settings Easy
A. localectl
B. hostnamectl
C. systemctl
D. timedatectl

10 What is the primary function of an IP address in a computer network?

Configuring Network Settings: Understand network fundamentals Easy
A. To store user login credentials
B. To identify the manufacturer of a network card
C. To uniquely identify a device on a network
D. To encrypt network traffic

11 What is the role of the Domain Name System (DNS) in networking?

Configuring Network Settings: Understand network fundamentals Easy
A. To translate human-readable domain names (e.g., www.example.com) into IP addresses
B. To assign IP addresses to devices automatically
C. To provide a secure connection between two hosts
D. To filter unwanted network traffic

12 Which modern command is commonly used in Linux to view and manage network interfaces and their IP addresses?

Configuring Network Settings: Manage network settings Easy
A. route
B. netstat -i
C. ifconfig
D. ip addr show

13 If you want to list all the PCI (Peripheral Component Interconnect) devices connected to your Linux system, which command would you use?

Managing Devices, Processes, Memory, and the Kernel: Gather hardware information Easy
A. lspci
B. lscpu
C. lsblk
D. lsusb

14 In Linux, what is the primary purpose of "swap space"?

Managing Devices, Processes, Memory, and the Kernel: Manage memory Easy
A. To cache frequently accessed applications
B. To serve as virtual memory on the hard disk when physical RAM is full
C. To hold the operating system kernel
D. To store temporary internet files

15 Which basic network utility is most commonly used to test the reachability of a host on a network and measure the round-trip time for messages?

Configuring Network Settings: Troubleshoot the network Easy
A. netstat
B. ssh
C. ping
D. traceroute

16 What protocol is the standard for securely accessing and managing a remote Linux server via a command-line interface?

Configuring Network Settings: Configure remote administrative access Easy
A. HTTP (Hypertext Transfer Protocol)
B. FTP (File Transfer Protocol)
C. SSH (Secure Shell)
D. Telnet

17 What is the main function of the traceroute (or tracepath) command?

Configuring Network Settings: Troubleshoot the network Easy
A. To show the path or "hops" that network packets take to reach a destination
B. To resolve a domain name to an IP address
C. To display active network connections on the local machine
D. To check for open ports on a remote host

18 In the context of the Linux kernel, what is a "loadable kernel module"?

Managing Devices, Processes, Memory, and the Kernel: Manage the Linux kernel Easy
A. The primary bootloader for the system
B. A user-space application that interacts with the kernel
C. A configuration file for the kernel
D. A piece of code that can be loaded into and unloaded from the kernel on demand to extend its functionality

19 What does a "locale" setting in Linux define?

Managing Services: Configure localization settings Easy
A. Language, country, and character encoding preferences
B. The default web browser
C. The physical location of the server
D. Network timezone settings

20 What is the primary function of the cron daemon (crond) in a Linux system?

Managing Services: Configure common system services Easy
A. To manage system logging
B. To schedule and run tasks or scripts automatically at specified times and dates
C. To monitor system performance
D. To serve web pages

21 A system administrator needs to identify the exact driver being used by the network interface card eth0, as well as its capabilities like supported link modes. Which command would provide this detailed information about a specific PCI device?

Managing Devices, Processes, Memory, and the Kernel: Gather hardware information Medium
A. dmidecode -t network
B. lsusb -t
C. lspci -v -s 03:00.0
D. lscpu

22 A computationally intensive batch job with PID 12345 is consuming too much CPU and affecting the performance of a critical web service. The administrator wants to lower its priority significantly without terminating it. Which command will achieve this?

Managing Devices, Processes, Memory, and the Kernel: Manage processes Medium
A. renice 19 12345
B. kill -9 12345
C. nice -n 19 PID 12345
D. renice -19 12345

23 A user started a long data-processing script in their SSH session. They now need to log out but want the script to continue running to completion. After pressing Ctrl+Z to stop the process and using bg to resume it in the background, what is the next command they should run to ensure the process is not terminated when they close the session?

Managing Devices, Processes, Memory, and the Kernel: Manage processes Medium
A. fg %1
B. jobs -l
C. disown -h %1
D. wait %1

24 A Linux server is experiencing performance degradation. The free -h command shows that a significant amount of swap space is being used, even though there appears to be some free physical RAM available. How can an administrator make the kernel less aggressive about swapping, favoring keeping data in RAM?

Managing Devices, Processes, Memory, and the Kernel: Manage memory Medium
A. Decrease the value in /proc/sys/vm/swappiness to a lower number like 10.
B. Run echo 3 > /proc/sys/vm/drop_caches to clear page caches.
C. Increase the value in /proc/sys/vm/swappiness to a higher number like 90.
D. Increase the swap partition size using swapoff and swapon.

25 An administrator needs to quickly find the top 5 processes that are currently consuming the most physical memory (RAM). Which of the following commands is most effective for this specific task?

Managing Devices, Processes, Memory, and the Kernel: Manage memory Medium
A. ps aux --sort=-%mem | head -n 6
B. top -o %CPU | head -n 12
C. vmstat 1 5
D. free -m | sort -nr

26 An administrator modified the unit file for nginx.service located at /etc/systemd/system/nginx.service.d/override.conf. After saving the changes, the new configuration is not being applied. What is the essential command that must be run before restarting the service for systemd to recognize the changes?

Managing Services: Manage system services Medium
A. systemctl restart nginx
B. systemctl daemon-reload
C. systemctl reset-failed
D. systemctl reenable nginx

27 A critical service named critical-app.service must be started automatically after the network is fully configured and online. Which directives should be added to the [Unit] section of its systemd service file to ensure this dependency?

Managing Services: Manage system services Medium
A. Requires=network-online.target
After=network-online.target
B. Requires=network.target
C. Wants=network.target
After=network-online.target
D. Before=network.target

28 An administrator suspects a faulty hardware device is causing system instability. They want to prevent a specific kernel module, buggy_driver, from being loaded automatically during the boot process. What is the standard method to achieve this?

Managing Devices, Processes, Memory, and the Kernel: Manage the Linux kernel Medium
A. Delete the module file from /lib/modules/$(uname -r)/.
B. Run the command rmmod buggy_driver every time the system boots.
C. Add MODULES=(!buggy_driver) to /etc/default/grub.
D. Add blacklist buggy_driver to a .conf file in /etc/modprobe.d/.

29 An administrator needs to configure a server's network interface ens192 with a second IP address, 10.10.20.5/24, without disrupting the existing IP address on that interface. Which command will accomplish this task?

Configuring Network Settings: Manage network settings Medium
A. ip addr replace 10.10.20.5/24 dev ens192
B. ip addr add 10.10.20.5/24 dev ens192
C. nmcli con mod ens192 ipv4.addresses 10.10.20.5/24
D. ifconfig ens192 alias 10.10.20.5

30 A web server is not reachable from the internet. An administrator on the server confirms that the web service is running and listening on port 443 using netstat -tuln. They can also access the website using curl https://127.0.0.1. However, attempts from an external machine fail. Which of the following is the most likely cause and the best tool to verify it?

Configuring Network Settings: Troubleshoot the network Medium
A. The network interface card is down; verify with ip a.
B. The default gateway is misconfigured; verify with ip route.
C. The DNS A record is incorrect; verify with dig.
D. A local firewall is blocking incoming connections on port 443; verify with firewall-cmd --list-all or iptables -L.

31 To improve SSH security, an administrator wants to prevent brute-force password attacks. Which combination of settings in /etc/ssh/sshd_config is most effective for this goal?

Configuring Network Settings: Configure remote administrative access Medium
A. PasswordAuthentication no
PubkeyAuthentication yes
B. Port 2222
AllowUsers admin
C. PermitEmptyPasswords no
UsePAM yes
D. PermitRootLogin yes
PasswordAuthentication yes

32 A server has an IP address of 172.16.100.50 and a netmask of 255.255.255.240. What is the network address and the broadcast address for this subnet?

Configuring Network Settings: Understand network fundamentals Medium
A. Network: 172.16.100.0, Broadcast: 172.16.100.255
B. Network: 172.16.100.48, Broadcast: 172.16.100.63
C. Network: 172.16.100.32, Broadcast: 172.16.100.47
D. Network: 172.16.100.49, Broadcast: 172.16.100.62

33 An administrator needs to schedule a backup script /opt/scripts/daily_backup.sh to run every day at 11:30 PM. What is the correct crontab entry to accomplish this?

Managing Services: Configure common system services Medium
A. 30 23 * /opt/scripts/daily_backup.sh
B. 23 30 * /opt/scripts/daily_backup.sh
C. 30 11 7 /opt/scripts/daily_backup.sh
D. /30 23 /opt/scripts/daily_backup.sh

34 After deploying a new server in a data center in London, an administrator notices that the system clock and log timestamps are set to UTC. To properly reflect the local time, including daylight saving changes, what is the most appropriate command to set the timezone on a modern Linux system like RHEL 8 or Ubuntu 20.04?

Managing Services: Configure localization settings Medium
A. hwclock --systohc --utc
B. ln -sf /usr/share/zoneinfo/Europe/London /etc/localtime
C. dpkg-reconfigure tzdata
D. timedatectl set-timezone Europe/London

35 An administrator is troubleshooting a network connectivity issue between two servers, Server A (10.0.1.10) and Server B (10.0.2.20). A ping from Server A to Server B fails. The administrator wants to trace the path the packets are taking to see where the connection drops. Which command would be most useful for this purpose?

Configuring Network Settings: Troubleshoot the network Medium
A. traceroute 10.0.2.20
B. arp -a 10.0.2.20
C. dig 10.0.2.20
D. netstat -r

36 A system administrator has just installed a new kernel version but wants to temporarily add a boot parameter nomodeset to troubleshoot a display issue, without making the change permanent. How should they do this?

Managing Devices, Processes, Memory, and the Kernel: Manage the Linux kernel Medium
A. Reboot the system, and when the GRUB boot menu appears, press 'e' to edit the selected boot entry and add nomodeset to the linux line.
B. Create a file in /etc/modprobe.d/ with the content options=nomodeset.
C. Use the command sysctl -w kernel.nomodeset=1.
D. Edit the /etc/default/grub file and add nomodeset to the GRUB_CMDLINE_LINUX variable, then run update-grub.

37 To get a comprehensive and human-readable summary of a server's hardware configuration, including motherboard, firmware version, memory slots, and CPU details, which command is most suitable?

Managing Devices, Processes, Memory, and the Kernel: Gather hardware information Medium
A. dmidecode
B. cat /proc/cpuinfo
C. lshw -short
D. inxi -F

38 A server has two network interfaces, eth0 (connected to the internet) and eth1 (connected to a private network). The administrator needs to enable IP forwarding so that machines on the private network can access the internet through the server. Which action is required to enable this feature temporarily?

Configuring Network Settings: Manage network settings Medium
A. Restart the networking service with systemctl restart network.
B. Use iptables -A FORWARD -i eth1 -o eth0 -j ACCEPT.
C. Run the command echo 1 > /proc/sys/net/ipv4/ip_forward.
D. Add net.ipv4.ip_forward = 1 to /etc/sysctl.conf.

39 An administrator is setting up a new server and wants to ensure that only members of the wheel group can log in via SSH. Which directive in /etc/ssh/sshd_config should be used to enforce this policy?

Configuring Network Settings: Configure remote administrative access Medium
A. AllowGroups wheel
B. DenyUsers *
C. Require group=wheel
D. PermitRootLogin no

40 A system is configured to get its time from a remote NTP server. The administrator notices the system clock is drifting and wants to force an immediate synchronization. Which command should be used on a modern system running chronyd or systemd-timesyncd?

Managing Services: Configure common system services Medium
A. chronyc -a makestep
B. timedatectl set-ntp true
C. hwclock --hctosys
D. ntpdate pool.ntp.org

41 A system administrator observes a process in the 'Z' (zombie) state using ps aux. Attempts to terminate this process with kill -9 <zombie_pid> have no effect. What is the only effective method to clean up this zombie process from the process table?

Managing Devices, Processes, Memory, and the Kernel: Manage processes Hard
A. Reboot the system, as a zombie process has released its memory and cannot be terminated by any signal.
B. Use the pkill -9 -P <parent_pid> command to forcefully terminate all children of the parent process.
C. Run kill -18 <zombie_pid> which sends the SIGCONT signal, forcing the kernel to re-evaluate and clean up the process state.
D. Identify the parent process and send it a signal (e.g., SIGTERM or SIGKILL) to force it to execute the wait() system call and reap its child.

42 An administrator runs vmstat 1 on a database server under heavy load and sees consistently high values (>> 0) in the si and so columns. The free -h command shows that all physical RAM is in use, but a large portion is listed as 'buff/cache'. What is the most accurate diagnosis and appropriate tuning action?

Managing Devices, Processes, Memory, and the Kernel: Manage memory Hard
A. The high si/so values indicate excessive swapping due to I/O wait, not memory pressure. The solution is to upgrade to faster storage.
B. The system is memory-bound and thrashing. The best action is to lower the vm.swappiness value to 10 to make the kernel favor dropping page cache over swapping out application memory.
C. The system is out of memory. The only solution is to immediately add more physical RAM or configure a larger swap file.
D. This is normal behavior for a database server; the si/so columns represent standard buffer/cache I/O and can be ignored. No action is needed.

43 An administrator attempts to load a custom-compiled kernel module using modprobe my_module on a new server and receives the error: modprobe: ERROR: could not insert 'my_module': Required key not available. The module file exists and has correct permissions. What is the most likely cause of this error?

Managing Devices, Processes, Memory, and the Kernel: Manage the Linux kernel Hard
A. The module has a dependency that is not met, and modprobe cannot find the required prerequisite module to load first.
B. The file /etc/modprobe.d/blacklist.conf contains an entry for my_module, preventing it from being loaded.
C. The module was compiled for a different kernel version, and modprobe is correctly blocking it due to a version mismatch.
D. The system has Secure Boot enabled in the UEFI firmware, and the kernel is configured to only load modules that are cryptographically signed with a trusted key.

44 Consider a systemd unit file for service-a.service which contains the directive Requires=service-b.service. A second, otherwise identical unit file for service-c.service contains Wants=service-b.service. If service-b.service fails to start, what will be the behavior of service-a and service-c?

Managing Services: Manage system services Hard
A. Both service-a and service-c will attempt to start, but will fail with a dependency error.
B. Both service-a and service-c will start successfully, but will log a warning about the failed dependency.
C. service-a will not be started, but service-c will still attempt to start.
D. service-a will not be started, and service-c will also not be started.

45 While using mtr to diagnose a connection issue to example.com, you see the following output for the last few hops:


|-- 8. core-router.isp.net 0.0% 10 20.1 20.5 20.0 21.0 0.3
|-- 9. edge-router.isp.net 80.0% 10 22.3 22.5 22.1 23.2 0.4
|-- 10. ??? 100.0% 10 0.0 0.0 0.0 0.0 0.0
|-- 11. webserver.example.com 80.0% 10 30.1 30.4 30.0 31.0 0.5


What is the most accurate interpretation of this data?

Configuring Network Settings: Troubleshoot the network Hard
A. The high packet loss on hop 9 and 11 is caused by ICMP rate-limiting on those routers, and the real issue is hop 10, which is completely down.
B. There is severe packet loss (80%) on the return path from webserver.example.com. The loss reported at edge-router.isp.net is likely due to the same return path issue.
C. The destination web server at webserver.example.com is down or unreachable.
D. There is severe packet loss (80%) occurring on the link between core-router.isp.net and edge-router.isp.net.

46 A system administrator needs to determine the maximum memory capacity supported by the server's motherboard and the number of physical DIMM slots available, regardless of whether they are currently populated. Which command provides this specific information directly from the hardware's SMBIOS/DMI data?

Managing Devices, Processes, Memory, and the Kernel: Gather hardware information Hard
A. lshw -class memory
B. dmidecode -t memory
C. cat /proc/meminfo | grep MemTotal
D. free -g --total

47 You need to configure SSH access for a user named sftp_user. This user must be confined to their home directory (/srv/sftp/sftp_user) and should only be able to use SFTP, not an interactive shell. This rule should only apply when they connect from the 10.20.30.0/24 subnet. Which sshd_config block correctly and most securely implements these requirements?

Configuring Network Settings: Configure remote administrative access Hard
A.
Match Address 10.20.30.0/24
AcceptEnv sftp_user
ChrootDirectory /srv/sftp/sftp_user
ForceCommand sftp-server
B.
Subsystem sftp internal-sftp
Match User sftp_user Address 10.20.30.0/24
ChrootDirectory /srv/sftp/%u
ForceCommand internal-sftp
AllowTcpForwarding no
X11Forwarding no
C.
Subsystem sftp /usr/lib/openssh/sftp-server
Match User sftp_user
ChrootDirectory %h
ForceCommand /usr/lib/openssh/sftp-server
PermitTTY no
D.
Match User sftp_user
JailDirectory /srv/sftp/%u
ForceCommand sftp-only
AllowUsers sftp_user@10.20.30.0/24

48 A Linux server is acting as a multi-homed router. You need to implement policy-based routing such that all traffic originating from the source IP address 192.168.10.50 is routed via a gateway at 10.0.0.1, using a separate routing table. The default route should remain unchanged for all other traffic. Which set of commands correctly implements this?

Configuring Network Settings: Manage network settings Hard
A.
# iptables -t nat -A POSTROUTING -s 192.168.10.50 -j SNAT --to-source 10.0.0.1
B.
# echo "100 custom_table" >> /etc/iproute2/rt_tables
# ip route add default via 10.0.0.1 dev eth1 table custom_table
# ip rule add from 192.168.10.50 table custom_table
C.
# ip route add -host 192.168.10.50 gw 10.0.0.1
D.
# ip rule add to 10.0.0.1 from 192.168.10.50 table 100
# ip route add 10.0.0.1/32 dev eth1 table 100

49 You need to start a CPU-intensive compilation job (make -j8) but must ensure it doesn't negatively impact other critical services on the server. You want it to run with the lowest possible CPU priority (i.e., be the 'nicest' to other processes). Which command will accomplish this?

Managing Devices, Processes, Memory, and the Kernel: Manage Processes Hard
A. nice --adjustment=-19 make -j8
B. nice -n 19 make -j8
C. nice -n -20 make -j8
D. renice 19 $(pidof make)

50 You are managing a crond service on a multi-user system. A user has created a crontab entry: * * * * * /usr/bin/logger "Cron test". However, no logs are appearing. The cron daemon is running, and the user is not listed in /etc/cron.deny. The command runs perfectly when executed directly from the user's shell. What is the most probable reason for the cron job's silent failure?

Managing Services: Configure common system services Hard
A. The crontab entry is missing the username field, which is required in /etc/crontab but not user-specific crontabs.
B. The PATH environment variable for crond is minimal by default and does not include /usr/bin, causing the logger command to fail.
C. The user's shell is /sbin/nologin, which prevents cron from executing any jobs for that user.
D. The user does not have an entry in /etc/cron.allow, and this file exists and is not empty.

51 To permanently prevent the kernel module nouveau from ever being loaded, even if another module depends on it or if hardware probing triggers it, what is the most robust and correct method?

Managing Devices, Processes, Memory, and the Kernel: Manage the Linux kernel Hard
A. Add options nouveau modeset=0 to a .conf file in /etc/modprobe.d/.
B. Run rmmod nouveau and then add blacklist nouveau to a .conf file in /etc/modprobe.d/.
C. Physically remove the nouveau.ko file from the /lib/modules/$(uname -r)/ directory.
D. Add install nouveau /bin/true to a .conf file in /etc/modprobe.d/.

52 An administrator needs to override a single parameter, the ExecStart directive, for a vendor-provided systemd unit located at /usr/lib/systemd/system/vendor.service. The change must persist across package updates and should not involve copying the entire original unit file. What is the standard systemd procedure?

Managing Services: Manage system services Hard
A. Create a file /etc/systemd/system/vendor.service and add only the new [Service] section and ExecStart line.
B. Edit the original file /usr/lib/systemd/system/vendor.service directly and then run systemctl daemon-reload.
C. Create a directory /etc/systemd/system/vendor.service.d/ and place a file inside (e.g., override.conf) containing a [Service] section with the new ExecStart line.
D. Create a file /etc/default/vendor and add the ExecStart parameter, as systemd units source this file for environment variables.

53 A network trace shows a client sending a TCP packet with the SYN flag set and a sequence number of 1000. The server responds with a packet with the SYN and ACK flags set. What will the sequence number and acknowledgment number be in the server's response packet, according to the TCP three-way handshake protocol?

Configuring Network Settings: Understand network fundamentals Hard
A. Sequence number: 0, Acknowledgment number: 1001
B. Sequence number: 1001, Acknowledgment number: 1001
C. Sequence number: 1000, Acknowledgment number: 1000
D. Sequence number: random, Acknowledgment number: 1001

54 A web server is experiencing intermittent connection timeouts. You run ss -s and see a high number of entries in the timewait state. You then run ss -tan state time-wait 'sport = :443' | wc -l which returns a value of 35000. What does this indicate and what kernel parameter could be tuned to mitigate this?

Configuring Network Settings: Troubleshoot the network Hard
A. The server is handling many short-lived connections and is waiting for potentially delayed packets. Tuning net.ipv4.tcp_tw_reuse can help recycle these sockets faster.
B. The server is initiating many outbound connections that are closing slowly. Tuning net.ipv4.tcp_fin_timeout would help.
C. The listen backlog is too small for the incoming connection rate. Tuning net.core.somaxconn would help.
D. The server is under a SYN flood attack. Tuning net.ipv4.tcp_syncookies would help.

55 Using nmcli, how would you create a new bond interface named bond0 in an active-backup mode, using eth1 and eth2 as its slaves?

Configuring Network Settings: Manage network settings Hard
A.
nmcli device add bond0 type bond mode active-backup miimon 100
nmcli device enslave bond0 eth1 eth2
B.
nmcli conn add type bond con-name bond0 ifname bond0 mode active-backup
nmcli conn add type bond-slave con-name bond0-slave-eth1 ifname eth1 master bond0
nmcli conn add type bond-slave con-name bond0-slave-eth2 ifname eth2 master bond0
C.
nmcli bond add bond0 eth1,eth2 mode=active-backup
D.
nmcli con add type bond ifname bond0 mode active-backup
nmcli con add type ethernet ifname eth1 master bond0
nmcli con add type ethernet ifname eth2 master bond0

56 A user's environment is configured as follows:
- /etc/locale.conf contains LANG=en_US.UTF-8
- The user's ~/.bash_profile contains export LC_MESSAGES=fr_FR.UTF-8
- The system administrator has set a system-wide environment file with LC_ALL=C

When the user logs in and runs a command that produces an error message, in which language will the message appear and which character set will be used for sorting data?

Configuring Localization Settings: Configure localization settings Hard
A. Error messages in French; sorting using C locale rules.
B. Error messages in English; sorting using C locale rules.
C. The login will fail due to conflicting locale settings.
D. Error messages in English; sorting using en_US locale rules.

57 To harden an SSH server, an administrator wants to ensure that only the modern and secure ssh-ed25519 and rsa-sha2-512 host key algorithms are used. Any clients attempting to connect using older algorithms like ssh-dss or ecdsa-sha2-nistp256 should fail. Which sshd_config directive achieves this?

Configuring Network Settings: Configure remote administrative access Hard
A. HostKeyAlgorithms ssh-ed25519,rsa-sha2-512
B. KexAlgorithms curve25519-sha256,diffie-hellman-group-exchange-sha256
C. PubkeyAcceptedKeyTypes ssh-ed25519,rsa-sha2-512
D. Ciphers aes256-gcm@openssh.com,chacha20-poly1305@openssh.com

58 You are debugging a network service and need to find the PID of the process that has bound to TCP port 8443 and is currently in a LISTEN state, but you only want to see results for IPv4. Which command is the most precise and efficient for this task?

Managing Devices, Processes, Memory, and the Kernel: Manage Processes Hard
A. netstat -ltnp4 | grep :8443
B. ss -4 -ltnp 'sport = :8443'
C. lsof -i4 -sTCP:LISTEN -P | grep 8443
D. ss -ltnp 'sport = :8443'

59 You are configuring chronyd for a server in a highly secure, isolated network that has no internet access. There is one master time server on this network at 192.168.100.1. You need to configure the client server to poll this master, but also allow the client to serve time to other devices on its local subnet if the master becomes unreachable. Which combination of directives in /etc/chrony.conf is most appropriate?

Managing Services: Configure common system services Hard
A.
server 192.168.100.1 iburst
local stratum 10
B.
server 192.168.100.1 iburst
allow 0.0.0.0/0
C.
server 192.168.100.1 iburst
allow 192.168.0.0/16
local stratum 10
D.
pool 192.168.100.1 iburst
allow 192.168.0.0/16
driftfile /var/lib/chrony/drift

60 A system is experiencing performance degradation. Analysis shows that while there is free memory, the system has a very large number of active, anonymous memory pages, leading to high latency during memory allocation. Which sysctl parameter can be tuned to trigger background reclamation of memory pages more aggressively when free memory falls below a certain threshold, potentially improving allocation latency?

Managing Devices, Processes, Memory, and the Kernel: Manage Memory Hard
A. vm.overcommit_memory
B. vm.swappiness
C. vm.min_free_kbytes
D. vm.dirty_background_ratio