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 21

Question 200

Following lab verification, document the preventive or persistence-oriented procedure for: A test web daemon is configured to listen on TCP 8088 but SELinux blocks binding despite a matching firewall rule. Which practice is most suitable?

  1. Verify port-label assignment and firewall exposure separately for nonstandard listener ports.
  2. Provision and rotate private keys under managed mode and ownership controls.
  3. Check active zone, SELinux port permission and service listener together.
  4. Verify persistence and remove temporary diagnostic firewall permits.

Explanation

Correct Answer

A:

Verify port-label assignment and firewall exposure separately for nonstandard listener ports. This guards against recurrence of: SELinux port types control service bind permission independently of firewalld. Confirm the lab's final state by: `semanage port -l` lists 8088 for `http_port_t` and the daemon binds without the denial.

Incorrect Answers

B:

Provision and rotate private keys under managed mode and ownership controls. That control is best suited to a separate scenario: A private SSH key is world-readable, causing security risk and sometimes authentication refusal. It is not the best safeguard for the current mechanism: SELinux port types control service bind permission independently of firewalld.

C:

Check active zone, SELinux port permission and service listener together. That control is best suited to a separate scenario: An application uses a nonstandard TCP port and a student opens it in firewalld but forgets the active zone. It is not the best safeguard for the current mechanism: SELinux port types control service bind permission independently of firewalld.

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: SELinux port types control service bind permission independently of firewalld.

Question 201

On an offline training clone, perform the following practical task: Two lab hosts need noninteractive operator access and password prompts interrupt file-copy automation. Which action should be carried out after confirming the lab prerequisites?

  1. Run `find /etc -name '*.conf' > /tmp/config-paths.txt 2> /tmp/config-errors.txt` on the lab host.
  2. Use `tail -n 30 -f /tmp/labapp.log` to follow appended fixture events in a test terminal.
  3. Install the operator's public key in the target user's `~/.ssh/authorized_keys` with restrictive directory and file permissions.
  4. Set a more restrictive shell umask such as `umask 027` in the test session before creating the sample file.

Explanation

Correct Answer

C:

Install the operator's public key in the target user's `~/.ssh/authorized_keys` with restrictive directory and file permissions. This directly addresses the lab target: Two lab hosts need noninteractive operator access and password prompts interrupt file-copy automation. The underlying behavior is: Public-key authentication requires an authorized matching key in the correct user account. Verification: `ssh -o BatchMode=yes student@hostB true` succeeds using an authorized key on the isolated lab.

Incorrect Answers

A:

Run `find /etc -name '*.conf' > /tmp/config-paths.txt 2> /tmp/config-errors.txt` on the lab host. This is an appropriate step for a DIFFERENT exercise, specifically: An audit command prints successful results and permission-denied errors; the exercise requires separate normal and error logs. It does not address the required lab state, whose mechanism is: Public-key authentication requires an authorized matching key in the correct user account.

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: Public-key authentication requires an authorized matching key in the correct user account.

D:

Set a more restrictive shell umask such as `umask 027` in the test session before creating the sample file. This is an appropriate step for a DIFFERENT exercise, specifically: A newly created shared work directory gives files unexpectedly broad default permissions. It does not address the required lab state, whose mechanism is: Public-key authentication requires an authorized matching key in the correct user account.

Question 202

The lab examiner asks for evidence after this assignment: Two lab hosts need noninteractive operator access and password prompts interrupt file-copy automation. What is the decisive verification step?

  1. `stat -c '%a %y'` on source and destination confirms equivalent permissions and modification time.
  2. The operator identifies documented syntax for `enable --now` and `is-enabled` from local manual pages.
  3. The numeric result matches a manual sample from `/etc/passwd` and excludes strings in other fields.
  4. `ssh -o BatchMode=yes student@hostB true` succeeds using an authorized key on the isolated lab.

Explanation

Correct Answer

D:

`ssh -o BatchMode=yes student@hostB true` succeeds using an authorized key on the isolated lab. This check confirms the expected effect of: Install the operator's public key in the target user's `~/.ssh/authorized_keys` with restrictive directory and file permissions. It distinguishes the intended result from the original failure mechanism: Public-key authentication requires an authorized matching key in the correct user account.

Incorrect Answers

A:

