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 5

Question 40

Following lab verification, document the preventive or persistence-oriented procedure for: An administrator temporarily changes SELinux to permissive mode for diagnostics and believes it will remain so after reboot. Which practice is most suitable?

  1. Use narrowly timed diagnostics and restore enforcing mode after analyzing denial logs.
  2. Check runtime and configured SELinux modes after policy changes.
  3. Verify port-label assignment and firewall exposure separately for nonstandard listener ports.
  4. Verify persistence and remove temporary diagnostic firewall permits.

Explanation

Correct Answer

A:

Use narrowly timed diagnostics and restore enforcing mode after analyzing denial logs. This guards against recurrence of: `setenforce` changes runtime state while SELinux's configured boot mode is separate. Confirm the lab's final state by: `getenforce` shows permissive during the test, then enforcing after restoration without assuming persistence.

Incorrect Answers

B:

Check runtime and configured SELinux modes after policy changes. That control is best suited to a separate scenario: A training VM must boot with SELinux enforcing but `/etc/selinux/config` is set to permissive. It is not the best safeguard for the current mechanism: `setenforce` changes runtime state while SELinux's configured boot mode is separate.

C:

Verify port-label assignment and firewall exposure separately for nonstandard listener ports. That control is best suited to a separate scenario: A test web daemon is configured to listen on TCP 8088 but SELinux blocks binding despite a matching firewall rule. It is not the best safeguard for the current mechanism: `setenforce` changes runtime state while SELinux's configured boot mode is separate.

D:

Verify persistence and remove temporary diagnostic firewall permits. That control is best suited to a separate scenario: A firewall change is tested using only a runtime rule, but an administrator assumes it will be present after restart. It is not the best safeguard for the current mechanism: `setenforce` changes runtime state while SELinux's configured boot mode is separate.

Question 41

On a nonproduction Linux administration sandbox, perform the following practical task: A lab report contains 5xx server responses mixed with successful lines; a student must count only lines beginning with an HTTP 5xx code. Which action should be carried out after confirming the lab prerequisites?

  1. Read `man systemctl`, search within the manual, and check locally installed help text.
  2. Use `tail -n 30 -f /tmp/labapp.log` to follow appended fixture events in a test terminal.
  3. Apply `grep -Ec '^5[0-9][0-9] ' /tmp/http-status.log` to the fixture log.
  4. Use `ssh -p 2222 student@lab-gateway` with the approved nonstandard port.

Explanation

Correct Answer

C:

Apply `grep -Ec '^5[0-9][0-9] ' /tmp/http-status.log` to the fixture log. This directly addresses the lab target: A lab report contains 5xx server responses mixed with successful lines; a student must count only lines beginning with an HTTP 5xx code. The underlying behavior is: An unanchored pattern may count 500-series digits appearing elsewhere in a log line. Verification: The returned count matches manually inspected lines starting with 500 through 599 and excludes embedded numbers.

Incorrect Answers

A:

Read `man systemctl`, search within the manual, and check locally installed help text. This is an appropriate step for a DIFFERENT exercise, specifically: The team needs the documented purpose and arguments of `systemctl` without accessing the Internet during training. It does not address the required lab state, whose mechanism is: An unanchored pattern may count 500-series digits appearing elsewhere in a log line.

B:

Use `tail -n 30 -f /tmp/labapp.log` to follow appended fixture events in a test terminal. This is an appropriate step for a DIFFERENT exercise, specifically: An operator follows a live application log but accidentally reads only the first ten lines during troubleshooting. It does not address the required lab state, whose mechanism is: An unanchored pattern may count 500-series digits appearing elsewhere in a log line.

D:

Use `ssh -p 2222 student@lab-gateway` with the approved nonstandard port. This is an appropriate step for a DIFFERENT exercise, specifically: An SSH lab service listens on a deliberately nonstandard port 2222, but a tester keeps connecting to the default port. It does not address the required lab state, whose mechanism is: An unanchored pattern may count 500-series digits appearing elsewhere in a log line.

Question 42

The lab examiner asks for evidence after this assignment: A lab report contains 5xx server responses mixed with successful lines; a student must count only lines beginning with an HTTP 5xx code. What is the decisive verification step?

  1. The prior entries remain and the newly written line appears at the end of the log.
  2. A successful SSH session connects to the expected lab host and `ss -tln` shows the listener on 2222.
  3. `wc -l` on both outputs reports different streams and the error file contains denied-path diagnostics.
  4. The returned count matches manually inspected lines starting with 500 through 599 and excludes embedded numbers.

Explanation

Correct Answer

