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 2

Question 10

The lab examiner asks for evidence after this assignment: A lab script must exit successfully only when `/etc/hosts` exists, but an unguarded command reports success in both cases. What is the decisive verification step?

  1. Arguments containing spaces are printed as single intended entries and the loop count matches input count.
  2. A fixture with no matches reports zero while actual unreadable-file errors remain flagged.
  3. The file `/tmp/lab reports/status.txt` receives the line and no extra files are created.
  4. A normal VM prints `present`; a fixture with a missing file returns a nonzero exit.

Explanation

Correct Answer

D:

A normal VM prints `present`; a fixture with a missing file returns a nonzero exit. This check confirms the expected effect of: Use `if test -f /etc/hosts; then echo present; else exit 1; fi` in a shell script. It distinguishes the intended result from the original failure mechanism: A shell condition requires an explicit test and controlled success/failure branches.

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 `if test -f /etc/hosts; then echo present; else exit 1; fi` in a shell script.

B:

A fixture with no matches reports zero while actual unreadable-file errors remain flagged. That verifies a separate lab task: A reporting script pipes `grep` through `wc` and treats a zero-match grep exit as a catastrophic error even though zero results are valid. It does not validate the implementation required here: Use `if test -f /etc/hosts; then echo present; else exit 1; fi` in a shell script.

C:

The file `/tmp/lab reports/status.txt` receives the line and no extra files are created. That verifies a separate lab task: A training script appends to a log whose path includes spaces and breaks because the variable is expanded unquoted. It does not validate the implementation required here: Use `if test -f /etc/hosts; then echo present; else exit 1; fi` in a shell script.

Question 11

A training host has this situation: A lab script must exit successfully only when `/etc/hosts` exists, but an unguarded command reports success in both cases. Which system behavior best explains the original failure or risk?

  1. A shell condition requires an explicit test and controlled success/failure branches.
  2. Unquoted shell variable expansion performs splitting and pathname expansion.
  3. Single quotes suppress shell substitutions; double-quoted variable expansion preserves values.
  4. The shebang selects an interpreter; shell-specific syntax is not universal across implementations.

Explanation

Correct Answer

A:

A shell condition requires an explicit test and controlled success/failure branches. This explains the task's initial state: A lab script must exit successfully only when `/etc/hosts` exists, but an unguarded command reports success in both cases. The supported lab action is: Use `if test -f /etc/hosts; then echo present; else exit 1; fi` in a shell script.

Incorrect Answers

B:

Unquoted shell variable expansion performs splitting and pathname expansion. This mechanism applies to another scenario: A training script appends to a log whose path includes spaces and breaks because the variable is expanded unquoted. The given lab state instead requires the more specific cause in the correct choice.

C:

Single quotes suppress shell substitutions; double-quoted variable expansion preserves values. This mechanism applies to another scenario: A script generates a timestamped training archive but literal quotes around the `date` substitution prevent expansion. The given lab state instead requires the more specific cause in the correct choice.

D:

The shebang selects an interpreter; shell-specific syntax is not universal across implementations. This mechanism applies to another scenario: A shell helper is executed with `/bin/sh` but contains Bash-only syntax and fails on an alternate POSIX shell. The given lab state instead requires the more specific cause in the correct choice.

Question 12

A student has implemented the following configuration: A lab script must exit successfully only when `/etc/hosts` exists, but an unguarded command reports success in both cases. What repeatable control best reduces regressions or unsafe changes?

  1. Declare runtime prerequisites, command paths and required environment variables in scheduled scripts.
  2. Test both present and missing-file branches before scheduling the script.
  3. Check numeric input validity before threshold decisions.
  4. Quote substituted variables and test outputs when constructing paths or configuration.

Explanation

Correct Answer

B:

Test both present and missing-file branches before scheduling the script. This guards against recurrence of: A shell condition requires an explicit test and controlled success/failure branches. Confirm the lab's final state by: A normal VM prints `present`; a fixture with a missing file returns a nonzero exit.

