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 28

Question 270

After a lab configuration change, verify: A hostname change is applied only with the `hostname` runtime command and resets after restart. Which result most directly proves the desired system state?

  1. `hostnamectl` and `hostname -f` show the intended identity after the name is resolvable and after reboot.
  2. `ip -6 route` shows only the intended routes and a local subnet test succeeds.
  3. `nmcli -g IP4.ADDRESS,IP4.GATEWAY con show --active lablan` and `ip -4 addr` show the intended address and gateway.
  4. `nmcli -g connection.autoconnect connection show lablan` returns yes and `nmcli connection show --active` lists it after reboot.

Explanation

Correct Answer

A:

`hostnamectl` and `hostname -f` show the intended identity after the name is resolvable and after reboot. This check confirms the expected effect of: Use `hostnamectl set-hostname node150.lab` on the disposable host. It distinguishes the intended result from the original failure mechanism: Runtime hostname assignment may not update the persistent static hostname.

Incorrect Answers

B:

`ip -6 route` shows only the intended routes and a local subnet test succeeds. That verifies a separate lab task: An IPv6 connection receives a default route from router advertisements when policy requires the test host to use only a specified local IPv6 subnet. It does not validate the implementation required here: Use `hostnamectl set-hostname node150.lab` on the disposable host.

C:

`nmcli -g IP4.ADDRESS,IP4.GATEWAY con show --active lablan` and `ip -4 addr` show the intended address and gateway. That verifies a separate lab task: 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 does not validate the implementation required here: Use `hostnamectl set-hostname node150.lab` on the disposable host.

D:

`nmcli -g connection.autoconnect connection show lablan` returns yes and `nmcli connection show --active` lists it after reboot. That verifies a separate lab task: A NetworkManager profile is stored on disk but is not automatically activated after reboot. It does not validate the implementation required here: Use `hostnamectl set-hostname node150.lab` on the disposable host.

Question 271

In an EX200-style practice lab, this condition exists: A hostname change is applied only with the `hostname` runtime command and resets after restart. Which explanation correctly identifies the underlying issue?

  1. NetworkManager applies connection profile changes; restarting the entire stack is rarely necessary.
  2. Runtime hostname assignment may not update the persistent static hostname.
  3. Firewalld rules are zone-specific and require persistence for reboot safety.
  4. ICMP reachability to a gateway does not prove DNS or TCP application availability.

Explanation

Correct Answer

B:

Runtime hostname assignment may not update the persistent static hostname. This explains the task's initial state: A hostname change is applied only with the `hostname` runtime command and resets after restart. The supported lab action is: Use `hostnamectl set-hostname node150.lab` on the disposable host.

Incorrect Answers

A:

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.

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.

D:

ICMP reachability to a gateway does not prove DNS or TCP application availability. This mechanism applies to another scenario: The host can ping its gateway but an HTTPS connection fails; the operator wants to blame DNS without checking name resolution. The given lab state instead requires the more specific cause in the correct choice.

Question 272

After completing this practical task on a disposable RHEL10 training node: A hostname change is applied only with the `hostname` runtime command and resets after restart. Which operational safeguard helps keep the result correct and safe?

  1. Verify both address families and DNS behavior after connection changes.
  2. Use minimum required allowed services while retaining firewalld enforcement.
  3. Set the static hostname and confirm it is resolvable under the site's DNS plan.
  4. Check autoconnect and active link state on every server network profile.

Explanation

Correct Answer

C:

Set the static hostname and confirm it is resolvable under the site's DNS plan. This guards against recurrence of: Runtime hostname assignment may not update the persistent static hostname. Confirm the lab's final state by: `hostnamectl` and `hostname -f` show the intended identity after the name is resolvable and after reboot.

Incorrect Answers

A:

Verify both address families and DNS behavior after connection changes. That control is best suited to a separate scenario: An IPv6-only lab application cannot listen because the host connection has no configured static IPv6 address. It is not the best safeguard for the current mechanism: Runtime hostname assignment may not update the persistent static hostname.

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: Runtime hostname assignment may not update the persistent static hostname.

