Courseiva
Data Store Management →mediumMultiple Choice

DEA-C01 Data Store Management Practice Question

A data engineer notices that an Amazon Redshift cluster is experiencing slow query performance. The engineer suspects that tables are not properly sorted. Which diagnostic query should the engineer run to identify unsorted rows?

⚠ Common exam trap

Many candidates confuse `SVV_TABLE_INFO` with `STV_TBL_PERM` (which shows block counts) or `STL_LOAD_ERRORS` (which is for load debugging), missing that only `SVV_TABLE_INFO` exposes the `unsorted` column specifically designed for sort health analysis.

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

✓

SELECT * FROM SVV_TABLE_INFO ORDER BY unsorted DESC;

The `SVV_TABLE_INFO` system view in Amazon Redshift provides metadata about each table, including the `unsorted` column which shows the percentage of unsorted rows. By ordering by `unsorted DESC`, the engineer can quickly identify tables with the highest proportion of unsorted data, which directly impacts query performance due to inefficient zone maps and scan pruning.

Answer analysis

Option-by-option breakdown

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

  • ✓

    SELECT * FROM SVV_TABLE_INFO ORDER BY unsorted DESC;

    Why this is correct

    SVV_TABLE_INFO exposes per-table statistics including the unsorted percentage, so ordering by unsorted DESC surfaces the tables with the most unsorted rows. That directly identifies where a VACUUM SORT is needed to address the slow query performance.

  • ✗

    SELECT * FROM PG_CATALOG;

    Why it's wrong here

    PG_CATALOG holds system catalogue views describing metadata such as table and column definitions, not per-table sort statistics. It is tempting because it is a queryable schema, and would be correct when inspecting object definitions rather than identifying the percentage of unsorted rows.

  • ✗

    SELECT * FROM STV_TBL_PERM;

    Why it's wrong here

    STV_TBL_PERM lists permanent table metadata such as distribution keys and sort keys, but reports no per-row sort status, so it cannot reveal unsorted rows. It is tempting because it is the go-to catalogue view for inspecting table design, and would be correct when auditing distribution styles or identifying tables lacking a sort key.

  • ✗

    SELECT * FROM STL_LOAD_ERRORS;

    Why it's wrong here

    STL_LOAD_ERRORS records rows rejected during COPY loads, so it cannot reveal unsorted rows in a table. It is tempting because it is a common Redshift diagnostic view, and would be correct when investigating why a bulk load failed rather than diagnosing sort-key effectiveness.

About these practice questions

This DEA-C01 question is part of Courseiva's 1,321-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 DEA-C01 practice question is part of Courseiva's free Amazon Web Services 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 DEA-C01 exam.