Incorrect Answers

A:

Declare runtime prerequisites, command paths and required environment variables in scheduled scripts. That control is best suited to a separate scenario: A cron-invoked script prints `command not found` for a utility present in the interactive user's shell. It is not the best safeguard for the current mechanism: A shell condition requires an explicit test and controlled success/failure branches.

C:

Check numeric input validity before threshold decisions. That control is best suited to a separate scenario: A script's `if` statement tests a numeric threshold using string comparison and misorders the values 9 and 10. It is not the best safeguard for the current mechanism: A shell condition requires an explicit test and controlled success/failure branches.

D:

Quote substituted variables and test outputs when constructing paths or configuration. That control is best suited to a separate scenario: A shell script writes raw command output but needs its first line to include the current hostname from the target host. It is not the best safeguard for the current mechanism: A shell condition requires an explicit test and controlled success/failure branches.

Question 13

You are responsible for a local virtualization classroom. The required hands-on outcome is: The lab web service starts manually but is inactive after every VM restart, even though the package is installed. Select the most appropriate implementation step.

  1. Use `journalctl -u labworker.service -b --no-pager` and inspect `systemctl status labworker.service` for the actual failure.
  2. Send `kill -TERM <verified-pid>`, check graceful exit, and only escalate to `kill -KILL` for that confirmed PID if necessary.
  3. After investigating why it was masked, run `sudo systemctl unmask labworker.service` and then an authorized start.
  4. Run `sudo systemctl enable --now httpd.service` after validating its configuration and required dependencies.

Explanation

Correct Answer

D:

Run `sudo systemctl enable --now httpd.service` after validating its configuration and required dependencies. This directly addresses the lab target: The lab web service starts manually but is inactive after every VM restart, even though the package is installed. The underlying behavior is: Starting a systemd service affects the current boot while enabling creates persistent startup dependencies. Verification: `systemctl is-enabled httpd` reports enabled and `systemctl is-active httpd` reports active after a safe reboot.

Incorrect Answers

A:

Use `journalctl -u labworker.service -b --no-pager` and inspect `systemctl status labworker.service` for the actual failure. This is an appropriate step for a DIFFERENT exercise, specifically: An application service fails to start but an administrator looks only at its unit's enabled state. It does not address the required lab state, whose mechanism is: Starting a systemd service affects the current boot while enabling creates persistent startup dependencies.

B:

Send `kill -TERM <verified-pid>`, check graceful exit, and only escalate to `kill -KILL` for that confirmed PID if necessary. This is an appropriate step for a DIFFERENT exercise, specifically: A noncritical lab job ignores a termination request, but its process remains and an admin proposes killing all similarly named jobs. It does not address the required lab state, whose mechanism is: Starting a systemd service affects the current boot while enabling creates persistent startup dependencies.

C:

After investigating why it was masked, run `sudo systemctl unmask labworker.service` and then an authorized start. This is an appropriate step for a DIFFERENT exercise, specifically: A critical lab service was accidentally masked, so a regular `systemctl start` command fails despite correct unit configuration. It does not address the required lab state, whose mechanism is: Starting a systemd service affects the current boot while enabling creates persistent startup dependencies.

Question 14

After a lab configuration change, verify: The lab web service starts manually but is inactive after every VM restart, even though the package is installed. Which result most directly proves the desired system state?

  1. `systemctl is-enabled httpd` reports enabled and `systemctl is-active httpd` reports active after a safe reboot.
  2. `systemctl get-default` reports `multi-user.target`, including after reboot.
  3. `systemctl is-enabled labworker` no longer reports masked, and the unit starts normally.
  4. The highest CPU-consuming fixture process appears with its PID and percentage data.

Explanation

Correct Answer

A:

`systemctl is-enabled httpd` reports enabled and `systemctl is-active httpd` reports active after a safe reboot. This check confirms the expected effect of: Run `sudo systemctl enable --now httpd.service` after validating its configuration and required dependencies. It distinguishes the intended result from the original failure mechanism: Starting a systemd service affects the current boot while enabling creates persistent startup dependencies.

Incorrect Answers

B:

`systemctl get-default` reports `multi-user.target`, including after reboot. That verifies a separate lab task: A multi-user server is configured to boot into a graphical session, while the training task requires a command-line default. It does not validate the implementation required here: Run `sudo systemctl enable --now httpd.service` after validating its configuration and required dependencies.

C:

`systemctl is-enabled labworker` no longer reports masked, and the unit starts normally. That verifies a separate lab task: A critical lab service was accidentally masked, so a regular `systemctl start` command fails despite correct unit configuration. It does not validate the implementation required here: Run `sudo systemctl enable --now httpd.service` after validating its configuration and required dependencies.

D:

The highest CPU-consuming fixture process appears with its PID and percentage data. That verifies a separate lab task: The training server is slow, and a student wants to identify the CPU-intensive process before killing anything. It does not validate the implementation required here: Run `sudo systemctl enable --now httpd.service` after validating its configuration and required dependencies.

Question 15

In an EX200-style practice lab, this condition exists: The lab web service starts manually but is inactive after every VM restart, even though the package is installed. Which explanation correctly identifies the underlying issue?

  1. Boot interruption changes early startup context and password recovery may require filesystem relabeling.
  2. Starting a systemd service affects the current boot while enabling creates persistent startup dependencies.
  3. A daemon bound to loopback does not accept connections arriving on a LAN interface.
  4. Editing a configuration file does not necessarily reload a running process.

Explanation

Correct Answer

B:

Starting a systemd service affects the current boot while enabling creates persistent startup dependencies. This explains the task's initial state: The lab web service starts manually but is inactive after every VM restart, even though the package is installed. The supported lab action is: Run `sudo systemctl enable --now httpd.service` after validating its configuration and required dependencies.

Incorrect Answers

A:

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.

C:

A daemon bound to loopback does not accept connections arriving on a LAN interface. This mechanism applies to another scenario: A listening service appears healthy but clients cannot connect, and the administrator must distinguish service binding from firewall failures. The given lab state instead requires the more specific cause in the correct choice.

D:

Editing a configuration file does not necessarily reload a running process. This mechanism applies to another scenario: An application configuration was changed on disk, but the running daemon still uses the previous settings. The given lab state instead requires the more specific cause in the correct choice.

Question 16

After completing this practical task on a local virtualization classroom: The lab web service starts manually but is inactive after every VM restart, even though the package is installed. Which operational safeguard helps keep the result correct and safe?

  1. Verify host identity and file hashes before and after transferring diagnostic archives.
  2. Keep tested console recovery access and backup before rescue-target maintenance.
  3. Test both runtime state and enablement after every service deployment.
  4. Protect physical/virtual console access and document emergency recovery approvals.

Explanation

Correct Answer

C:

Test both runtime state and enablement after every service deployment. This guards against recurrence of: Starting a systemd service affects the current boot while enabling creates persistent startup dependencies. Confirm the lab's final state by: `systemctl is-enabled httpd` reports enabled and `systemctl is-active httpd` reports active after a safe reboot.

Incorrect Answers

A:

Verify host identity and file hashes before and after transferring diagnostic archives. That control is best suited to a separate scenario: A lab workstation must copy a sensitive diagnostic bundle to a remote node without exposing it to an insecure plain-text transfer. It is not the best safeguard for the current mechanism: Starting a systemd service affects the current boot while enabling creates persistent startup dependencies.

B:

Keep tested console recovery access and backup before rescue-target maintenance. That control is best suited to a separate scenario: A VM has a misconfigured service and requires recovery operations in an isolated rescue target. It is not the best safeguard for the current mechanism: Starting a systemd service affects the current boot while enabling creates persistent startup dependencies.

