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 9

Question 80

After completing this practical task on a disposable RHEL10 training node: A training VM must boot with SELinux enforcing but `/etc/selinux/config` is set to permissive. Which operational safeguard helps keep the result correct and safe?

  1. Record both fields in security posture checks and require a reboot verification for boot setting changes.
  2. Reapply default file contexts after moving service data into standard labeled directories.
  3. Check runtime and configured SELinux modes after policy changes.
  4. Check existing assignments before modifying SELinux port labels.

Explanation

Correct Answer

C:

Check runtime and configured SELinux modes after policy changes. This guards against recurrence of: Persistent SELinux policy mode comes from boot configuration, not just `setenforce`. Confirm the lab's final state by: `getenforce` reports Enforcing after reboot and `sestatus` confirms the configured mode.

Incorrect Answers

A:

Record both fields in security posture checks and require a reboot verification for boot setting changes. That control is best suited to a separate scenario: An administrator changes SELinux policy mode in `/etc/selinux/config` but the runtime `getenforce` output remains unchanged until the next reboot. It is not the best safeguard for the current mechanism: Persistent SELinux policy mode comes from boot configuration, not just `setenforce`.

B:

Reapply default file contexts after moving service data into standard labeled directories. That control is best suited to a separate scenario: A protected lab directory was copied from `/home` and now has inappropriate user-home SELinux contexts under `/var/www/html`. It is not the best safeguard for the current mechanism: Persistent SELinux policy mode comes from boot configuration, not just `setenforce`.

D:

Check existing assignments before modifying SELinux port labels. That control is best suited to a separate scenario: An existing TCP port is assigned to the wrong SELinux port type and `semanage port -a` fails because the port already exists. It is not the best safeguard for the current mechanism: Persistent SELinux policy mode comes from boot configuration, not just `setenforce`.

Question 81

Lab exercise on an offline training clone: An audit command prints successful results and permission-denied errors; the exercise requires separate normal and error logs. Which proposed RHEL 10 command or configuration action most directly achieves the required lab state?

  1. Run `find /etc -name '*.conf' > /tmp/config-paths.txt 2> /tmp/config-errors.txt` on the lab host.
  2. Run `tar -tf /tmp/delivery.tar` and only then extract the trusted fixture into a new disposable staging directory.
  3. Run `chown student:analysts /srv/labs/summary.txt` on the training file and review its mode.
  4. Run `find /srv/labs -type f -mtime -1 -print` and examine the returned paths.

Explanation

Correct Answer

A:

Run `find /etc -name '*.conf' > /tmp/config-paths.txt 2> /tmp/config-errors.txt` on the lab host. This directly addresses the lab target: An audit command prints successful results and permission-denied errors; the exercise requires separate normal and error logs. The underlying behavior is: Standard output is descriptor 1, while diagnostic errors are descriptor 2, requiring different redirection targets. Verification: `wc -l` on both outputs reports different streams and the error file contains denied-path diagnostics.

Incorrect Answers

B:

Run `tar -tf /tmp/delivery.tar` and only then extract the trusted fixture into a new disposable staging directory. This is an appropriate step for a DIFFERENT exercise, specifically: A prebuilt archive contains paths the student has not inspected; extracting it as root into `/` would be risky. It does not address the required lab state, whose mechanism is: Standard output is descriptor 1, while diagnostic errors are descriptor 2, requiring different redirection targets.

C:

Run `chown student:analysts /srv/labs/summary.txt` on the training file and review its mode. This is an appropriate step for a DIFFERENT exercise, specifically: A text report was created by root, preventing the intended nonprivileged analyst from editing it. It does not address the required lab state, whose mechanism is: Standard output is descriptor 1, while diagnostic errors are descriptor 2, requiring different redirection targets.

D:

Run `find /srv/labs -type f -mtime -1 -print` and examine the returned paths. This is an appropriate step for a DIFFERENT exercise, specifically: A large fixture tree has many similarly named files; an operator must find only files updated during the last day. It does not address the required lab state, whose mechanism is: Standard output is descriptor 1, while diagnostic errors are descriptor 2, requiring different redirection targets.

Question 82

