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 40

Question 390

You have attempted this task on a disposable RHEL10 training node: An operator opens an authorized lab TCP port using only the runtime firewalld command, so access disappears after reboot. Which command output or observation best confirms its success?

  1. An authorized client connects and the correct zone reports the service or port.
  2. The profile reflects changed settings and existing remote management remains recoverable.
  3. The port remains listed in permanent configuration and works after a controlled reboot.
  4. `hostnamectl` and `hostname -f` show the intended identity after the name is resolvable and after reboot.

Explanation

Correct Answer

C:

The port remains listed in permanent configuration and works after a controlled reboot. This check confirms the expected effect of: After testing, use `firewall-cmd --zone=public --add-port=8443/tcp --permanent && firewall-cmd --reload` to record the intended persistent rule. It distinguishes the intended result from the original failure mechanism: Firewalld runtime rules and permanent rules are separate states.

Incorrect Answers

A:

An authorized client connects and the correct zone reports the service or port. That verifies a separate lab task: A firewall rule was added to the default zone, but the application's NIC is assigned to a different active zone. It does not validate the implementation required here: After testing, use `firewall-cmd --zone=public --add-port=8443/tcp --permanent && firewall-cmd --reload` to record the intended persistent rule.

B:

The profile reflects changed settings and existing remote management remains recoverable. That verifies a separate lab task: A new network connection profile was edited but the operator attempts an unsafe remote restart of all networking services. It does not validate the implementation required here: After testing, use `firewall-cmd --zone=public --add-port=8443/tcp --permanent && firewall-cmd --reload` to record the intended persistent rule.

D:

`hostnamectl` and `hostname -f` show the intended identity after the name is resolvable and after reboot. That verifies a separate lab task: A hostname change is applied only with the `hostname` runtime command and resets after restart. It does not validate the implementation required here: After testing, use `firewall-cmd --zone=public --add-port=8443/tcp --permanent && firewall-cmd --reload` to record the intended persistent rule.

Question 391

Troubleshoot the following RHEL 10 lab situation: An operator opens an authorized lab TCP port using only the runtime firewalld command, so access disappears after reboot. Identify the key Linux mechanism behind the issue.

  1. Firewall policy is evaluated in the context of the active interface or source zone, not an assumed default.
  2. Runtime hostname assignment may not update the persistent static hostname.
  3. Firewalld rules are zone-specific and require persistence for reboot safety.
  4. Firewalld runtime rules and permanent rules are separate states.

Explanation

Correct Answer

D:

Firewalld runtime rules and permanent rules are separate states. This explains the task's initial state: An operator opens an authorized lab TCP port using only the runtime firewalld command, so access disappears after reboot. The supported lab action is: After testing, use `firewall-cmd --zone=public --add-port=8443/tcp --permanent && firewall-cmd --reload` to record the intended persistent rule.

Incorrect Answers

A:

Firewall policy is evaluated in the context of the active interface or source zone, not an assumed default. This mechanism applies to another scenario: A firewall rule was added to the default zone, but the application's NIC is assigned to a different active zone. The given lab state instead requires the more specific cause in the correct choice.

B:

Runtime hostname assignment may not update the persistent static hostname. This mechanism applies to another scenario: A hostname change is applied only with the `hostname` runtime command and resets after restart. The given lab state instead requires the more specific cause in the correct choice.

C:

Firewalld rules are zone-specific and require persistence for reboot safety. This mechanism applies to another scenario: A service listens on port 8443 but clients are blocked by the active public firewalld zone. The given lab state instead requires the more specific cause in the correct choice.

Question 392

Following lab verification, document the preventive or persistence-oriented procedure for: An operator opens an authorized lab TCP port using only the runtime firewalld command, so access disappears after reboot. Which practice is most suitable?

  1. Review both runtime and permanent zone rules before closing firewall changes.
  2. Capture zone-to-interface bindings when deploying network services.
  3. Record temporary host overrides and remove stale entries when DNS becomes authoritative.
  4. Confirm unit enablement, listener, zone and end-to-end client response together.

