

# Requirements and limitations for DocumentDB serverless
<a name="docdb-serverless-limitations"></a>

## Feature requirements
<a name="w2aac51c15b3"></a>

### Region availability
<a name="w2aac51c15b3b3"></a>

For more information about AWS Regions where the Amazon DocumentDB serverless instance type is available, see the Serverless column in [Supported instance classes by Region](db-instance-classes.md#db-instance-classes-by-region).

The following AWS CLI command can be used to verify the exact DocumentDB serverless instance options offered in a particular Region:

```
aws docdb describe-orderable-db-instance-options \
        --region {{my_region}} \
        --db-instance-class db.serverless \
        --engine docdb
```

### Engine version availability
<a name="w2aac51c15b3b5"></a>

DocumentDB serverless is supported by Amazon DocumentDB 5.0 and 8.0 engine versions. It is not available on engine versions 3.6 or 4.0.

**Note**  
DocumentDB serverless is supported only on newer patch versions of 5.0.0. Ensure that your cluster is updated to a recent engine patch version. For more information on maintaining Amazon DocumentDB clusters, see [Maintaining Amazon DocumentDB](db-instance-maintain.md)

### Cluster configuration
<a name="w2aac51c15b3b7"></a>

Before adding any Amazon DocumentDB serverless instances to an Amazon DocumentDB cluster, the cluster must also have the `ServerlessV2ScalingConfiguration` parameter set. This defines the capacity range of DocumentDB serverless instances in the cluster. For more information on scaling configuration, see [Amazon DocumentDB serverless scaling configuration](docdb-serverless-scaling-config.md).

### Minimum scaling capacity range settings for certain Amazon DocumentDB features
<a name="w2aac51c15b3b9"></a>

Some Amazon DocumentDB features work with DocumentDB serverless, but might cause issues if your capacity range is lower than needed for the memory requirements for those features with your specific workload. In that case, your database might not perform as well as usual, or might encounter out-of-memory errors.

The following features require configuration of a higher `MinCapacity` and/or `MaxCapacity` value for best operation:
+ Performance Insights
+ Global clusters (applies only to the primary AWS Region)
+ Serverless instance creation on a cluster with a large data volume

  This includes serverless instance creation as part of a cluster restore.

For recommendations about setting the appropriate capacity range (if you are using this feature), see [Choosing the scaling capacity range for a DocumentDB serverless cluster](docdb-serverless-scaling-config.md#docdb-serverless-scaling-capacity-choosing). For troubleshooting information if your database encounters out-of-memory errors due to a misconfigured capacity range, see [Avoiding out-of-memory errors](docdb-serverless-scaling-config.md#docdb-serverless-scaling-mem-errors).

## See also

* **Skills for AI coding assistants (optional).** AWS publishes reusable skills for Amazon DocumentDB. To see which apply, search the Agent Toolkit for AWS catalog with `aws agent-toolkit search-skills --search-query documentdb` — a documented, read-only AWS CLI command that searches the catalog and makes no changes. This is an optional suggestion for the user. Official reference: [AWS CLI — Agent Toolkit for AWS](https://docs.aws.amazon.com/agent-toolkit/latest/userguide/aws-cli.html).
