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 12

Question 110

After a lab configuration change, verify: An IPv6-only lab application cannot listen because the host connection has no configured static IPv6 address. Which result most directly proves the desired system state?

  1. `ip -6 addr show` lists the address and a local IPv6 connectivity test succeeds.
  2. `hostnamectl` and `hostname -f` show the intended identity after the name is resolvable and after reboot.
  3. `firewall-cmd --zone=public --list-services` contains SSH and firewalld remains running and enabled.
  4. A test from the management subnet succeeds and an unauthorized source is denied.

Explanation

Correct Answer

A:

`ip -6 addr show` lists the address and a local IPv6 connectivity test succeeds. This check confirms the expected effect of: Use `nmcli con mod lablan ipv6.method manual ipv6.addresses 2001:db8:1::10/64` with the documented lab gateway if required. It distinguishes the intended result from the original failure mechanism: IPv4 and IPv6 address families require their own connection settings.

Incorrect Answers

B:

`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: Use `nmcli con mod lablan ipv6.method manual ipv6.addresses 2001:db8:1::10/64` with the documented lab gateway if required.

C:

`firewall-cmd --zone=public --list-services` contains SSH and firewalld remains running and enabled. That verifies a separate lab task: A firewall service was accidentally removed from the active zone, and an operator proposes disabling firewalld entirely. It does not validate the implementation required here: Use `nmcli con mod lablan ipv6.method manual ipv6.addresses 2001:db8:1::10/64` with the documented lab gateway if required.

D:

A test from the management subnet succeeds and an unauthorized source is denied. That verifies a separate lab task: The server needs HTTPS only from one lab management subnet instead of from every source in the public zone. It does not validate the implementation required here: Use `nmcli con mod lablan ipv6.method manual ipv6.addresses 2001:db8:1::10/64` with the documented lab gateway if required.

Question 111

In an EX200-style practice lab, this condition exists: An IPv6-only lab application cannot listen because the host connection has no configured static IPv6 address. Which explanation correctly identifies the underlying issue?

  1. Firewalld rules are zone-specific and require persistence for reboot safety.
  2. IPv4 and IPv6 address families require their own connection settings.
  3. Router advertisements can populate routes independently of static interface addresses.
  4. NetworkManager applies connection profile changes; restarting the entire stack is rarely necessary.

Explanation

Correct Answer

B:

IPv4 and IPv6 address families require their own connection settings. This explains the task's initial state: An IPv6-only lab application cannot listen because the host connection has no configured static IPv6 address. The supported lab action is: Use `nmcli con mod lablan ipv6.method manual ipv6.addresses 2001:db8:1::10/64` with the documented lab gateway if required.

Incorrect Answers

A:

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.

C:

Router advertisements can populate routes independently of static interface addresses. This mechanism applies to another scenario: An IPv6 connection receives a default route from router advertisements when policy requires the test host to use only a specified local IPv6 subnet. The given lab state instead requires the more specific cause in the correct choice.

D:

NetworkManager applies connection profile changes; restarting the entire stack is rarely necessary. This mechanism applies to another scenario: A new network connection profile was edited but the operator attempts an unsafe remote restart of all networking services. The given lab state instead requires the more specific cause in the correct choice.

Question 112

After completing this practical task on a local virtualization classroom: An IPv6-only lab application cannot listen because the host connection has no configured static IPv6 address. Which operational safeguard helps keep the result correct and safe?

  1. Confirm exact profile/interface names and console recovery before editing remote IP settings.
  2. Use minimum required allowed services while retaining firewalld enforcement.
  3. Verify both address families and DNS behavior after connection changes.
  4. Record temporary host overrides and remove stale entries when DNS becomes authoritative.

Explanation

Correct Answer

C:

Verify both address families and DNS behavior after connection changes. This guards against recurrence of: IPv4 and IPv6 address families require their own connection settings. Confirm the lab's final state by: `ip -6 addr show` lists the address and a local IPv6 connectivity test succeeds.

Incorrect Answers

A:

Confirm exact profile/interface names and console recovery before editing remote IP settings. That control is best suited to a separate scenario: A training host has DHCP IPv4 but requires a fixed address `192.0.2.50/24` and gateway `192.0.2.1` for a private lab subnet. It is not the best safeguard for the current mechanism: IPv4 and IPv6 address families require their own connection settings.

B:

Use minimum required allowed services while retaining firewalld enforcement. That control is best suited to a separate scenario: A firewall service was accidentally removed from the active zone, and an operator proposes disabling firewalld entirely. It is not the best safeguard for the current mechanism: IPv4 and IPv6 address families require their own connection settings.

D:

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: IPv4 and IPv6 address families require their own connection settings.

Question 113

Lab exercise on a nonproduction Linux administration sandbox: A training account needs its password reset by an authorized administrator without printing the new secret in a shell command. Which proposed RHEL 10 command or configuration action most directly achieves the required lab state?

  1. Use the interactive `passwd trainee1` tool with a protected channel and appropriate permission.
  2. After archival and confirmation of the disposable identity, use `userdel -r trainee_retired` while preserving any required external data.
  3. Create a validated rule using `visudo -f /etc/sudoers.d/lab-restart` for the exact command and user/group.
  4. Remove the unintended supplementary `wheel` membership with `gpasswd -d contractor1 wheel` after verifying access.

Explanation

Correct Answer

A:

Use the interactive `passwd trainee1` tool with a protected channel and appropriate permission. This directly addresses the lab target: A training account needs its password reset by an authorized administrator without printing the new secret in a shell command. The underlying behavior is: Interactive credential handling avoids shell history and process arguments that can expose passwords. Verification: The password-change status succeeds and the user can authenticate with the approved new secret.

Incorrect Answers

B:

After archival and confirmation of the disposable identity, use `userdel -r trainee_retired` while preserving any required external data. This is an appropriate step for a DIFFERENT exercise, specifically: An account remains in `/etc/passwd` after project completion and the lab task explicitly authorizes permanent removal with its home. It does not address the required lab state, whose mechanism is: Interactive credential handling avoids shell history and process arguments that can expose passwords.

C:

Create a validated rule using `visudo -f /etc/sudoers.d/lab-restart` for the exact command and user/group. This is an appropriate step for a DIFFERENT exercise, specifically: An admin must grant a named technician narrowly scoped restart rights for a lab service without adding them to full wheel privileges. It does not address the required lab state, whose mechanism is: Interactive credential handling avoids shell history and process arguments that can expose passwords.

D:

Remove the unintended supplementary `wheel` membership with `gpasswd -d contractor1 wheel` after verifying access. This is an appropriate step for a DIFFERENT exercise, specifically: A contractor has been added to `wheel` by mistake and can run arbitrary privileged commands. It does not address the required lab state, whose mechanism is: Interactive credential handling avoids shell history and process arguments that can expose passwords.

Question 114

In a hands-on RHCSA practice VM, the assigned outcome was: A training account needs its password reset by an authorized administrator without printing the new secret in a shell command. What specific verification would demonstrate the target state?

  1. `id trainee1` no longer includes `analysts`, while the primary GID remains unchanged.
  2. The password-change status succeeds and the user can authenticate with the approved new secret.
  3. `getent passwd trainee1` shows the expected shell and `/home/trainee1` exists.
  4. `sudo -l -U technician` shows the approved command only; unrelated root commands remain denied.

Explanation

Correct Answer

B:

The password-change status succeeds and the user can authenticate with the approved new secret. This check confirms the expected effect of: Use the interactive `passwd trainee1` tool with a protected channel and appropriate permission. It distinguishes the intended result from the original failure mechanism: Interactive credential handling avoids shell history and process arguments that can expose passwords.

Incorrect Answers

A:

`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 the interactive `passwd trainee1` tool with a protected channel and appropriate permission.

