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 45

Question 440

Following lab verification, document the preventive or persistence-oriented procedure for: A user accidentally gives write permission to everyone on an application's configuration file. Which practice is most suitable?

  1. Audit filesystem permissions on configuration files after each deployment.
  2. Set a restrictive umask in service startup or trusted shell policy for secret handling.
  3. Verify persistence and remove temporary diagnostic firewall permits.
  4. Use policy-backed fcontext mappings for nonstandard service directories.

Explanation

Correct Answer

A:

Audit filesystem permissions on configuration files after each deployment. This guards against recurrence of: DAC mode bits can allow unauthorized modification even if service function appears correct. Confirm the lab's final state by: `stat -c '%a %U:%G'` displays the restricted mode and an unrelated user cannot modify it.

Incorrect Answers

B:

Set a restrictive umask in service startup or trusted shell policy for secret handling. That control is best suited to a separate scenario: A shell session creates files with default modes exposing group-readable secrets to unrelated users. It is not the best safeguard for the current mechanism: DAC mode bits can allow unauthorized modification even if service function appears correct.

C:

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: DAC mode bits can allow unauthorized modification even if service function appears correct.

D:

Use policy-backed fcontext mappings for nonstandard service directories. That control is best suited to a separate scenario: A temporary `chcon` label change makes a lab web file work, but `restorecon` later reverts it and the outage returns. It is not the best safeguard for the current mechanism: DAC mode bits can allow unauthorized modification even if service function appears correct.

Question 441

On an offline training clone, perform the following practical task: An operator needs to change a configuration line without deleting other settings in a small text file. Which action should be carried out after confirming the lab prerequisites?

  1. Run `grep -in 'error' /var/log/labapp.log` against the prepared fixture.
  2. Run `pwd`, then `cd /srv/labs/projectA` after checking it exists; use absolute paths for the target edit.
  3. Use a text editor such as `vi /tmp/lab.conf`, change the named setting, and save after checking the file's original contents.
  4. Use `printf '%s\n' 'cycle complete' >> /tmp/ops-history.log` rather than the overwrite operator.

Explanation

Correct Answer

C:

Use a text editor such as `vi /tmp/lab.conf`, change the named setting, and save after checking the file's original contents. This directly addresses the lab target: An operator needs to change a configuration line without deleting other settings in a small text file. The underlying behavior is: Replacing the whole file for a one-line change risks losing required settings. Verification: `grep -n '^mode=' /tmp/lab.conf` shows the new value while unrelated lines remain unchanged.

Incorrect Answers

A:

Run `grep -in 'error' /var/log/labapp.log` against the prepared fixture. This is an appropriate step for a DIFFERENT exercise, specifically: An incident report contains both `ERROR` and `error`, but the investigation intentionally needs case-insensitive matching. It does not address the required lab state, whose mechanism is: Replacing the whole file for a one-line change risks losing required settings.

B:

Run `pwd`, then `cd /srv/labs/projectA` after checking it exists; use absolute paths for the target edit. This is an appropriate step for a DIFFERENT exercise, specifically: 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 does not address the required lab state, whose mechanism is: Replacing the whole file for a one-line change risks losing required settings.

D:

Use `printf '%s\n' 'cycle complete' >> /tmp/ops-history.log` rather than the overwrite operator. This is an appropriate step for a DIFFERENT exercise, specifically: An hourly shell job unintentionally overwrites yesterday's operational notes each time it records a new line. It does not address the required lab state, whose mechanism is: Replacing the whole file for a one-line change risks losing required settings.

Question 442

The lab examiner asks for evidence after this assignment: An operator needs to change a configuration line without deleting other settings in a small text file. What is the decisive verification step?

  1. A newly appended training event appears immediately without rerunning the command.
  2. The returned count matches manually inspected lines starting with 500 through 599 and excludes embedded numbers.
  3. `ssh -o BatchMode=yes student@hostB true` succeeds using an authorized key on the isolated lab.
  4. `grep -n '^mode=' /tmp/lab.conf` shows the new value while unrelated lines remain unchanged.

Explanation

Correct Answer

D:

`grep -n '^mode=' /tmp/lab.conf` shows the new value while unrelated lines remain unchanged. This check confirms the expected effect of: Use a text editor such as `vi /tmp/lab.conf`, change the named setting, and save after checking the file's original contents. It distinguishes the intended result from the original failure mechanism: Replacing the whole file for a one-line change risks losing required settings.

