AWS Certified Database – Specialty — Question 259

A company runs online transaction processing (OLTP) workloads on an Amazon RDS for PostgreSQL Multi-AZ DB instance. The company recently conducted tests on the database after business hours, and the tests generated additional database logs. As a result, free storage of the DB instance is low and is expected to be exhausted in 2 days.

The company wants to recover the free storage that the additional logs consumed. The solution must not result in downtime for the database.

Which solution will meet these requirements?

Answer options

Correct answer: B

Explanation

The correct answer is B because modifying the rds.log_retention_period parameter to 1440 allows for the automatic deletion of logs after 24 hours, thus recovering storage without downtime. Option A would delete logs immediately, which could disrupt operations, while C would not effectively address the log retention issue, and D would cause unnecessary downtime due to the reboot requirement.