In a hands-on RHCSA practice VM, the assigned outcome was: An audit command prints successful results and permission-denied errors; the exercise requires separate normal and error logs. What specific verification would demonstrate the target state?

  1. The operator identifies documented syntax for `enable --now` and `is-enabled` from local manual pages.
  2. `wc -l` on both outputs reports different streams and the error file contains denied-path diagnostics.
  3. `stat -c '%U:%G %a' /srv/labs/summary.txt` shows the target owner and group, and the analyst can edit under allowed group bits.
  4. `find /tmp/staged-delivery -maxdepth 2` shows expected content and no unrelated system paths changed.

Explanation

Correct Answer

B:

`wc -l` on both outputs reports different streams and the error file contains denied-path diagnostics. This check confirms the expected effect of: Run `find /etc -name '*.conf' > /tmp/config-paths.txt 2> /tmp/config-errors.txt` on the lab host. It distinguishes the intended result from the original failure mechanism: Standard output is descriptor 1, while diagnostic errors are descriptor 2, requiring different redirection targets.

Incorrect Answers

A:

The operator identifies documented syntax for `enable --now` and `is-enabled` from local manual pages. That verifies a separate lab task: The team needs the documented purpose and arguments of `systemctl` without accessing the Internet during training. It does not validate the implementation required here: Run `find /etc -name '*.conf' > /tmp/config-paths.txt 2> /tmp/config-errors.txt` on the lab host.

C:

`stat -c '%U:%G %a' /srv/labs/summary.txt` shows the target owner and group, and the analyst can edit under allowed group bits. That verifies a separate lab task: A text report was created by root, preventing the intended nonprivileged analyst from editing it. It does not validate the implementation required here: Run `find /etc -name '*.conf' > /tmp/config-paths.txt 2> /tmp/config-errors.txt` on the lab host.

D:

`find /tmp/staged-delivery -maxdepth 2` shows expected content and no unrelated system paths changed. That verifies a separate lab task: A prebuilt archive contains paths the student has not inspected; extracting it as root into `/` would be risky. It does not validate the implementation required here: Run `find /etc -name '*.conf' > /tmp/config-paths.txt 2> /tmp/config-errors.txt` on the lab host.

Question 83

A trainee is diagnosing: An audit command prints successful results and permission-denied errors; the exercise requires separate normal and error logs. Which root cause should they recognize before changing the system?

  1. Using `-C` sets a stable archive root and gzip is selected using `-z`.
  2. Hard links name the same inode and cannot ordinarily link across separate file systems.
  3. Standard output is descriptor 1, while diagnostic errors are descriptor 2, requiring different redirection targets.
  4. Extended regular expressions need explicit anchors and quantifiers for exact whole-line matching.

Explanation

Correct Answer

C:

Standard output is descriptor 1, while diagnostic errors are descriptor 2, requiring different redirection targets. This explains the task's initial state: An audit command prints successful results and permission-denied errors; the exercise requires separate normal and error logs. The supported lab action is: Run `find /etc -name '*.conf' > /tmp/config-paths.txt 2> /tmp/config-errors.txt` on the lab host.

Incorrect Answers

A:

Using `-C` sets a stable archive root and gzip is selected using `-z`. This mechanism applies to another scenario: A file collection must be archived with gzip while preserving its directory tree for off-host lab backup. The given lab state instead requires the more specific cause in the correct choice.

B:

Hard links name the same inode and cannot ordinarily link across separate file systems. This mechanism applies to another scenario: Two paths should reference the same inode so edits through either name appear in the other, entirely on one file system. The given lab state instead requires the more specific cause in the correct choice.

D:

Extended regular expressions need explicit anchors and quantifiers for exact whole-line matching. This mechanism applies to another scenario: A text filter should identify accounts that start with `svc-` and end in a number but a simple substring rule admits unrelated names. The given lab state instead requires the more specific cause in the correct choice.

Question 84

For this Linux administration lab: An audit command prints successful results and permission-denied errors; the exercise requires separate normal and error logs. Which safety and lifecycle check best prevents the same problem returning?

  1. Select metadata-preserving copy flags only when ownership and permissions are intentionally retained.
  2. Document expected casing and include known positive cases when testing log filters.
  3. Provision data ownership according to service roles, then confirm effective access with a nonprivileged test.
  4. Write separate stream files for scheduled inventory commands and review their exit status.

