Pass Your RedHat EX200 Exam Easy!

RedHat EX200 Exam Questions & Answers, Accurate & Verified By IT Experts

Instant Download, Free Fast Updates, 99.6% Pass Rate

EX200 Premium Bundle

$79.99

RedHat EX200 Premium Bundle

EX200 Premium File: 111 Questions & Answers

Last Update: Nov 20, 2026

EX200 Training Course: 71 Video Lectures

EX200 PDF Study Guide: 1601 Pages

EX200 Bundle gives you unlimited access to "EX200" files. However, this does not replace the need for a .vce exam simulator. To download VCE exam simulator click here
RedHat EX200 Premium Bundle
RedHat EX200 Premium Bundle

EX200 Premium File: 111 Questions & Answers

Last Update: Nov 20, 2026

EX200 Training Course: 71 Video Lectures

EX200 PDF Study Guide: 1601 Pages

$79.99

EX200 Bundle gives you unlimited access to "EX200" files. However, this does not replace the need for a .vce exam simulator. To download your .vce exam simulator click here

RedHat EX200 Practice Test 114

Question 1130

A RHEL 10 web-content directory /srv/web14 is subject to SELinux policy. The administrator must apply a previously defined default file context recursively. A review considers `semanage fcontext -a -t httpd_sys_content_t "/srv/web14(/.*)?"` as an alternative. Its relevant behavior is: semanage fcontext records the default SELinux labeling rule for files under this path. That is a different result from the requested operation. Which listed command satisfies the original requirement without substituting this other behavior?

  1. semanage fcontext -a -t httpd_sys_content_t "/srv/web14(/.*)?"
  2. restorecon -Rv /srv/web14
  3. ls -Z /srv/web14
  4. matchpathcon /srv/web14

Explanation

Correct Answer

B:

restorecon applies the policy-defined default labels to existing files and directories It performs the requested label-management step. This matches the stated requirement to apply a previously defined default file context recursively. By contrast, the plausible alternative `ls -Z /srv/web14` has the effect: ls -Z displays the SELinux security context of listed filesystem objects It reads or applies a different part of SELinux context management; that operation would not achieve the requested result.

Incorrect Answers

A:

semanage fcontext records the default SELinux labeling rule for files under this path It reads or applies a different part of SELinux context management. The stated task is to apply a previously defined default file context recursively. Instead, `restorecon -Rv /srv/web14` is the relevant alternative because restorecon applies the policy-defined default labels to existing files and directories It performs the requested label-management step.

C:

ls -Z displays the SELinux security context of listed filesystem objects It reads or applies a different part of SELinux context management. The stated task is to apply a previously defined default file context recursively. Instead, `restorecon -Rv /srv/web14` is the relevant alternative because restorecon applies the policy-defined default labels to existing files and directories It performs the requested label-management step.

D:

matchpathcon resolves the file-context policy entry for the named path It reads or applies a different part of SELinux context management. The stated task is to apply a previously defined default file context recursively. Instead, `restorecon -Rv /srv/web14` is the relevant alternative because restorecon applies the policy-defined default labels to existing files and directories It performs the requested label-management step.

Question 1131

A RHEL 10 web-content directory /srv/web15 is subject to SELinux policy. The administrator must show current selinux labels of files in a directory. Which command performs that action?

  1. semanage fcontext -a -t httpd_sys_content_t "/srv/web15(/.*)?"
  2. restorecon -Rv /srv/web15
  3. ls -Z /srv/web15
  4. matchpathcon /srv/web15

Explanation

Correct Answer

C:

ls -Z displays the SELinux security context of listed filesystem objects It performs the requested label-management step. This matches the stated requirement to show current selinux labels of files in a directory. By contrast, the plausible alternative `matchpathcon /srv/web15` has the effect: matchpathcon resolves the file-context policy entry for the named path It reads or applies a different part of SELinux context management; that operation would not achieve the requested result.

Incorrect Answers

A:

semanage fcontext records the default SELinux labeling rule for files under this path It reads or applies a different part of SELinux context management. The stated task is to show current selinux labels of files in a directory. Instead, `ls -Z /srv/web15` is the relevant alternative because ls -Z displays the SELinux security context of listed filesystem objects It performs the requested label-management step.

