XK0-006 Security Practice Question
A security auditor notices that a service account's password never expires. The company policy requires password rotation every 60 days. Which command will enforce this policy for the service account?
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
✓
chage -M 60 serviceacct && chage -d 0 serviceacct
chage -M 60 sets the maximum password age to 60 days. To also force a password change on next login, use -d 0.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
chage -W 7 serviceacct
Why it's wrong here
chage -W sets warning days, not max age.
- ✗
usermod -e 60 serviceacct
Why it's wrong here
usermod -e sets account expiration date, not password aging.
- ✓
chage -M 60 serviceacct && chage -d 0 serviceacct
Why this is correct
This sets max age and forces immediate password change.
- ✗
passwd -n 60 serviceacct
Why it's wrong here
passwd -n sets minimum password age, not maximum.
Go deeper
Related to this question
Learn chapter
Firewall and Security Basics
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.
Key term
Policy
A policy is a set of rules or guidelines that defines how an organization manages, secures, and operates its IT systems and services.
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.