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 29

Question 280

Following lab verification, document the preventive or persistence-oriented procedure for: An application hosted by Apache needs outbound database connections but SELinux policy denies them even with network routing functional. Which practice is most suitable?

  1. Enable only approved service-specific Booleans and review the resulting access scope.
  2. Check runtime and configured SELinux modes after policy changes.
  3. Persist custom path mapping in SELinux fcontext policy, not one-off `chcon` changes.
  4. Set a restrictive umask in service startup or trusted shell policy for secret handling.

Explanation

Correct Answer

A:

Enable only approved service-specific Booleans and review the resulting access scope. This guards against recurrence of: SELinux Booleans can authorize specific service behavior without disabling the entire MAC policy. Confirm the lab's final state by: `getsebool` reports on after reboot and the documented DB connection test succeeds.

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: SELinux Booleans can authorize specific service behavior without disabling the entire MAC policy.

C:

Persist custom path mapping in SELinux fcontext policy, not one-off `chcon` changes. That control is best suited to a separate scenario: A web service moved to `/srv/custom-web` encounters SELinux denials because content copied from a home directory carries the wrong label. It is not the best safeguard for the current mechanism: SELinux Booleans can authorize specific service behavior without disabling the entire MAC policy.

D:

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: SELinux Booleans can authorize specific service behavior without disabling the entire MAC policy.

Question 281

On a nonproduction Linux administration sandbox, perform the following practical task: A student becomes root with `su` but finds the previous user's PATH and working directory still active during an administrative test. Which action should be carried out after confirming the lab prerequisites?

  1. Use `mv /tmp/app.log /tmp/app.log.old` after checking the destination will not overwrite an existing record.
  2. Use `grep -E '^svc-[a-z]+[0-9]+$' /tmp/account-names.txt` for the exact fixture convention.
  3. Use `su -` (authorized lab credentials) or `sudo -i` to start an appropriate login environment.
  4. Run `chown student:analysts /srv/labs/summary.txt` on the training file and review its mode.

Explanation

Correct Answer

C:

Use `su -` (authorized lab credentials) or `sudo -i` to start an appropriate login environment. This directly addresses the lab target: A student becomes root with `su` but finds the previous user's PATH and working directory still active during an administrative test. The underlying behavior is: Switching identity without a login shell may retain environment values that are unsafe to assume. Verification: `id -un`, `pwd`, and `printf '%s\n' "$HOME"` reflect the privileged login context.

Incorrect Answers

A:

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: Switching identity without a login shell may retain environment values that are unsafe to assume.

B:

Use `grep -E '^svc-[a-z]+[0-9]+$' /tmp/account-names.txt` for the exact fixture convention. This is an appropriate step for a DIFFERENT exercise, specifically: A text filter should identify accounts that start with `svc-` and end in a number but a simple substring rule admits unrelated names. It does not address the required lab state, whose mechanism is: Switching identity without a login shell may retain environment values that are unsafe to assume.

D:

Run `chown student:analysts /srv/labs/summary.txt` on the training file and review its mode. This is an appropriate step for a DIFFERENT exercise, specifically: A text report was created by root, preventing the intended nonprivileged analyst from editing it. It does not address the required lab state, whose mechanism is: Switching identity without a login shell may retain environment values that are unsafe to assume.

Question 282

The lab examiner asks for evidence after this assignment: A student becomes root with `su` but finds the previous user's PATH and working directory still active during an administrative test. What is the decisive verification step?

  1. Only anchored service account lines with the expected prefix, letters and numeric suffix appear.
  2. `stat -c '%a %y'` on source and destination confirms equivalent permissions and modification time.
  3. `grep -n '^mode=' /tmp/lab.conf` shows the new value while unrelated lines remain unchanged.
  4. `id -un`, `pwd`, and `printf '%s\n' "$HOME"` reflect the privileged login context.

Explanation

Correct Answer

D:

`id -un`, `pwd`, and `printf '%s\n' "$HOME"` reflect the privileged login context. This check confirms the expected effect of: Use `su -` (authorized lab credentials) or `sudo -i` to start an appropriate login environment. It distinguishes the intended result from the original failure mechanism: Switching identity without a login shell may retain environment values that are unsafe to assume.

