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 14

Question 130

In a hands-on RHCSA practice VM, the assigned outcome was: A shell script receives `source` and `destination` as positional parameters and currently copies an empty path when arguments are missing. What specific verification would demonstrate the target state?

  1. A simulated directory creation failure stops the script before any misleading success message.
  2. Two valid paths work and calling with only one argument returns exit code 2 without copying.
  3. Known values 9 and 10 route to different expected branches.
  4. The printed host label matches `hostname -s` without treating it as an executable.

Explanation

Correct Answer

B:

Two valid paths work and calling with only one argument returns exit code 2 without copying. This check confirms the expected effect of: Check `[ "$#" -eq 2 ] || exit 2` and use quoted `"$1"` and `"$2"` in the copy command. It distinguishes the intended result from the original failure mechanism: Positional parameters may be absent or contain spaces, requiring validation and quoting.

Incorrect Answers

A:

A simulated directory creation failure stops the script before any misleading success message. That verifies a separate lab task: A backup script runs even when its destination directory cannot be created, silently losing its output. It does not validate the implementation required here: Check `[ "$#" -eq 2 ] || exit 2` and use quoted `"$1"` and `"$2"` in the copy command.

C:

Known values 9 and 10 route to different expected branches. That verifies a separate lab task: A script's `if` statement tests a numeric threshold using string comparison and misorders the values 9 and 10. It does not validate the implementation required here: Check `[ "$#" -eq 2 ] || exit 2` and use quoted `"$1"` and `"$2"` in the copy command.

D:

The printed host label matches `hostname -s` without treating it as an executable. That verifies a separate lab task: A shell script writes raw command output but needs its first line to include the current hostname from the target host. It does not validate the implementation required here: Check `[ "$#" -eq 2 ] || exit 2` and use quoted `"$1"` and `"$2"` in the copy command.

Question 131

A trainee is diagnosing: A shell script receives `source` and `destination` as positional parameters and currently copies an empty path when arguments are missing. Which root cause should they recognize before changing the system?

  1. Command substitution captures a command's standard output as data.
  2. Quoting `"$@"` preserves positional argument boundaries for safe shell iteration.
  3. Positional parameters may be absent or contain spaces, requiring validation and quoting.
  4. A wildcard expands all matching entries; the `-d` test discriminates directories.

Explanation

Correct Answer

C:

Positional parameters may be absent or contain spaces, requiring validation and quoting. This explains the task's initial state: A shell script receives `source` and `destination` as positional parameters and currently copies an empty path when arguments are missing. The supported lab action is: Check `[ "$#" -eq 2 ] || exit 2` and use quoted `"$1"` and `"$2"` in the copy command.

Incorrect Answers

A:

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.

B:

Quoting `"$@"` preserves positional argument boundaries for safe shell iteration. This mechanism applies to another scenario: A housekeeping script must print each user-provided directory rather than always print one hard-coded value. The given lab state instead requires the more specific cause in the correct choice.

D:

A wildcard expands all matching entries; the `-d` test discriminates directories. This mechanism applies to another scenario: A daily job must print only directories under a sample tree but currently loops through both files and directories. The given lab state instead requires the more specific cause in the correct choice.

Question 132

For this Linux administration lab: A shell script receives `source` and `destination` as positional parameters and currently copies an empty path when arguments are missing. Which safety and lifecycle check best prevents the same problem returning?

  1. Choose exact process selectors and check for ambiguous multiple matches.
  2. Use predictable timestamp formats and validate generated filenames.
  3. Quote variables unless deliberate splitting is required and tested.
  4. Define script usage and test invalid argument counts.

Explanation

Correct Answer

D:

Define script usage and test invalid argument counts. This guards against recurrence of: Positional parameters may be absent or contain spaces, requiring validation and quoting. Confirm the lab's final state by: Two valid paths work and calling with only one argument returns exit code 2 without copying.

Incorrect Answers

A:

Choose exact process selectors and check for ambiguous multiple matches. That control is best suited to a separate scenario: A maintenance script must report whether a given process name exists without exiting with a misleading success status. It is not the best safeguard for the current mechanism: Positional parameters may be absent or contain spaces, requiring validation and quoting.

B:

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: Positional parameters may be absent or contain spaces, requiring validation and quoting.

C:

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: Positional parameters may be absent or contain spaces, requiring validation and quoting.

Question 133

