Question 490
A rolling retention process must remove the oldest table partition with minimal data movement. Which implementation decision BEST addresses this requirement?
Explanation
Correct Answer
Use compatible staging tables and ALTER TABLE SWITCH after checking alignment and constraints. This targets the primary issue because metadata-based partition switching requires strict schema and partition alignment. Verification: A tested switch moves the intended range without orphaning rows. Prevent recurrence: Use transactional change control and rehearse rollback.
Incorrect Answers
Missing future boundaries force incoming values into the existing terminal partition.
Finite ranges exhaust and enabling CYCLE without safety checks may repeat identifiers.
Binary floating-point approximations cannot represent every decimal currency value exactly.