B:

restorecon applies the policy-defined default labels to existing files and directories It reads or applies a different part of SELinux context management. The stated task is to show current selinux labels of files in a directory. Instead, `ls -Z /srv/web15` is the relevant alternative because ls -Z displays the SELinux security context of listed filesystem objects It performs the requested label-management step.

D:

matchpathcon resolves the file-context policy entry for the named path It reads or applies a different part of SELinux context management. The stated task is to show current selinux labels of files in a directory. Instead, `ls -Z /srv/web15` is the relevant alternative because ls -Z displays the SELinux security context of listed filesystem objects It performs the requested label-management step.

Question 1132

A RHEL 10 web-content directory /srv/web16 is subject to SELinux policy. The administrator must create a persistent selinux file-context mapping for web documents. Which command performs that action?

  1. restorecon -Rv /srv/web16
  2. ls -Z /srv/web16
  3. matchpathcon /srv/web16
  4. semanage fcontext -a -t httpd_sys_content_t "/srv/web16(/.*)?"

Explanation

Correct Answer

D:

semanage fcontext records the default SELinux labeling rule for files under this path It performs the requested label-management step. This matches the stated requirement to create a persistent selinux file-context mapping for web documents. By contrast, the plausible alternative `matchpathcon /srv/web16` has the effect: matchpathcon resolves the file-context policy entry for the named path It reads or applies a different part of SELinux context management; that operation would not achieve the requested result.

Incorrect Answers

A:

restorecon applies the policy-defined default labels to existing files and directories It reads or applies a different part of SELinux context management. The stated task is to create a persistent selinux file-context mapping for web documents. Instead, `semanage fcontext -a -t httpd_sys_content_t "/srv/web16(/.*)?"` is the relevant alternative because semanage fcontext records the default SELinux labeling rule for files under this path It performs the requested label-management step.

B:

ls -Z displays the SELinux security context of listed filesystem objects It reads or applies a different part of SELinux context management. The stated task is to create a persistent selinux file-context mapping for web documents. Instead, `semanage fcontext -a -t httpd_sys_content_t "/srv/web16(/.*)?"` is the relevant alternative because semanage fcontext records the default SELinux labeling rule for files under this path It performs the requested label-management step.

C:

matchpathcon resolves the file-context policy entry for the named path It reads or applies a different part of SELinux context management. The stated task is to create a persistent selinux file-context mapping for web documents. Instead, `semanage fcontext -a -t httpd_sys_content_t "/srv/web16(/.*)?"` is the relevant alternative because semanage fcontext records the default SELinux labeling rule for files under this path It performs the requested label-management step.

Question 1133

A RHEL 10 web-content directory /srv/web17 is subject to SELinux policy. The administrator must show current selinux labels of files in a directory. Which command performs that action?

  1. ls -Z /srv/web17
  2. semanage fcontext -a -t httpd_sys_content_t "/srv/web17(/.*)?"
  3. restorecon -Rv /srv/web17
  4. matchpathcon /srv/web17

Explanation

Correct Answer

A:

ls -Z displays the SELinux security context of listed filesystem objects It performs the requested label-management step. This matches the stated requirement to show current selinux labels of files in a directory. By contrast, the plausible alternative `matchpathcon /srv/web17` has the effect: matchpathcon resolves the file-context policy entry for the named path It reads or applies a different part of SELinux context management; that operation would not achieve the requested result.

Incorrect Answers

B:

semanage fcontext records the default SELinux labeling rule for files under this path It reads or applies a different part of SELinux context management. The stated task is to show current selinux labels of files in a directory. Instead, `ls -Z /srv/web17` is the relevant alternative because ls -Z displays the SELinux security context of listed filesystem objects It performs the requested label-management step.

C:

restorecon applies the policy-defined default labels to existing files and directories It reads or applies a different part of SELinux context management. The stated task is to show current selinux labels of files in a directory. Instead, `ls -Z /srv/web17` is the relevant alternative because ls -Z displays the SELinux security context of listed filesystem objects It performs the requested label-management step.

