McAfee-Secured Website

Exam Bundle

Exam Code: EX200

Exam Name Red Hat Certified System Administrator (RHCSA)

Certification Provider: RedHat

Corresponding Certification: RHCSA

RedHat EX200 Bundle $44.99

100% RedHat EX200 Guaranteed Success With Testking Training Materials

Get Real EX200 Exam Questions & Expert Verified Answers as Experienced on the Real Exam!

  • Questions & Answers

    EX200 Questions & Answers

    111 Questions & Answers

    The ultimate exam preparation tool, Questions & Answers mirrors the actual EX200 exam while allowing you to hone and measure every aspect of your test-taking ability.

  • EX200 Video Course

    EX200 Video Course

    71 Video Lectures

    EX200 Video Course is developed by RedHat Professionals to help you pass the EX200 exam.

    Description

    This course will improve your knowledge and skills required to pass Red Hat Certified System Administrator (RHCSA) exam.
  • Study Guide

    EX200 Study Guide

    1601 PDF Pages

    Developed by industry experts, this 1601-page guide spells out in painstaking detail all of the information you need to ace EX200 exam.

Red Hat Certified System Administrator (RHCSA) (EX200) Practice Tests

Satisfaction Guaranteed

Money Back Guarantee

Testking provides hassle-free money back guarantee with our products. That is because we have 100% trust in the abilities of our professional and experience product team, and our record is a proof of that.

99.6% PASS RATE
Total Cost: $194.97
Bundle Price: $149.98

Purchase Individually

  • Questions & Answers

    Questions & Answers

    111 Questions

    $124.99
  • EX200 Video Course

    Video Course

    71 Video Lectures

    $39.99
  • Study Guide

    Study Guide

    1601 PDF Pages

    $29.99

RedHat EX200 Practice Test 6

Question 50

In a hands-on RHCSA practice VM, the assigned outcome was: A backup script runs even when its destination directory cannot be created, silently losing its output. What specific verification would demonstrate the target state?

  1. Arguments containing spaces are printed as single intended entries and the loop count matches input count.
  2. A simulated directory creation failure stops the script before any misleading success message.
  3. The known present and missing fixture processes produce different status messages.
  4. In a fixture where the first command exits 1, the second command does not run.

Explanation

Correct Answer

B:

A simulated directory creation failure stops the script before any misleading success message. This check confirms the expected effect of: Use `mkdir -p /tmp/lab-backups || exit 1` before the subsequent archive command. It distinguishes the intended result from the original failure mechanism: A nonzero command status must be checked when later actions depend on it.

Incorrect Answers

A:

Arguments containing spaces are printed as single intended entries and the loop count matches input count. That verifies a separate lab task: A housekeeping script must print each user-provided directory rather than always print one hard-coded value. It does not validate the implementation required here: Use `mkdir -p /tmp/lab-backups || exit 1` before the subsequent archive command.

C:

The known present and missing fixture processes produce different status messages. That verifies a separate lab task: A maintenance script must report whether a given process name exists without exiting with a misleading success status. It does not validate the implementation required here: Use `mkdir -p /tmp/lab-backups || exit 1` before the subsequent archive command.

D:

In a fixture where the first command exits 1, the second command does not run. That verifies a separate lab task: A script invokes two commands on one line with a semicolon and prints success even if the first fails. It does not validate the implementation required here: Use `mkdir -p /tmp/lab-backups || exit 1` before the subsequent archive command.

Question 51

A trainee is diagnosing: A backup script runs even when its destination directory cannot be created, silently losing its output. Which root cause should they recognize before changing the system?

  1. Noninteractive jobs do not necessarily inherit an interactive user's PATH and shell initialization.
  2. An exact process-name match requires `-x` instead of a broad substring search.
  3. A nonzero command status must be checked when later actions depend on it.
  4. Command substitution captures a command's standard output as data.

Explanation

Correct Answer

C:

A nonzero command status must be checked when later actions depend on it. This explains the task's initial state: A backup script runs even when its destination directory cannot be created, silently losing its output. The supported lab action is: Use `mkdir -p /tmp/lab-backups || exit 1` before the subsequent archive command.

Incorrect Answers

A:

Noninteractive jobs do not necessarily inherit an interactive user's PATH and shell initialization. This mechanism applies to another scenario: A cron-invoked script prints `command not found` for a utility present in the interactive user's shell. The given lab state instead requires the more specific cause in the correct choice.