`stat -c '%a %y'` on source and destination confirms equivalent permissions and modification time. That verifies a separate lab task: A student copies a permission-sensitive fixture and unexpectedly changes its timestamp and permission bits. It does not validate the implementation required here: Install the operator's public key in the target user's `~/.ssh/authorized_keys` with restrictive directory and file permissions.

B:

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: Install the operator's public key in the target user's `~/.ssh/authorized_keys` with restrictive directory and file permissions.

C:

The numeric result matches a manual sample from `/etc/passwd` and excludes strings in other fields. That verifies a separate lab task: A training data file lists one account per line, and the goal is counting accounts whose shells are `/bin/bash`. It does not validate the implementation required here: Install the operator's public key in the target user's `~/.ssh/authorized_keys` with restrictive directory and file permissions.

Question 203

A training host has this situation: Two lab hosts need noninteractive operator access and password prompts interrupt file-copy automation. Which system behavior best explains the original failure or risk?

  1. Public-key authentication requires an authorized matching key in the correct user account.
  2. Broad globs and unchecked paths can expand beyond the intended temporary file scope.
  3. Plain copy operations may produce destination metadata based on defaults rather than preserving source attributes.
  4. Replacing the whole file for a one-line change risks losing required settings.

Explanation

Correct Answer

A:

Public-key authentication requires an authorized matching key in the correct user account. This explains the task's initial state: Two lab hosts need noninteractive operator access and password prompts interrupt file-copy automation. The supported lab action is: Install the operator's public key in the target user's `~/.ssh/authorized_keys` with restrictive directory and file permissions.

Incorrect Answers

B:

Broad globs and unchecked paths can expand beyond the intended temporary file scope. This mechanism applies to another scenario: A cleanup task targets temporary build artifacts, but a wildcard could accidentally match production data. The given lab state instead requires the more specific cause in the correct choice.

C:

Plain copy operations may produce destination metadata based on defaults rather than preserving source attributes. This mechanism applies to another scenario: A student copies a permission-sensitive fixture and unexpectedly changes its timestamp and permission bits. The given lab state instead requires the more specific cause in the correct choice.

D:

Replacing the whole file for a one-line change risks losing required settings. This mechanism applies to another scenario: An operator needs to change a configuration line without deleting other settings in a small text file. The given lab state instead requires the more specific cause in the correct choice.

Question 204

A student has implemented the following configuration: Two lab hosts need noninteractive operator access and password prompts interrupt file-copy automation. What repeatable control best reduces regressions or unsafe changes?

  1. Apply a reviewed umask in the appropriate persistent login startup policy for the intended account.
  2. Maintain per-operator SSH keys and revoke retired keys instead of sharing passwords.
  3. Use anchored regular expressions and independent sample positive/negative test lines.
  4. Maintain positive and negative sample cases for account naming validation.

Explanation

Correct Answer

B:

Maintain per-operator SSH keys and revoke retired keys instead of sharing passwords. This guards against recurrence of: Public-key authentication requires an authorized matching key in the correct user account. Confirm the lab's final state by: `ssh -o BatchMode=yes student@hostB true` succeeds using an authorized key on the isolated lab.

Incorrect Answers

A:

Apply a reviewed umask in the appropriate persistent login startup policy for the intended account. That control is best suited to a separate scenario: A newly created shared work directory gives files unexpectedly broad default permissions. It is not the best safeguard for the current mechanism: Public-key authentication requires an authorized matching key in the correct user account.

C:

Use anchored regular expressions and independent sample positive/negative test lines. That control is best suited to a separate scenario: A lab report contains 5xx server responses mixed with successful lines; a student must count only lines beginning with an HTTP 5xx code. It is not the best safeguard for the current mechanism: Public-key authentication requires an authorized matching key in the correct user account.

D:

Maintain positive and negative sample cases for account naming validation. That control is best suited to a separate scenario: A text filter should identify accounts that start with `svc-` and end in a number but a simple substring rule admits unrelated names. It is not the best safeguard for the current mechanism: Public-key authentication requires an authorized matching key in the correct user account.

Question 205

You are responsible for a local virtualization classroom. The required hands-on outcome is: A troubleshooting team wants to know exactly which files an installed RPM delivered before modifying a configuration. Select the most appropriate implementation step.

  1. Use `sudo dnf install -y httpd` from a configured authenticated RPM repository.
  2. Use `sudo dnf install /tmp/signed-example.rpm` with configured repositories available for dependencies.
  3. Use `dnf list --showduplicates package-name`, then install a specifically available `name-version-release` after dependency checks.
  4. Use `rpm -ql package-name` for its installed file manifest and `rpm -qc package-name` for configuration files.

