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 16

Question 150

You have attempted this task on a disposable RHEL10 training node: A host resolves internal names through an obsolete DNS server even though its IPv4 address is correct. Which command output or observation best confirms its success?

  1. `ip -6 addr show` lists the address and a local IPv6 connectivity test succeeds.
  2. The listener remains available after a controlled reboot and `systemctl is-enabled httpd` reports enabled.
  3. `nmcli dev show` and `getent hosts server.lab` show the approved DNS servers and expected name resolution.
  4. `nmcli -g connection.autoconnect connection show lablan` returns yes and `nmcli connection show --active` lists it after reboot.

Explanation

Correct Answer

C:

`nmcli dev show` and `getent hosts server.lab` show the approved DNS servers and expected name resolution. This check confirms the expected effect of: Configure the desired resolver addresses using `nmcli con mod lablan ipv4.dns '192.0.2.53 192.0.2.54'` and review `ipv4.ignore-auto-dns`. It distinguishes the intended result from the original failure mechanism: IP address assignment and resolver configuration are independent network settings.

Incorrect Answers

A:

`ip -6 addr show` lists the address and a local IPv6 connectivity test succeeds. That verifies a separate lab task: An IPv6-only lab application cannot listen because the host connection has no configured static IPv6 address. It does not validate the implementation required here: Configure the desired resolver addresses using `nmcli con mod lablan ipv4.dns '192.0.2.53 192.0.2.54'` and review `ipv4.ignore-auto-dns`.

B:

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: Configure the desired resolver addresses using `nmcli con mod lablan ipv4.dns '192.0.2.53 192.0.2.54'` and review `ipv4.ignore-auto-dns`.

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: Configure the desired resolver addresses using `nmcli con mod lablan ipv4.dns '192.0.2.53 192.0.2.54'` and review `ipv4.ignore-auto-dns`.

Question 151

Troubleshoot the following RHEL 10 lab situation: A host resolves internal names through an obsolete DNS server even though its IPv4 address is correct. Identify the key Linux mechanism behind the issue.

  1. ICMP reachability to a gateway does not prove DNS or TCP application availability.
  2. `ip` runtime configuration alone does not update NetworkManager's stored connection profile.
  3. Firewalld rules are zone-specific and require persistence for reboot safety.
  4. IP address assignment and resolver configuration are independent network settings.

Explanation

Correct Answer

D:

IP address assignment and resolver configuration are independent network settings. This explains the task's initial state: A host resolves internal names through an obsolete DNS server even though its IPv4 address is correct. The supported lab action is: Configure the desired resolver addresses using `nmcli con mod lablan ipv4.dns '192.0.2.53 192.0.2.54'` and review `ipv4.ignore-auto-dns`.

Incorrect Answers

A:

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.

B:

`ip` runtime configuration alone does not update NetworkManager's stored connection profile. This mechanism applies to another scenario: A technician adds an IPv4 address with `ip addr add`, but it disappears after reboot. 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 152

Following lab verification, document the preventive or persistence-oriented procedure for: A host resolves internal names through an obsolete DNS server even though its IPv4 address is correct. Which practice is most suitable?

  1. Audit both DNS source and search domains when moving between networks.
  2. Make durable host addressing changes in the managed profile and test persistence.
  3. Capture zone-to-interface bindings when deploying network services.
  4. Use minimum required allowed services while retaining firewalld enforcement.

Explanation

Correct Answer

A:

Audit both DNS source and search domains when moving between networks. This guards against recurrence of: IP address assignment and resolver configuration are independent network settings. Confirm the lab's final state by: `nmcli dev show` and `getent hosts server.lab` show the approved DNS servers and expected name resolution.

Incorrect Answers

B:

Make durable host addressing changes in the managed profile and test persistence. That control is best suited to a separate scenario: A technician adds an IPv4 address with `ip addr add`, but it disappears after reboot. It is not the best safeguard for the current mechanism: IP address assignment and resolver configuration are independent network settings.

C:

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: IP address assignment and resolver configuration are independent network settings.

D:

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: IP address assignment and resolver configuration are independent network settings.

Question 153

On an offline training clone, perform the following practical task: A temporary user's password must expire after 30 days, but a student assumes changing it once enforces the rule. Which action should be carried out after confirming the lab prerequisites?

  1. Use `gpasswd -d trainee1 analysts` after confirming group and account identity.
  2. Remove the unintended supplementary `wheel` membership with `gpasswd -d contractor1 wheel` after verifying access.
  3. Use `chage -M 30 trainee1` after verifying the account and policy.
  4. Ensure `/home/trainee1` ownership is `trainee1:trainee1` and set an approved restrictive mode such as `chmod 700 /home/trainee1`.

Explanation

Correct Answer

C:

Use `chage -M 30 trainee1` after verifying the account and policy. This directly addresses the lab target: A temporary user's password must expire after 30 days, but a student assumes changing it once enforces the rule. The underlying behavior is: Password expiration policy is separate from the last time a password was changed. Verification: `chage -l trainee1` reports a 30-day maximum password age.

