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 25

Question 240

After completing this practical task on a test RHEL10 instance: An existing TCP port is assigned to the wrong SELinux port type and `semanage port -a` fails because the port already exists. Which operational safeguard helps keep the result correct and safe?

  1. Verify port-label assignment and firewall exposure separately for nonstandard listener ports.
  2. Test positive and negative access after SSH authorization changes.
  3. Check existing assignments before modifying SELinux port labels.
  4. Check active zone, SELinux port permission and service listener together.

Explanation

Correct Answer

C:

Check existing assignments before modifying SELinux port labels. This guards against recurrence of: Port type modifications and adding new mappings are different policy operations. Confirm the lab's final state by: `semanage port -l` shows the revised mapping without duplicate records.

Incorrect Answers

A:

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: Port type modifications and adding new mappings are different policy operations.

B:

Test positive and negative access after SSH authorization changes. That control is best suited to a separate scenario: A server's `sshd` service is enabled but remote login fails because host key authentication was never established for the test user. It is not the best safeguard for the current mechanism: Port type modifications and adding new mappings are different policy operations.

D:

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: Port type modifications and adding new mappings are different policy operations.

Question 241

Lab exercise on an isolated enterprise lab VM: An SSH lab service listens on a deliberately nonstandard port 2222, but a tester keeps connecting to the default port. Which proposed RHEL 10 command or configuration action most directly achieves the required lab state?

  1. Use `ssh -p 2222 student@lab-gateway` with the approved nonstandard port.
  2. Use `tail -n 30 -f /tmp/labapp.log` to follow appended fixture events in a test terminal.
  3. Use `mv /tmp/app.log /tmp/app.log.old` after checking the destination will not overwrite an existing record.
  4. Run `find /etc -name '*.conf' > /tmp/config-paths.txt 2> /tmp/config-errors.txt` on the lab host.

Explanation

Correct Answer

A:

Use `ssh -p 2222 student@lab-gateway` with the approved nonstandard port. This directly addresses the lab target: An SSH lab service listens on a deliberately nonstandard port 2222, but a tester keeps connecting to the default port. The underlying behavior is: An SSH client defaults to port 22 when no port override or host configuration is supplied. Verification: A successful SSH session connects to the expected lab host and `ss -tln` shows the listener on 2222.

Incorrect Answers

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 SSH client defaults to port 22 when no port override or host configuration is supplied.

C:

Use `mv /tmp/app.log /tmp/app.log.old` after checking the destination will not overwrite an existing record. This is an appropriate step for a DIFFERENT exercise, specifically: A team must rename a log file atomically inside one local file system before starting a new capture. It does not address the required lab state, whose mechanism is: An SSH client defaults to port 22 when no port override or host configuration is supplied.

D:

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: An SSH client defaults to port 22 when no port override or host configuration is supplied.

Question 242

In a hands-on RHCSA practice VM, the assigned outcome was: An SSH lab service listens on a deliberately nonstandard port 2222, but a tester keeps connecting to the default port. What specific verification would demonstrate the target state?

  1. `stat -c '%a %U'` shows `600` and the intended user, and `test -r` succeeds for that owner.
  2. A successful SSH session connects to the expected lab host and `ss -tln` shows the listener on 2222.
  3. The operator identifies documented syntax for `enable --now` and `is-enabled` from local manual pages.
  4. `pwd` reports `/srv/labs/projectA` and `realpath ./notes.txt` resolves inside that directory.

Explanation

Correct Answer

B:

A successful SSH session connects to the expected lab host and `ss -tln` shows the listener on 2222. This check confirms the expected effect of: Use `ssh -p 2222 student@lab-gateway` with the approved nonstandard port. It distinguishes the intended result from the original failure mechanism: An SSH client defaults to port 22 when no port override or host configuration is supplied.

Incorrect Answers

A:

`stat -c '%a %U'` shows `600` and the intended user, and `test -r` succeeds for that owner. That verifies a separate lab task: A private lab key file is incorrectly world-readable and must be accessible only to its owner. It does not validate the implementation required here: Use `ssh -p 2222 student@lab-gateway` with the approved nonstandard port.

C:

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: Use `ssh -p 2222 student@lab-gateway` with the approved nonstandard port.