D:

Protect physical/virtual console access and document emergency recovery approvals. That control is best suited to a separate scenario: An administrator forgot an isolated training VM's root password and is asked to restore authorized console access. It is not the best safeguard for the current mechanism: Starting a systemd service affects the current boot while enabling creates persistent startup dependencies.

Question 17

Lab exercise on a nonproduction Linux administration sandbox: A disposable VM has several added disks and the operator must identify which blank disk is safe before partitioning. Which proposed RHEL 10 command or configuration action most directly achieves the required lab state?

  1. Use `lsblk -o NAME,SIZE,TYPE,FSTYPE,MOUNTPOINTS`, `blkid`, and the lab inventory to identify the designated empty `/dev/vdb`.
  2. Identify the unused partition number, verify no mounts, then use `parted -s /dev/vdb rm 2` on the training disk.
  3. Initialize the verified new PV and run `vgextend vg_training /dev/vdd1`.
  4. Check `vgs -o vg_name,vg_free` and add approved PV capacity before attempting the growth again.

Explanation

Correct Answer

A:

Use `lsblk -o NAME,SIZE,TYPE,FSTYPE,MOUNTPOINTS`, `blkid`, and the lab inventory to identify the designated empty `/dev/vdb`. This directly addresses the lab target: A disposable VM has several added disks and the operator must identify which blank disk is safe before partitioning. The underlying behavior is: Device names can change and `lsblk` alone does not authorize destructive partition operations. Verification: The selected disk has no filesystem, partition or mount dependencies and matches the lab's disk ID.

Incorrect Answers

B:

Identify the unused partition number, verify no mounts, then use `parted -s /dev/vdb rm 2` on the training disk. This is an appropriate step for a DIFFERENT exercise, specifically: A trainee needs to delete one unused partition on a disposable GPT disk but proposes erasing the whole disk. It does not address the required lab state, whose mechanism is: Device names can change and `lsblk` alone does not authorize destructive partition operations.

C:

Initialize the verified new PV and run `vgextend vg_training /dev/vdd1`. This is an appropriate step for a DIFFERENT exercise, specifically: An existing volume group needs more capacity, and a new dedicated blank PV has been attached. It does not address the required lab state, whose mechanism is: Device names can change and `lsblk` alone does not authorize destructive partition operations.

D:

Check `vgs -o vg_name,vg_free` and add approved PV capacity before attempting the growth again. This is an appropriate step for a DIFFERENT exercise, specifically: An LV from a disposable VG has no free extents to grow, and the operator repeatedly retries `lvextend`. It does not address the required lab state, whose mechanism is: Device names can change and `lsblk` alone does not authorize destructive partition operations.

Question 18

In a hands-on RHCSA practice VM, the assigned outcome was: A disposable VM has several added disks and the operator must identify which blank disk is safe before partitioning. What specific verification would demonstrate the target state?

  1. The report lists the actual PV paths and their group membership for the target LV.
  2. The selected disk has no filesystem, partition or mount dependencies and matches the lab's disk ID.
  3. `lsblk -f` reports swap type and `swapon --show` shows the correct partition.
  4. `lvs vg_training` no longer lists the retired LV and unrelated LVs remain.

Explanation

Correct Answer

B:

The selected disk has no filesystem, partition or mount dependencies and matches the lab's disk ID. This check confirms the expected effect of: Use `lsblk -o NAME,SIZE,TYPE,FSTYPE,MOUNTPOINTS`, `blkid`, and the lab inventory to identify the designated empty `/dev/vdb`. It distinguishes the intended result from the original failure mechanism: Device names can change and `lsblk` alone does not authorize destructive partition operations.

Incorrect Answers

A:

The report lists the actual PV paths and their group membership for the target LV. That verifies a separate lab task: An administrator needs to identify the data-bearing PVs behind an LV without relying on its friendly name. It does not validate the implementation required here: Use `lsblk -o NAME,SIZE,TYPE,FSTYPE,MOUNTPOINTS`, `blkid`, and the lab inventory to identify the designated empty `/dev/vdb`.