B:

An exact process-name match requires `-x` instead of a broad substring search. This mechanism applies to another scenario: A maintenance script must report whether a given process name exists without exiting with a misleading success status. The given lab state instead requires the more specific cause in the correct choice.

D:

Command substitution captures a command's standard output as data. This mechanism applies to another scenario: A shell script writes raw command output but needs its first line to include the current hostname from the target host. The given lab state instead requires the more specific cause in the correct choice.

Question 52

For this Linux administration lab: A backup script runs even when its destination directory cannot be created, silently losing its output. Which safety and lifecycle check best prevents the same problem returning?

  1. Use predictable timestamp formats and validate generated filenames.
  2. Quote variables unless deliberate splitting is required and tested.
  3. Test both present and missing-file branches before scheduling the script.
  4. Fail fast on prerequisite failures and propagate meaningful exit codes.

Explanation

Correct Answer

D:

Fail fast on prerequisite failures and propagate meaningful exit codes. This guards against recurrence of: A nonzero command status must be checked when later actions depend on it. Confirm the lab's final state by: A simulated directory creation failure stops the script before any misleading success message.

Incorrect Answers

A:

Use predictable timestamp formats and validate generated filenames. That control is best suited to a separate scenario: A script generates a timestamped training archive but literal quotes around the `date` substitution prevent expansion. It is not the best safeguard for the current mechanism: A nonzero command status must be checked when later actions depend on it.

B:

Quote variables unless deliberate splitting is required and tested. That control is best suited to a separate scenario: A training script appends to a log whose path includes spaces and breaks because the variable is expanded unquoted. It is not the best safeguard for the current mechanism: A nonzero command status must be checked when later actions depend on it.

C:

Test both present and missing-file branches before scheduling the script. That control is best suited to a separate scenario: A lab script must exit successfully only when `/etc/hosts` exists, but an unguarded command reports success in both cases. It is not the best safeguard for the current mechanism: A nonzero command status must be checked when later actions depend on it.

Question 53

A student working on a disposable RHEL10 training node receives this assignment: A training SSH service was stopped for maintenance, and an operator mistakenly attempts to fix it by editing unrelated firewall rules. Which answer gives the correct practical approach?

  1. Use `sudo systemctl poweroff` after confirming the host and notifying the local lab.
  2. Check `systemctl status sshd`; then start the approved service with `sudo systemctl start sshd`.
  3. Launch it in the lab using `nice -n 10 /usr/local/bin/lab-indexer` rather than renicing afterward.
  4. At the local hypervisor console, follow the supported Red Hat boot-interruption password recovery procedure for the RHEL 10 installation; do not change unrelated production hosts.

Explanation

Correct Answer

B:

Check `systemctl status sshd`; then start the approved service with `sudo systemctl start sshd`. This directly addresses the lab target: A training SSH service was stopped for maintenance, and an operator mistakenly attempts to fix it by editing unrelated firewall rules. The underlying behavior is: A stopped systemd unit does not begin accepting network connections even if firewall access is permitted. Verification: `systemctl is-active sshd` reports active and the intended local port is listening.

Incorrect Answers

A:

Use `sudo systemctl poweroff` after confirming the host and notifying the local lab. This is an appropriate step for a DIFFERENT exercise, specifically: A team is shutting down a disposable server immediately but an operator issues `reboot` instead of a power-off. It does not address the required lab state, whose mechanism is: A stopped systemd unit does not begin accepting network connections even if firewall access is permitted.

C:

Launch it in the lab using `nice -n 10 /usr/local/bin/lab-indexer` rather than renicing afterward. This is an appropriate step for a DIFFERENT exercise, specifically: A background indexing job should start with a lower CPU scheduling priority from its first instruction. It does not address the required lab state, whose mechanism is: A stopped systemd unit does not begin accepting network connections even if firewall access is permitted.

D:

At the local hypervisor console, follow the supported Red Hat boot-interruption password recovery procedure for the RHEL 10 installation; do not change unrelated production hosts. This is an appropriate step for a DIFFERENT exercise, specifically: An administrator forgot an isolated training VM's root password and is asked to restore authorized console access. It does not address the required lab state, whose mechanism is: A stopped systemd unit does not begin accepting network connections even if firewall access is permitted.

