AWS Certified Data Engineer – Associate (DEA-C01) — Question 154
A company uses Amazon Redshift as its data warehouse. Data encoding is applied to the existing tables of the data warehouse. A data engineer discovers that the compression encoding applied to some of the tables is not the best fit for the data.
The data engineer needs to improve the data encoding for the tables that have sub-optimal encoding.
Which solution will meet this requirement?
Answer options
- A. Run the ANALYZE command against the identified tables. Manually update the compression encoding of columns based on the output of the command.
- B. Run the ANALYZE COMPRESSION command against the identified tables. Manually update the compression encoding of columns based on the output of the command.
- C. Run the VACUUM REINDEX command against the identified tables.
- D. Run the VACUUM RECLUSTER command against the identified tables.
Correct answer: B
Explanation
The correct answer is B because the ANALYZE COMPRESSION command specifically analyzes the existing compression and provides recommendations for better encoding options, which is necessary for improving data encoding. Option A is incorrect as the ANALYZE command does not provide compression recommendations. Options C and D are unrelated to encoding and focus on table maintenance rather than optimizing data compression.