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 61

Question 600

Following lab verification, document the preventive or persistence-oriented procedure for: Two paths should reference the same inode so edits through either name appear in the other, entirely on one file system. Which practice is most suitable?

  1. Use hard links only for same-filesystem files and document how unlinking each name affects retention.
  2. Constrain glob paths and check match existence before iterating over files.
  3. Check effective identity and environment before privileged operations, then return to a normal account.
  4. Manage known host fingerprints and investigate unexpected key changes instead of setting StrictHostKeyChecking=no.

Explanation

Correct Answer

A:

Use hard links only for same-filesystem files and document how unlinking each name affects retention. This guards against recurrence of: Hard links name the same inode and cannot ordinarily link across separate file systems. Confirm the lab's final state by: `stat -c '%i %h'` reports the same inode and an increased link count for both paths.

Incorrect Answers

B:

Constrain glob paths and check match existence before iterating over files. That control is best suited to a separate scenario: A shell script is supposed to process every `.conf` file, but its wildcard is quoted as a single literal. It is not the best safeguard for the current mechanism: Hard links name the same inode and cannot ordinarily link across separate file systems.

C:

Check effective identity and environment before privileged operations, then return to a normal account. That control is best suited to a separate scenario: A student becomes root with `su` but finds the previous user's PATH and working directory still active during an administrative test. It is not the best safeguard for the current mechanism: Hard links name the same inode and cannot ordinarily link across separate file systems.

D:

Manage known host fingerprints and investigate unexpected key changes instead of setting StrictHostKeyChecking=no. That control is best suited to a separate scenario: A first SSH connection warns that the server identity is unknown, and a student proposes disabling host key checks globally. It is not the best safeguard for the current mechanism: Hard links name the same inode and cannot ordinarily link across separate file systems.

Question 601

On an isolated enterprise lab VM, perform the following practical 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. Which action should be carried out after confirming the lab prerequisites?

  1. Use `for path in /tmp/lab-tree/*; do [ -d "$path" ] || continue; printf '%s\n' "$path"; done`.
  2. Use `if pgrep -x "$1" >/dev/null; then echo running; else echo absent; fi` after argument validation.
  3. Use a tested count expression such as `grep -c 'pattern' /tmp/fixture.log || [ "$?" -eq 1 ]` with correct status handling or use `awk` for an unconditional count.
  4. Use `if test -f /etc/hosts; then echo present; else exit 1; fi` in a shell script.

Explanation

Correct Answer

C:

Use a tested count expression such as `grep -c 'pattern' /tmp/fixture.log || [ "$?" -eq 1 ]` with correct status handling or use `awk` for an unconditional count. This directly addresses the lab target: A reporting script pipes `grep` through `wc` and treats a zero-match grep exit as a catastrophic error even though zero results are valid. The underlying behavior is: A search command may return 1 for no matches and 2 for execution errors. Verification: A fixture with no matches reports zero while actual unreadable-file errors remain flagged.

Incorrect Answers

A:

Use `for path in /tmp/lab-tree/*; do [ -d "$path" ] || continue; printf '%s\n' "$path"; done`. This is an appropriate step for a DIFFERENT exercise, specifically: A daily job must print only directories under a sample tree but currently loops through both files and directories. It does not address the required lab state, whose mechanism is: A search command may return 1 for no matches and 2 for execution errors.

B:

Use `if pgrep -x "$1" >/dev/null; then echo running; else echo absent; fi` after argument validation. This is an appropriate step for a DIFFERENT exercise, specifically: A maintenance script must report whether a given process name exists without exiting with a misleading success status. It does not address the required lab state, whose mechanism is: A search command may return 1 for no matches and 2 for execution errors.

D:

Use `if test -f /etc/hosts; then echo present; else exit 1; fi` in a shell script. This is an appropriate step for a DIFFERENT exercise, specifically: A lab script must exit successfully only when `/etc/hosts` exists, but an unguarded command reports success in both cases. It does not address the required lab state, whose mechanism is: A search command may return 1 for no matches and 2 for execution errors.

Question 602

The lab examiner asks for evidence after this assignment: A reporting script pipes `grep` through `wc` and treats a zero-match grep exit as a catastrophic error even though zero results are valid. What is the decisive verification step?

  1. The resulting filename contains the current date digits and `tar -tzf` lists expected members.
  2. The printed host label matches `hostname -s` without treating it as an executable.
  3. A fixture containing backslashes is printed unchanged and no unexpected interpolation occurs.
  4. A fixture with no matches reports zero while actual unreadable-file errors remain flagged.

Explanation

Correct Answer

D:

A fixture with no matches reports zero while actual unreadable-file errors remain flagged. This check confirms the expected effect of: Use a tested count expression such as `grep -c 'pattern' /tmp/fixture.log || [ "$?" -eq 1 ]` with correct status handling or use `awk` for an unconditional count. It distinguishes the intended result from the original failure mechanism: A search command may return 1 for no matches and 2 for execution errors.

Incorrect Answers

A:

The resulting filename contains the current date digits and `tar -tzf` lists expected members. That verifies a separate lab task: A script generates a timestamped training archive but literal quotes around the `date` substitution prevent expansion. It does not validate the implementation required here: Use a tested count expression such as `grep -c 'pattern' /tmp/fixture.log || [ "$?" -eq 1 ]` with correct status handling or use `awk` for an unconditional count.

B:

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: Use a tested count expression such as `grep -c 'pattern' /tmp/fixture.log || [ "$?" -eq 1 ]` with correct status handling or use `awk` for an unconditional count.

C:

A fixture containing backslashes is printed unchanged and no unexpected interpolation occurs. That verifies a separate lab task: A script asks users for a name but accidentally treats backslash sequences in the input as control codes. It does not validate the implementation required here: Use a tested count expression such as `grep -c 'pattern' /tmp/fixture.log || [ "$?" -eq 1 ]` with correct status handling or use `awk` for an unconditional count.

Question 603

A training host has this situation: A reporting script pipes `grep` through `wc` and treats a zero-match grep exit as a catastrophic error even though zero results are valid. Which system behavior best explains the original failure or risk?

  1. A search command may return 1 for no matches and 2 for execution errors.
  2. Positional parameters may be absent or contain spaces, requiring validation and quoting.
  3. Command substitution captures a command's standard output as data.
  4. Noninteractive jobs do not necessarily inherit an interactive user's PATH and shell initialization.

Explanation

Correct Answer

A:

A search command may return 1 for no matches and 2 for execution errors. This explains the task's initial state: A reporting script pipes `grep` through `wc` and treats a zero-match grep exit as a catastrophic error even though zero results are valid. The supported lab action is: Use a tested count expression such as `grep -c 'pattern' /tmp/fixture.log || [ "$?" -eq 1 ]` with correct status handling or use `awk` for an unconditional count.

Incorrect Answers

B:

Positional parameters may be absent or contain spaces, requiring validation and quoting. This mechanism applies to another scenario: A shell script receives `source` and `destination` as positional parameters and currently copies an empty path when arguments are missing. The given lab state instead requires the more specific cause in the correct choice.

C:

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.

D:

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.

Question 604

A student has implemented the following configuration: A reporting script pipes `grep` through `wc` and treats a zero-match grep exit as a catastrophic error even though zero results are valid. What repeatable control best reduces regressions or unsafe changes?

  1. Declare interpreter requirements and run shell syntax checks before deployment.
  2. Distinguish expected empty results from real failures in pipeline error handling.
  3. Fail fast on prerequisite failures and propagate meaningful exit codes.
  4. Use literal input mode for untrusted or structured strings.

Explanation

Correct Answer

B:

Distinguish expected empty results from real failures in pipeline error handling. This guards against recurrence of: A search command may return 1 for no matches and 2 for execution errors. Confirm the lab's final state by: A fixture with no matches reports zero while actual unreadable-file errors remain flagged.

Incorrect Answers

A:

Declare interpreter requirements and run shell syntax checks before deployment. That control is best suited to a separate scenario: A shell helper is executed with `/bin/sh` but contains Bash-only syntax and fails on an alternate POSIX shell. It is not the best safeguard for the current mechanism: A search command may return 1 for no matches and 2 for execution errors.

C:

Fail fast on prerequisite failures and propagate meaningful exit codes. That control is best suited to a separate scenario: A backup script runs even when its destination directory cannot be created, silently losing its output. It is not the best safeguard for the current mechanism: A search command may return 1 for no matches and 2 for execution errors.

D:

Use literal input mode for untrusted or structured strings. That control is best suited to a separate scenario: A script asks users for a name but accidentally treats backslash sequences in the input as control codes. It is not the best safeguard for the current mechanism: A search command may return 1 for no matches and 2 for execution errors.

Question 605

You are responsible for a disposable RHEL10 training node. The required hands-on outcome is: A lab workstation must copy a sensitive diagnostic bundle to a remote node without exposing it to an insecure plain-text transfer. Select the most appropriate implementation step.

  1. Run `sudo tuned-adm list`, select an installed suitable profile using `sudo tuned-adm profile throughput-performance`.
  2. Enable supported persistent systemd journal storage, such as creating `/var/log/journal` with correct ownership and restarting `systemd-journald` as documented.
  3. Use `sudo systemctl poweroff` after confirming the host and notifying the local lab.
  4. Use `scp -p /tmp/diagnostics.tgz student@labhost:/home/student/` with an authenticated host key.