Explanation

Correct Answer

D:

Use `rpm -ql package-name` for its installed file manifest and `rpm -qc package-name` for configuration files. This directly addresses the lab target: A troubleshooting team wants to know exactly which files an installed RPM delivered before modifying a configuration. The underlying behavior is: Package databases record installed paths and specially flagged config files. Verification: The expected config file is listed as package-managed and its ownership is traceable.

Incorrect Answers

A:

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: Package databases record installed paths and specially flagged config files.

B:

Use `sudo dnf install /tmp/signed-example.rpm` with configured repositories available for dependencies. This is an appropriate step for a DIFFERENT exercise, specifically: A lab host cannot install a local signed RPM because an engineer assumes a bare filename will automatically resolve dependency packages. It does not address the required lab state, whose mechanism is: Package databases record installed paths and specially flagged config files.

C:

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: Package databases record installed paths and specially flagged config files.

Question 206

After a lab configuration change, verify: A troubleshooting team wants to know exactly which files an installed RPM delivered before modifying a configuration. Which result most directly proves the desired system state?

  1. The expected config file is listed as package-managed and its ownership is traceable.
  2. `rpm -q httpd` reports an installed package and `dnf info httpd` shows package metadata.
  3. The intended machine's `rpm -q package-name` reports installation after reconnecting to that same host.
  4. `rpm -q package-name` reports the approved release and relevant dependencies remain consistent.

Explanation

Correct Answer

A:

The expected config file is listed as package-managed and its ownership is traceable. This check confirms the expected effect of: Use `rpm -ql package-name` for its installed file manifest and `rpm -qc package-name` for configuration files. It distinguishes the intended result from the original failure mechanism: Package databases record installed paths and specially flagged config files.

Incorrect Answers

B:

`rpm -q httpd` reports an installed package and `dnf info httpd` shows package metadata. That verifies a separate lab task: A test server needs the packaged `httpd` service but an administrator tries to install files by manual copying. It does not validate the implementation required here: Use `rpm -ql package-name` for its installed file manifest and `rpm -qc package-name` for configuration files.

C:

The intended machine's `rpm -q package-name` reports installation after reconnecting to that same host. That verifies a separate lab task: An application package is missing after a reboot because it was installed into a transient build container, not the intended host. It does not validate the implementation required here: Use `rpm -ql package-name` for its installed file manifest and `rpm -qc package-name` for configuration files.

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 `rpm -ql package-name` for its installed file manifest and `rpm -qc package-name` for configuration files.

Question 207

In an EX200-style practice lab, this condition exists: A troubleshooting team wants to know exactly which files an installed RPM delivered before modifying a configuration. Which explanation correctly identifies the underlying issue?

  1. DNF can resolve local-RPM dependencies using available repository metadata whereas raw copying cannot.
  2. Package databases record installed paths and specially flagged config files.
  3. DNF removal resolves dependencies and may remove related packages, which requires plan review.
  4. Package capability providers and executable filenames do not always equal RPM package names.

Explanation

Correct Answer

B:

Package databases record installed paths and specially flagged config files. This explains the task's initial state: A troubleshooting team wants to know exactly which files an installed RPM delivered before modifying a configuration. The supported lab action is: Use `rpm -ql package-name` for its installed file manifest and `rpm -qc package-name` for configuration files.

Incorrect Answers

A:

DNF can resolve local-RPM dependencies using available repository metadata whereas raw copying cannot. This mechanism applies to another scenario: A lab host cannot install a local signed RPM because an engineer assumes a bare filename will automatically resolve dependency packages. The given lab state instead requires the more specific cause in the correct choice.

C:

DNF removal resolves dependencies and may remove related packages, which requires plan review. This mechanism applies to another scenario: A retired tool remains installed after a change freeze and needs removal without deleting unrelated data directories. The given lab state instead requires the more specific cause in the correct choice.

D:

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.

Question 208

After completing this practical task on a local virtualization classroom: A troubleshooting team wants to know exactly which files an installed RPM delivered before modifying a configuration. Which operational safeguard helps keep the result correct and safe?

  1. Validate package ownership and source repository before installations.
  2. Document both package manager and approved source when installing GUI applications.
  3. Check package-managed status before overwriting or deleting a file during repair.
  4. Pin only justified versions and review security update exceptions.