Incorrect Answers

A:

A newly appended training event appears immediately without rerunning the command. That verifies a separate lab task: An operator follows a live application log but accidentally reads only the first ten lines during troubleshooting. It does not validate the implementation required here: Use a text editor such as `vi /tmp/lab.conf`, change the named setting, and save after checking the file's original contents.

B:

The returned count matches manually inspected lines starting with 500 through 599 and excludes embedded numbers. That verifies a separate lab task: A lab report contains 5xx server responses mixed with successful lines; a student must count only lines beginning with an HTTP 5xx code. It does not validate the implementation required here: Use a text editor such as `vi /tmp/lab.conf`, change the named setting, and save after checking the file's original contents.

C:

`ssh -o BatchMode=yes student@hostB true` succeeds using an authorized key on the isolated lab. That verifies a separate lab task: Two lab hosts need noninteractive operator access and password prompts interrupt file-copy automation. It does not validate the implementation required here: Use a text editor such as `vi /tmp/lab.conf`, change the named setting, and save after checking the file's original contents.

Question 443

A training host has this situation: An operator needs to change a configuration line without deleting other settings in a small text file. Which system behavior best explains the original failure or risk?

  1. Replacing the whole file for a one-line change risks losing required settings.
  2. Quoting the entire wildcard prevents pathname expansion; unmatched globs can also remain literal.
  3. SSH host-key validation helps prevent connecting to an impersonated endpoint.
  4. Using `-C` sets a stable archive root and gzip is selected using `-z`.

Explanation

Correct Answer

A:

Replacing the whole file for a one-line change risks losing required settings. This explains the task's initial state: An operator needs to change a configuration line without deleting other settings in a small text file. The supported lab action is: Use a text editor such as `vi /tmp/lab.conf`, change the named setting, and save after checking the file's original contents.

Incorrect Answers

B:

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.

C:

SSH host-key validation helps prevent connecting to an impersonated endpoint. This mechanism applies to another scenario: A first SSH connection warns that the server identity is unknown, and a student proposes disabling host key checks globally. The given lab state instead requires the more specific cause in the correct choice.

D:

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.

Question 444

A student has implemented the following configuration: An operator needs to change a configuration line without deleting other settings in a small text file. What repeatable control best reduces regressions or unsafe changes?

  1. When rotating logs, use the appropriate filename-follow behavior and close sessions after diagnosis.
  2. Make reviewed minimal edits and keep a backup or version-controlled copy of lab configuration.
  3. Constrain glob paths and check match existence before iterating over files.
  4. Specify desired age semantics and verify test timestamps before automating maintenance.

Explanation

Correct Answer

B:

Make reviewed minimal edits and keep a backup or version-controlled copy of lab configuration. This guards against recurrence of: Replacing the whole file for a one-line change risks losing required settings. Confirm the lab's final state by: `grep -n '^mode=' /tmp/lab.conf` shows the new value while unrelated lines remain unchanged.

Incorrect Answers

A:

When rotating logs, use the appropriate filename-follow behavior and close sessions after diagnosis. That control is best suited to a separate scenario: An operator follows a live application log but accidentally reads only the first ten lines during troubleshooting. It is not the best safeguard for the current mechanism: Replacing the whole file for a one-line change risks losing required settings.

C:

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: Replacing the whole file for a one-line change risks losing required settings.

D:

Specify desired age semantics and verify test timestamps before automating maintenance. That control is best suited to a separate scenario: A large fixture tree has many similarly named files; an operator must find only files updated during the last day. It is not the best safeguard for the current mechanism: Replacing the whole file for a one-line change risks losing required settings.

Question 445

You are responsible for a local virtualization classroom. The required hands-on outcome is: A repository download fails because a private package mirror certificate is not trusted, and a student proposes turning off `gpgcheck` globally. Select the most appropriate implementation step.

  1. Create a valid `/etc/yum.repos.d/lab.repo` stanza with name, `baseurl`, `enabled=1`, and the approved signature-check configuration.
  2. Use `dnf list --showduplicates package-name`, then install a specifically available `name-version-release` after dependency checks.
  3. Configure the authorized remote with `flatpak remote-add --if-not-exists labapps https://example.invalid/labapps.flatpakrepo` using a real lab-provided URL instead of the illustrative placeholder.
  4. Repair the trusted repository signing key or certificate chain supplied by the lab rather than disabling validation.