A student working on a local virtualization classroom receives this assignment: A unit file for a custom service is edited directly under `/etc/systemd/system`, but systemd continues using the old unit definition. Which answer gives the correct practical approach?

  1. Use `scp -p /tmp/diagnostics.tgz student@labhost:/home/student/` with an authenticated host key.
  2. Run `sudo systemctl daemon-reload` after saving the reviewed unit file, then restart the unit if necessary.
  3. 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.
  4. Use `journalctl -u labworker.service -b --no-pager` and inspect `systemctl status labworker.service` for the actual failure.

Explanation

Correct Answer

B:

Run `sudo systemctl daemon-reload` after saving the reviewed unit file, then restart the unit if necessary. This directly addresses the lab target: A unit file for a custom service is edited directly under `/etc/systemd/system`, but systemd continues using the old unit definition. The underlying behavior is: Systemd caches unit definitions until its manager configuration is reloaded. Verification: `systemctl cat labworker.service` shows the updated directive and a controlled start honors it.

Incorrect Answers

A:

Use `scp -p /tmp/diagnostics.tgz student@labhost:/home/student/` with an authenticated host key. This is an appropriate step for a DIFFERENT exercise, specifically: 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 address the required lab state, whose mechanism is: Systemd caches unit definitions until its manager configuration is reloaded.

C:

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: Systemd caches unit definitions until its manager configuration is reloaded.

D:

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: Systemd caches unit definitions until its manager configuration is reloaded.

Question 134

You have attempted this task on a local virtualization classroom: A unit file for a custom service is edited directly under `/etc/systemd/system`, but systemd continues using the old unit definition. 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. `systemctl is-enabled httpd` reports enabled and `systemctl is-active httpd` reports active after a safe reboot.
  3. `systemctl cat labworker.service` shows the updated directive and a controlled start honors it.
  4. `systemctl is-active sshd` reports active and the intended local port is listening.

Explanation

Correct Answer

C:

`systemctl cat labworker.service` shows the updated directive and a controlled start honors it. This check confirms the expected effect of: Run `sudo systemctl daemon-reload` after saving the reviewed unit file, then restart the unit if necessary. It distinguishes the intended result from the original failure mechanism: Systemd caches unit definitions until its manager configuration is reloaded.

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: Run `sudo systemctl daemon-reload` after saving the reviewed unit file, then restart the unit if necessary.

B:

`systemctl is-enabled httpd` reports enabled and `systemctl is-active httpd` reports active after a safe reboot. That verifies a separate lab task: The lab web service starts manually but is inactive after every VM restart, even though the package is installed. It does not validate the implementation required here: Run `sudo systemctl daemon-reload` after saving the reviewed unit file, then restart the unit if necessary.

D:

`systemctl is-active sshd` reports active and the intended local port is listening. That verifies a separate lab task: A training SSH service was stopped for maintenance, and an operator mistakenly attempts to fix it by editing unrelated firewall rules. It does not validate the implementation required here: Run `sudo systemctl daemon-reload` after saving the reviewed unit file, then restart the unit if necessary.

Question 135

Troubleshoot the following RHEL 10 lab situation: A unit file for a custom service is edited directly under `/etc/systemd/system`, but systemd continues using the old unit definition. Identify the key Linux mechanism behind the issue.

  1. Higher nice numbers lower conventional CPU scheduler priority for ordinary processes.
  2. Process metrics identify resource consumers; a performance problem is not proof that the process should be terminated.
  3. A masked unit points to `/dev/null`, intentionally preventing activation.
  4. Systemd caches unit definitions until its manager configuration is reloaded.

Explanation

Correct Answer

D:

Systemd caches unit definitions until its manager configuration is reloaded. This explains the task's initial state: A unit file for a custom service is edited directly under `/etc/systemd/system`, but systemd continues using the old unit definition. The supported lab action is: Run `sudo systemctl daemon-reload` after saving the reviewed unit file, then restart the unit if necessary.

Incorrect Answers

A:

Higher nice numbers lower conventional CPU scheduler priority for ordinary processes. This mechanism applies to another scenario: A batch reporting program interferes with interactive tasks, and the goal is to reduce its scheduling priority while it remains active. The given lab state instead requires the more specific cause in the correct choice.

B:

Process metrics identify resource consumers; a performance problem is not proof that the process should be terminated. This mechanism applies to another scenario: The training server is slow, and a student wants to identify the CPU-intensive process before killing anything. The given lab state instead requires the more specific cause in the correct choice.

C:

A masked unit points to `/dev/null`, intentionally preventing activation. This mechanism applies to another scenario: A critical lab service was accidentally masked, so a regular `systemctl start` command fails despite correct unit configuration. The given lab state instead requires the more specific cause in the correct choice.

Question 136

Following lab verification, document the preventive or persistence-oriented procedure for: A unit file for a custom service is edited directly under `/etc/systemd/system`, but systemd continues using the old unit definition. Which practice is most suitable?

  1. Perform a manager reload for unit-file changes, separate from daemon application reloads.
  2. Protect physical/virtual console access and document emergency recovery approvals.
  3. Include explicit action and target hostname in approved shutdown runbooks.
  4. Record the original profile and restore it after the controlled benchmark.

Explanation

Correct Answer

A:

Perform a manager reload for unit-file changes, separate from daemon application reloads. This guards against recurrence of: Systemd caches unit definitions until its manager configuration is reloaded. Confirm the lab's final state by: `systemctl cat labworker.service` shows the updated directive and a controlled start honors it.

Incorrect Answers

B:

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: Systemd caches unit definitions until its manager configuration is reloaded.

C:

Include explicit action and target hostname in approved shutdown runbooks. That control is best suited to a separate scenario: A team is shutting down a disposable server immediately but an operator issues `reboot` instead of a power-off. It is not the best safeguard for the current mechanism: Systemd caches unit definitions until its manager configuration is reloaded.

D:

Record the original profile and restore it after the controlled benchmark. That control is best suited to a separate scenario: The team wants a consistent throughput-oriented system tuning profile during a disposable performance experiment. It is not the best safeguard for the current mechanism: Systemd caches unit definitions until its manager configuration is reloaded.

Question 137

On a nonproduction Linux administration sandbox, perform the following practical task: A trainee needs to delete one unused partition on a disposable GPT disk but proposes erasing the whole disk. Which action should be carried out after confirming the lab prerequisites?

  1. Use `lsblk`, device-rescan methods supported for the VM, and `udevadm settle` before any PV creation.
  2. Use `blkid` to identify the filesystem UUID and update the relevant fstab line to `UUID=<value>` with an unchanged mountpoint.
  3. Identify the unused partition number, verify no mounts, then use `parted -s /dev/vdb rm 2` on the training disk.
  4. Run `lvcreate -L 2G -n lv_db vg_training` with sufficient free space.

Explanation

Correct Answer

C:

Identify the unused partition number, verify no mounts, then use `parted -s /dev/vdb rm 2` on the training disk. This directly addresses the lab target: A trainee needs to delete one unused partition on a disposable GPT disk but proposes erasing the whole disk. The underlying behavior is: Removing one GPT partition differs from overwriting the entire partition table. Verification: `parted -s /dev/vdb print` no longer lists partition 2 and remaining partition metadata is intact.

Incorrect Answers

A:

Use `lsblk`, device-rescan methods supported for the VM, and `udevadm settle` before any PV creation. This is an appropriate step for a DIFFERENT exercise, specifically: A newly attached block device is not visible to LVM because it is not yet recognized by the kernel. It does not address the required lab state, whose mechanism is: Removing one GPT partition differs from overwriting the entire partition table.

B:

Use `blkid` to identify the filesystem UUID and update the relevant fstab line to `UUID=<value>` with an unchanged mountpoint. This is an appropriate step for a DIFFERENT exercise, specifically: A server has an approved lab LV mounted through `/dev/vdb1` and the device name changes after adding another disk. It does not address the required lab state, whose mechanism is: Removing one GPT partition differs from overwriting the entire partition table.

D:

Run `lvcreate -L 2G -n lv_db vg_training` with sufficient free space. This is an appropriate step for a DIFFERENT exercise, specifically: An LVM volume group `vg_training` exists and a test database requires a new 2 GiB logical volume. It does not address the required lab state, whose mechanism is: Removing one GPT partition differs from overwriting the entire partition table.

Question 138

The lab examiner asks for evidence after this assignment: A trainee needs to delete one unused partition on a disposable GPT disk but proposes erasing the whole disk. What is the decisive verification step?

  1. After reboot `findmnt` resolves the same filesystem despite the changed volatile device name.
  2. `lvs /dev/vg_training/lv_db` reports the larger block size; `df` may still show old filesystem capacity until filesystem growth.
  3. The resulting mapping identifies filesystem to LV to VG to PV without changing data.
  4. `parted -s /dev/vdb print` no longer lists partition 2 and remaining partition metadata is intact.