Explanation

Correct Answer

A:

Review both runtime and permanent zone rules before closing firewall changes. This guards against recurrence of: Firewalld runtime rules and permanent rules are separate states. Confirm the lab's final state by: The port remains listed in permanent configuration and works after a controlled reboot.

Incorrect Answers

B:

Capture zone-to-interface bindings when deploying network services. That control is best suited to a separate scenario: A firewall rule was added to the default zone, but the application's NIC is assigned to a different active zone. It is not the best safeguard for the current mechanism: Firewalld runtime rules and permanent rules are separate states.

C:

Record temporary host overrides and remove stale entries when DNS becomes authoritative. That control is best suited to a separate scenario: A training host must resolve one intentionally private name without querying DNS while building a disconnected lab. It is not the best safeguard for the current mechanism: Firewalld runtime rules and permanent rules are separate states.

D:

Confirm unit enablement, listener, zone and end-to-end client response together. That control is best suited to a separate scenario: A web service must start after every reboot, but `ss -tln` shows its listener only after manual execution. It is not the best safeguard for the current mechanism: Firewalld runtime rules and permanent rules are separate states.

Question 393

On an offline training clone, perform the following practical task: A user account has a misspelled login name but should keep its existing UID and home ownership. Which action should be carried out after confirming the lab prerequisites?

  1. Start a new login session or use `newgrp analysts` under approved conditions and verify with `id`.
  2. Use the interactive `passwd trainee1` tool with a protected channel and appropriate permission.
  3. Use `usermod -l correctedname oldname` and separately migrate home path if required after ensuring no active sessions.
  4. Repair the file through `visudo` or `visudo -f /etc/sudoers.d/<file>` from an authorized recovery session.

Explanation

Correct Answer

C:

Use `usermod -l correctedname oldname` and separately migrate home path if required after ensuring no active sessions. This directly addresses the lab target: A user account has a misspelled login name but should keep its existing UID and home ownership. The underlying behavior is: Renaming a login does not automatically guarantee home directory renaming in every workflow. Verification: `id correctedname` shows the original UID and the intended home location is valid.

Incorrect Answers

A:

Start a new login session or use `newgrp analysts` under approved conditions and verify with `id`. This is an appropriate step for a DIFFERENT exercise, specifically: A Unix access test fails because a group was added in `/etc/group`, but a long-running user session still reports an old group set. It does not address the required lab state, whose mechanism is: Renaming a login does not automatically guarantee home directory renaming in every workflow.

B:

Use the interactive `passwd trainee1` tool with a protected channel and appropriate permission. This is an appropriate step for a DIFFERENT exercise, specifically: A training account needs its password reset by an authorized administrator without printing the new secret in a shell command. It does not address the required lab state, whose mechanism is: Renaming a login does not automatically guarantee home directory renaming in every workflow.

D:

Repair the file through `visudo` or `visudo -f /etc/sudoers.d/<file>` from an authorized recovery session. This is an appropriate step for a DIFFERENT exercise, specifically: An operator edits `/etc/sudoers` using an ordinary editor and introduces invalid syntax, breaking privilege escalation. It does not address the required lab state, whose mechanism is: Renaming a login does not automatically guarantee home directory renaming in every workflow.

Question 394

The lab examiner asks for evidence after this assignment: A user account has a misspelled login name but should keep its existing UID and home ownership. What is the decisive verification step?

  1. `visudo -c` reports syntax OK and approved sudo operations work.
  2. `getent passwd trainee1` ends with `/bin/bash` and an authorized test session starts.
  3. `id trainee1` no longer includes `analysts`, while the primary GID remains unchanged.
  4. `id correctedname` shows the original UID and the intended home location is valid.

Explanation

Correct Answer

D:

`id correctedname` shows the original UID and the intended home location is valid. This check confirms the expected effect of: Use `usermod -l correctedname oldname` and separately migrate home path if required after ensuring no active sessions. It distinguishes the intended result from the original failure mechanism: Renaming a login does not automatically guarantee home directory renaming in every workflow.

Incorrect Answers

A:

`visudo -c` reports syntax OK and approved sudo operations work. That verifies a separate lab task: An operator edits `/etc/sudoers` using an ordinary editor and introduces invalid syntax, breaking privilege escalation. It does not validate the implementation required here: Use `usermod -l correctedname oldname` and separately migrate home path if required after ensuring no active sessions.

B:

`getent passwd trainee1` ends with `/bin/bash` and an authorized test session starts. That verifies a separate lab task: A lab user was mistakenly assigned `/bin/false` as login shell and cannot open an authorized interactive session. It does not validate the implementation required here: Use `usermod -l correctedname oldname` and separately migrate home path if required after ensuring no active sessions.

C:

`id trainee1` no longer includes `analysts`, while the primary GID remains unchanged. That verifies a separate lab task: A trainee is no longer authorized for the `analysts` supplemental group, but should retain their primary group. It does not validate the implementation required here: Use `usermod -l correctedname oldname` and separately migrate home path if required after ensuring no active sessions.

Question 395

A training host has this situation: A user account has a misspelled login name but should keep its existing UID and home ownership. Which system behavior best explains the original failure or risk?

  1. Renaming a login does not automatically guarantee home directory renaming in every workflow.
  2. Deleting a local account and its home is destructive and distinct from locking it.
  3. Linux group creation establishes a named group but does not automatically add users or set file ownership.
  4. Creating an account without the requested home or shell options can leave it unusable for interactive work.

Explanation

Correct Answer

A:

Renaming a login does not automatically guarantee home directory renaming in every workflow. This explains the task's initial state: A user account has a misspelled login name but should keep its existing UID and home ownership. The supported lab action is: Use `usermod -l correctedname oldname` and separately migrate home path if required after ensuring no active sessions.

Incorrect Answers

B:

Deleting a local account and its home is destructive and distinct from locking it. This mechanism applies to another scenario: An account remains in `/etc/passwd` after project completion and the lab task explicitly authorizes permanent removal with its home. The given lab state instead requires the more specific cause in the correct choice.

C:

Linux group creation establishes a named group but does not automatically add users or set file ownership. This mechanism applies to another scenario: A project team needs a new local group `analysts` to own shared reports. The given lab state instead requires the more specific cause in the correct choice.

D:

Creating an account without the requested home or shell options can leave it unusable for interactive work. This mechanism applies to another scenario: A new lab operator needs a local account with a home directory and normal login shell. The given lab state instead requires the more specific cause in the correct choice.

Question 396

A student has implemented the following configuration: A user account has a misspelled login name but should keep its existing UID and home ownership. What repeatable control best reduces regressions or unsafe changes?

  1. Reauthenticate or restart dependent services after membership changes.
  2. Plan login, home, file ownership and scheduled-task references as a single account migration.
  3. Always validate sudoers changes with `visudo -c` before ending the recovery session.
  4. Apply secure home defaults and review them at account creation.

Explanation

Correct Answer

B:

Plan login, home, file ownership and scheduled-task references as a single account migration. This guards against recurrence of: Renaming a login does not automatically guarantee home directory renaming in every workflow. Confirm the lab's final state by: `id correctedname` shows the original UID and the intended home location is valid.

Incorrect Answers

A:

Reauthenticate or restart dependent services after membership changes. That control is best suited to a separate scenario: A Unix access test fails because a group was added in `/etc/group`, but a long-running user session still reports an old group set. It is not the best safeguard for the current mechanism: Renaming a login does not automatically guarantee home directory renaming in every workflow.

C:

Always validate sudoers changes with `visudo -c` before ending the recovery session. That control is best suited to a separate scenario: An operator edits `/etc/sudoers` using an ordinary editor and introduces invalid syntax, breaking privilege escalation. It is not the best safeguard for the current mechanism: Renaming a login does not automatically guarantee home directory renaming in every workflow.

D:

Apply secure home defaults and review them at account creation. That control is best suited to a separate scenario: A new user must have a private home directory rather than inherited group-read access. It is not the best safeguard for the current mechanism: Renaming a login does not automatically guarantee home directory renaming in every workflow.

Question 397

You are responsible for a local virtualization classroom. The required hands-on outcome is: A protected lab directory was copied from `/home` and now has inappropriate user-home SELinux contexts under `/var/www/html`. Select the most appropriate implementation step.

  1. Use `ls -Z`, `matchpathcon` and AVC logs to identify labeling, then correct the relevant persistent context mapping and run `restorecon`.
  2. Inspect `ausearch -m AVC -ts recent` and `ls -Z` or `journalctl` before changing SELinux mode.
  3. Set `SELINUX=enforcing` in the reviewed configuration file and ensure the runtime mode is enforcing; perform a controlled reboot.
  4. Use `restorecon -Rv /var/www/html/lab` after verifying the default web-content context mapping.

Explanation

Correct Answer

D:

Use `restorecon -Rv /var/www/html/lab` after verifying the default web-content context mapping. This directly addresses the lab target: A protected lab directory was copied from `/home` and now has inappropriate user-home SELinux contexts under `/var/www/html`. The underlying behavior is: Copy operations may preserve source SELinux labels that are incorrect for the destination path. Verification: `ls -Z` shows suitable web content labels and Apache accesses the files under the approved mode.

Incorrect Answers

A:

Use `ls -Z`, `matchpathcon` and AVC logs to identify labeling, then correct the relevant persistent context mapping and run `restorecon`. This is an appropriate step for a DIFFERENT exercise, specifically: A custom service path is mislabeled and a technician repeatedly applies `chmod 777` without resolving access denials. It does not address the required lab state, whose mechanism is: Copy operations may preserve source SELinux labels that are incorrect for the destination path.

B:

Inspect `ausearch -m AVC -ts recent` and `ls -Z` or `journalctl` before changing SELinux mode. This is an appropriate step for a DIFFERENT exercise, specifically: A lab administrator disables SELinux to stop web errors without checking whether a label denial caused them. It does not address the required lab state, whose mechanism is: Copy operations may preserve source SELinux labels that are incorrect for the destination path.

C:

Set `SELINUX=enforcing` in the reviewed configuration file and ensure the runtime mode is enforcing; perform a controlled reboot. This is an appropriate step for a DIFFERENT exercise, specifically: A training VM must boot with SELinux enforcing but `/etc/selinux/config` is set to permissive. It does not address the required lab state, whose mechanism is: Copy operations may preserve source SELinux labels that are incorrect for the destination path.

Question 398

After a lab configuration change, verify: A protected lab directory was copied from `/home` and now has inappropriate user-home SELinux contexts under `/var/www/html`. Which result most directly proves the desired system state?

  1. `ls -Z` shows suitable web content labels and Apache accesses the files under the approved mode.
  2. The Boolean remains on after reboot and `getsebool` confirms the value.
  3. `firewall-cmd --permanent --zone=public --list-services` includes HTTPS and the state survives reboot.
  4. `getenforce` reports Enforcing after reboot and `sestatus` confirms the configured mode.

Explanation

Correct Answer

A:

`ls -Z` shows suitable web content labels and Apache accesses the files under the approved mode. This check confirms the expected effect of: Use `restorecon -Rv /var/www/html/lab` after verifying the default web-content context mapping. It distinguishes the intended result from the original failure mechanism: Copy operations may preserve source SELinux labels that are incorrect for the destination path.

Incorrect Answers

B:

The Boolean remains on after reboot and `getsebool` confirms the value. That verifies a separate lab task: A trainee enables an SELinux Boolean with `setsebool` but loses the change after restart. It does not validate the implementation required here: Use `restorecon -Rv /var/www/html/lab` after verifying the default web-content context mapping.

C:

`firewall-cmd --permanent --zone=public --list-services` includes HTTPS and the state survives reboot. That verifies a separate lab task: A firewall change is tested using only a runtime rule, but an administrator assumes it will be present after restart. It does not validate the implementation required here: Use `restorecon -Rv /var/www/html/lab` after verifying the default web-content context mapping.

D:

`getenforce` reports Enforcing after reboot and `sestatus` confirms the configured mode. That verifies a separate lab task: A training VM must boot with SELinux enforcing but `/etc/selinux/config` is set to permissive. It does not validate the implementation required here: Use `restorecon -Rv /var/www/html/lab` after verifying the default web-content context mapping.

Question 399

In an EX200-style practice lab, this condition exists: A protected lab directory was copied from `/home` and now has inappropriate user-home SELinux contexts under `/var/www/html`. Which explanation correctly identifies the underlying issue?

  1. Port type modifications and adding new mappings are different policy operations.
  2. Copy operations may preserve source SELinux labels that are incorrect for the destination path.
  3. SELinux port types control service bind permission independently of firewalld.
  4. Runtime and permanent firewalld configurations are separate.

Explanation

Correct Answer

B:

Copy operations may preserve source SELinux labels that are incorrect for the destination path. This explains the task's initial state: A protected lab directory was copied from `/home` and now has inappropriate user-home SELinux contexts under `/var/www/html`. The supported lab action is: Use `restorecon -Rv /var/www/html/lab` after verifying the default web-content context mapping.

Incorrect Answers

A:

Port type modifications and adding new mappings are different policy operations. This mechanism applies to another scenario: An existing TCP port is assigned to the wrong SELinux port type and `semanage port -a` fails because the port already exists. The given lab state instead requires the more specific cause in the correct choice.

C:

SELinux port types control service bind permission independently of firewalld. This mechanism applies to another scenario: A test web daemon is configured to listen on TCP 8088 but SELinux blocks binding despite a matching firewall rule. The given lab state instead requires the more specific cause in the correct choice.

D:

Runtime and permanent firewalld configurations are separate. This mechanism applies to another scenario: A firewall change is tested using only a runtime rule, but an administrator assumes it will be present after restart. The given lab state instead requires the more specific cause in the correct choice.

Question 400

After completing this practical task on a local virtualization classroom: A protected lab directory was copied from `/home` and now has inappropriate user-home SELinux contexts under `/var/www/html`. Which operational safeguard helps keep the result correct and safe?

  1. Test positive and negative access after SSH authorization changes.
  2. Check existing assignments before modifying SELinux port labels.
  3. Reapply default file contexts after moving service data into standard labeled directories.
  4. Use persistent Boolean changes only when justified and test their effects after restart.

Explanation

Correct Answer

C:

Reapply default file contexts after moving service data into standard labeled directories. This guards against recurrence of: Copy operations may preserve source SELinux labels that are incorrect for the destination path. Confirm the lab's final state by: `ls -Z` shows suitable web content labels and Apache accesses the files under the approved mode.

Incorrect Answers

A:

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: Copy operations may preserve source SELinux labels that are incorrect for the destination path.

B:

Check existing assignments before modifying SELinux port labels. That control is best suited to a separate scenario: An existing TCP port is assigned to the wrong SELinux port type and `semanage port -a` fails because the port already exists. It is not the best safeguard for the current mechanism: Copy operations may preserve source SELinux labels that are incorrect for the destination path.

D:

Use persistent Boolean changes only when justified and test their effects after restart. That control is best suited to a separate scenario: A trainee enables an SELinux Boolean with `setsebool` but loses the change after restart. It is not the best safeguard for the current mechanism: Copy operations may preserve source SELinux labels that are incorrect for the destination path.