Drag steps to the numbered slots on the right, or tap a step then tap a slot.
XK0-006 Practice Question: Drag and drop the steps to configure SELinux to…
Drag and drop the steps to configure SELinux to allow a custom web application to listen on port 8080 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
List current SELinux port mappings, then add port 8080 to http_port_t, then verify the new mapping, then restart the web service
SELinux requires adding the port to the appropriate context before the service can listen.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
List current SELinux port mappings, then add port 8080 to http_port_t, then verify the new mapping, then restart the web service
Why this is correct
This is the correct order because you first check the current context to ensure it exists, then add the port, verify the addition, and finally restart the service for changes to take effect.
- ✗
Add port 8080 to http_port_t, then list current mappings, then verify, then restart
Why it's wrong here
This is incorrect because adding the port before listing may work but is not the recommended order; you should first check if the port is already defined or if the context exists.
- ✗
List current mappings, then verify, then add port, then restart
Why it's wrong here
This is incorrect because verifying after listing but before adding the port will show no change; the addition step is skipped until after verification, which defeats the purpose.
- ✗
Add port 8080 to http_port_t, then verify, then list, then restart
Why it's wrong here
This is incorrect because the listing step is performed after verification, which is redundant; the proper sequence is to list first to understand the current state, then add, then verify.
Go deeper
Related to this question
About these practice questions
This XK0-006 question is part of Courseiva's 979-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This XK0-006 practice question is part of Courseiva's free CompTIA 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 XK0-006 exam.