mediumMultiple ChoiceObjective-mapped
XK0-006 Practice Question: After editing the network configuration file…
After editing the network configuration file /etc/sysconfig/network-scripts/ifcfg-ens33 on a CentOS system, the network service fails to restart with an error message. Which command should be used to display detailed error messages from the network service?
⚠ Common exam trap
Watch out — candidates often choose `journalctl -u network` (Option C) because they know it shows logs, but they overlook that `systemctl status network` is the more direct and concise command for viewing the immediate failure reason and service state, as specified in the XK0-005 objectives for troubleshooting systemd services.
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
✓
systemctl status network
The `systemctl status network` command is the correct tool to display detailed error messages from the network service because it shows the current status, recent log entries, and any failure messages from the systemd unit managing the network service. On CentOS, network services are controlled by systemd, and `systemctl status` directly queries the unit's state and journal for errors, making it the most straightforward diagnostic command after a restart failure.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
ip link
Why it's wrong here
Shows link layer state, not service errors.
- ✓
systemctl status network
Why this is correct
Shows service status and recent log entries.
- ✗
journalctl -u network
Why it's wrong here
While useful, 'journalctl' is better after checking service status.
- ✗
ifconfig
Why it's wrong here
Shows interface configuration, not service errors.
Quick reference
AWS S3 Storage Class Comparison
| Storage Class | Min Duration | Retrieval | Use Case |
|---|---|---|---|
| S3 Standard | None | Immediate | Frequently accessed data |
| S3 Standard-IA | 30 days | Immediate | Infrequent access, rapid retrieval |
| S3 One Zone-IA | 30 days | Immediate | Non-critical infrequent data |
| S3 Intelligent-Tiering | None | Immediate–hours | Unknown or changing access patterns |
| S3 Glacier Instant | 90 days | Milliseconds | Archive with instant retrieval |
| S3 Glacier Flexible | 90 days | Minutes–hours | Archive, flexible retrieval |
| S3 Glacier Deep Archive | 180 days | Hours | Long-term compliance archive |
Go deeper
Related to this question
Learn chapter
File Permissions and Ownership
Key term
systemctl
systemctl is the command-line tool used to inspect, start, stop, enable, or disable services managed by the systemd init system in Linux.
Key term
Service
A service is a software component or system that performs a specific function and is available to be used by other programs or users over a network.
About these practice questions
Courseiva writes every XK0-006 question from scratch — 979 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 →
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.