Incorrect Answers

A:

Only anchored service account lines with the expected prefix, letters and numeric suffix appear. That verifies a separate lab task: A text filter should identify accounts that start with `svc-` and end in a number but a simple substring rule admits unrelated names. It does not validate the implementation required here: Use `su -` (authorized lab credentials) or `sudo -i` to start an appropriate login environment.

B:

`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: Use `su -` (authorized lab credentials) or `sudo -i` to start an appropriate login environment.

C:

`grep -n '^mode=' /tmp/lab.conf` shows the new value while unrelated lines remain unchanged. That verifies a separate lab task: An operator needs to change a configuration line without deleting other settings in a small text file. It does not validate the implementation required here: Use `su -` (authorized lab credentials) or `sudo -i` to start an appropriate login environment.

Question 283

A training host has this situation: A student becomes root with `su` but finds the previous user's PATH and working directory still active during an administrative test. Which system behavior best explains the original failure or risk?

  1. Switching identity without a login shell may retain environment values that are unsafe to assume.
  2. Archive extraction can create paths and overwrite files relative to the extraction root.
  3. Unix ugo/rwx permission bits control who may read or modify ordinary files.
  4. Quoting the entire wildcard prevents pathname expansion; unmatched globs can also remain literal.

Explanation

Correct Answer

A:

Switching identity without a login shell may retain environment values that are unsafe to assume. This explains the task's initial state: A student becomes root with `su` but finds the previous user's PATH and working directory still active during an administrative test. The supported lab action is: Use `su -` (authorized lab credentials) or `sudo -i` to start an appropriate login environment.

Incorrect Answers

B:

Archive extraction can create paths and overwrite files relative to the extraction root. This mechanism applies to another scenario: A prebuilt archive contains paths the student has not inspected; extracting it as root into `/` would be risky. The given lab state instead requires the more specific cause in the correct choice.

C:

Unix ugo/rwx permission bits control who may read or modify ordinary files. This mechanism applies to another scenario: A private lab key file is incorrectly world-readable and must be accessible only to its owner. The given lab state instead requires the more specific cause in the correct choice.

D:

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.

Question 284

A student has implemented the following configuration: A student becomes root with `su` but finds the previous user's PATH and working directory still active during an administrative test. What repeatable control best reduces regressions or unsafe changes?

  1. Constrain glob paths and check match existence before iterating over files.
  2. Check effective identity and environment before privileged operations, then return to a normal account.
  3. When rotating logs, use the appropriate filename-follow behavior and close sessions after diagnosis.
  4. Apply a reviewed umask in the appropriate persistent login startup policy for the intended account.

Explanation

Correct Answer

B:

Check effective identity and environment before privileged operations, then return to a normal account. This guards against recurrence of: Switching identity without a login shell may retain environment values that are unsafe to assume. Confirm the lab's final state by: `id -un`, `pwd`, and `printf '%s\n' "$HOME"` reflect the privileged login context.

Incorrect Answers

A:

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: Switching identity without a login shell may retain environment values that are unsafe to assume.

C:

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: Switching identity without a login shell may retain environment values that are unsafe to assume.

D:

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: Switching identity without a login shell may retain environment values that are unsafe to assume.

Question 285

You are responsible for a test RHEL10 instance. The required hands-on outcome is: A student must audit a recently updated package and identify whether a DNF transaction caused a regression. Select the most appropriate implementation step.

  1. Use `rpm -ql package-name` for its installed file manifest and `rpm -qc package-name` for configuration files.
  2. Use `flatpak install labapps org.example.Editor` after configuring the approved Flatpak remote.
  3. Use host `cat /etc/os-release`, `hostnamectl`, and `rpm -q` before installing the package on the correct persistent RHEL VM.
  4. Inspect `dnf history`, then `dnf history info <ID>` for the recorded transaction.

Explanation

Correct Answer

D:

Inspect `dnf history`, then `dnf history info <ID>` for the recorded transaction. This directly addresses the lab target: A student must audit a recently updated package and identify whether a DNF transaction caused a regression. The underlying behavior is: DNF stores RPM transaction history that differs from filesystem modification-time logs. Verification: The target package and action appear under the expected transaction ID without guessing which manual file changed.

Incorrect Answers

A:

Use `rpm -ql package-name` for its installed file manifest and `rpm -qc package-name` for configuration files. This is an appropriate step for a DIFFERENT exercise, specifically: A troubleshooting team wants to know exactly which files an installed RPM delivered before modifying a configuration. It does not address the required lab state, whose mechanism is: DNF stores RPM transaction history that differs from filesystem modification-time logs.

B:

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 stores RPM transaction history that differs from filesystem modification-time logs.

C:

Use host `cat /etc/os-release`, `hostnamectl`, and `rpm -q` before installing the package on the correct persistent RHEL VM. This is an appropriate step for a DIFFERENT exercise, specifically: An application package is missing after a reboot because it was installed into a transient build container, not the intended host. It does not address the required lab state, whose mechanism is: DNF stores RPM transaction history that differs from filesystem modification-time logs.

Question 286

After a lab configuration change, verify: A student must audit a recently updated package and identify whether a DNF transaction caused a regression. Which result most directly proves the desired system state?

  1. The target package and action appear under the expected transaction ID without guessing which manual file changed.
  2. `dnf repolist --enabled` includes `labrepo` and a package query returns results.
  3. `flatpak list --app` no longer includes that app, while `rpm -qa` remains unchanged.
  4. `rpm -q example` and `dnf history info` show the installed transaction and dependencies.

Explanation

Correct Answer

A:

The target package and action appear under the expected transaction ID without guessing which manual file changed. This check confirms the expected effect of: Inspect `dnf history`, then `dnf history info <ID>` for the recorded transaction. It distinguishes the intended result from the original failure mechanism: DNF stores RPM transaction history that differs from filesystem modification-time logs.

Incorrect Answers

B:

`dnf repolist --enabled` includes `labrepo` and a package query returns results. That verifies a separate lab task: A newly configured RPM repository is listed but disabled, so an application package cannot be found. It does not validate the implementation required here: Inspect `dnf history`, then `dnf history info <ID>` for the recorded transaction.

C:

`flatpak list --app` no longer includes that app, while `rpm -qa` remains unchanged. That verifies a separate lab task: An operator needs to remove an obsolete Flatpak application without removing unrelated RPM software. It does not validate the implementation required here: Inspect `dnf history`, then `dnf history info <ID>` for the recorded transaction.

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: Inspect `dnf history`, then `dnf history info <ID>` for the recorded transaction.

Question 287

In an EX200-style practice lab, this condition exists: A student must audit a recently updated package and identify whether a DNF transaction caused a regression. Which explanation correctly identifies the underlying issue?

  1. DNF removal resolves dependencies and may remove related packages, which requires plan review.
  2. DNF stores RPM transaction history that differs from filesystem modification-time logs.
  3. A disabled repository is not considered for default DNF package searches.
  4. Flatpak application installation depends on an explicitly configured remote repository.

Explanation

Correct Answer

B:

DNF stores RPM transaction history that differs from filesystem modification-time logs. This explains the task's initial state: A student must audit a recently updated package and identify whether a DNF transaction caused a regression. The supported lab action is: Inspect `dnf history`, then `dnf history info <ID>` for the recorded transaction.

Incorrect Answers

A:

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:

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.

D:

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 288

After completing this practical task on a test RHEL10 instance: A student must audit a recently updated package and identify whether a DNF transaction caused a regression. Which operational safeguard helps keep the result correct and safe?

  1. Validate package ownership and source repository before installations.
  2. Only use verified trusted remotes and validate their signature trust before deployment.
  3. Capture the DNF transaction ID during major package changes for later review.
  4. Prefer tracked signed RPM packages and record the installed release in system inventory.

Explanation

Correct Answer

C:

Capture the DNF transaction ID during major package changes for later review. This guards against recurrence of: DNF stores RPM transaction history that differs from filesystem modification-time logs. Confirm the lab's final state by: The target package and action appear under the expected transaction ID without guessing which manual file changed.

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: DNF stores RPM transaction history that differs from filesystem modification-time logs.

B:

Only use verified trusted remotes and validate their signature trust before deployment. That control is best suited to a separate scenario: An approved Flatpak runtime is already enabled in the lab, but no remote source is configured for application installation. It is not the best safeguard for the current mechanism: DNF stores RPM transaction history that differs from filesystem modification-time logs.

D:

Prefer tracked signed RPM packages and record the installed release in system inventory. That control is best suited to a separate scenario: A test server needs the packaged `httpd` service but an administrator tries to install files by manual copying. It is not the best safeguard for the current mechanism: DNF stores RPM transaction history that differs from filesystem modification-time logs.

Question 289

Lab exercise on an isolated enterprise lab VM: A training script appends to a log whose path includes spaces and breaks because the variable is expanded unquoted. Which proposed RHEL 10 command or configuration action most directly achieves the required lab state?

  1. Use `printf '%s\n' "$message" >> "$log_path"` with a quoted destination variable.
  2. Use `first_command && second_command` when the second action must depend on the first succeeding.
  3. Use `mkdir -p /tmp/lab-backups || exit 1` before the subsequent archive command.
  4. Use `for path in /tmp/lab-tree/*; do [ -d "$path" ] || continue; printf '%s\n' "$path"; done`.

Explanation

Correct Answer

A:

Use `printf '%s\n' "$message" >> "$log_path"` with a quoted destination variable. This directly addresses the lab target: A training script appends to a log whose path includes spaces and breaks because the variable is expanded unquoted. The underlying behavior is: Unquoted shell variable expansion performs splitting and pathname expansion. Verification: The file `/tmp/lab reports/status.txt` receives the line and no extra files are created.

Incorrect Answers

B:

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: Unquoted shell variable expansion performs splitting and pathname expansion.

C:

Use `mkdir -p /tmp/lab-backups || exit 1` before the subsequent archive command. This is an appropriate step for a DIFFERENT exercise, specifically: A backup script runs even when its destination directory cannot be created, silently losing its output. It does not address the required lab state, whose mechanism is: Unquoted shell variable expansion performs splitting and pathname expansion.

D:

Use `for path in /tmp/lab-tree/*; do [ -d "$path" ] || continue; printf '%s\n' "$path"; done`. This is an appropriate step for a DIFFERENT exercise, specifically: A daily job must print only directories under a sample tree but currently loops through both files and directories. It does not address the required lab state, whose mechanism is: Unquoted shell variable expansion performs splitting and pathname expansion.

Question 290

In a hands-on RHCSA practice VM, the assigned outcome was: A training script appends to a log whose path includes spaces and breaks because the variable is expanded unquoted. What specific verification would demonstrate the target state?

  1. The script runs under a restricted environment and resolves required binaries.
  2. The file `/tmp/lab reports/status.txt` receives the line and no extra files are created.
  3. A simulated directory creation failure stops the script before any misleading success message.
  4. The resulting filename contains the current date digits and `tar -tzf` lists expected members.

Explanation

Correct Answer

B:

The file `/tmp/lab reports/status.txt` receives the line and no extra files are created. This check confirms the expected effect of: Use `printf '%s\n' "$message" >> "$log_path"` with a quoted destination variable. It distinguishes the intended result from the original failure mechanism: Unquoted shell variable expansion performs splitting and pathname expansion.

Incorrect Answers

A:

The script runs under a restricted environment and resolves required binaries. That verifies a separate lab task: A cron-invoked script prints `command not found` for a utility present in the interactive user's shell. It does not validate the implementation required here: Use `printf '%s\n' "$message" >> "$log_path"` with a quoted destination variable.

C:

A simulated directory creation failure stops the script before any misleading success message. That verifies a separate lab task: A backup script runs even when its destination directory cannot be created, silently losing its output. It does not validate the implementation required here: Use `printf '%s\n' "$message" >> "$log_path"` with a quoted destination variable.

D:

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 `printf '%s\n' "$message" >> "$log_path"` with a quoted destination variable.