EX300 Red Hat Certified Engineer (RHCE) Free Practice Test — 30 Questions

Exam Code: RHCE

30 questions · Full explanations · No account required

Free
Question 1 of 30

A system administrator is tasked with deploying a novel, custom-built web server application on a Red Hat Enterprise Linux system. The executable is located at `/usr/local/sbin/my_web_app`. To ensure proper SELinux operation and integration with the system\'s security policy, the administrator must assign it an appropriate context that allows it to function as a web server. They have determined that the `httpd_exec_t` type is the most suitable for this executable. What is the most effective and persistent method to ensure the `my_web_app` executable and its associated files are correctly labeled with `httpd_exec_t` and that this labeling is maintained across system reboots and policy updates?

Use `semanage fcontext` to define the file context for `/usr/local/sbin/my_web_app` and then use `restorecon` to apply it.
Utilize `semanage port` to associate the `httpd_exec_t` type with the port the web server listens on.
Employ `chcon -Rv --type=httpd_exec_t /usr/local/sbin/my_web_app` to temporarily set the context.
Disable SELinux enforcement using `setenforce 0` for the duration of the application's operation.

About the EX300 Red Hat Certified Engineer (RHCE) Certification

These free practice questions are designed to help you assess your readiness for the EX300 Red Hat Certified Engineer (RHCE) exam by Red Hat. Each question comes with a detailed explanation to reinforce the correct concept. For a complete exam preparation experience with hundreds of questions, spaced-repetition study tools, and full exam simulations, explore our premium access.