Explanation

Correct Answer

D:

Write separate stream files for scheduled inventory commands and review their exit status. This guards against recurrence of: Standard output is descriptor 1, while diagnostic errors are descriptor 2, requiring different redirection targets. Confirm the lab's final state by: `wc -l` on both outputs reports different streams and the error file contains denied-path diagnostics.

Incorrect Answers

A:

Select metadata-preserving copy flags only when ownership and permissions are intentionally retained. That control is best suited to a separate scenario: A student copies a permission-sensitive fixture and unexpectedly changes its timestamp and permission bits. It is not the best safeguard for the current mechanism: Standard output is descriptor 1, while diagnostic errors are descriptor 2, requiring different redirection targets.

B:

Document expected casing and include known positive cases when testing log filters. That control is best suited to a separate scenario: An incident report contains both `ERROR` and `error`, but the investigation intentionally needs case-insensitive matching. It is not the best safeguard for the current mechanism: Standard output is descriptor 1, while diagnostic errors are descriptor 2, requiring different redirection targets.

C:

Provision data ownership according to service roles, then confirm effective access with a nonprivileged test. That control is best suited to a separate scenario: A text report was created by root, preventing the intended nonprivileged analyst from editing it. It is not the best safeguard for the current mechanism: Standard output is descriptor 1, while diagnostic errors are descriptor 2, requiring different redirection targets.

Question 85

A student working on a local virtualization classroom receives this assignment: A test server needs the packaged `httpd` service but an administrator tries to install files by manual copying. Which answer gives the correct practical approach?

  1. Use host `cat /etc/os-release`, `hostnamectl`, and `rpm -q` before installing the package on the correct persistent RHEL VM.
  2. Use `sudo dnf install -y httpd` from a configured authenticated RPM repository.
  3. Create a valid `/etc/yum.repos.d/lab.repo` stanza with name, `baseurl`, `enabled=1`, and the approved signature-check configuration.
  4. Run `flatpak uninstall org.example.Editor` after reviewing the installed app and any prompted runtime changes.

Explanation

Correct Answer

B:

Use `sudo dnf install -y httpd` from a configured authenticated RPM repository. This directly addresses the lab target: A test server needs the packaged `httpd` service but an administrator tries to install files by manual copying. The underlying behavior is: RPM package management installs files, dependencies and lifecycle metadata that ad hoc copying lacks. Verification: `rpm -q httpd` reports an installed package and `dnf info httpd` shows package metadata.

Incorrect Answers

A:

Use host `cat /etc/os-release`, `hostnamectl`, and `rpm -q` before installing the package on the correct persistent RHEL VM. This is an appropriate step for a DIFFERENT exercise, specifically: An application package is missing after a reboot because it was installed into a transient build container, not the intended host. It does not address the required lab state, whose mechanism is: RPM package management installs files, dependencies and lifecycle metadata that ad hoc copying lacks.

C:

Create a valid `/etc/yum.repos.d/lab.repo` stanza with name, `baseurl`, `enabled=1`, and the approved signature-check configuration. This is an appropriate step for a DIFFERENT exercise, specifically: A training VM has a reachable approved RPM repository but `dnf` reports no package metadata because the repository is not configured. It does not address the required lab state, whose mechanism is: RPM package management installs files, dependencies and lifecycle metadata that ad hoc copying lacks.

D:

Run `flatpak uninstall org.example.Editor` after reviewing the installed app and any prompted runtime changes. This is an appropriate step for a DIFFERENT exercise, specifically: An operator needs to remove an obsolete Flatpak application without removing unrelated RPM software. It does not address the required lab state, whose mechanism is: RPM package management installs files, dependencies and lifecycle metadata that ad hoc copying lacks.

Question 86

You have attempted this task on a local virtualization classroom: A test server needs the packaged `httpd` service but an administrator tries to install files by manual copying. Which command output or observation best confirms its success?

  1. The configured repository refreshes while `gpgcheck=1` remains enabled and package signatures validate.
  2. The owning RPM is listed and after installation `rpm -qf /usr/bin/executable-name` resolves it.
  3. `rpm -q httpd` reports an installed package and `dnf info httpd` shows package metadata.
  4. `dnf repolist` shows the training repository and `dnf makecache` fetches its metadata without a signature warning.

