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 4

Question 30

After a lab configuration change, verify: 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. Which result most directly proves the desired system state?

  1. `nmcli -g IP4.ADDRESS,IP4.GATEWAY con show --active lablan` and `ip -4 addr` show the intended address and gateway.
  2. The profile reflects changed settings and existing remote management remains recoverable.
  3. After reconnect or reboot `nmcli con show` and `ip addr` still report the address.
  4. The listener remains available after a controlled reboot and `systemctl is-enabled httpd` reports enabled.

Explanation

Correct Answer

A:

`nmcli -g IP4.ADDRESS,IP4.GATEWAY con show --active lablan` and `ip -4 addr` show the intended address and gateway. This check confirms the expected effect of: Identify its NetworkManager profile, then `nmcli con mod lablan ipv4.method manual ipv4.addresses 192.0.2.50/24 ipv4.gateway 192.0.2.1` in the isolated lab. It distinguishes the intended result from the original failure mechanism: NetworkManager connection profiles hold persistent address settings, unlike transient `ip addr add` commands.

Incorrect Answers

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: Identify its NetworkManager profile, then `nmcli con mod lablan ipv4.method manual ipv4.addresses 192.0.2.50/24 ipv4.gateway 192.0.2.1` in the isolated lab.

C:

After reconnect or reboot `nmcli con show` and `ip addr` still report the address. That verifies a separate lab task: A technician adds an IPv4 address with `ip addr add`, but it disappears after reboot. It does not validate the implementation required here: Identify its NetworkManager profile, then `nmcli con mod lablan ipv4.method manual ipv4.addresses 192.0.2.50/24 ipv4.gateway 192.0.2.1` in the isolated lab.

D:

The listener remains available after a controlled reboot and `systemctl is-enabled httpd` reports enabled. That verifies a separate lab task: A web service must start after every reboot, but `ss -tln` shows its listener only after manual execution. It does not validate the implementation required here: Identify its NetworkManager profile, then `nmcli con mod lablan ipv4.method manual ipv4.addresses 192.0.2.50/24 ipv4.gateway 192.0.2.1` in the isolated lab.

Question 31

In an EX200-style practice lab, this condition exists: 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. Which explanation correctly identifies the underlying issue?

  1. Router advertisements can populate routes independently of static interface addresses.
  2. NetworkManager connection profiles hold persistent address settings, unlike transient `ip addr add` commands.
  3. IP address assignment and resolver configuration are independent network settings.
  4. Firewalld runtime rules and permanent rules are separate states.

Explanation

Correct Answer

B:

NetworkManager connection profiles hold persistent address settings, unlike transient `ip addr add` commands. This explains the task's initial state: 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. The supported lab action is: Identify its NetworkManager profile, then `nmcli con mod lablan ipv4.method manual ipv4.addresses 192.0.2.50/24 ipv4.gateway 192.0.2.1` in the isolated lab.

Incorrect Answers

A:

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.

C:

IP address assignment and resolver configuration are independent network settings. This mechanism applies to another scenario: A host resolves internal names through an obsolete DNS server even though its IPv4 address is correct. The given lab state instead requires the more specific cause in the correct choice.

D:

Firewalld runtime rules and permanent rules are separate states. This mechanism applies to another scenario: An operator opens an authorized lab TCP port using only the runtime firewalld command, so access disappears after reboot. The given lab state instead requires the more specific cause in the correct choice.

Question 32

After completing this practical task on a disposable RHEL10 training node: 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. Which operational safeguard helps keep the result correct and safe?

  1. Confirm unit enablement, listener, zone and end-to-end client response together.
  2. Check autoconnect and active link state on every server network profile.
  3. Confirm exact profile/interface names and console recovery before editing remote IP settings.
  4. Use a layered name-route-port test sequence instead of changing unrelated settings.

Explanation

Correct Answer

C:

Confirm exact profile/interface names and console recovery before editing remote IP settings. This guards against recurrence of: NetworkManager connection profiles hold persistent address settings, unlike transient `ip addr add` commands. Confirm the lab's final state by: `nmcli -g IP4.ADDRESS,IP4.GATEWAY con show --active lablan` and `ip -4 addr` show the intended address and gateway.

Incorrect Answers

A:

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: NetworkManager connection profiles hold persistent address settings, unlike transient `ip addr add` commands.

B:

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: NetworkManager connection profiles hold persistent address settings, unlike transient `ip addr add` commands.

