Courseiva
mediumMultiple ChoiceObjective-mapped

XK0-006 Practice Question: A web server in a remote data center logs…

A web server in a remote data center logs timestamps in UTC, but the operations team wants all logs to reflect the local timezone (America/New_York). Which command changes the system timezone?

⚠ Common exam trap

Watch out — candidates often confuse setting the timezone with setting the time or enabling NTP, leading them to choose options that adjust the clock rather than the timezone, which does not solve the requirement for local timestamps in logs.

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

timedatectl set-timezone America/New_York

The `timedatectl set-timezone` command is the correct way to change the system timezone on a Linux system using systemd. By specifying 'America/New_York', the system will adjust all timestamps to Eastern Time, including those generated by the web server, ensuring logs reflect the local timezone.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • timedatectl set-time '2025-03-01 12:00:00'

    Why it's wrong here

    Sets the date and time manually, not timezone.

  • timedatectl set-timezone America/New_York

    Why this is correct

    Sets the system timezone to the specified zone.

  • timedatectl list-timezones

    Why it's wrong here

    Lists available timezones, does not set.

  • timedatectl set-ntp yes

    Why it's wrong here

    Enables NTP time sync, does not change timezone.

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 →

How Courseiva writes practice questions · Editorial policy

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.