Explanation

Correct Answer

C:

`rpm -q httpd` reports an installed package and `dnf info httpd` shows package metadata. This check confirms the expected effect of: Use `sudo dnf install -y httpd` from a configured authenticated RPM repository. It distinguishes the intended result from the original failure mechanism: RPM package management installs files, dependencies and lifecycle metadata that ad hoc copying lacks.

Incorrect Answers

A:

The configured repository refreshes while `gpgcheck=1` remains enabled and package signatures validate. That verifies a separate lab task: A repository download fails because a private package mirror certificate is not trusted, and a student proposes turning off `gpgcheck` globally. It does not validate the implementation required here: Use `sudo dnf install -y httpd` from a configured authenticated RPM repository.

B:

The owning RPM is listed and after installation `rpm -qf /usr/bin/executable-name` resolves it. That verifies a separate lab task: A software deployment reports success but the executable is absent; the chosen package name was only a virtual capability. It does not validate the implementation required here: Use `sudo dnf install -y httpd` from a configured authenticated RPM repository.

D:

`dnf repolist` shows the training repository and `dnf makecache` fetches its metadata without a signature warning. That verifies a separate lab task: A training VM has a reachable approved RPM repository but `dnf` reports no package metadata because the repository is not configured. It does not validate the implementation required here: Use `sudo dnf install -y httpd` from a configured authenticated RPM repository.

Question 87

Troubleshoot the following RHEL 10 lab situation: A test server needs the packaged `httpd` service but an administrator tries to install files by manual copying. Identify the key Linux mechanism behind the issue.

  1. DNF stores RPM transaction history that differs from filesystem modification-time logs.
  2. Flatpak application lifecycle is managed separately from RPM transactions.
  3. Flatpak application installation depends on an explicitly configured remote repository.
  4. RPM package management installs files, dependencies and lifecycle metadata that ad hoc copying lacks.

Explanation

Correct Answer

D:

RPM package management installs files, dependencies and lifecycle metadata that ad hoc copying lacks. This explains the task's initial state: A test server needs the packaged `httpd` service but an administrator tries to install files by manual copying. The supported lab action is: Use `sudo dnf install -y httpd` from a configured authenticated RPM repository.

Incorrect Answers

A:

DNF stores RPM transaction history that differs from filesystem modification-time logs. This mechanism applies to another scenario: A student must audit a recently updated package and identify whether a DNF transaction caused a regression. The given lab state instead requires the more specific cause in the correct choice.

B:

Flatpak application lifecycle is managed separately from RPM transactions. This mechanism applies to another scenario: An operator needs to remove an obsolete Flatpak application without removing unrelated RPM software. The given lab state instead requires the more specific cause in the correct choice.

C:

Flatpak application installation depends on an explicitly configured remote repository. This mechanism applies to another scenario: An approved Flatpak runtime is already enabled in the lab, but no remote source is configured for application installation. The given lab state instead requires the more specific cause in the correct choice.

Question 88

Following lab verification, document the preventive or persistence-oriented procedure for: A test server needs the packaged `httpd` service but an administrator tries to install files by manual copying. Which practice is most suitable?

  1. Prefer tracked signed RPM packages and record the installed release in system inventory.
  2. Check package-managed status before overwriting or deleting a file during repair.
  3. Review unused runtime cleanup separately and record approved desktop application removals.
  4. Validate package ownership and source repository before installations.

Explanation

Correct Answer

A:

Prefer tracked signed RPM packages and record the installed release in system inventory. This guards against recurrence of: RPM package management installs files, dependencies and lifecycle metadata that ad hoc copying lacks. Confirm the lab's final state by: `rpm -q httpd` reports an installed package and `dnf info httpd` shows package metadata.

Incorrect Answers

B:

Check package-managed status before overwriting or deleting a file during repair. That control is best suited to a separate scenario: A troubleshooting team wants to know exactly which files an installed RPM delivered before modifying a configuration. It is not the best safeguard for the current mechanism: RPM package management installs files, dependencies and lifecycle metadata that ad hoc copying lacks.

