Drag or tap steps into the slots.
EX294 SELinux context Practice Question
Drag and drop the steps to configure SELinux to allow Apache to read a custom web directory in the correct order.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
Create directory, set SELinux context, verify context, configure Apache, restart and test
SELinux for web: create dir, set context, verify, configure Apache, restart and test.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Create directory, set SELinux context, verify context, configure Apache, restart and test
Why this is correct
This is the correct order because you first create the directory, then set its SELinux context using semanage and restorecon, verify the context, configure Apache to use it, and finally restart Apache and test to ensure SELinux allows access.
- ✗
Create directory, configure Apache, set SELinux context, verify context, restart and test
Why it's wrong here
This is incorrect because Apache is configured before setting the SELinux context. If Apache starts or is restarted before the context is set, it may fail or be denied access, and the context setting after configuration won't immediately affect Apache without a restart.
- ✗
Set SELinux context, create directory, verify context, configure Apache, restart and test
Why it's wrong here
This is incorrect because you cannot set the SELinux context on a directory that does not exist yet. The semanage command requires the path to exist (or use a wildcard), but the restorecon command will fail if the directory does not exist. The order should be create first, then set context.
- ✗
Create directory, verify context, set SELinux context, configure Apache, restart and test
Why it's wrong here
This is incorrect because verifying the context before setting it is pointless; the directory will have a default context. The context must be set after creation, then verified to confirm correctness, but the order here has verification before setting, which is logically wrong.
Go deeper
Related to this question
About these practice questions
Courseiva writes every EX294 question from scratch — 392 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This EX294 practice question is part of Courseiva's free Red Hat certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the EX294 exam.