Question 54

You have attempted this task on a disposable RHEL10 training node: A training SSH service was stopped for maintenance, and an operator mistakenly attempts to fix it by editing unrelated firewall rules. Which command output or observation best confirms its success?

  1. `ps -o ni,comm -p <pid>` shows the intended nice value for the launched job.
  2. After generating and rebooting the fixture, `journalctl --list-boots` shows earlier boot entries.
  3. `systemctl is-active sshd` reports active and the intended local port is listening.
  4. The destination file exists with expected checksum and SSH encrypted transport.

Explanation

Correct Answer

C:

`systemctl is-active sshd` reports active and the intended local port is listening. This check confirms the expected effect of: Check `systemctl status sshd`; then start the approved service with `sudo systemctl start sshd`. It distinguishes the intended result from the original failure mechanism: A stopped systemd unit does not begin accepting network connections even if firewall access is permitted.

Incorrect Answers

A:

`ps -o ni,comm -p <pid>` shows the intended nice value for the launched job. That verifies a separate lab task: A background indexing job should start with a lower CPU scheduling priority from its first instruction. It does not validate the implementation required here: Check `systemctl status sshd`; then start the approved service with `sudo systemctl start sshd`.

B:

After generating and rebooting the fixture, `journalctl --list-boots` shows earlier boot entries. That verifies a separate lab task: A lab incident must be reconstructed after reboot but `journalctl -b -1` has no previous-boot records due to volatile journaling. It does not validate the implementation required here: Check `systemctl status sshd`; then start the approved service with `sudo systemctl start sshd`.

D:

The destination file exists with expected checksum and SSH encrypted transport. That verifies a separate lab task: A lab workstation must copy a sensitive diagnostic bundle to a remote node without exposing it to an insecure plain-text transfer. It does not validate the implementation required here: Check `systemctl status sshd`; then start the approved service with `sudo systemctl start sshd`.

Question 55

Troubleshoot the following RHEL 10 lab situation: A training SSH service was stopped for maintenance, and an operator mistakenly attempts to fix it by editing unrelated firewall rules. Identify the key Linux mechanism behind the issue.

  1. Starting a systemd service affects the current boot while enabling creates persistent startup dependencies.
  2. An orderly reboot coordinates service shutdown and filesystem synchronization.
  3. Boot interruption changes early startup context and password recovery may require filesystem relabeling.
  4. A stopped systemd unit does not begin accepting network connections even if firewall access is permitted.

Explanation

Correct Answer

D:

A stopped systemd unit does not begin accepting network connections even if firewall access is permitted. This explains the task's initial state: A training SSH service was stopped for maintenance, and an operator mistakenly attempts to fix it by editing unrelated firewall rules. The supported lab action is: Check `systemctl status sshd`; then start the approved service with `sudo systemctl start sshd`.

Incorrect Answers

A:

Starting a systemd service affects the current boot while enabling creates persistent startup dependencies. This mechanism applies to another scenario: The lab web service starts manually but is inactive after every VM restart, even though the package is installed. The given lab state instead requires the more specific cause in the correct choice.

B:

An orderly reboot coordinates service shutdown and filesystem synchronization. This mechanism applies to another scenario: A lab system needs a controlled reboot after updates but the operator plans to unplug the virtual power without syncing writes. The given lab state instead requires the more specific cause in the correct choice.

C:

Boot interruption changes early startup context and password recovery may require filesystem relabeling. This mechanism applies to another scenario: An administrator forgot an isolated training VM's root password and is asked to restore authorized console access. The given lab state instead requires the more specific cause in the correct choice.

Question 56

Following lab verification, document the preventive or persistence-oriented procedure for: A training SSH service was stopped for maintenance, and an operator mistakenly attempts to fix it by editing unrelated firewall rules. Which practice is most suitable?

  1. Check the service state before changing packet-filter policy.
  2. Collect evidence and identify process ownership before choosing a corrective signal.
  3. Use verified PIDs and graceful termination before forced process removal.
  4. Choose `set-default` or `isolate` deliberately and avoid losing the only remote access channel.

Explanation

Correct Answer

A:

Check the service state before changing packet-filter policy. This guards against recurrence of: A stopped systemd unit does not begin accepting network connections even if firewall access is permitted. Confirm the lab's final state by: `systemctl is-active sshd` reports active and the intended local port is listening.