C:

Review unused runtime cleanup separately and record approved desktop application removals. That control is best suited to a separate scenario: An operator needs to remove an obsolete Flatpak application without removing unrelated RPM software. It is not the best safeguard for the current mechanism: RPM package management installs files, dependencies and lifecycle metadata that ad hoc copying lacks.

D:

Validate package ownership and source repository before installations. That control is best suited to a separate scenario: A software deployment reports success but the executable is absent; the chosen package name was only a virtual capability. It is not the best safeguard for the current mechanism: RPM package management installs files, dependencies and lifecycle metadata that ad hoc copying lacks.

Question 89

On a nonproduction Linux administration sandbox, perform the following practical task: A housekeeping script must print each user-provided directory rather than always print one hard-coded value. Which action should be carried out after confirming the lab prerequisites?

  1. Use `printf '%s\n' "$message" >> "$log_path"` with a quoted destination variable.
  2. Use `stamp=$(date +%Y%m%d)` and `tar -czf "/tmp/archive-$stamp.tgz" -C /srv/labs projectA`.
  3. Use `for dir in "$@"; do printf '%s\n' "$dir"; done` with arguments supplied at invocation.
  4. Use the intended `#!/usr/bin/bash` shebang and invoke the script directly after `chmod +x`, or rewrite it in portable POSIX syntax.

Explanation

Correct Answer

C:

Use `for dir in "$@"; do printf '%s\n' "$dir"; done` with arguments supplied at invocation. This directly addresses the lab target: A housekeeping script must print each user-provided directory rather than always print one hard-coded value. The underlying behavior is: Quoting `"$@"` preserves positional argument boundaries for safe shell iteration. Verification: Arguments containing spaces are printed as single intended entries and the loop count matches input count.

Incorrect Answers

A:

Use `printf '%s\n' "$message" >> "$log_path"` with a quoted destination variable. This is an appropriate step for a DIFFERENT exercise, specifically: A training script appends to a log whose path includes spaces and breaks because the variable is expanded unquoted. It does not address the required lab state, whose mechanism is: Quoting `"$@"` preserves positional argument boundaries for safe shell iteration.

B:

Use `stamp=$(date +%Y%m%d)` and `tar -czf "/tmp/archive-$stamp.tgz" -C /srv/labs projectA`. This is an appropriate step for a DIFFERENT exercise, specifically: A script generates a timestamped training archive but literal quotes around the `date` substitution prevent expansion. It does not address the required lab state, whose mechanism is: Quoting `"$@"` preserves positional argument boundaries for safe shell iteration.

D:

Use the intended `#!/usr/bin/bash` shebang and invoke the script directly after `chmod +x`, or rewrite it in portable POSIX syntax. This is an appropriate step for a DIFFERENT exercise, specifically: A shell helper is executed with `/bin/sh` but contains Bash-only syntax and fails on an alternate POSIX shell. It does not address the required lab state, whose mechanism is: Quoting `"$@"` preserves positional argument boundaries for safe shell iteration.

Question 90

The lab examiner asks for evidence after this assignment: A housekeeping script must print each user-provided directory rather than always print one hard-coded value. What is the decisive verification step?

  1. The file `/tmp/lab reports/status.txt` receives the line and no extra files are created.
  2. Known values 9 and 10 route to different expected branches.
  3. The printed host label matches `hostname -s` without treating it as an executable.
  4. Arguments containing spaces are printed as single intended entries and the loop count matches input count.

Explanation

Correct Answer

D:

Arguments containing spaces are printed as single intended entries and the loop count matches input count. This check confirms the expected effect of: Use `for dir in "$@"; do printf '%s\n' "$dir"; done` with arguments supplied at invocation. It distinguishes the intended result from the original failure mechanism: Quoting `"$@"` preserves positional argument boundaries for safe shell iteration.

Incorrect Answers

A:

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 `for dir in "$@"; do printf '%s\n' "$dir"; done` with arguments supplied at invocation.

B:

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: Use `for dir in "$@"; do printf '%s\n' "$dir"; done` with arguments supplied at invocation.

C:

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 `for dir in "$@"; do printf '%s\n' "$dir"; done` with arguments supplied at invocation.