Courseiva
Database Planning And DeploymentmediumMultiple ChoiceObjective-mapped

DS0-001 Database Planning And Deployment Practice Question

During database testing, a developer finds that a specific query is performing poorly due to a lack of statistics. What action should be taken to update the database optimizer's knowledge of the table data distribution?

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

Update statistics

Updating statistics (e.g., ANALYZE TABLE or UPDATE STATISTICS) provides the query optimizer with the necessary information to choose the most efficient execution plan.

Answer analysis

Option-by-option breakdown

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

  • Update statistics

    Why this is correct

    Updating statistics allows the query planner to make informed decisions about join types and access paths.

  • Run a database consistency check (DBCC)

    Why it's wrong here

    DBCC is used to detect corruption, not to update optimizer statistics.

  • Clear the plan cache

    Why it's wrong here

    Clearing the cache forces a recompile but does not fix inaccurate distribution statistics.

  • Rebuild the table indexes

    Why it's wrong here

    Rebuilding indexes improves fragmentation but doesn't necessarily update distribution statistics.

About these practice questions

Courseiva writes every DS0-001 question from scratch — 216 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 →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed August 2026 · checked against the official CompTIA exam blueprint

This DS0-001 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 DS0-001 exam.