ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 283 - DBS-C01 discussion

Report
Export

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?

A.
Modify the rds.log_retention_period parameter to 0. Reboot the DB instance to save the changes.
Answers
A.
Modify the rds.log_retention_period parameter to 0. Reboot the DB instance to save the changes.
B.
Modify the rds.log_retention_period parameter to 1440. Wait up to 24 hours for database logs to be deleted.
Answers
B.
Modify the rds.log_retention_period parameter to 1440. Wait up to 24 hours for database logs to be deleted.
C.
Modify the temp file_limit parameter to a smaller value to reclaim space on the DB instance.
Answers
C.
Modify the temp file_limit parameter to a smaller value to reclaim space on the DB instance.
D.
Modify the rds.log_retention_period parameter to 1440. Reboot the DB instance to save the changes.
Answers
D.
Modify the rds.log_retention_period parameter to 1440. Reboot the DB instance to save the changes.
Suggested answer: B

Explanation:

Explanation from Amazon documents:The rds.log_retention_period parameter specifies how long your RDS for PostgreSQL DB instance keeps its log files. The default setting is 3 days (4,320 minutes), but you can set this value to anywhere from 1 day (1,440 minutes) to 7 days (10,080 minutes)123. By reducing the log retention period, you can free up storage space on your DB instance without affecting its availability or performance.To modify the rds.log_retention_period parameter, you need to use a custom DB parameter group for your RDS for PostgreSQL instance. You can modify the parameter value using the AWS Management Console, the AWS CLI, or the RDS API1. The parameter change is applied immediately, but it may take up to 24 hours for the database logs to be deleted2. Therefore, you do not need to reboot the DB instance to save the changes or to reclaim the storage space.Therefore, option B is the correct solution to meet the requirements. Option A is incorrect because setting the rds.log_retention_period parameter to 0 disables log retention and prevents you from viewing or downloading any database logs1. Rebooting the DB instance is also unnecessary and may cause downtime. Option C is incorrect because the temp file_limit parameter controls the maximum size of temporary files that a session can generate, not the size of database logs. Modifying this parameter will not reclaim any storage space on the DB instance. Option D is incorrect because rebooting the DB instance is not required to save the changes or to reclaim the storage space.

asked 16/09/2024
Christopher Scott
41 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first