Explanation

Correct Answer

D:

Use `scp -p /tmp/diagnostics.tgz student@labhost:/home/student/` with an authenticated host key. This directly addresses the lab target: A lab workstation must copy a sensitive diagnostic bundle to a remote node without exposing it to an insecure plain-text transfer. The underlying behavior is: Secure copy uses the SSH transport, unlike an unprotected network transfer. Verification: The destination file exists with expected checksum and SSH encrypted transport.

Incorrect Answers

A:

Run `sudo tuned-adm list`, select an installed suitable profile using `sudo tuned-adm profile throughput-performance`. This is an appropriate step for a DIFFERENT exercise, specifically: The team wants a consistent throughput-oriented system tuning profile during a disposable performance experiment. It does not address the required lab state, whose mechanism is: Secure copy uses the SSH transport, unlike an unprotected network transfer.

B:

Enable supported persistent systemd journal storage, such as creating `/var/log/journal` with correct ownership and restarting `systemd-journald` as documented. This is an appropriate step for a DIFFERENT exercise, specifically: A lab incident must be reconstructed after reboot but `journalctl -b -1` has no previous-boot records due to volatile journaling. It does not address the required lab state, whose mechanism is: Secure copy uses the SSH transport, unlike an unprotected network transfer.

C:

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: Secure copy uses the SSH transport, unlike an unprotected network transfer.

Question 606

After a lab configuration change, verify: A lab workstation must copy a sensitive diagnostic bundle to a remote node without exposing it to an insecure plain-text transfer. Which result most directly proves the desired system state?

  1. The destination file exists with expected checksum and SSH encrypted transport.
  2. The host restarts cleanly, and journal boot IDs show the new boot.
  3. `systemctl is-enabled labworker` no longer reports masked, and the unit starts normally.
  4. `systemctl list-units --type=target --state=active` shows multi-user operation, while `get-default` remains unchanged.

Explanation

Correct Answer

A:

The destination file exists with expected checksum and SSH encrypted transport. This check confirms the expected effect of: Use `scp -p /tmp/diagnostics.tgz student@labhost:/home/student/` with an authenticated host key. It distinguishes the intended result from the original failure mechanism: Secure copy uses the SSH transport, unlike an unprotected network transfer.

Incorrect Answers

B:

The host restarts cleanly, and journal boot IDs show the new boot. That verifies a separate lab task: A lab system needs a controlled reboot after updates but the operator plans to unplug the virtual power without syncing writes. It does not validate the implementation required here: Use `scp -p /tmp/diagnostics.tgz student@labhost:/home/student/` with an authenticated host key.

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: Use `scp -p /tmp/diagnostics.tgz student@labhost:/home/student/` with an authenticated host key.

D:

`systemctl list-units --type=target --state=active` shows multi-user operation, while `get-default` remains unchanged. That verifies a separate lab task: A technician needs to switch the currently running lab host from its GUI session to a non-graphical target without changing future boots. It does not validate the implementation required here: Use `scp -p /tmp/diagnostics.tgz student@labhost:/home/student/` with an authenticated host key.

Question 607

In an EX200-style practice lab, this condition exists: A lab workstation must copy a sensitive diagnostic bundle to a remote node without exposing it to an insecure plain-text transfer. Which explanation correctly identifies the underlying issue?

  1. A masked unit points to `/dev/null`, intentionally preventing activation.
  2. Secure copy uses the SSH transport, unlike an unprotected network transfer.
  3. Process metrics identify resource consumers; a performance problem is not proof that the process should be terminated.
  4. Signals target specific PIDs; SIGTERM permits graceful cleanup whereas SIGKILL does not.

Explanation

Correct Answer

B:

Secure copy uses the SSH transport, unlike an unprotected network transfer. This explains the task's initial state: A lab workstation must copy a sensitive diagnostic bundle to a remote node without exposing it to an insecure plain-text transfer. The supported lab action is: Use `scp -p /tmp/diagnostics.tgz student@labhost:/home/student/` with an authenticated host key.

Incorrect Answers

A:

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.

C:

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.

D:

Signals target specific PIDs; SIGTERM permits graceful cleanup whereas SIGKILL does not. This mechanism applies to another scenario: A noncritical lab job ignores a termination request, but its process remains and an admin proposes killing all similarly named jobs. The given lab state instead requires the more specific cause in the correct choice.

Question 608