Explanation

Correct Answer

D:

Repair the trusted repository signing key or certificate chain supplied by the lab rather than disabling validation. This directly addresses the lab target: A repository download fails because a private package mirror certificate is not trusted, and a student proposes turning off `gpgcheck` globally. The underlying behavior is: Unsigned or untrusted repository sources should not be implicitly accepted just to satisfy an install. Verification: The configured repository refreshes while `gpgcheck=1` remains enabled and package signatures validate.

Incorrect Answers

A:

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: Unsigned or untrusted repository sources should not be implicitly accepted just to satisfy an install.

B:

Use `dnf list --showduplicates package-name`, then install a specifically available `name-version-release` after dependency checks. This is an appropriate step for a DIFFERENT exercise, specifically: A lab requirement says install one exact software release but `dnf install` picks the newest enabled version. It does not address the required lab state, whose mechanism is: Unsigned or untrusted repository sources should not be implicitly accepted just to satisfy an install.

C:

Configure the authorized remote with `flatpak remote-add --if-not-exists labapps https://example.invalid/labapps.flatpakrepo` using a real lab-provided URL instead of the illustrative placeholder. This is an appropriate step for a DIFFERENT exercise, specifically: An approved Flatpak runtime is already enabled in the lab, but no remote source is configured for application installation. It does not address the required lab state, whose mechanism is: Unsigned or untrusted repository sources should not be implicitly accepted just to satisfy an install.

Question 446

After a lab configuration change, verify: A repository download fails because a private package mirror certificate is not trusted, and a student proposes turning off `gpgcheck` globally. Which result most directly proves the desired system state?

  1. The configured repository refreshes while `gpgcheck=1` remains enabled and package signatures validate.
  2. `flatpak remotes` lists the approved remote and its actual configured URL.
  3. The expected config file is listed as package-managed and its ownership is traceable.
  4. `rpm -q example` and `dnf history info` show the installed transaction and dependencies.

Explanation

Correct Answer

A:

The configured repository refreshes while `gpgcheck=1` remains enabled and package signatures validate. This check confirms the expected effect of: Repair the trusted repository signing key or certificate chain supplied by the lab rather than disabling validation. It distinguishes the intended result from the original failure mechanism: Unsigned or untrusted repository sources should not be implicitly accepted just to satisfy an install.

Incorrect Answers

B:

`flatpak remotes` lists the approved remote and its actual configured URL. That verifies a separate lab task: An approved Flatpak runtime is already enabled in the lab, but no remote source is configured for application installation. It does not validate the implementation required here: Repair the trusted repository signing key or certificate chain supplied by the lab rather than disabling validation.

C:

The expected config file is listed as package-managed and its ownership is traceable. That verifies a separate lab task: A troubleshooting team wants to know exactly which files an installed RPM delivered before modifying a configuration. It does not validate the implementation required here: Repair the trusted repository signing key or certificate chain supplied by the lab rather than disabling validation.

D:

`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: Repair the trusted repository signing key or certificate chain supplied by the lab rather than disabling validation.

Question 447

In an EX200-style practice lab, this condition exists: A repository download fails because a private package mirror certificate is not trusted, and a student proposes turning off `gpgcheck` globally. Which explanation correctly identifies the underlying issue?

  1. DNF cannot resolve packages from an unregistered or disabled repository source.
  2. Unsigned or untrusted repository sources should not be implicitly accepted just to satisfy an install.
  3. Flatpak application installation depends on an explicitly configured remote repository.
  4. Default DNF resolution may choose a newer version than an explicit compatibility requirement.

Explanation

Correct Answer

B:

Unsigned or untrusted repository sources should not be implicitly accepted just to satisfy an install. This explains the task's initial state: A repository download fails because a private package mirror certificate is not trusted, and a student proposes turning off `gpgcheck` globally. The supported lab action is: Repair the trusted repository signing key or certificate chain supplied by the lab rather than disabling validation.

Incorrect Answers

A:

DNF cannot resolve packages from an unregistered or disabled repository source. This mechanism applies to another scenario: A training VM has a reachable approved RPM repository but `dnf` reports no package metadata because the repository is not configured. 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.

D:

Default DNF resolution may choose a newer version than an explicit compatibility requirement. This mechanism applies to another scenario: A lab requirement says install one exact software release but `dnf install` picks the newest enabled version. The given lab state instead requires the more specific cause in the correct choice.

Question 448

After completing this practical task on a local virtualization classroom: A repository download fails because a private package mirror certificate is not trusted, and a student proposes turning off `gpgcheck` globally. Which operational safeguard helps keep the result correct and safe?

  1. Check repository enablement before weakening signature checks or adding unrelated mirrors.
  2. Validate package ownership and source repository before installations.
  3. Maintain approved repository public keys and review changes to trust anchors.
  4. Capture the DNF transaction ID during major package changes for later review.

Explanation

Correct Answer

C:

Maintain approved repository public keys and review changes to trust anchors. This guards against recurrence of: Unsigned or untrusted repository sources should not be implicitly accepted just to satisfy an install. Confirm the lab's final state by: The configured repository refreshes while `gpgcheck=1` remains enabled and package signatures validate.

Incorrect Answers

A:

Check repository enablement before weakening signature checks or adding unrelated mirrors. That control is best suited to a separate scenario: A newly configured RPM repository is listed but disabled, so an application package cannot be found. It is not the best safeguard for the current mechanism: Unsigned or untrusted repository sources should not be implicitly accepted just to satisfy an install.

B:

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: Unsigned or untrusted repository sources should not be implicitly accepted just to satisfy an install.

D:

Capture the DNF transaction ID during major package changes for later review. That control is best suited to a separate scenario: A student must audit a recently updated package and identify whether a DNF transaction caused a regression. It is not the best safeguard for the current mechanism: Unsigned or untrusted repository sources should not be implicitly accepted just to satisfy an install.

Question 449

Lab exercise on a nonproduction Linux administration sandbox: A script invokes two commands on one line with a semicolon and prints success even if the first fails. Which proposed RHEL 10 command or configuration action most directly achieves the required lab state?

  1. Use `first_command && second_command` when the second action must depend on the first succeeding.
  2. Use `if pgrep -x "$1" >/dev/null; then echo running; else echo absent; fi` after argument validation.
  3. Use `host=$(hostname -s)` and `printf 'host=%s\n' "$host"` in the exercise script.
  4. Use `for unit in sshd crond chronyd firewalld NetworkManager; do systemctl is-active "$unit"; done`.

Explanation

Correct Answer

A:

Use `first_command && second_command` when the second action must depend on the first succeeding. This directly addresses the lab target: A script invokes two commands on one line with a semicolon and prints success even if the first fails. The underlying behavior is: A semicolon runs subsequent commands irrespective of previous exit status; `&&` is conditional. Verification: In a fixture where the first command exits 1, the second command does not run.

Incorrect Answers

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 semicolon runs subsequent commands irrespective of previous exit status; `&&` is conditional.

C:

Use `host=$(hostname -s)` and `printf 'host=%s\n' "$host"` in the exercise script. This is an appropriate step for a DIFFERENT exercise, specifically: A shell script writes raw command output but needs its first line to include the current hostname from the target host. It does not address the required lab state, whose mechanism is: A semicolon runs subsequent commands irrespective of previous exit status; `&&` is conditional.

D:

Use `for unit in sshd crond chronyd firewalld NetworkManager; do systemctl is-active "$unit"; done`. This is an appropriate step for a DIFFERENT exercise, specifically: A service check is intended to poll five named systemd units, but the script uses only the first literal unit. It does not address the required lab state, whose mechanism is: A semicolon runs subsequent commands irrespective of previous exit status; `&&` is conditional.

Question 450

In a hands-on RHCSA practice VM, the assigned outcome was: A script invokes two commands on one line with a semicolon and prints success even if the first fails. What specific verification would demonstrate the target state?

  1. Known values 9 and 10 route to different expected branches.
  2. In a fixture where the first command exits 1, the second command does not run.
  3. The resulting filename contains the current date digits and `tar -tzf` lists expected members.
  4. The known present and missing fixture processes produce different status messages.

Explanation

Correct Answer

B:

In a fixture where the first command exits 1, the second command does not run. This check confirms the expected effect of: Use `first_command && second_command` when the second action must depend on the first succeeding. It distinguishes the intended result from the original failure mechanism: A semicolon runs subsequent commands irrespective of previous exit status; `&&` is conditional.

Incorrect Answers

A:

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 `first_command && second_command` when the second action must depend on the first succeeding.

C:

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 `first_command && second_command` when the second action must depend on the first succeeding.

D:

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 `first_command && second_command` when the second action must depend on the first succeeding.