Explanation

Correct Answer

C:

Check package-managed status before overwriting or deleting a file during repair. This guards against recurrence of: Package databases record installed paths and specially flagged config files. Confirm the lab's final state by: The expected config file is listed as package-managed and its ownership is traceable.

Incorrect Answers

A:

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: Package databases record installed paths and specially flagged config files.

B:

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: Package databases record installed paths and specially flagged config files.

D:

Pin only justified versions and review security update exceptions. That control is best suited to a separate scenario: A lab requirement says install one exact software release but `dnf install` picks the newest enabled version. It is not the best safeguard for the current mechanism: Package databases record installed paths and specially flagged config files.

Question 209

Lab exercise on a nonproduction Linux administration sandbox: A service check is intended to poll five named systemd units, but the script uses only the first literal unit. Which proposed RHEL 10 command or configuration action most directly achieves the required lab state?

  1. Use `for unit in sshd crond chronyd firewalld NetworkManager; do systemctl is-active "$unit"; done`.
  2. Use `IFS= read -r name` and `printf '%s\n' "$name"` to preserve literal input.
  3. Use `if pgrep -x "$1" >/dev/null; then echo running; else echo absent; fi` after argument validation.
  4. Use `for dir in "$@"; do printf '%s\n' "$dir"; done` with arguments supplied at invocation.

Explanation

Correct Answer

A:

Use `for unit in sshd crond chronyd firewalld NetworkManager; do systemctl is-active "$unit"; done`. This directly addresses the lab target: A service check is intended to poll five named systemd units, but the script uses only the first literal unit. The underlying behavior is: A `for` loop explicitly processes each named input rather than repeating one static check. Verification: The output contains one result per unit and no unrequested service is started.

Incorrect Answers

B:

Use `IFS= read -r name` and `printf '%s\n' "$name"` to preserve literal input. This is an appropriate step for a DIFFERENT exercise, specifically: A script asks users for a name but accidentally treats backslash sequences in the input as control codes. It does not address the required lab state, whose mechanism is: A `for` loop explicitly processes each named input rather than repeating one static check.

C:

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 `for` loop explicitly processes each named input rather than repeating one static check.

D:

Use `for dir in "$@"; do printf '%s\n' "$dir"; done` with arguments supplied at invocation. This is an appropriate step for a DIFFERENT exercise, specifically: A housekeeping script must print each user-provided directory rather than always print one hard-coded value. It does not address the required lab state, whose mechanism is: A `for` loop explicitly processes each named input rather than repeating one static check.

Question 210

In a hands-on RHCSA practice VM, the assigned outcome was: A service check is intended to poll five named systemd units, but the script uses only the first literal unit. What specific verification would demonstrate the target state?

  1. A normal VM prints `present`; a fixture with a missing file returns a nonzero exit.
  2. The output contains one result per unit and no unrequested service is started.
  3. Known values 9 and 10 route to different expected branches.
  4. `head -n 1 script` shows the interpreter and direct execution uses the expected Bash features.

Explanation

Correct Answer

B:

The output contains one result per unit and no unrequested service is started. This check confirms the expected effect of: Use `for unit in sshd crond chronyd firewalld NetworkManager; do systemctl is-active "$unit"; done`. It distinguishes the intended result from the original failure mechanism: A `for` loop explicitly processes each named input rather than repeating one static check.

Incorrect Answers

A:

A normal VM prints `present`; a fixture with a missing file returns a nonzero exit. That verifies a separate lab task: A lab script must exit successfully only when `/etc/hosts` exists, but an unguarded command reports success in both cases. It does not validate the implementation required here: Use `for unit in sshd crond chronyd firewalld NetworkManager; do systemctl is-active "$unit"; done`.

C:

Known values 9 and 10 route to different expected branches. That verifies a separate lab task: A script's `if` statement tests a numeric threshold using string comparison and misorders the values 9 and 10. It does not validate the implementation required here: Use `for unit in sshd crond chronyd firewalld NetworkManager; do systemctl is-active "$unit"; done`.

D:

`head -n 1 script` shows the interpreter and direct execution uses the expected Bash features. That verifies a separate lab task: A shell helper is executed with `/bin/sh` but contains Bash-only syntax and fails on an alternate POSIX shell. It does not validate the implementation required here: Use `for unit in sshd crond chronyd firewalld NetworkManager; do systemctl is-active "$unit"; done`.