Incorrect Answers

A:

Use `gpasswd -d trainee1 analysts` after confirming group and account identity. This is an appropriate step for a DIFFERENT exercise, specifically: A trainee is no longer authorized for the `analysts` supplemental group, but should retain their primary group. It does not address the required lab state, whose mechanism is: Password expiration policy is separate from the last time a password was changed.

B:

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: Password expiration policy is separate from the last time a password was changed.

D:

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: Password expiration policy is separate from the last time a password was changed.

Question 154

The lab examiner asks for evidence after this assignment: A temporary user's password must expire after 30 days, but a student assumes changing it once enforces the rule. What is the decisive verification step?

  1. `passwd -S contractor1` indicates locked credentials and preserved home files remain readable to authorized auditors.
  2. `getent passwd trainee1` shows the expected shell and `/home/trainee1` exists.
  3. The new session reflects the updated group list and can access the permitted lab directory.
  4. `chage -l trainee1` reports a 30-day maximum password age.

Explanation

Correct Answer

D:

`chage -l trainee1` reports a 30-day maximum password age. This check confirms the expected effect of: Use `chage -M 30 trainee1` after verifying the account and policy. It distinguishes the intended result from the original failure mechanism: Password expiration policy is separate from the last time a password was changed.

Incorrect Answers

A:

`passwd -S contractor1` indicates locked credentials and preserved home files remain readable to authorized auditors. That verifies a separate lab task: A contractor account exists but should no longer permit interactive login after an engagement ends, while audit files must remain. It does not validate the implementation required here: Use `chage -M 30 trainee1` after verifying the account and policy.

B:

`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 `chage -M 30 trainee1` after verifying the account and policy.

C:

The new session reflects the updated group list and can access the permitted lab directory. That verifies a separate lab task: 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 validate the implementation required here: Use `chage -M 30 trainee1` after verifying the account and policy.

Question 155

A training host has this situation: A temporary user's password must expire after 30 days, but a student assumes changing it once enforces the rule. Which system behavior best explains the original failure or risk?

  1. Password expiration policy is separate from the last time a password was changed.
  2. Deleting a local account and its home is destructive and distinct from locking it.
  3. An invalid sudoers grammar can deny administrative access unexpectedly.
  4. Renaming a login does not automatically guarantee home directory renaming in every workflow.

Explanation

Correct Answer

A:

Password expiration policy is separate from the last time a password was changed. This explains the task's initial state: A temporary user's password must expire after 30 days, but a student assumes changing it once enforces the rule. The supported lab action is: Use `chage -M 30 trainee1` after verifying the account and policy.

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:

An invalid sudoers grammar can deny administrative access unexpectedly. This mechanism applies to another scenario: An operator edits `/etc/sudoers` using an ordinary editor and introduces invalid syntax, breaking privilege escalation. The given lab state instead requires the more specific cause in the correct choice.

D:

Renaming a login does not automatically guarantee home directory renaming in every workflow. This mechanism applies to another scenario: A user account has a misspelled login name but should keep its existing UID and home ownership. The given lab state instead requires the more specific cause in the correct choice.

Question 156

A student has implemented the following configuration: A temporary user's password must expire after 30 days, but a student assumes changing it once enforces the rule. What repeatable control best reduces regressions or unsafe changes?

  1. Use least-privilege rules, syntax checking and specific command paths.
  2. Audit password aging properties on account creation and renewal.
  3. Audit membership before and after group changes and use `-aG` for additive grants.
  4. Use approved secret distribution and require rotation at initial login when appropriate.

Explanation

Correct Answer

B:

Audit password aging properties on account creation and renewal. This guards against recurrence of: Password expiration policy is separate from the last time a password was changed. Confirm the lab's final state by: `chage -l trainee1` reports a 30-day maximum password age.

Incorrect Answers

A:

Use least-privilege rules, syntax checking and specific command paths. That control is best suited to a separate scenario: An admin must grant a named technician narrowly scoped restart rights for a lab service without adding them to full wheel privileges. It is not the best safeguard for the current mechanism: Password expiration policy is separate from the last time a password was changed.

C:

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: Password expiration policy is separate from the last time a password was changed.

D:

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: Password expiration policy is separate from the last time a password was changed.

Question 157

You are responsible for a local virtualization classroom. The required hands-on outcome is: A temporary `chcon` label change makes a lab web file work, but `restorecon` later reverts it and the outage returns. Select the most appropriate implementation step.

  1. Set `SELINUX=enforcing` in the reviewed configuration file and ensure the runtime mode is enforcing; perform a controlled reboot.
  2. Set up the intended user's `authorized_keys` and directory ownership, then verify `sshd -t` and the configured authentication policy.
  3. Set `chmod 640 /etc/labapp.conf` with approved root ownership and a designated service group.
  4. Define the appropriate persistent fcontext mapping with `semanage fcontext` and reapply it using `restorecon`.

Explanation

Correct Answer

D:

Define the appropriate persistent fcontext mapping with `semanage fcontext` and reapply it using `restorecon`. This directly addresses the lab target: A temporary `chcon` label change makes a lab web file work, but `restorecon` later reverts it and the outage returns. The underlying behavior is: `chcon` changes an inode label temporarily without updating the default file context database. Verification: `matchpathcon` and `ls -Z` agree after relabeling and a reboot.

Incorrect Answers

A:

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: `chcon` changes an inode label temporarily without updating the default file context database.

B:

Set up the intended user's `authorized_keys` and directory ownership, then verify `sshd -t` and the configured authentication policy. This is an appropriate step for a DIFFERENT exercise, specifically: 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 address the required lab state, whose mechanism is: `chcon` changes an inode label temporarily without updating the default file context database.

C:

Set `chmod 640 /etc/labapp.conf` with approved root ownership and a designated service group. This is an appropriate step for a DIFFERENT exercise, specifically: A user accidentally gives write permission to everyone on an application's configuration file. It does not address the required lab state, whose mechanism is: `chcon` changes an inode label temporarily without updating the default file context database.

Question 158

After a lab configuration change, verify: A temporary `chcon` label change makes a lab web file work, but `restorecon` later reverts it and the outage returns. Which result most directly proves the desired system state?

  1. `matchpathcon` and `ls -Z` agree after relabeling and a reboot.
  2. `firewall-cmd --permanent --zone=public --list-services` includes HTTPS and the state survives reboot.
  3. `ls -Z` shows suitable web content labels and Apache accesses the files under the approved mode.
  4. A normal new file is mode `600` or more restrictive and a new directory is mode `700` or more restrictive.

Explanation

Correct Answer

A:

`matchpathcon` and `ls -Z` agree after relabeling and a reboot. This check confirms the expected effect of: Define the appropriate persistent fcontext mapping with `semanage fcontext` and reapply it using `restorecon`. It distinguishes the intended result from the original failure mechanism: `chcon` changes an inode label temporarily without updating the default file context database.

Incorrect Answers

B:

`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: Define the appropriate persistent fcontext mapping with `semanage fcontext` and reapply it using `restorecon`.