Incorrect Answers

B:

Collect evidence and identify process ownership before choosing a corrective signal. That control is best suited to a separate scenario: The training server is slow, and a student wants to identify the CPU-intensive process before killing anything. It is not the best safeguard for the current mechanism: A stopped systemd unit does not begin accepting network connections even if firewall access is permitted.

C:

Use verified PIDs and graceful termination before forced process removal. That control is best suited to a separate scenario: A noncritical lab job ignores a termination request, but its process remains and an admin proposes killing all similarly named jobs. It is not the best safeguard for the current mechanism: A stopped systemd unit does not begin accepting network connections even if firewall access is permitted.

D:

Choose `set-default` or `isolate` deliberately and avoid losing the only remote access channel. That control is best suited to a separate scenario: A technician needs to switch the currently running lab host from its GUI session to a non-graphical target without changing future boots. It is not the best safeguard for the current mechanism: A stopped systemd unit does not begin accepting network connections even if firewall access is permitted.

Question 57

On an offline training clone, perform the following practical task: The disposable blank `/dev/vdb` has no partition table, but the lab task needs a GPT disk layout. Which action should be carried out after confirming the lab prerequisites?

  1. Use `lsblk -f` plus `lvs` and `findmnt` to resolve which block layer currently backs `/srv/db`.
  2. Use `vgcreate vg_training /dev/vdb1 /dev/vdc1` after confirming both are dedicated PVs.
  3. After independently confirming `/dev/vdb` is the disposable target, run `parted -s /dev/vdb mklabel gpt`.
  4. On the verified disposable device, run `pvcreate /dev/vdb1` after checking `wipefs -n /dev/vdb1` for unexpected signatures.

Explanation

Correct Answer

C:

After independently confirming `/dev/vdb` is the disposable target, run `parted -s /dev/vdb mklabel gpt`. This directly addresses the lab target: The disposable blank `/dev/vdb` has no partition table, but the lab task needs a GPT disk layout. The underlying behavior is: GPT initialization replaces the chosen disk's partition metadata. Verification: `parted -s /dev/vdb print` reports `Partition Table: gpt` and existing production disks are unchanged.

Incorrect Answers

A:

Use `lsblk -f` plus `lvs` and `findmnt` to resolve which block layer currently backs `/srv/db`. This is an appropriate step for a DIFFERENT exercise, specifically: An operator confuses a partition number with an LVM logical volume name when looking for a mounted database. It does not address the required lab state, whose mechanism is: GPT initialization replaces the chosen disk's partition metadata.

B:

Use `vgcreate vg_training /dev/vdb1 /dev/vdc1` after confirming both are dedicated PVs. This is an appropriate step for a DIFFERENT exercise, specifically: Two fresh disposable LVM partitions must become one storage pool for a new application. It does not address the required lab state, whose mechanism is: GPT initialization replaces the chosen disk's partition metadata.

D:

On the verified disposable device, run `pvcreate /dev/vdb1` after checking `wipefs -n /dev/vdb1` for unexpected signatures. This is an appropriate step for a DIFFERENT exercise, specifically: A blank LVM lab partition `/dev/vdb1` exists but cannot be added to a volume group until initialized. It does not address the required lab state, whose mechanism is: GPT initialization replaces the chosen disk's partition metadata.

Question 58

The lab examiner asks for evidence after this assignment: The disposable blank `/dev/vdb` has no partition table, but the lab task needs a GPT disk layout. What is the decisive verification step?

  1. `vgs vg_training` reports increased free space and `pvs` shows the new member assigned.
  2. The observed signatures are documented without erasing data and a different populated disk remains untouched.
  3. `pvs` shows the retired PV is no longer a member and the VG remains healthy.
  4. `parted -s /dev/vdb print` reports `Partition Table: gpt` and existing production disks are unchanged.

Explanation

Correct Answer

D:

`parted -s /dev/vdb print` reports `Partition Table: gpt` and existing production disks are unchanged. This check confirms the expected effect of: After independently confirming `/dev/vdb` is the disposable target, run `parted -s /dev/vdb mklabel gpt`. It distinguishes the intended result from the original failure mechanism: GPT initialization replaces the chosen disk's partition metadata.