D:

The returned count matches manually inspected lines starting with 500 through 599 and excludes embedded numbers. This check confirms the expected effect of: Apply `grep -Ec '^5[0-9][0-9] ' /tmp/http-status.log` to the fixture log. It distinguishes the intended result from the original failure mechanism: An unanchored pattern may count 500-series digits appearing elsewhere in a log line.

Incorrect Answers

A:

The prior entries remain and the newly written line appears at the end of the log. That verifies a separate lab task: An hourly shell job unintentionally overwrites yesterday's operational notes each time it records a new line. It does not validate the implementation required here: Apply `grep -Ec '^5[0-9][0-9] ' /tmp/http-status.log` to the fixture log.

B:

A successful SSH session connects to the expected lab host and `ss -tln` shows the listener on 2222. That verifies a separate lab task: An SSH lab service listens on a deliberately nonstandard port 2222, but a tester keeps connecting to the default port. It does not validate the implementation required here: Apply `grep -Ec '^5[0-9][0-9] ' /tmp/http-status.log` to the fixture log.

C:

`wc -l` on both outputs reports different streams and the error file contains denied-path diagnostics. That verifies a separate lab task: An audit command prints successful results and permission-denied errors; the exercise requires separate normal and error logs. It does not validate the implementation required here: Apply `grep -Ec '^5[0-9][0-9] ' /tmp/http-status.log` to the fixture log.

Question 43

A training host has this situation: A lab report contains 5xx server responses mixed with successful lines; a student must count only lines beginning with an HTTP 5xx code. Which system behavior best explains the original failure or risk?

  1. An unanchored pattern may count 500-series digits appearing elsewhere in a log line.
  2. A shell's relative paths are evaluated against its current working directory, not the operator's intended project.
  3. Quoting the entire wildcard prevents pathname expansion; unmatched globs can also remain literal.
  4. Installed package documentation may match the actual deployed version better than generic Internet notes.

Explanation

Correct Answer

A:

An unanchored pattern may count 500-series digits appearing elsewhere in a log line. This explains the task's initial state: A lab report contains 5xx server responses mixed with successful lines; a student must count only lines beginning with an HTTP 5xx code. The supported lab action is: Apply `grep -Ec '^5[0-9][0-9] ' /tmp/http-status.log` to the fixture log.

Incorrect Answers

B:

A shell's relative paths are evaluated against its current working directory, not the operator's intended project. This mechanism applies to another scenario: On a disposable RHEL 10 training host, an operator enters a nested work directory but later edits the wrong file because the current path was assumed. The given lab state instead requires the more specific cause in the correct choice.

C:

Quoting the entire wildcard prevents pathname expansion; unmatched globs can also remain literal. This mechanism applies to another scenario: A shell script is supposed to process every `.conf` file, but its wildcard is quoted as a single literal. The given lab state instead requires the more specific cause in the correct choice.

D:

Installed package documentation may match the actual deployed version better than generic Internet notes. This mechanism applies to another scenario: A junior administrator wants usage examples for a locally installed system package but searches an unrelated online version. The given lab state instead requires the more specific cause in the correct choice.

Question 44

A student has implemented the following configuration: A lab report contains 5xx server responses mixed with successful lines; a student must count only lines beginning with an HTTP 5xx code. What repeatable control best reduces regressions or unsafe changes?

  1. Check link targets during deployment and avoid silent broken symlinks after directory moves.
  2. Use anchored regular expressions and independent sample positive/negative test lines.
  3. Check effective identity and environment before privileged operations, then return to a normal account.
  4. Start scripted changes with an explicit `cd` guarded by failure checking and record the resolved target path.

Explanation

Correct Answer

B:

Use anchored regular expressions and independent sample positive/negative test lines. This guards against recurrence of: An unanchored pattern may count 500-series digits appearing elsewhere in a log line. Confirm the lab's final state by: The returned count matches manually inspected lines starting with 500 through 599 and excludes embedded numbers.

Incorrect Answers

A:

Check link targets during deployment and avoid silent broken symlinks after directory moves. That control is best suited to a separate scenario: A shared tools shortcut should point across directories to an existing shell script while remaining a symbolic reference. It is not the best safeguard for the current mechanism: An unanchored pattern may count 500-series digits appearing elsewhere in a log line.

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: An unanchored pattern may count 500-series digits appearing elsewhere in a log line.

D:

Start scripted changes with an explicit `cd` guarded by failure checking and record the resolved target path. That control is best suited to a separate scenario: On a disposable RHEL 10 training host, an operator enters a nested work directory but later edits the wrong file because the current path was assumed. It is not the best safeguard for the current mechanism: An unanchored pattern may count 500-series digits appearing elsewhere in a log line.

