easyMultiple ChoiceObjective-mapped
XK0-006 Practice Question: What does the output in the exhibit indicate…
Exhibit
Refer to the exhibit. [root@server ~]# ls -Z /etc/shadow system_u:object_r:shadow_t:s0 /etc/shadow
What does the output in the exhibit indicate about the /etc/shadow file?
⚠ Common exam trap
Many exam-takers confuse the SELinux context (displayed by `ls -Z`) with file encryption or ACLs, because the output shows a colon-separated string that looks like an ACL or encrypted data, but it is actually the SELinux security label.
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
✓
The file has an SELinux context.
The output in the exhibit shows the SELinux context for the /etc/shadow file, which is indicated by the string 'system_u:object_r:shadow_t:s0' appended to the file's permissions. This is the SELinux security context, consisting of user, role, type, and sensitivity level. The `ls -Z` command displays this context, confirming that the file has an SELinux label applied.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
The file has an SELinux context.
Why this is correct
The output format is standard for SELinux labels.
- ✗
The file is encrypted.
Why it's wrong here
ls -Z does not show encryption.
- ✗
The file has an ACL applied.
Why it's wrong here
ACLs are shown with getfacl, not with -Z.
- ✗
The file is compressed.
Why it's wrong here
ls -Z does not indicate compression.
Go deeper
Related to this question
Learn chapter
File Permissions and Ownership
Key term
User
A user is any person, system, or device that interacts with an IT service, resource, or identity system, typically authenticated through credentials and authorized to perform specific actions.
Key term
Output
In IT service management, output is the result or deliverable produced by a process, system, or component, such as data, reports, or services delivered to a customer.
About these practice questions
One of 979 original XK0-006 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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.