Incorrect Answers

A:

`vgs vg_training` reports increased free space and `pvs` shows the new member assigned. That verifies a separate lab task: An existing volume group needs more capacity, and a new dedicated blank PV has been attached. It does not validate the implementation required here: After independently confirming `/dev/vdb` is the disposable target, run `parted -s /dev/vdb mklabel gpt`.

B:

The observed signatures are documented without erasing data and a different populated disk remains untouched. That verifies a separate lab task: A lab disk appears to contain an old filesystem signature after a supposedly blank virtual disk is attached. It does not validate the implementation required here: After independently confirming `/dev/vdb` is the disposable target, run `parted -s /dev/vdb mklabel gpt`.

C:

`pvs` shows the retired PV is no longer a member and the VG remains healthy. That verifies a separate lab task: A dedicated LVM physical volume is no longer used by any allocated extents but remains listed in a training VG. It does not validate the implementation required here: After independently confirming `/dev/vdb` is the disposable target, run `parted -s /dev/vdb mklabel gpt`.

Question 59

A training host has this situation: The disposable blank `/dev/vdb` has no partition table, but the lab task needs a GPT disk layout. Which system behavior best explains the original failure or risk?

  1. GPT initialization replaces the chosen disk's partition metadata.
  2. Removing one GPT partition differs from overwriting the entire partition table.
  3. A volume group does not gain capacity just because a new disk is visible to Linux.
  4. Swap can reside on a partition or LV but still needs swap metadata and activation.

Explanation

Correct Answer

A:

GPT initialization replaces the chosen disk's partition metadata. This explains the task's initial state: The disposable blank `/dev/vdb` has no partition table, but the lab task needs a GPT disk layout. The supported lab action is: After independently confirming `/dev/vdb` is the disposable target, run `parted -s /dev/vdb mklabel gpt`.

Incorrect Answers

B:

Removing one GPT partition differs from overwriting the entire partition table. This mechanism applies to another scenario: A trainee needs to delete one unused partition on a disposable GPT disk but proposes erasing the whole disk. The given lab state instead requires the more specific cause in the correct choice.

C:

A volume group does not gain capacity just because a new disk is visible to Linux. This mechanism applies to another scenario: An existing volume group needs more capacity, and a new dedicated blank PV has been attached. The given lab state instead requires the more specific cause in the correct choice.

D:

Swap can reside on a partition or LV but still needs swap metadata and activation. This mechanism applies to another scenario: A VM needs a dedicated 1 GiB swap partition on an explicitly empty GPT training disk instead of an LVM swap LV. The given lab state instead requires the more specific cause in the correct choice.

Question 60

A student has implemented the following configuration: The disposable blank `/dev/vdb` has no partition table, but the lab task needs a GPT disk layout. What repeatable control best reduces regressions or unsafe changes?

  1. Audit swap entries and device UUIDs after storage migrations.
  2. Make disk identification a mandatory gate; never run `mklabel` on a disk with live data.
  3. Plan LV resizing and compatible filesystem growth as separate verified steps.
  4. Verify final filesystem size and document that XFS supports growth but not shrink.

Explanation

Correct Answer

B:

Make disk identification a mandatory gate; never run `mklabel` on a disk with live data. This guards against recurrence of: GPT initialization replaces the chosen disk's partition metadata. Confirm the lab's final state by: `parted -s /dev/vdb print` reports `Partition Table: gpt` and existing production disks are unchanged.

Incorrect Answers

A:

Audit swap entries and device UUIDs after storage migrations. That control is best suited to a separate scenario: A previously working swap LV disappears after restart because no persistent swap entry was configured. It is not the best safeguard for the current mechanism: GPT initialization replaces the chosen disk's partition metadata.

C:

Plan LV resizing and compatible filesystem growth as separate verified steps. That control is best suited to a separate scenario: An online lab volume needs another 1 GiB of block capacity but its administrator attempts to grow the filesystem without changing the LV. It is not the best safeguard for the current mechanism: GPT initialization replaces the chosen disk's partition metadata.

D:

Verify final filesystem size and document that XFS supports growth but not shrink. That control is best suited to a separate scenario: An administrator wants to grow a logical volume and its XFS filesystem together for a disposable data directory. It is not the best safeguard for the current mechanism: GPT initialization replaces the chosen disk's partition metadata.