XK0-006 Security Practice Question
An administrator wants to set an SELinux boolean that allows Apache to connect to databases. After setting the boolean, which option ensures the change persists across reboots?
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
✓
setsebool -P httpd_can_network_connect_db on
setsebool -P makes the change permanent. Without -P, it only lasts until reboot.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
setenforce 1
Why it's wrong here
Sets enforcing mode, not boolean.
- ✗
setsebool httpd_can_network_connect_db on
Why it's wrong here
Missing -P, so not persistent.
- ✗
semanage boolean -m --on httpd_can_network_connect_db
Why it's wrong here
semanage can modify booleans but setsebool is the direct command.
- ✓
setsebool -P httpd_can_network_connect_db on
Why this is correct
-P makes it persistent.
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 →
JA
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.