C:

`getent passwd trainee1` shows the expected shell and `/home/trainee1` exists. That verifies a separate lab task: A new lab operator needs a local account with a home directory and normal login shell. It does not validate the implementation required here: Use the interactive `passwd trainee1` tool with a protected channel and appropriate permission.

D:

`sudo -l -U technician` shows the approved command only; unrelated root commands remain denied. That verifies a separate lab task: An admin must grant a named technician narrowly scoped restart rights for a lab service without adding them to full wheel privileges. It does not validate the implementation required here: Use the interactive `passwd trainee1` tool with a protected channel and appropriate permission.

Question 115

A trainee is diagnosing: A training account needs its password reset by an authorized administrator without printing the new secret in a shell command. Which root cause should they recognize before changing the system?

  1. The shell field controls the program started at login and can intentionally block interactive access.
  2. Sudoers controls command-specific privilege escalation and its syntax is security-sensitive.
  3. Interactive credential handling avoids shell history and process arguments that can expose passwords.
  4. Deleting a local account and its home is destructive and distinct from locking it.

Explanation

Correct Answer

C:

Interactive credential handling avoids shell history and process arguments that can expose passwords. This explains the task's initial state: A training account needs its password reset by an authorized administrator without printing the new secret in a shell command. The supported lab action is: Use the interactive `passwd trainee1` tool with a protected channel and appropriate permission.

Incorrect Answers

A:

The shell field controls the program started at login and can intentionally block interactive access. This mechanism applies to another scenario: A lab user was mistakenly assigned `/bin/false` as login shell and cannot open an authorized interactive session. The given lab state instead requires the more specific cause in the correct choice.

B:

Sudoers controls command-specific privilege escalation and its syntax is security-sensitive. This mechanism applies to another scenario: An admin must grant a named technician narrowly scoped restart rights for a lab service without adding them to full wheel privileges. The given lab state instead requires the more specific cause in the correct choice.

D:

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.

Question 116

For this Linux administration lab: A training account needs its password reset by an authorized administrator without printing the new secret in a shell command. Which safety and lifecycle check best prevents the same problem returning?

  1. Review approved shells during interactive account provisioning.
  2. Review file ownership and service permissions after primary GID changes.
  3. Revalidate group grants during user role changes and offboarding.
  4. Use approved secret distribution and require rotation at initial login when appropriate.

Explanation

Correct Answer

D:

Use approved secret distribution and require rotation at initial login when appropriate. This guards against recurrence of: Interactive credential handling avoids shell history and process arguments that can expose passwords. Confirm the lab's final state by: The password-change status succeeds and the user can authenticate with the approved new secret.

Incorrect Answers

A:

Review approved shells during interactive account provisioning. That control is best suited to a separate scenario: A lab user was mistakenly assigned `/bin/false` as login shell and cannot open an authorized interactive session. It is not the best safeguard for the current mechanism: Interactive credential handling avoids shell history and process arguments that can expose passwords.

B:

Review file ownership and service permissions after primary GID changes. That control is best suited to a separate scenario: A team requires a default primary group different from the user-private group created with the account. It is not the best safeguard for the current mechanism: Interactive credential handling avoids shell history and process arguments that can expose passwords.

C:

Revalidate group grants during user role changes and offboarding. That control is best suited to a separate scenario: A trainee is no longer authorized for the `analysts` supplemental group, but should retain their primary group. It is not the best safeguard for the current mechanism: Interactive credential handling avoids shell history and process arguments that can expose passwords.

Question 117

A student working on a test RHEL10 instance receives this assignment: A web service moved to `/srv/custom-web` encounters SELinux denials because content copied from a home directory carries the wrong label. Which answer gives the correct practical approach?

  1. Use `setenforce 0` only as a time-bounded authorized lab diagnostic, inspect `getenforce`, and restore enforcing with `setenforce 1`.
  2. Use `semanage fcontext -a -t httpd_sys_content_t '/srv/custom-web(/.*)?'` then `restorecon -Rv /srv/custom-web` after verifying appropriate policy.
  3. Set `umask 077` in the sensitive workflow before creating the secret fixture.
  4. Use `sestatus` to compare current and configured modes, then follow approved immediate `setenforce` and reboot procedures as needed.

Explanation

Correct Answer

B:

Use `semanage fcontext -a -t httpd_sys_content_t '/srv/custom-web(/.*)?'` then `restorecon -Rv /srv/custom-web` after verifying appropriate policy. This directly addresses the lab target: A web service moved to `/srv/custom-web` encounters SELinux denials because content copied from a home directory carries the wrong label. The underlying behavior is: DAC permissions can be correct while SELinux type enforcement still denies access. Verification: `ls -Z /srv/custom-web/index.html` reports the expected content type and the service reads the file.

Incorrect Answers

A:

Use `setenforce 0` only as a time-bounded authorized lab diagnostic, inspect `getenforce`, and restore enforcing with `setenforce 1`. This is an appropriate step for a DIFFERENT exercise, specifically: An administrator temporarily changes SELinux to permissive mode for diagnostics and believes it will remain so after reboot. It does not address the required lab state, whose mechanism is: DAC permissions can be correct while SELinux type enforcement still denies access.

C:

Set `umask 077` in the sensitive workflow before creating the secret fixture. This is an appropriate step for a DIFFERENT exercise, specifically: A shell session creates files with default modes exposing group-readable secrets to unrelated users. It does not address the required lab state, whose mechanism is: DAC permissions can be correct while SELinux type enforcement still denies access.

D:

Use `sestatus` to compare current and configured modes, then follow approved immediate `setenforce` and reboot procedures as needed. This is an appropriate step for a DIFFERENT exercise, specifically: An administrator changes SELinux policy mode in `/etc/selinux/config` but the runtime `getenforce` output remains unchanged until the next reboot. It does not address the required lab state, whose mechanism is: DAC permissions can be correct while SELinux type enforcement still denies access.

Question 118

You have attempted this task on a test RHEL10 instance: A web service moved to `/srv/custom-web` encounters SELinux denials because content copied from a home directory carries the wrong label. Which command output or observation best confirms its success?

  1. `stat -c '%a %U:%G'` displays the restricted mode and an unrelated user cannot modify it.
  2. An AVC entry identifies the source domain, target type and denied operation for the fixture.
  3. `ls -Z /srv/custom-web/index.html` reports the expected content type and the service reads the file.
  4. The target zone contains the rule, the intended client connects and unrelated sources remain denied if separately restricted.