D:

matchpathcon resolves the file-context policy entry for the named path It reads or applies a different part of SELinux context management. The stated task is to show current selinux labels of files in a directory. Instead, `ls -Z /srv/web17` is the relevant alternative because ls -Z displays the SELinux security context of listed filesystem objects It performs the requested label-management step.

Question 1134

A RHEL 10 web-content directory /srv/web18 is subject to SELinux policy. The administrator must apply a previously defined default file context recursively. A review considers `ls -Z /srv/web18` as an alternative. Its relevant behavior is: ls -Z displays the SELinux security context of listed filesystem objects. That is a different result from the requested operation. Which listed command satisfies the original requirement without substituting this other behavior?

  1. semanage fcontext -a -t httpd_sys_content_t "/srv/web18(/.*)?"
  2. restorecon -Rv /srv/web18
  3. ls -Z /srv/web18
  4. matchpathcon /srv/web18

Explanation

Correct Answer

B:

restorecon applies the policy-defined default labels to existing files and directories It performs the requested label-management step. This matches the stated requirement to apply a previously defined default file context recursively. By contrast, the plausible alternative `semanage fcontext -a -t httpd_sys_content_t "/srv/web18(/.*)?"` has the effect: semanage fcontext records the default SELinux labeling rule for files under this path It reads or applies a different part of SELinux context management; that operation would not achieve the requested result.

Incorrect Answers

A:

semanage fcontext records the default SELinux labeling rule for files under this path It reads or applies a different part of SELinux context management. The stated task is to apply a previously defined default file context recursively. Instead, `restorecon -Rv /srv/web18` is the relevant alternative because restorecon applies the policy-defined default labels to existing files and directories It performs the requested label-management step.

C:

ls -Z displays the SELinux security context of listed filesystem objects It reads or applies a different part of SELinux context management. The stated task is to apply a previously defined default file context recursively. Instead, `restorecon -Rv /srv/web18` is the relevant alternative because restorecon applies the policy-defined default labels to existing files and directories It performs the requested label-management step.

D:

matchpathcon resolves the file-context policy entry for the named path It reads or applies a different part of SELinux context management. The stated task is to apply a previously defined default file context recursively. Instead, `restorecon -Rv /srv/web18` is the relevant alternative because restorecon applies the policy-defined default labels to existing files and directories It performs the requested label-management step.

Question 1135

A RHEL 10 web-content directory /srv/web19 is subject to SELinux policy. The administrator must check the expected default selinux context for a path. Which command performs that action?

  1. semanage fcontext -a -t httpd_sys_content_t "/srv/web19(/.*)?"
  2. restorecon -Rv /srv/web19
  3. matchpathcon /srv/web19
  4. ls -Z /srv/web19

Explanation

Correct Answer

C:

matchpathcon resolves the file-context policy entry for the named path It performs the requested label-management step. This matches the stated requirement to check the expected default selinux context for a path. By contrast, the plausible alternative `semanage fcontext -a -t httpd_sys_content_t "/srv/web19(/.*)?"` has the effect: semanage fcontext records the default SELinux labeling rule for files under this path It reads or applies a different part of SELinux context management; that operation would not achieve the requested result.

Incorrect Answers

A:

semanage fcontext records the default SELinux labeling rule for files under this path It reads or applies a different part of SELinux context management. The stated task is to check the expected default selinux context for a path. Instead, `matchpathcon /srv/web19` is the relevant alternative because matchpathcon resolves the file-context policy entry for the named path It performs the requested label-management step.

B:

restorecon applies the policy-defined default labels to existing files and directories It reads or applies a different part of SELinux context management. The stated task is to check the expected default selinux context for a path. Instead, `matchpathcon /srv/web19` is the relevant alternative because matchpathcon resolves the file-context policy entry for the named path It performs the requested label-management step.

D:

ls -Z displays the SELinux security context of listed filesystem objects It reads or applies a different part of SELinux context management. The stated task is to check the expected default selinux context for a path. Instead, `matchpathcon /srv/web19` is the relevant alternative because matchpathcon resolves the file-context policy entry for the named path It performs the requested label-management step.

