AWS Certified Database – Specialty — Question 16

A company is using Amazon RDS for PostgreSQL. The Security team wants all database connection requests to be logged and retained for 180 days. The RDS for PostgreSQL DB instance is currently using the default parameter group. A Database Specialist has identified that setting the log_connections parameter to 1 will enable connections logging.
Which combination of steps should the Database Specialist take to meet the logging and retention requirements? (Choose two.)

Answer options

Correct answer: B, C

Explanation

The correct answer is B and C. Creating a custom parameter group allows for changes to the log_connections parameter while keeping the default group intact. Enabling log publishing to Amazon CloudWatch Logs and setting the event expiration to 180 days ensures that logs are retained as required. Options A and E are incorrect because modifying the default parameter group directly is not possible, and connecting to the host to change the postgresql.conf file is not an option for RDS. Option D, while it allows for storage, does not meet the requirement for logging connection requests specifically.