C:

`ls -Z` shows suitable web content labels and Apache accesses the files under the approved mode. That verifies a separate lab task: A protected lab directory was copied from `/home` and now has inappropriate user-home SELinux contexts under `/var/www/html`. It does not validate the implementation required here: Define the appropriate persistent fcontext mapping with `semanage fcontext` and reapply it using `restorecon`.

D:

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: Define the appropriate persistent fcontext mapping with `semanage fcontext` and reapply it using `restorecon`.

Question 159

In an EX200-style practice lab, this condition exists: A temporary `chcon` label change makes a lab web file work, but `restorecon` later reverts it and the outage returns. Which explanation correctly identifies the underlying issue?

  1. `setsebool` without `-P` changes runtime policy only.
  2. `chcon` changes an inode label temporarily without updating the default file context database.
  3. SELinux access denials have specific type or policy causes that global disablement obscures.
  4. DAC mode bits can allow unauthorized modification even if service function appears correct.

Explanation

Correct Answer

B:

`chcon` changes an inode label temporarily without updating the default file context database. This explains the task's initial state: A temporary `chcon` label change makes a lab web file work, but `restorecon` later reverts it and the outage returns. The supported lab action is: Define the appropriate persistent fcontext mapping with `semanage fcontext` and reapply it using `restorecon`.

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.

C:

SELinux access denials have specific type or policy causes that global disablement obscures. This mechanism applies to another scenario: A lab administrator disables SELinux to stop web errors without checking whether a label denial caused them. The given lab state instead requires the more specific cause in the correct choice.

D:

DAC mode bits can allow unauthorized modification even if service function appears correct. This mechanism applies to another scenario: A user accidentally gives write permission to everyone on an application's configuration file. The given lab state instead requires the more specific cause in the correct choice.

Question 160

After completing this practical task on a local virtualization classroom: A temporary `chcon` label change makes a lab web file work, but `restorecon` later reverts it and the outage returns. Which operational safeguard helps keep the result correct and safe?

  1. Use persistent Boolean changes only when justified and test their effects after restart.
  2. Provision and rotate private keys under managed mode and ownership controls.
  3. Use policy-backed fcontext mappings for nonstandard service directories.
  4. Check runtime and configured SELinux modes after policy changes.

Explanation

Correct Answer

C:

Use policy-backed fcontext mappings for nonstandard service directories. This guards against recurrence of: `chcon` changes an inode label temporarily without updating the default file context database. Confirm the lab's final state by: `matchpathcon` and `ls -Z` agree after relabeling and a reboot.

Incorrect Answers

A:

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: `chcon` changes an inode label temporarily without updating the default file context database.

B:

Provision and rotate private keys under managed mode and ownership controls. That control is best suited to a separate scenario: A private SSH key is world-readable, causing security risk and sometimes authentication refusal. It is not the best safeguard for the current mechanism: `chcon` changes an inode label temporarily without updating the default file context database.

D:

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: `chcon` changes an inode label temporarily without updating the default file context database.