Question 1136

On RHEL 10, a service is being configured for port 8888/tcp. The task is to remove a local custom selinux mapping for tcp port 8888. Which command fits?

  1. semanage port -l
  2. semanage port -a -t http_port_t -p tcp 8888
  3. semanage port -m -t http_port_t -p tcp 8888
  4. semanage port -d -p tcp 8888

Explanation

Correct Answer

D:

-d removes a locally added port mapping; it is not used for editing a shipped policy port The necessary existence precondition is explicitly stated.

Incorrect Answers

A:

semanage port -l lists SELinux policy types and their associated network ports It affects a different port-mapping state or examines processes instead. The stated task is to remove a local custom selinux mapping for tcp port 8888. Instead, `semanage port -d -p tcp 8888` is the relevant alternative because -d removes a locally added port mapping; it is not used for editing a shipped policy port The necessary existence precondition is explicitly stated.

B:

-a associates the new port with http_port_t in SELinux policy It affects a different port-mapping state or examines processes instead. The stated task is to remove a local custom selinux mapping for tcp port 8888. Instead, `semanage port -d -p tcp 8888` is the relevant alternative because -d removes a locally added port mapping; it is not used for editing a shipped policy port The necessary existence precondition is explicitly stated.

C:

-m changes the SELinux type of an existing port mapping It affects a different port-mapping state or examines processes instead. The stated task is to remove a local custom selinux mapping for tcp port 8888. Instead, `semanage port -d -p tcp 8888` is the relevant alternative because -d removes a locally added port mapping; it is not used for editing a shipped policy port The necessary existence precondition is explicitly stated.

Question 1137

On RHEL 10, a service is being configured for port 8888/tcp. The task is to add tcp port 8888 as an allowed httpd port type if it is not already allocated to another type. Which command fits?

  1. semanage port -a -t http_port_t -p tcp 8888
  2. semanage port -l
  3. semanage port -m -t http_port_t -p tcp 8888
  4. semanage port -d -p tcp 8888

Explanation

Correct Answer

A:

-a associates the new port with http_port_t in SELinux policy The necessary existence precondition is explicitly stated.

Incorrect Answers

B:

semanage port -l lists SELinux policy types and their associated network ports It affects a different port-mapping state or examines processes instead. The stated task is to add tcp port 8888 as an allowed httpd port type if it is not already allocated to another type. Instead, `semanage port -a -t http_port_t -p tcp 8888` is the relevant alternative because -a associates the new port with http_port_t in SELinux policy The necessary existence precondition is explicitly stated.

C:

-m changes the SELinux type of an existing port mapping It affects a different port-mapping state or examines processes instead. The stated task is to add tcp port 8888 as an allowed httpd port type if it is not already allocated to another type. Instead, `semanage port -a -t http_port_t -p tcp 8888` is the relevant alternative because -a associates the new port with http_port_t in SELinux policy The necessary existence precondition is explicitly stated.

D:

-d removes a locally added port mapping; it is not used for editing a shipped policy port It affects a different port-mapping state or examines processes instead. The stated task is to add tcp port 8888 as an allowed httpd port type if it is not already allocated to another type. Instead, `semanage port -a -t http_port_t -p tcp 8888` is the relevant alternative because -a associates the new port with http_port_t in SELinux policy The necessary existence precondition is explicitly stated.

Question 1138

On RHEL 10, a service is being configured for port 8888/tcp. The task is to modify the selinux type of an already labeled tcp port 8888. Which command fits?

  1. semanage port -l
  2. semanage port -m -t http_port_t -p tcp 8888
  3. semanage port -a -t http_port_t -p tcp 8888
  4. semanage port -d -p tcp 8888

Explanation

Correct Answer

B:

-m changes the SELinux type of an existing port mapping The necessary existence precondition is explicitly stated.

Incorrect Answers

A:

semanage port -l lists SELinux policy types and their associated network ports It affects a different port-mapping state or examines processes instead. The stated task is to modify the selinux type of an already labeled tcp port 8888. Instead, `semanage port -m -t http_port_t -p tcp 8888` is the relevant alternative because -m changes the SELinux type of an existing port mapping The necessary existence precondition is explicitly stated.