D:

Check autoconnect and active link state on every server network profile. That control is best suited to a separate scenario: A NetworkManager profile is stored on disk but is not automatically activated after reboot. It is not the best safeguard for the current mechanism: Runtime hostname assignment may not update the persistent static hostname.

Question 273

Lab exercise on an offline training clone: A user must join the `analysts` group without losing their existing supplementary groups. Which proposed RHEL 10 command or configuration action most directly achieves the required lab state?

  1. Use `usermod -aG analysts trainee1` and have the user start a new login session.
  2. Repair the file through `visudo` or `visudo -f /etc/sudoers.d/<file>` from an authorized recovery session.
  3. Use `usermod -L contractor1` and set an appropriate nonlogin shell or expiration according to the organization's access policy.
  4. Run `useradd -m -s /bin/bash trainee1` on the authorized disposable VM, then provision credentials securely.

Explanation

Correct Answer

A:

Use `usermod -aG analysts trainee1` and have the user start a new login session. This directly addresses the lab target: A user must join the `analysts` group without losing their existing supplementary groups. The underlying behavior is: Using `-G` without the append option can replace the user's supplementary group list. Verification: `id trainee1` includes `analysts` and the prior supplementary groups remain.

Incorrect Answers

B:

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: Using `-G` without the append option can replace the user's supplementary group list.

C:

Use `usermod -L contractor1` and set an appropriate nonlogin shell or expiration according to the organization's access policy. This is an appropriate step for a DIFFERENT exercise, specifically: A contractor account exists but should no longer permit interactive login after an engagement ends, while audit files must remain. It does not address the required lab state, whose mechanism is: Using `-G` without the append option can replace the user's supplementary group list.

D:

Run `useradd -m -s /bin/bash trainee1` on the authorized disposable VM, then provision credentials securely. This is an appropriate step for a DIFFERENT exercise, specifically: A new lab operator needs a local account with a home directory and normal login shell. It does not address the required lab state, whose mechanism is: Using `-G` without the append option can replace the user's supplementary group list.

Question 274

In a hands-on RHCSA practice VM, the assigned outcome was: A user must join the `analysts` group without losing their existing supplementary groups. What specific verification would demonstrate the target state?

  1. `chage -l contractor1` shows the intended account expiration date.
  2. `id trainee1` includes `analysts` and the prior supplementary groups remain.
  3. `visudo -c` reports syntax OK and approved sudo operations work.
  4. `id contractor1` excludes `wheel` and the account does not gain broad sudo rights.

Explanation

Correct Answer

B:

`id trainee1` includes `analysts` and the prior supplementary groups remain. This check confirms the expected effect of: Use `usermod -aG analysts trainee1` and have the user start a new login session. It distinguishes the intended result from the original failure mechanism: Using `-G` without the append option can replace the user's supplementary group list.

Incorrect Answers

A:

`chage -l contractor1` shows the intended account expiration date. That verifies a separate lab task: A short-term external account must stop being usable on a specified end date while its password policy remains unchanged. It does not validate the implementation required here: Use `usermod -aG analysts trainee1` and have the user start a new login session.

C:

`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 -aG analysts trainee1` and have the user start a new login session.

D:

`id contractor1` excludes `wheel` and the account does not gain broad sudo rights. That verifies a separate lab task: A contractor has been added to `wheel` by mistake and can run arbitrary privileged commands. It does not validate the implementation required here: Use `usermod -aG analysts trainee1` and have the user start a new login session.

Question 275

A trainee is diagnosing: A user must join the `analysts` group without losing their existing supplementary groups. Which root cause should they recognize before changing the system?

  1. Password expiration policy is separate from the last time a password was changed.
  2. Primary group and supplementary group settings have different semantics.
  3. Using `-G` without the append option can replace the user's supplementary group list.
  4. Service account identity and login capability should be explicitly configured.

Explanation