D:

`pwd` reports `/srv/labs/projectA` and `realpath ./notes.txt` resolves inside that directory. That verifies a separate lab task: 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 validate the implementation required here: Use `ssh -p 2222 student@lab-gateway` with the approved nonstandard port.

Question 243

A trainee is diagnosing: An SSH lab service listens on a deliberately nonstandard port 2222, but a tester keeps connecting to the default port. Which root cause should they recognize before changing the system?

  1. An unanchored pattern may count 500-series digits appearing elsewhere in a log line.
  2. Bzip2-compressed tar archives use the `-j` decompression option, not the gzip `-z` option.
  3. An SSH client defaults to port 22 when no port override or host configuration is supplied.
  4. `tail -f` follows appended file content rather than providing only a static initial snapshot.

Explanation

Correct Answer

C:

An SSH client defaults to port 22 when no port override or host configuration is supplied. This explains the task's initial state: An SSH lab service listens on a deliberately nonstandard port 2222, but a tester keeps connecting to the default port. The supported lab action is: Use `ssh -p 2222 student@lab-gateway` with the approved nonstandard port.

Incorrect Answers

A:

An unanchored pattern may count 500-series digits appearing elsewhere in a log line. This mechanism applies to another scenario: A lab report contains 5xx server responses mixed with successful lines; a student must count only lines beginning with an HTTP 5xx code. The given lab state instead requires the more specific cause in the correct choice.

B:

Bzip2-compressed tar archives use the `-j` decompression option, not the gzip `-z` option. This mechanism applies to another scenario: A restore workflow is given a `.tar.bz2` training archive and a previous attempt used gzip extraction flags. The given lab state instead requires the more specific cause in the correct choice.

D:

`tail -f` follows appended file content rather than providing only a static initial snapshot. This mechanism applies to another scenario: An operator follows a live application log but accidentally reads only the first ten lines during troubleshooting. The given lab state instead requires the more specific cause in the correct choice.

Question 244

For this Linux administration lab: An SSH lab service listens on a deliberately nonstandard port 2222, but a tester keeps connecting to the default port. Which safety and lifecycle check best prevents the same problem returning?

  1. Use hard links only for same-filesystem files and document how unlinking each name affects retention.
  2. Check link targets during deployment and avoid silent broken symlinks after directory moves.
  3. Maintain per-operator SSH keys and revoke retired keys instead of sharing passwords.
  4. Record host, port and expected key fingerprint in managed SSH client configuration.

Explanation

Correct Answer

D:

Record host, port and expected key fingerprint in managed SSH client configuration. This guards against recurrence of: An SSH client defaults to port 22 when no port override or host configuration is supplied. Confirm the lab's final state by: A successful SSH session connects to the expected lab host and `ss -tln` shows the listener on 2222.

Incorrect Answers

A:

Use hard links only for same-filesystem files and document how unlinking each name affects retention. That control is best suited to a separate scenario: Two paths should reference the same inode so edits through either name appear in the other, entirely on one file system. It is not the best safeguard for the current mechanism: An SSH client defaults to port 22 when no port override or host configuration is supplied.

B:

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 SSH client defaults to port 22 when no port override or host configuration is supplied.

C:

Maintain per-operator SSH keys and revoke retired keys instead of sharing passwords. That control is best suited to a separate scenario: Two lab hosts need noninteractive operator access and password prompts interrupt file-copy automation. It is not the best safeguard for the current mechanism: An SSH client defaults to port 22 when no port override or host configuration is supplied.

Question 245

A student working on a disposable RHEL10 training node receives this assignment: A lab host cannot install a local signed RPM because an engineer assumes a bare filename will automatically resolve dependency packages. Which answer gives the correct practical approach?

  1. Inspect `dnf history`, then `dnf history info <ID>` for the recorded transaction.
  2. Use `sudo dnf install /tmp/signed-example.rpm` with configured repositories available for dependencies.
  3. Use `dnf config-manager --set-enabled labrepo` only if the appropriate DNF plugin is present, or set `enabled=1` in the vetted `.repo` entry.
  4. Use `flatpak install labapps org.example.Editor` after configuring the approved Flatpak remote.

Explanation

Correct Answer

B:

Use `sudo dnf install /tmp/signed-example.rpm` with configured repositories available for dependencies. This directly addresses the lab target: A lab host cannot install a local signed RPM because an engineer assumes a bare filename will automatically resolve dependency packages. The underlying behavior is: DNF can resolve local-RPM dependencies using available repository metadata whereas raw copying cannot. Verification: `rpm -q example` and `dnf history info` show the installed transaction and dependencies.

Incorrect Answers

A:

Inspect `dnf history`, then `dnf history info <ID>` for the recorded transaction. This is an appropriate step for a DIFFERENT exercise, specifically: A student must audit a recently updated package and identify whether a DNF transaction caused a regression. It does not address the required lab state, whose mechanism is: DNF can resolve local-RPM dependencies using available repository metadata whereas raw copying cannot.

C:

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 is an appropriate step for a DIFFERENT exercise, specifically: A newly configured RPM repository is listed but disabled, so an application package cannot be found. It does not address the required lab state, whose mechanism is: DNF can resolve local-RPM dependencies using available repository metadata whereas raw copying cannot.

D:

Use `flatpak install labapps org.example.Editor` after configuring the approved Flatpak remote. This is an appropriate step for a DIFFERENT exercise, specifically: A desktop lab task requires installing a named Flatpak application, but the administrator runs `dnf install` for its Flatpak ID. It does not address the required lab state, whose mechanism is: DNF can resolve local-RPM dependencies using available repository metadata whereas raw copying cannot.

Question 246

You have attempted this task on a disposable RHEL10 training node: A lab host cannot install a local signed RPM because an engineer assumes a bare filename will automatically resolve dependency packages. Which command output or observation best confirms its success?

  1. `flatpak list --app` includes `org.example.Editor` and its intended origin.
  2. `dnf repolist` shows the training repository and `dnf makecache` fetches its metadata without a signature warning.
  3. `rpm -q example` and `dnf history info` show the installed transaction and dependencies.
  4. `rpm -q httpd` reports an installed package and `dnf info httpd` shows package metadata.

Explanation

Correct Answer

C:

`rpm -q example` and `dnf history info` show the installed transaction and dependencies. This check confirms the expected effect of: Use `sudo dnf install /tmp/signed-example.rpm` with configured repositories available for dependencies. It distinguishes the intended result from the original failure mechanism: DNF can resolve local-RPM dependencies using available repository metadata whereas raw copying cannot.

Incorrect Answers

A:

`flatpak list --app` includes `org.example.Editor` and its intended origin. That verifies a separate lab task: A desktop lab task requires installing a named Flatpak application, but the administrator runs `dnf install` for its Flatpak ID. It does not validate the implementation required here: Use `sudo dnf install /tmp/signed-example.rpm` with configured repositories available for dependencies.

B:

`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 /tmp/signed-example.rpm` with configured repositories available for dependencies.

D:

`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 `sudo dnf install /tmp/signed-example.rpm` with configured repositories available for dependencies.

Question 247

Troubleshoot the following RHEL 10 lab situation: A lab host cannot install a local signed RPM because an engineer assumes a bare filename will automatically resolve dependency packages. Identify the key Linux mechanism behind the issue.

  1. A disabled repository is not considered for default DNF package searches.
  2. DNF removal resolves dependencies and may remove related packages, which requires plan review.
  3. Flatpak application installation depends on an explicitly configured remote repository.
  4. DNF can resolve local-RPM dependencies using available repository metadata whereas raw copying cannot.

Explanation

Correct Answer

D:

DNF can resolve local-RPM dependencies using available repository metadata whereas raw copying cannot. This explains the task's initial state: A lab host cannot install a local signed RPM because an engineer assumes a bare filename will automatically resolve dependency packages. The supported lab action is: Use `sudo dnf install /tmp/signed-example.rpm` with configured repositories available for dependencies.

Incorrect Answers

A:

A disabled repository is not considered for default DNF package searches. This mechanism applies to another scenario: A newly configured RPM repository is listed but disabled, so an application package cannot be found. The given lab state instead requires the more specific cause in the correct choice.

B:

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.

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 248

Following lab verification, document the preventive or persistence-oriented procedure for: A lab host cannot install a local signed RPM because an engineer assumes a bare filename will automatically resolve dependency packages. Which practice is most suitable?

  1. Use the package manager and signature validation for offline/locally provided RPM artifacts.
  2. Check repository enablement before weakening signature checks or adding unrelated mirrors.
  3. Pin only justified versions and review security update exceptions.
  4. Validate package ownership and source repository before installations.

Explanation

Correct Answer

A:

Use the package manager and signature validation for offline/locally provided RPM artifacts. This guards against recurrence of: DNF can resolve local-RPM dependencies using available repository metadata whereas raw copying cannot. Confirm the lab's final state by: `rpm -q example` and `dnf history info` show the installed transaction and dependencies.

Incorrect Answers

B:

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: DNF can resolve local-RPM dependencies using available repository metadata whereas raw copying cannot.

C:

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: DNF can resolve local-RPM dependencies using available repository metadata whereas raw copying cannot.

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: DNF can resolve local-RPM dependencies using available repository metadata whereas raw copying cannot.

Question 249

On an offline training clone, perform the following practical task: A script's `if` statement tests a numeric threshold using string comparison and misorders the values 9 and 10. Which action should be carried out after confirming the lab prerequisites?

  1. Use `first_command && second_command` when the second action must depend on the first succeeding.
  2. Use a tested count expression such as `grep -c 'pattern' /tmp/fixture.log || [ "$?" -eq 1 ]` with correct status handling or use `awk` for an unconditional count.
  3. Use `if [ "$count" -ge 10 ]; then ...; fi` after validating `count` is an integer.
  4. Use `printf '%s\n' "$message" >> "$log_path"` with a quoted destination variable.

Explanation

Correct Answer

C:

Use `if [ "$count" -ge 10 ]; then ...; fi` after validating `count` is an integer. This directly addresses the lab target: A script's `if` statement tests a numeric threshold using string comparison and misorders the values 9 and 10. The underlying behavior is: Shell test numeric operators compare integers, while lexical string operations do not model number magnitude. Verification: Known values 9 and 10 route to different expected branches.

Incorrect Answers

A:

Use `first_command && second_command` when the second action must depend on the first succeeding. This is an appropriate step for a DIFFERENT exercise, specifically: A script invokes two commands on one line with a semicolon and prints success even if the first fails. It does not address the required lab state, whose mechanism is: Shell test numeric operators compare integers, while lexical string operations do not model number magnitude.

B:

Use a tested count expression such as `grep -c 'pattern' /tmp/fixture.log || [ "$?" -eq 1 ]` with correct status handling or use `awk` for an unconditional count. This is an appropriate step for a DIFFERENT exercise, specifically: A reporting script pipes `grep` through `wc` and treats a zero-match grep exit as a catastrophic error even though zero results are valid. It does not address the required lab state, whose mechanism is: Shell test numeric operators compare integers, while lexical string operations do not model number magnitude.

D:

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: Shell test numeric operators compare integers, while lexical string operations do not model number magnitude.

Question 250

The lab examiner asks for evidence after this assignment: A script's `if` statement tests a numeric threshold using string comparison and misorders the values 9 and 10. What is the decisive verification step?

  1. The output contains one result per unit and no unrequested service is started.
  2. The known present and missing fixture processes produce different status messages.
  3. The printed host label matches `hostname -s` without treating it as an executable.
  4. Known values 9 and 10 route to different expected branches.

Explanation

Correct Answer

D:

Known values 9 and 10 route to different expected branches. This check confirms the expected effect of: Use `if [ "$count" -ge 10 ]; then ...; fi` after validating `count` is an integer. It distinguishes the intended result from the original failure mechanism: Shell test numeric operators compare integers, while lexical string operations do not model number magnitude.

Incorrect Answers

A:

The output contains one result per unit and no unrequested service is started. That verifies a separate lab task: A service check is intended to poll five named systemd units, but the script uses only the first literal unit. It does not validate the implementation required here: Use `if [ "$count" -ge 10 ]; then ...; fi` after validating `count` is an integer.

B:

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 `if [ "$count" -ge 10 ]; then ...; fi` after validating `count` is an integer.

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 `if [ "$count" -ge 10 ]; then ...; fi` after validating `count` is an integer.