After completing this practical task on a disposable RHEL10 training node: A lab workstation must copy a sensitive diagnostic bundle to a remote node without exposing it to an insecure plain-text transfer. Which operational safeguard helps keep the result correct and safe?

  1. Schedule batch tasks with appropriate priority and monitor the impact rather than stopping critical processes.
  2. Include explicit action and target hostname in approved shutdown runbooks.
  3. Verify host identity and file hashes before and after transferring diagnostic archives.
  4. Choose `set-default` or `isolate` deliberately and avoid losing the only remote access channel.

Explanation

Correct Answer

C:

Verify host identity and file hashes before and after transferring diagnostic archives. This guards against recurrence of: Secure copy uses the SSH transport, unlike an unprotected network transfer. Confirm the lab's final state by: The destination file exists with expected checksum and SSH encrypted transport.

Incorrect Answers

A:

Schedule batch tasks with appropriate priority and monitor the impact rather than stopping critical processes. That control is best suited to a separate scenario: A batch reporting program interferes with interactive tasks, and the goal is to reduce its scheduling priority while it remains active. It is not the best safeguard for the current mechanism: Secure copy uses the SSH transport, unlike an unprotected network transfer.

B:

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: Secure copy uses the SSH transport, unlike an unprotected network transfer.

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: Secure copy uses the SSH transport, unlike an unprotected network transfer.

Question 609

Lab exercise on an offline training clone: A newly attached block device is not visible to LVM because it is not yet recognized by the kernel. Which proposed RHEL 10 command or configuration action most directly achieves the required lab state?

  1. Use `lsblk`, device-rescan methods supported for the VM, and `udevadm settle` before any PV creation.
  2. On the verified disposable device, run `pvcreate /dev/vdb1` after checking `wipefs -n /dev/vdb1` for unexpected signatures.
  3. Use `parted -s /dev/vdb mkpart primary 1MiB 1025MiB` and then `partprobe /dev/vdb` on the disposable disk.
  4. Identify the unused partition number, verify no mounts, then use `parted -s /dev/vdb rm 2` on the training disk.

Explanation

Correct Answer

A:

Use `lsblk`, device-rescan methods supported for the VM, and `udevadm settle` before any PV creation. This directly addresses the lab target: A newly attached block device is not visible to LVM because it is not yet recognized by the kernel. The underlying behavior is: Device discovery and actual filesystem or LVM creation are separate operations. Verification: The expected device appears under the lab inventory ID and no device is formatted during discovery.

Incorrect Answers

B:

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: Device discovery and actual filesystem or LVM creation are separate operations.

C:

Use `parted -s /dev/vdb mkpart primary 1MiB 1025MiB` and then `partprobe /dev/vdb` on the disposable disk. This is an appropriate step for a DIFFERENT exercise, specifically: A verified blank GPT training disk needs one new 1 GiB partition with appropriate alignment. It does not address the required lab state, whose mechanism is: Device discovery and actual filesystem or LVM creation are separate operations.

D:

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 discovery and actual filesystem or LVM creation are separate operations.

Question 610

In a hands-on RHCSA practice VM, the assigned outcome was: A newly attached block device is not visible to LVM because it is not yet recognized by the kernel. What specific verification would demonstrate the target state?

  1. The volume group reports sufficient free extents before the successful resize.
  2. The expected device appears under the lab inventory ID and no device is formatted during discovery.
  3. `lvs /dev/vg_training/lv_db` reports the requested LV and does not show a filesystem automatically.
  4. The selected disk has no filesystem, partition or mount dependencies and matches the lab's disk ID.

Explanation

Correct Answer

B:

The expected device appears under the lab inventory ID and no device is formatted during discovery. This check confirms the expected effect of: Use `lsblk`, device-rescan methods supported for the VM, and `udevadm settle` before any PV creation. It distinguishes the intended result from the original failure mechanism: Device discovery and actual filesystem or LVM creation are separate operations.

Incorrect Answers

A:

The volume group reports sufficient free extents before the successful resize. That verifies a separate lab task: An LV from a disposable VG has no free extents to grow, and the operator repeatedly retries `lvextend`. It does not validate the implementation required here: Use `lsblk`, device-rescan methods supported for the VM, and `udevadm settle` before any PV creation.

C:

`lvs /dev/vg_training/lv_db` reports the requested LV and does not show a filesystem automatically. That verifies a separate lab task: An LVM volume group `vg_training` exists and a test database requires a new 2 GiB logical volume. It does not validate the implementation required here: Use `lsblk`, device-rescan methods supported for the VM, and `udevadm settle` before any PV creation.

D:

The selected disk has no filesystem, partition or mount dependencies and matches the lab's disk ID. That verifies a separate lab task: A disposable VM has several added disks and the operator must identify which blank disk is safe before partitioning. It does not validate the implementation required here: Use `lsblk`, device-rescan methods supported for the VM, and `udevadm settle` before any PV creation.