Question 45

You are responsible for a test RHEL10 instance. The required hands-on outcome is: A newly configured RPM repository is listed but disabled, so an application package cannot be found. Select the most appropriate implementation step.

  1. Repair the trusted repository signing key or certificate chain supplied by the lab rather than disabling validation.
  2. Run `sudo dnf remove packagename` after inspecting the dependency removal plan on the disposable VM.
  3. Use `sudo dnf install -y httpd` from a configured authenticated RPM repository.
  4. Use `dnf config-manager --set-enabled labrepo` only if the appropriate DNF plugin is present, or set `enabled=1` in the vetted `.repo` entry.

Explanation

Correct Answer

D:

Use `dnf config-manager --set-enabled labrepo` only if the appropriate DNF plugin is present, or set `enabled=1` in the vetted `.repo` entry. This directly addresses the lab target: A newly configured RPM repository is listed but disabled, so an application package cannot be found. The underlying behavior is: A disabled repository is not considered for default DNF package searches. Verification: `dnf repolist --enabled` includes `labrepo` and a package query returns results.

Incorrect Answers

A:

Repair the trusted repository signing key or certificate chain supplied by the lab rather than disabling validation. This is an appropriate step for a DIFFERENT exercise, specifically: A repository download fails because a private package mirror certificate is not trusted, and a student proposes turning off `gpgcheck` globally. It does not address the required lab state, whose mechanism is: A disabled repository is not considered for default DNF package searches.

B:

Run `sudo dnf remove packagename` after inspecting the dependency removal plan on the disposable VM. This is an appropriate step for a DIFFERENT exercise, specifically: A retired tool remains installed after a change freeze and needs removal without deleting unrelated data directories. It does not address the required lab state, whose mechanism is: A disabled repository is not considered for default DNF package searches.

C:

Use `sudo dnf install -y httpd` from a configured authenticated RPM repository. This is an appropriate step for a DIFFERENT exercise, specifically: A test server needs the packaged `httpd` service but an administrator tries to install files by manual copying. It does not address the required lab state, whose mechanism is: A disabled repository is not considered for default DNF package searches.

Question 46

After a lab configuration change, verify: A newly configured RPM repository is listed but disabled, so an application package cannot be found. Which result most directly proves the desired system state?

  1. `dnf repolist --enabled` includes `labrepo` and a package query returns results.
  2. The target package and action appear under the expected transaction ID without guessing which manual file changed.
  3. `rpm -q example` and `dnf history info` show the installed transaction and dependencies.
  4. `rpm -q package-name` reports the approved release and relevant dependencies remain consistent.

Explanation

Correct Answer

A:

`dnf repolist --enabled` includes `labrepo` and a package query returns results. This check confirms the expected effect of: Use `dnf config-manager --set-enabled labrepo` only if the appropriate DNF plugin is present, or set `enabled=1` in the vetted `.repo` entry. It distinguishes the intended result from the original failure mechanism: A disabled repository is not considered for default DNF package searches.

Incorrect Answers

B:

The target package and action appear under the expected transaction ID without guessing which manual file changed. That verifies a separate lab task: A student must audit a recently updated package and identify whether a DNF transaction caused a regression. It does not validate the implementation required here: Use `dnf config-manager --set-enabled labrepo` only if the appropriate DNF plugin is present, or set `enabled=1` in the vetted `.repo` entry.

C:

`rpm -q example` and `dnf history info` show the installed transaction and dependencies. That verifies a separate lab task: A lab host cannot install a local signed RPM because an engineer assumes a bare filename will automatically resolve dependency packages. It does not validate the implementation required here: Use `dnf config-manager --set-enabled labrepo` only if the appropriate DNF plugin is present, or set `enabled=1` in the vetted `.repo` entry.

D:

`rpm -q package-name` reports the approved release and relevant dependencies remain consistent. That verifies a separate lab task: A lab requirement says install one exact software release but `dnf install` picks the newest enabled version. It does not validate the implementation required here: Use `dnf config-manager --set-enabled labrepo` only if the appropriate DNF plugin is present, or set `enabled=1` in the vetted `.repo` entry.

Question 47

In an EX200-style practice lab, this condition exists: A newly configured RPM repository is listed but disabled, so an application package cannot be found. Which explanation correctly identifies the underlying issue?

  1. Installing inside an ephemeral environment does not alter the host RPM database.
  2. A disabled repository is not considered for default DNF package searches.
  3. Package capability providers and executable filenames do not always equal RPM package names.
  4. DNF stores RPM transaction history that differs from filesystem modification-time logs.

