Data Store Management

A company must delete one customer's records from a large Amazon Redshift table while retaining other customers' records. Storage occupied by the deleted rows must also be reclaimed; what should the engineer do?

Show the answer

Correct answerC. DELETE matching rows, then run VACUUM DELETE ONLY.

AWhy not this: UNLOAD exports query results without deleting source rows; ANALYZE does not reclaim deleted-row space.

BWhy not this: TRUNCATE removes all rows rather than only the specified customer's records; ANALYZE updates statistics.

CWhy this is right: DELETE can target the customer's records, and VACUUM DELETE ONLY reclaims the space occupied by deleted rows.

DWhy not this: Restoring or copying backup data is not the required space-reclamation operation and can reintroduce deleted records.

A predicate-based DELETE removes the customer's rows, and VACUUM DELETE ONLY reclaims space from deleted rows. TRUNCATE removes every row, so it cannot preserve other customers' records.