Explanation

Correct Answer

D:

`parted -s /dev/vdb print` no longer lists partition 2 and remaining partition metadata is intact. This check confirms the expected effect of: Identify the unused partition number, verify no mounts, then use `parted -s /dev/vdb rm 2` on the training disk. It distinguishes the intended result from the original failure mechanism: Removing one GPT partition differs from overwriting the entire partition table.

Incorrect Answers

A:

After reboot `findmnt` resolves the same filesystem despite the changed volatile device name. That verifies a separate lab task: A server has an approved lab LV mounted through `/dev/vdb1` and the device name changes after adding another disk. It does not validate the implementation required here: Identify the unused partition number, verify no mounts, then use `parted -s /dev/vdb rm 2` on the training disk.

B:

`lvs /dev/vg_training/lv_db` reports the larger block size; `df` may still show old filesystem capacity until filesystem growth. That verifies a separate lab task: An online lab volume needs another 1 GiB of block capacity but its administrator attempts to grow the filesystem without changing the LV. It does not validate the implementation required here: Identify the unused partition number, verify no mounts, then use `parted -s /dev/vdb rm 2` on the training disk.

C:

The resulting mapping identifies filesystem to LV to VG to PV without changing data. That verifies a separate lab task: An operator confuses a partition number with an LVM logical volume name when looking for a mounted database. It does not validate the implementation required here: Identify the unused partition number, verify no mounts, then use `parted -s /dev/vdb rm 2` on the training disk.

Question 139

A training host has this situation: A trainee needs to delete one unused partition on a disposable GPT disk but proposes erasing the whole disk. Which system behavior best explains the original failure or risk?

  1. Removing one GPT partition differs from overwriting the entire partition table.
  2. A GPT partition requires explicit start/end boundaries; unsafe offsets can overlap or misalign data.
  3. LVM deletion removes logical block storage and must not occur while live mounts depend on it.
  4. `swapon` applies at runtime but does not automatically create persistent boot activation.

Explanation

Correct Answer

A:

Removing one GPT partition differs from overwriting the entire partition table. This explains the task's initial state: A trainee needs to delete one unused partition on a disposable GPT disk but proposes erasing the whole disk. The supported lab action is: Identify the unused partition number, verify no mounts, then use `parted -s /dev/vdb rm 2` on the training disk.

Incorrect Answers

B:

A GPT partition requires explicit start/end boundaries; unsafe offsets can overlap or misalign data. This mechanism applies to another scenario: A verified blank GPT training disk needs one new 1 GiB partition with appropriate alignment. The given lab state instead requires the more specific cause in the correct choice.

C:

LVM deletion removes logical block storage and must not occur while live mounts depend on it. This mechanism applies to another scenario: A test operator removed a block LV without first unmounting it, risking a busy-device error or data loss. 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 140

A student has implemented the following configuration: A trainee needs to delete one unused partition on a disposable GPT disk but proposes erasing the whole disk. What repeatable control best reduces regressions or unsafe changes?

  1. Include a full storage dependency diagram in change requests.
  2. Confirm exact partition number, holders and backups before partition deletion.
  3. Plan allocations with PV placement requirements as well as aggregate capacity.
  4. Document whether requests are byte sizes or extents before provisioning LVM.

Explanation

Correct Answer

B:

Confirm exact partition number, holders and backups before partition deletion. This guards against recurrence of: Removing one GPT partition differs from overwriting the entire partition table. Confirm the lab's final state by: `parted -s /dev/vdb print` no longer lists partition 2 and remaining partition metadata is intact.

Incorrect Answers

A:

Include a full storage dependency diagram in change requests. That control is best suited to a separate scenario: An operator confuses a partition number with an LVM logical volume name when looking for a mounted database. It is not the best safeguard for the current mechanism: Removing one GPT partition differs from overwriting the entire partition table.

C:

Plan allocations with PV placement requirements as well as aggregate capacity. That control is best suited to a separate scenario: A training PV reports little free space while its VG appears to have ample total capacity across a second PV. It is not the best safeguard for the current mechanism: Removing one GPT partition differs from overwriting the entire partition table.

D:

Document whether requests are byte sizes or extents before provisioning LVM. That control is best suited to a separate scenario: An LV should consume precisely 20% of remaining free extents for a training scratch workload. It is not the best safeguard for the current mechanism: Removing one GPT partition differs from overwriting the entire partition table.