Red Hat Certified Advanced System Administrator in Enterprise Linux (EX342) Exam Prep
Free practice questions

Free EX342 Practice Questions

10 exam-style questions with answers and explanations, straight from our 1,030-question bank. Tap an answer to check yourself. When you're ready, take the scored version in the free practice test.

Start the free practice test → ★★★★★4.9/5 from 2,400+ candidates · No signup

These 10 free EX342 questions are organized by exam domain, so you can see how each part of the Red Hat Certified Advanced System Administrator in Enterprise Linux (EX342) blueprint is tested. Reveal the answer and explanation under each question.

Domain 1: Understand and employ general methods for troubleshooting

Question 1

A reporting server with eight logical CPUs slows down during a batch run. The RHEL web console and command-line tools show the following throughout the same five-minute interval: Load average: 11.8, 9.4, 4.1 vmstat: r = 1-2, b = 9-12, si = 0, so = 0 CPU: 68% idle, 22% I/O wait Storage device await: 130 ms; its usual value under this workload is 3 ms Most stalled workers have process state D. Where should the administrator concentrate the investigation?

Show answer & explanation

Correct answer: C - Blocked I/O: correlate the waiting workers with device latency and kernel storage messages.

Question 2

In the tasks section of an Ansible play, a task copies a changed rsyslog forwarding configuration and notifies a handler named Restart rsyslog. The next task successfully validates the configuration with rsyslogd -N1. A following logger task sends a test message, but that message still follows the old configuration; the handler runs only after the remaining tasks finish. The receiver and network path have already been verified. The test must use the new configuration, while runs with unchanged configuration must not restart rsyslog. How should the play be adjusted?

Show answer & explanation

Correct answer: A - Insert ansible.builtin.meta: flush_handlers after validation and before the logger task.

Domain 2: Diagnose and troubleshoot system startup issues

Question 3

An API fails at boot because its database is not started. The only dependency relationship in api.service is After=report-db.service. The database unit is disabled, is not masked, and has no other activation trigger. It uses Type=notify and sends READY=1 only when it can accept connections. Starting api.service must also start the database, and a failed database activation must prevent the API from starting. Which additional directive belongs in api.service's [Unit] section?

Show answer & explanation

Correct answer: D - Requires=report-db.service

Question 4

After a virtual machine moves to VirtIO block storage, boot stops in the initramfs because the root disk is not discovered. Rescue media can read the disk, and its UUID matches the installed boot entry. The installed kernel has virtio_blk available, but lsinitrd shows it missing from that kernel's initramfs; the required supporting drivers are present. You are inside a fully prepared chroot of the installed system, with its /boot mounted. KVER contains the exact installed kernel version to repair; uname -r still identifies a different rescue kernel. Choose the repair that targets the failing boot image.

Show answer & explanation

Correct answer: C - Run dracut --force --add-drivers virtio_blk /boot/initramfs-${KVER}.img "$KVER" inside the installed-system chroot.

Domain 3: Diagnose and troubleshoot file system issues

Question 5

An XFS archive volume shuts down after metadata I/O errors. The storage controller reports new uncorrectable media errors on the same underlying device, and reads from several affected regions fail. Application writes have been stopped. Healthy storage large enough to hold a recovery image is available. Before anyone runs xfs_repair on the original volume, what is the priority?

Show answer & explanation

Correct answer: D - Preserve recoverable data on healthy storage and address the failing device before filesystem repair.

Question 6

A storage change must leave /dev/vgdata/archive at exactly 60 GiB, with its mounted XFS filesystem at /srv/archive expanded to use the LV. The LV and filesystem were both 48 GiB before the change. An earlier step extended the LV, but the filesystem-growth step was skipped. Current LVM output shows: Extent size: 8 MiB Current LV extents: 6656 Free VG extents: 8192 The LV is thick and linear; the filesystem is healthy and supports online growth. Which remaining operation meets the change request?

Show answer & explanation

Correct answer: D - Run lvextend -l +1024 /dev/vgdata/archive, then xfs_growfs /srv/archive.

Domain 4: Resolve package management issues

Question 7

A post-change audit runs rpm -V rsyslog after an approved edit to its forwarding destination: S.5....T. c /etc/rsyslog.conf The configuration diff matches the authorized edit, and end-to-end forwarding tests pass. No other verification differences are reported. What disposition fits this finding?

Show answer & explanation

Correct answer: B - Record the expected size, digest, and modification-time differences alongside the approved change.

Domain 5: Troubleshoot and fix network connectivity issues

Question 8

A service's health check succeeds at http://127.0.0.1:8080/health on server 192.0.2.40, but clients cannot connect to 192.0.2.40:8080. The server capture shows each client SYN arriving and a reset leaving in reply. Its only listener on that port is: LISTEN 0 128 127.0.0.1:8080 0.0.0.0:* The active firewall zone permits TCP 8080, and routing between the hosts is correct. The service is intended to accept connections on the server's LAN address. What needs to change?

Show answer & explanation

Correct answer: B - Change the application's listening address from 127.0.0.1 to 192.0.2.40, then restart it.

Domain 6: Diagnose application issues

Question 9

Apache serves static files from /srv/catalog on a RHEL host in SELinux enforcing mode. An administrator previously made the site work with chcon, but access fails again after a filesystem relabel. An AVC records httpd_t being denied file read access to var_t content. UNIX permissions and Apache's access configuration are correct, and no local file-context rule exists for this subtree. Select the repair that survives future relabeling and grants the web process SELinux read access without granting it write access to the content.

Show answer & explanation

Correct answer: A - semanage fcontext -a -t httpd_sys_content_t '/srv/catalog(/.*)?'; restorecon -Rv /srv/catalog

Domain 7: Identify and fix authentication issues

Question 10

A trace accounts for every module in a login service's PAM authentication stack: 1. A required pam_faillock.so check returns failure. 2. A sufficient pam_unix.so check validates the supplied password. 3. All remaining authentication checks return success. There are no include, substack, or extended-control jumps affecting this sequence. The application denies the login. Why did successful password verification not produce a successful authentication result?

Show answer & explanation

Correct answer: C - A sufficient success cannot override an earlier required failure; the authentication stack still fails.

The rest of the EX342 blueprint

The EX342 exam also covers these domains. Drill them in the full free practice test:

That's 10 of 1,030

The full bank has 1,020 more EX342 questions with explanations.

Continue in the free practice test →

View plans