AWS Certified Database – Specialty — Question 284

A company maintains several databases using Amazon RDS for MySQL and PostgreSQL. Each RDS database generates log files with retention periods set to their default values. The company has now mandated that database logs be maintained for up to 90 days in a centralized repository to facilitate real-time and after-the-fact analyses.
What should a Database Specialist do to meet these requirements with minimal effort?

Answer options

Correct answer: B

Explanation

Amazon RDS natively supports exporting database logs directly to Amazon CloudWatch Logs, requiring minimal configuration and no custom code. CloudWatch Logs serves as a centralized repository that facilitates real-time monitoring and allows log group retention to be easily configured to 90 days. Other options involving AWS Lambda functions or database stored procedures introduce unnecessary operational overhead and development effort.