Explanation

Correct Answer

B:

A disabled repository is not considered for default DNF package searches. This explains the task's initial state: A newly configured RPM repository is listed but disabled, so an application package cannot be found. The supported lab action is: Use `dnf config-manager --set-enabled labrepo` only if the appropriate DNF plugin is present, or set `enabled=1` in the vetted `.repo` entry.

Incorrect Answers

A:

Installing inside an ephemeral environment does not alter the host RPM database. This mechanism applies to another scenario: An application package is missing after a reboot because it was installed into a transient build container, not the intended host. The given lab state instead requires the more specific cause in the correct choice.

C:

Package capability providers and executable filenames do not always equal RPM package names. This mechanism applies to another scenario: A software deployment reports success but the executable is absent; the chosen package name was only a virtual capability. The given lab state instead requires the more specific cause in the correct choice.

D:

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.

Question 48

After completing this practical task on a test RHEL10 instance: A newly configured RPM repository is listed but disabled, so an application package cannot be found. Which operational safeguard helps keep the result correct and safe?

  1. Document both package manager and approved source when installing GUI applications.
  2. Maintain approved repository public keys and review changes to trust anchors.
  3. Check repository enablement before weakening signature checks or adding unrelated mirrors.
  4. Confirm target host identity and deployment scope before every package change.

Explanation

Correct Answer

C:

Check repository enablement before weakening signature checks or adding unrelated mirrors. This guards against recurrence of: A disabled repository is not considered for default DNF package searches. Confirm the lab's final state by: `dnf repolist --enabled` includes `labrepo` and a package query returns results.

Incorrect Answers

A:

Document both package manager and approved source when installing GUI applications. That control is best suited to a separate scenario: A desktop lab task requires installing a named Flatpak application, but the administrator runs `dnf install` for its Flatpak ID. It is not the best safeguard for the current mechanism: A disabled repository is not considered for default DNF package searches.

B:

Maintain approved repository public keys and review changes to trust anchors. That control is best suited to a separate scenario: A repository download fails because a private package mirror certificate is not trusted, and a student proposes turning off `gpgcheck` globally. It is not the best safeguard for the current mechanism: A disabled repository is not considered for default DNF package searches.

D:

Confirm target host identity and deployment scope before every package change. That control is best suited to a separate scenario: An application package is missing after a reboot because it was installed into a transient build container, not the intended host. It is not the best safeguard for the current mechanism: A disabled repository is not considered for default DNF package searches.

Question 49

Lab exercise on an isolated enterprise lab VM: A backup script runs even when its destination directory cannot be created, silently losing its output. Which proposed RHEL 10 command or configuration action most directly achieves the required lab state?

  1. Use `mkdir -p /tmp/lab-backups || exit 1` before the subsequent archive command.
  2. Check `[ "$#" -eq 2 ] || exit 2` and use quoted `"$1"` and `"$2"` in the copy command.
  3. Use `if test -f /etc/hosts; then echo present; else exit 1; fi` in a shell script.
  4. Use a controlled PATH declaration such as `PATH=/usr/sbin:/usr/bin:/sbin:/bin` or explicit command paths in the script.

Explanation

Correct Answer

A:

Use `mkdir -p /tmp/lab-backups || exit 1` before the subsequent archive command. This directly addresses the lab target: A backup script runs even when its destination directory cannot be created, silently losing its output. The underlying behavior is: A nonzero command status must be checked when later actions depend on it. Verification: A simulated directory creation failure stops the script before any misleading success message.

Incorrect Answers

B:

Check `[ "$#" -eq 2 ] || exit 2` and use quoted `"$1"` and `"$2"` in the copy command. This is an appropriate step for a DIFFERENT exercise, specifically: A shell script receives `source` and `destination` as positional parameters and currently copies an empty path when arguments are missing. It does not address the required lab state, whose mechanism is: A nonzero command status must be checked when later actions depend on it.

C:

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 nonzero command status must be checked when later actions depend on it.

D:

Use a controlled PATH declaration such as `PATH=/usr/sbin:/usr/bin:/sbin:/bin` or explicit command paths in the script. This is an appropriate step for a DIFFERENT exercise, specifically: A cron-invoked script prints `command not found` for a utility present in the interactive user's shell. It does not address the required lab state, whose mechanism is: A nonzero command status must be checked when later actions depend on it.

Question 50

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

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

Explanation

Correct Answer

B:

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

Incorrect Answers

A:

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

C:

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

D:

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