nerdexam
Amazon

DEA-C01 · Question #86

A company has used an Amazon Redshift table that is named Orders for 6 months. The company performs weekly updates and deletes on the table. The table has an interleaved sort key on a column that…

The correct answer is A. VACUUM FULL Orders. To reclaim disk space and reanalyze an interleaved sort key in Amazon Redshift after frequent updates and deletes, the VACUUM FULL command is the appropriate solution.

Data Store Management

Question

A company has used an Amazon Redshift table that is named Orders for 6 months. The company performs weekly updates and deletes on the table. The table has an interleaved sort key on a column that contains AWS Regions. The company wants to reclaim disk space so that the company will not run out of storage space. The company also wants to analyze the sort key column. Which Amazon Redshift command will meet these requirements?

Options

  • AVACUUM FULL Orders
  • BVACUUM DELETE ONLY Orders
  • CVACUUM REINDEX Orders
  • DVACUUM SORT ONLY Orders

How the community answered

(28 responses)
  • A
    79% (22)
  • B
    11% (3)
  • C
    7% (2)
  • D
    4% (1)

Why each option

To reclaim disk space and reanalyze an interleaved sort key in Amazon Redshift after frequent updates and deletes, the `VACUUM FULL` command is the appropriate solution.

AVACUUM FULL OrdersCorrect

VACUUM FULL performs a full vacuum operation, which reclaims disk space by physically removing deleted rows and also re-sorts the table, which is essential for maintaining the effectiveness of an interleaved sort key after frequent updates and deletes. The re-sorting implicitly reanalyzes the sort key column to ensure query performance.

BVACUUM DELETE ONLY Orders

VACUUM DELETE ONLY only reclaims space from deleted rows without re-sorting the table, which would not address the need to maintain the interleaved sort key's effectiveness.

CVACUUM REINDEX Orders

VACUUM REINDEX is not a standard or recognized Redshift VACUUM option for a full re-sort or re-analysis; Redshift's VACUUM command handles sorting and analyzing as part of FULL or SORT ONLY operations.

DVACUUM SORT ONLY Orders

VACUUM SORT ONLY re-sorts the table but does not reclaim disk space from deleted rows, so it would not meet the requirement to prevent running out of storage space.

Concept tested: Amazon Redshift VACUUM operations

Source: https://docs.aws.amazon.com/redshift/latest/dg/r_VACUUM_command.html

Topics

#Redshift VACUUM#Sort Keys#Disk Space Management#Table Maintenance

Community Discussion

No community discussion yet for this question.

Full DEA-C01 Practice