# Source: https://docs.datadoghq.com/security/default_rules/def-000-5q3.md

---
title: DocumentDB clusters should have an appropriate backup retention period set
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: >-
  Docs > Datadog Security > OOTB Rules > DocumentDB clusters should have an
  appropriate backup retention period set
---

# DocumentDB clusters should have an appropriate backup retention period set
 
## Description{% #description %}

This check determines if an Amazon DocumentDB cluster maintains a backup retention period of at least 7 days. A value of 7 to 35 days can be set.

Backups are essential for rapid recovery from security incidents and for enhancing system resilience. By setting up automated backups for Amazon DocumentDB clusters, you can swiftly restore your systems to a previous state, thereby reducing system downtime and loss of data. Typically, Amazon DocumentDB clusters are configured with a default backup retention period of 1 day. To comply with this control, the backup retention period should be extended to a minimum of 7 days and up to a maximum of 35 days.

## Remediation{% #remediation %}

To adjust the backup retention period for your Amazon DocumentDB clusters, refer to the section [Modifying an Amazon DocumentDB cluster in the Amazon DocumentDB Developer Guide](https://docs.aws.amazon.com/documentdb/latest/developerguide/db-cluster-modify.html). There, select the desired backup retention period under the Backup settings.