D:

Use a layered name-route-port test sequence instead of changing unrelated settings. That control is best suited to a separate scenario: The host can ping its gateway but an HTTPS connection fails; the operator wants to blame DNS without checking name resolution. It is not the best safeguard for the current mechanism: NetworkManager connection profiles hold persistent address settings, unlike transient `ip addr add` commands.

Question 33

Lab exercise on an offline training clone: A new lab operator needs a local account with a home directory and normal login shell. Which proposed RHEL 10 command or configuration action most directly achieves the required lab state?

  1. Run `useradd -m -s /bin/bash trainee1` on the authorized disposable VM, then provision credentials securely.
  2. Use `usermod -L contractor1` and set an appropriate nonlogin shell or expiration according to the organization's access policy.
  3. Ensure `/home/trainee1` ownership is `trainee1:trainee1` and set an approved restrictive mode such as `chmod 700 /home/trainee1`.
  4. Use `usermod -aG analysts trainee1` and have the user start a new login session.

Explanation

Correct Answer

A:

Run `useradd -m -s /bin/bash trainee1` on the authorized disposable VM, then provision credentials securely. This directly addresses the lab target: A new lab operator needs a local account with a home directory and normal login shell. The underlying behavior is: Creating an account without the requested home or shell options can leave it unusable for interactive work. Verification: `getent passwd trainee1` shows the expected shell and `/home/trainee1` exists.

Incorrect Answers

B:

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: Creating an account without the requested home or shell options can leave it unusable for interactive work.

C:

Ensure `/home/trainee1` ownership is `trainee1:trainee1` and set an approved restrictive mode such as `chmod 700 /home/trainee1`. This is an appropriate step for a DIFFERENT exercise, specifically: A new user must have a private home directory rather than inherited group-read access. It does not address the required lab state, whose mechanism is: Creating an account without the requested home or shell options can leave it unusable for interactive work.

D:

Use `usermod -aG analysts trainee1` and have the user start a new login session. This is an appropriate step for a DIFFERENT exercise, specifically: A user must join the `analysts` group without losing their existing supplementary groups. It does not address the required lab state, whose mechanism is: Creating an account without the requested home or shell options can leave it unusable for interactive work.

Question 34

In a hands-on RHCSA practice VM, the assigned outcome was: A new lab operator needs a local account with a home directory and normal login shell. What specific verification would demonstrate the target state?

  1. `id trainee1` no longer includes `analysts`, while the primary GID remains unchanged.
  2. `getent passwd trainee1` shows the expected shell and `/home/trainee1` exists.
  3. `getent passwd trainee1` ends with `/bin/bash` and an authorized test session starts.
  4. `stat -c '%a %U:%G'` reports the expected properties and a different test user cannot traverse the home.

Explanation

Correct Answer

B:

`getent passwd trainee1` shows the expected shell and `/home/trainee1` exists. This check confirms the expected effect of: Run `useradd -m -s /bin/bash trainee1` on the authorized disposable VM, then provision credentials securely. It distinguishes the intended result from the original failure mechanism: Creating an account without the requested home or shell options can leave it unusable for interactive work.

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: Run `useradd -m -s /bin/bash trainee1` on the authorized disposable VM, then provision credentials securely.

C:

`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: Run `useradd -m -s /bin/bash trainee1` on the authorized disposable VM, then provision credentials securely.

D:

`stat -c '%a %U:%G'` reports the expected properties and a different test user cannot traverse the home. That verifies a separate lab task: A new user must have a private home directory rather than inherited group-read access. It does not validate the implementation required here: Run `useradd -m -s /bin/bash trainee1` on the authorized disposable VM, then provision credentials securely.

Question 35

A trainee is diagnosing: A new lab operator needs a local account with a home directory and normal login shell. Which root cause should they recognize before changing the system?

  1. A process inherits its group credentials when its session begins and may not pick up group changes dynamically.
  2. The shell field controls the program started at login and can intentionally block interactive access.
  3. Creating an account without the requested home or shell options can leave it unusable for interactive work.
  4. Sudoers controls command-specific privilege escalation and its syntax is security-sensitive.

Explanation

Correct Answer

C:

Creating an account without the requested home or shell options can leave it unusable for interactive work. This explains the task's initial state: A new lab operator needs a local account with a home directory and normal login shell. The supported lab action is: Run `useradd -m -s /bin/bash trainee1` on the authorized disposable VM, then provision credentials securely.

Incorrect Answers

A:

A process inherits its group credentials when its session begins and may not pick up group changes dynamically. This mechanism applies to another 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. The given lab state instead requires the more specific cause in the correct choice.

B:

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.

D:

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.

Question 36

For this Linux administration lab: A new lab operator needs a local account with a home directory and normal login shell. Which safety and lifecycle check best prevents the same problem returning?

  1. Include end dates in contractor onboarding and remove access at offboarding.
  2. Audit membership before and after group changes and use `-aG` for additive grants.
  3. Use deprovisioning steps that also address SSH keys, sessions and privilege memberships.
  4. Follow approved account naming and home provisioning standards.

Explanation

Correct Answer

D:

Follow approved account naming and home provisioning standards. This guards against recurrence of: Creating an account without the requested home or shell options can leave it unusable for interactive work. Confirm the lab's final state by: `getent passwd trainee1` shows the expected shell and `/home/trainee1` exists.

Incorrect Answers

A:

Include end dates in contractor onboarding and remove access at offboarding. That control is best suited to a separate scenario: A short-term external account must stop being usable on a specified end date while its password policy remains unchanged. It is not the best safeguard for the current mechanism: Creating an account without the requested home or shell options can leave it unusable for interactive work.

B:

Audit membership before and after group changes and use `-aG` for additive grants. That control is best suited to a separate scenario: A user must join the `analysts` group without losing their existing supplementary groups. It is not the best safeguard for the current mechanism: Creating an account without the requested home or shell options can leave it unusable for interactive work.

C:

Use deprovisioning steps that also address SSH keys, sessions and privilege memberships. That control is best suited to a separate scenario: A contractor account exists but should no longer permit interactive login after an engagement ends, while audit files must remain. It is not the best safeguard for the current mechanism: Creating an account without the requested home or shell options can leave it unusable for interactive work.

Question 37

A student working on a local virtualization classroom receives this assignment: An administrator temporarily changes SELinux to permissive mode for diagnostics and believes it will remain so after reboot. Which answer gives the correct practical approach?

  1. Use `firewall-cmd --zone=public --add-service=https --permanent` after review, followed by `firewall-cmd --reload`.
  2. Use `setenforce 0` only as a time-bounded authorized lab diagnostic, inspect `getenforce`, and restore enforcing with `setenforce 1`.
  3. Use `sestatus` to compare current and configured modes, then follow approved immediate `setenforce` and reboot procedures as needed.
  4. Inspect `firewall-cmd --get-active-zones`, add the approved port to the actual zone with a permanent rule and reload.

Explanation

Correct Answer

B:

Use `setenforce 0` only as a time-bounded authorized lab diagnostic, inspect `getenforce`, and restore enforcing with `setenforce 1`. This directly addresses the lab target: An administrator temporarily changes SELinux to permissive mode for diagnostics and believes it will remain so after reboot. The underlying behavior is: `setenforce` changes runtime state while SELinux's configured boot mode is separate. Verification: `getenforce` shows permissive during the test, then enforcing after restoration without assuming persistence.

Incorrect Answers

A:

Use `firewall-cmd --zone=public --add-service=https --permanent` after review, followed by `firewall-cmd --reload`. This is an appropriate step for a DIFFERENT exercise, specifically: A firewall change is tested using only a runtime rule, but an administrator assumes it will be present after restart. It does not address the required lab state, whose mechanism is: `setenforce` changes runtime state while SELinux's configured boot mode is separate.

C:

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: `setenforce` changes runtime state while SELinux's configured boot mode is separate.

D:

Inspect `firewall-cmd --get-active-zones`, add the approved port to the actual zone with a permanent rule and reload. This is an appropriate step for a DIFFERENT exercise, specifically: An application uses a nonstandard TCP port and a student opens it in firewalld but forgets the active zone. It does not address the required lab state, whose mechanism is: `setenforce` changes runtime state while SELinux's configured boot mode is separate.

Question 38

You have attempted this task on a local virtualization classroom: An administrator temporarily changes SELinux to permissive mode for diagnostics and believes it will remain so after reboot. Which command output or observation best confirms its success?

  1. `getenforce` reports Enforcing after reboot and `sestatus` confirms the configured mode.
  2. A normal new file is mode `600` or more restrictive and a new directory is mode `700` or more restrictive.
  3. `getenforce` shows permissive during the test, then enforcing after restoration without assuming persistence.
  4. Current and configured SELinux modes converge to the intended approved state after reboot.

Explanation

Correct Answer

C:

`getenforce` shows permissive during the test, then enforcing after restoration without assuming persistence. This check confirms the expected effect of: Use `setenforce 0` only as a time-bounded authorized lab diagnostic, inspect `getenforce`, and restore enforcing with `setenforce 1`. It distinguishes the intended result from the original failure mechanism: `setenforce` changes runtime state while SELinux's configured boot mode is separate.

Incorrect Answers

A:

`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 `setenforce 0` only as a time-bounded authorized lab diagnostic, inspect `getenforce`, and restore enforcing with `setenforce 1`.