C:

-a associates the new port with http_port_t in SELinux policy It affects a different port-mapping state or examines processes instead. The stated task is to modify the selinux type of an already labeled tcp port 8888. Instead, `semanage port -m -t http_port_t -p tcp 8888` is the relevant alternative because -m changes the SELinux type of an existing port mapping The necessary existence precondition is explicitly stated.

D:

-d removes a locally added port mapping; it is not used for editing a shipped policy port It affects a different port-mapping state or examines processes instead. The stated task is to modify the selinux type of an already labeled tcp port 8888. Instead, `semanage port -m -t http_port_t -p tcp 8888` is the relevant alternative because -m changes the SELinux type of an existing port mapping The necessary existence precondition is explicitly stated.

Question 1139

An RHEL 10 httpd instance is moved from TCP 80 to TCP 9876, which is not listed in the currently allowed http_port_t labels. Before restart, which persistent SELinux action makes that NEW listening port eligible under the existing policy?

  1. setenforce 0
  2. semanage port -l | grep http
  3. semanage port -a -t http_port_t -p tcp 9876
  4. firewall-cmd --add-port=9876/tcp

Explanation

Correct Answer

C:

The -a command creates the missing TCP port-to-http_port_t association in local SELinux policy; the daemon can then bind subject to other controls.

Incorrect Answers

A:

Permissive mode suppresses enforcement globally and is not a targeted or acceptable replacement for a port type rule.

B:

Listing labels diagnoses the missing association but changes no policy and therefore cannot authorize the new bind.

D:

A firewall rule controls inbound packets and does not authorize httpd_t to bind a port that SELinux treats as another type.

Question 1140

An RHEL 10 application must listen on TCP 8888. The SELinux port inventory shows that tcp/8888 already has a local mapping, but the mapping uses the wrong type. Which operation edits the EXISTING local port record?

  1. semanage port -a -t http_port_t -p tcp 8888
  2. semanage port -d -p tcp 8888
  3. semanage fcontext -a -t httpd_sys_content_t /srv/site
  4. semanage port -m -t http_port_t -p tcp 8888

Explanation

Correct Answer

D:

The -m operation modifies a mapping that already exists, keeping the protocol and number while changing its SELinux type.

Incorrect Answers

A:

The add operation expects the port mapping to be absent and may report a duplicate if one is already assigned.

B:

Delete removes a local mapping rather than assigning the requested type to the existing record.

C:

Fcontext labels file paths rather than the network listening port, so it cannot fix the port-type mismatch.


Red Hat Certified System Administrator (RHCSA) (EX200) Practice Tests

Purchase Individually

EX200 Premium File

Premium File
EX200 Premium File
111 Q&A
$76.99$69.99

EX200 Training Video Course

Training Course
EX200 Training Video Course
71 Lectures
$27.49$24.99

EX200 Study Guide

Study Guide
EX200 Study Guide
1601 PDF Pages
$27.49$24.99

Site Search:

 

VISA, MasterCard, AmericanExpress, UnionPay

SPECIAL OFFER: GET 10% OFF

ExamCollection Premium

ExamCollection Premium Files

Pass your Exam with ExamCollection's PREMIUM files!

  • ExamCollection Certified Safe Files
  • Guaranteed to have ACTUAL Exam Questions
  • Up-to-Date Exam Study Material - Verified by Experts
  • Instant Downloads
Enter Your Email Address to Receive Your 10% Off Discount Code
A Confirmation Link will be sent to this email address to verify your login
We value your privacy. We will not rent or sell your email address

SPECIAL OFFER: GET 10% OFF

Use Discount Code:

MIN10OFF

A confirmation link was sent to your e-mail.
Please check your mailbox for a message from support@examcollection.com and follow the directions.

Next

Download Free Demo of VCE Exam Simulator

Experience Avanset VCE Exam Simulator for yourself.

Simply submit your e-mail address below to get started with our interactive software demo of your free trial.

Free Demo Limits: In the demo version you will be able to access only first 5 questions from exam.