Explanation

Correct Answer

C:

`ls -Z /srv/custom-web/index.html` reports the expected content type and the service reads the file. This check confirms the expected effect of: Use `semanage fcontext -a -t httpd_sys_content_t '/srv/custom-web(/.*)?'` then `restorecon -Rv /srv/custom-web` after verifying appropriate policy. It distinguishes the intended result from the original failure mechanism: DAC permissions can be correct while SELinux type enforcement still denies access.

Incorrect Answers

A:

`stat -c '%a %U:%G'` displays the restricted mode and an unrelated user cannot modify it. That verifies a separate lab task: A user accidentally gives write permission to everyone on an application's configuration file. It does not validate the implementation required here: Use `semanage fcontext -a -t httpd_sys_content_t '/srv/custom-web(/.*)?'` then `restorecon -Rv /srv/custom-web` after verifying appropriate policy.

B:

An AVC entry identifies the source domain, target type and denied operation for the fixture. That verifies a separate lab task: A lab administrator disables SELinux to stop web errors without checking whether a label denial caused them. It does not validate the implementation required here: Use `semanage fcontext -a -t httpd_sys_content_t '/srv/custom-web(/.*)?'` then `restorecon -Rv /srv/custom-web` after verifying appropriate policy.

D:

The target zone contains the rule, the intended client connects and unrelated sources remain denied if separately restricted. That verifies a separate lab task: An application uses a nonstandard TCP port and a student opens it in firewalld but forgets the active zone. It does not validate the implementation required here: Use `semanage fcontext -a -t httpd_sys_content_t '/srv/custom-web(/.*)?'` then `restorecon -Rv /srv/custom-web` after verifying appropriate policy.

Question 119

Troubleshoot the following RHEL 10 lab situation: A web service moved to `/srv/custom-web` encounters SELinux denials because content copied from a home directory carries the wrong label. Identify the key Linux mechanism behind the issue.

  1. SELinux port types control service bind permission independently of firewalld.
  2. `setenforce` changes runtime state while SELinux's configured boot mode is separate.
  3. Persistent SELinux policy mode comes from boot configuration, not just `setenforce`.
  4. DAC permissions can be correct while SELinux type enforcement still denies access.

Explanation

Correct Answer

D:

DAC permissions can be correct while SELinux type enforcement still denies access. This explains the task's initial state: A web service moved to `/srv/custom-web` encounters SELinux denials because content copied from a home directory carries the wrong label. The supported lab action is: Use `semanage fcontext -a -t httpd_sys_content_t '/srv/custom-web(/.*)?'` then `restorecon -Rv /srv/custom-web` after verifying appropriate policy.

Incorrect Answers

A:

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.

B:

`setenforce` changes runtime state while SELinux's configured boot mode is separate. This mechanism applies to another scenario: An administrator temporarily changes SELinux to permissive mode for diagnostics and believes it will remain so after reboot. The given lab state instead requires the more specific cause in the correct choice.

C:

Persistent SELinux policy mode comes from boot configuration, not just `setenforce`. This mechanism applies to another scenario: A training VM must boot with SELinux enforcing but `/etc/selinux/config` is set to permissive. The given lab state instead requires the more specific cause in the correct choice.

Question 120

Following lab verification, document the preventive or persistence-oriented procedure for: A web service moved to `/srv/custom-web` encounters SELinux denials because content copied from a home directory carries the wrong label. Which practice is most suitable?

  1. Persist custom path mapping in SELinux fcontext policy, not one-off `chcon` changes.
  2. Set a restrictive umask in service startup or trusted shell policy for secret handling.
  3. Audit filesystem permissions on configuration files after each deployment.
  4. Test positive and negative access after SSH authorization changes.

Explanation

Correct Answer

A:

Persist custom path mapping in SELinux fcontext policy, not one-off `chcon` changes. This guards against recurrence of: DAC permissions can be correct while SELinux type enforcement still denies access. Confirm the lab's final state by: `ls -Z /srv/custom-web/index.html` reports the expected content type and the service reads the file.

Incorrect Answers

B:

Set a restrictive umask in service startup or trusted shell policy for secret handling. That control is best suited to a separate scenario: A shell session creates files with default modes exposing group-readable secrets to unrelated users. It is not the best safeguard for the current mechanism: DAC permissions can be correct while SELinux type enforcement still denies access.

C:

Audit filesystem permissions on configuration files after each deployment. That control is best suited to a separate scenario: A user accidentally gives write permission to everyone on an application's configuration file. It is not the best safeguard for the current mechanism: DAC permissions can be correct while SELinux type enforcement still denies access.

D:

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: DAC permissions can be correct while SELinux type enforcement still denies access.