Correct Answer

C:

Using `-G` without the append option can replace the user's supplementary group list. This explains the task's initial state: A user must join the `analysts` group without losing their existing supplementary groups. The supported lab action is: Use `usermod -aG analysts trainee1` and have the user start a new login session.

Incorrect Answers

A:

Password expiration policy is separate from the last time a password was changed. This mechanism applies to another scenario: A temporary user's password must expire after 30 days, but a student assumes changing it once enforces the rule. The given lab state instead requires the more specific cause in the correct choice.

B:

Primary group and supplementary group settings have different semantics. This mechanism applies to another scenario: A team requires a default primary group different from the user-private group created with the account. The given lab state instead requires the more specific cause in the correct choice.

D:

Service account identity and login capability should be explicitly configured. This mechanism applies to another scenario: A service account must have a fixed UID and noninteractive shell for an isolated application, not a general human login. The given lab state instead requires the more specific cause in the correct choice.

Question 276

For this Linux administration lab: A user must join the `analysts` group without losing their existing supplementary groups. Which safety and lifecycle check best prevents the same problem returning?

  1. Review approved shells during interactive account provisioning.
  2. Review administrative group memberships on every role transfer.
  3. Use approved secret distribution and require rotation at initial login when appropriate.
  4. Audit membership before and after group changes and use `-aG` for additive grants.

Explanation

Correct Answer

D:

Audit membership before and after group changes and use `-aG` for additive grants. This guards against recurrence of: Using `-G` without the append option can replace the user's supplementary group list. Confirm the lab's final state by: `id trainee1` includes `analysts` and the prior supplementary groups remain.

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: Using `-G` without the append option can replace the user's supplementary group list.

B:

Review administrative group memberships on every role transfer. That control is best suited to a separate scenario: A contractor has been added to `wheel` by mistake and can run arbitrary privileged commands. It is not the best safeguard for the current mechanism: Using `-G` without the append option can replace the user's supplementary group list.

C:

Use approved secret distribution and require rotation at initial login when appropriate. That control is best suited to a separate scenario: A training account needs its password reset by an authorized administrator without printing the new secret in a shell command. It is not the best safeguard for the current mechanism: Using `-G` without the append option can replace the user's supplementary group list.

Question 277

A student working on a local virtualization classroom receives this assignment: An application hosted by Apache needs outbound database connections but SELinux policy denies them even with network routing functional. Which answer gives the correct practical approach?

  1. Restore `httpd_sys_content_t` for read-only content and narrowly set approved writable label on the upload subtree.
  2. Use `getsebool httpd_can_network_connect_db`; after verifying policy, set `setsebool -P httpd_can_network_connect_db on` where supported.
  3. After confirming it is safe and approved, use `semanage port -m -t http_port_t -p tcp 8088` for the existing mapping.
  4. Inspect `ausearch -m AVC -ts recent` and `ls -Z` or `journalctl` before changing SELinux mode.

Explanation

Correct Answer

B:

Use `getsebool httpd_can_network_connect_db`; after verifying policy, set `setsebool -P httpd_can_network_connect_db on` where supported. This directly addresses the lab target: An application hosted by Apache needs outbound database connections but SELinux policy denies them even with network routing functional. The underlying behavior is: SELinux Booleans can authorize specific service behavior without disabling the entire MAC policy. Verification: `getsebool` reports on after reboot and the documented DB connection test succeeds.

Incorrect Answers

A:

Restore `httpd_sys_content_t` for read-only content and narrowly set approved writable label on the upload subtree. This is an appropriate step for a DIFFERENT exercise, specifically: A web application's content directory is assigned `httpd_sys_rw_content_t` everywhere even though only a small upload path requires writes. It does not address the required lab state, whose mechanism is: SELinux Booleans can authorize specific service behavior without disabling the entire MAC policy.

C:

After confirming it is safe and approved, use `semanage port -m -t http_port_t -p tcp 8088` for the existing mapping. This is an appropriate step for a DIFFERENT exercise, specifically: An existing TCP port is assigned to the wrong SELinux port type and `semanage port -a` fails because the port already exists. It does not address the required lab state, whose mechanism is: SELinux Booleans can authorize specific service behavior without disabling the entire MAC policy.

D:

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

Question 278

You have attempted this task on a local virtualization classroom: An application hosted by Apache needs outbound database connections but SELinux policy denies them even with network routing functional. Which command output or observation best confirms its success?

  1. Key-based login succeeds while a controlled password-only attempt fails without locking out the authorized admin.
  2. A known private-key client logs in as the expected user while unauthorized keys fail.
  3. `getsebool` reports on after reboot and the documented DB connection test succeeds.
  4. `matchpathcon` and `ls -Z` agree after relabeling and a reboot.

Explanation

Correct Answer

C:

`getsebool` reports on after reboot and the documented DB connection test succeeds. This check confirms the expected effect of: Use `getsebool httpd_can_network_connect_db`; after verifying policy, set `setsebool -P httpd_can_network_connect_db on` where supported. It distinguishes the intended result from the original failure mechanism: SELinux Booleans can authorize specific service behavior without disabling the entire MAC policy.

Incorrect Answers

A:

Key-based login succeeds while a controlled password-only attempt fails without locking out the authorized admin. That verifies a separate lab task: A lab SSH account still accepts password-only access while the approved policy requires authorized public-key authentication. It does not validate the implementation required here: Use `getsebool httpd_can_network_connect_db`; after verifying policy, set `setsebool -P httpd_can_network_connect_db on` where supported.

B:

A known private-key client logs in as the expected user while unauthorized keys fail. That verifies a separate lab task: A server's `sshd` service is enabled but remote login fails because host key authentication was never established for the test user. It does not validate the implementation required here: Use `getsebool httpd_can_network_connect_db`; after verifying policy, set `setsebool -P httpd_can_network_connect_db on` where supported.

D:

`matchpathcon` and `ls -Z` agree after relabeling and a reboot. That verifies a separate lab task: A temporary `chcon` label change makes a lab web file work, but `restorecon` later reverts it and the outage returns. It does not validate the implementation required here: Use `getsebool httpd_can_network_connect_db`; after verifying policy, set `setsebool -P httpd_can_network_connect_db on` where supported.

Question 279

Troubleshoot the following RHEL 10 lab situation: An application hosted by Apache needs outbound database connections but SELinux policy denies them even with network routing functional. Identify the key Linux mechanism behind the issue.

  1. A running SSH daemon does not imply any given user/key is authorized.
  2. `chcon` changes an inode label temporarily without updating the default file context database.
  3. Firewall policies are matched by zones, independently of service startup or SELinux port rights.
  4. SELinux Booleans can authorize specific service behavior without disabling the entire MAC policy.

Explanation

Correct Answer

D:

SELinux Booleans can authorize specific service behavior without disabling the entire MAC policy. This explains the task's initial state: An application hosted by Apache needs outbound database connections but SELinux policy denies them even with network routing functional. The supported lab action is: Use `getsebool httpd_can_network_connect_db`; after verifying policy, set `setsebool -P httpd_can_network_connect_db on` where supported.

Incorrect Answers

A:

A running SSH daemon does not imply any given user/key is authorized. This mechanism applies to another scenario: A server's `sshd` service is enabled but remote login fails because host key authentication was never established for the test user. The given lab state instead requires the more specific cause in the correct choice.

B:

`chcon` changes an inode label temporarily without updating the default file context database. This mechanism applies to another scenario: A temporary `chcon` label change makes a lab web file work, but `restorecon` later reverts it and the outage returns. The given lab state instead requires the more specific cause in the correct choice.

C:

Firewall policies are matched by zones, independently of service startup or SELinux port rights. This mechanism applies to another scenario: An application uses a nonstandard TCP port and a student opens it in firewalld but forgets the active zone. The given lab state instead requires the more specific cause in the correct choice.

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.