C:

`lsblk -f` reports swap type and `swapon --show` shows the correct partition. That verifies a separate lab task: A VM needs a dedicated 1 GiB swap partition on an explicitly empty GPT training disk instead of an LVM swap LV. It does not validate the implementation required here: Use `lsblk -o NAME,SIZE,TYPE,FSTYPE,MOUNTPOINTS`, `blkid`, and the lab inventory to identify the designated empty `/dev/vdb`.

D:

`lvs vg_training` no longer lists the retired LV and unrelated LVs remain. That verifies a separate lab task: A test operator removed a block LV without first unmounting it, risking a busy-device error or data loss. It does not validate the implementation required here: Use `lsblk -o NAME,SIZE,TYPE,FSTYPE,MOUNTPOINTS`, `blkid`, and the lab inventory to identify the designated empty `/dev/vdb`.

Question 19

A trainee is diagnosing: A disposable VM has several added disks and the operator must identify which blank disk is safe before partitioning. Which root cause should they recognize before changing the system?

  1. Removing one GPT partition differs from overwriting the entire partition table.
  2. LVM can have uneven free extent distribution across physical members.
  3. Device names can change and `lsblk` alone does not authorize destructive partition operations.
  4. `swapon` applies at runtime but does not automatically create persistent boot activation.

Explanation

Correct Answer

C:

Device names can change and `lsblk` alone does not authorize destructive partition operations. This explains the task's initial state: A disposable VM has several added disks and the operator must identify which blank disk is safe before partitioning. The supported lab action is: Use `lsblk -o NAME,SIZE,TYPE,FSTYPE,MOUNTPOINTS`, `blkid`, and the lab inventory to identify the designated empty `/dev/vdb`.

Incorrect Answers

A:

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.

B:

LVM can have uneven free extent distribution across physical members. This mechanism applies to another scenario: A training PV reports little free space while its VG appears to have ample total capacity across a second PV. The given lab state instead requires the more specific cause in the correct choice.

D:

`swapon` applies at runtime but does not automatically create persistent boot activation. This mechanism applies to another scenario: A previously working swap LV disappears after restart because no persistent swap entry was configured. The given lab state instead requires the more specific cause in the correct choice.

Question 20

For this Linux administration lab: A disposable VM has several added disks and the operator must identify which blank disk is safe before partitioning. Which safety and lifecycle check best prevents the same problem returning?

  1. Audit swap entries and device UUIDs after storage migrations.
  2. Use stable UUID or labels for persistent mounts and run `findmnt --verify` before reboot.
  3. Test swap capacity and persist the selected UUID in `/etc/fstab` for future boots.
  4. Require a signed disk-to-VM inventory and backup review before changing partition tables.

Explanation

Correct Answer

D:

Require a signed disk-to-VM inventory and backup review before changing partition tables. This guards against recurrence of: Device names can change and `lsblk` alone does not authorize destructive partition operations. Confirm the lab's final state by: The selected disk has no filesystem, partition or mount dependencies and matches the lab's disk ID.

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: Device names can change and `lsblk` alone does not authorize destructive partition operations.

B:

Use stable UUID or labels for persistent mounts and run `findmnt --verify` before reboot. That control is best suited to a separate scenario: A server has an approved lab LV mounted through `/dev/vdb1` and the device name changes after adding another disk. It is not the best safeguard for the current mechanism: Device names can change and `lsblk` alone does not authorize destructive partition operations.

C:

Test swap capacity and persist the selected UUID in `/etc/fstab` for future boots. That control is best suited to a separate scenario: A VM needs a dedicated 1 GiB swap partition on an explicitly empty GPT training disk instead of an LVM swap LV. It is not the best safeguard for the current mechanism: Device names can change and `lsblk` alone does not authorize destructive partition operations.