B:

A normal new file is mode `600` or more restrictive and a new directory is mode `700` or more restrictive. That verifies a separate lab task: A shell session creates files with default modes exposing group-readable secrets to unrelated users. It does not validate the implementation required here: Use `setenforce 0` only as a time-bounded authorized lab diagnostic, inspect `getenforce`, and restore enforcing with `setenforce 1`.

D:

Current and configured SELinux modes converge to the intended approved state after reboot. That verifies a separate lab task: An administrator changes SELinux policy mode in `/etc/selinux/config` but the runtime `getenforce` output remains unchanged until the next reboot. It does not validate the implementation required here: Use `setenforce 0` only as a time-bounded authorized lab diagnostic, inspect `getenforce`, and restore enforcing with `setenforce 1`.

Question 39

Troubleshoot the following RHEL 10 lab situation: An administrator temporarily changes SELinux to permissive mode for diagnostics and believes it will remain so after reboot. Identify the key Linux mechanism behind the issue.

  1. `setsebool` without `-P` changes runtime policy only.
  2. `chcon` changes an inode label temporarily without updating the default file context database.
  3. SSH authentication methods are enforced by sshd configuration and authorized key material.
  4. `setenforce` changes runtime state while SELinux's configured boot mode is separate.

Explanation

Correct Answer

D:

`setenforce` changes runtime state while SELinux's configured boot mode is separate. This explains the task's initial state: An administrator temporarily changes SELinux to permissive mode for diagnostics and believes it will remain so after reboot. The supported lab action is: Use `setenforce 0` only as a time-bounded authorized lab diagnostic, inspect `getenforce`, and restore enforcing with `setenforce 1`.

Incorrect Answers

A:

`setsebool` without `-P` changes runtime policy only. This mechanism applies to another scenario: A trainee enables an SELinux Boolean with `setsebool` but loses the change after restart. 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:

SSH authentication methods are enforced by sshd configuration and authorized key material. This mechanism applies to another scenario: A lab SSH account still accepts password-only access while the approved policy requires authorized public-key authentication. The given lab state instead requires the more specific cause in the correct choice.

Question 40

Following lab verification, document the preventive or persistence-oriented procedure for: An administrator temporarily changes SELinux to permissive mode for diagnostics and believes it will remain so after reboot. Which practice is most suitable?

  1. Use narrowly timed diagnostics and restore enforcing mode after analyzing denial logs.
  2. Check runtime and configured SELinux modes after policy changes.
  3. Verify port-label assignment and firewall exposure separately for nonstandard listener ports.
  4. Verify persistence and remove temporary diagnostic firewall permits.

Explanation

Correct Answer

A:

Use narrowly timed diagnostics and restore enforcing mode after analyzing denial logs. This guards against recurrence of: `setenforce` changes runtime state while SELinux's configured boot mode is separate. Confirm the lab's final state by: `getenforce` shows permissive during the test, then enforcing after restoration without assuming persistence.

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: `setenforce` changes runtime state while SELinux's configured boot mode is separate.

C:

Verify port-label assignment and firewall exposure separately for nonstandard listener ports. That control is best suited to a separate scenario: A test web daemon is configured to listen on TCP 8088 but SELinux blocks binding despite a matching firewall rule. It is not the best safeguard for the current mechanism: `setenforce` changes runtime state while SELinux's configured boot mode is separate.

D:

Verify persistence and remove temporary diagnostic firewall permits. That control is best suited to a separate scenario: A firewall change is tested using only a runtime rule, but an administrator assumes it will be present after restart. It is not the best safeguard for the current mechanism: `setenforce` changes runtime state while SELinux's configured boot mode is separate.