Fact-checked by Grok 2 weeks ago

Amazon DocumentDB

Amazon DocumentDB (with compatibility) is a fully managed, serverless document database service developed by (AWS) that supports APIs and drivers, enabling the , querying, and of data in a cloud-native environment without requiring manual infrastructure management. Designed for high-performance applications handling , Amazon DocumentDB separates compute and to allow independent , with expansion up to 128 in 10 increments and the ability to add up to 15 read replicas for enhanced throughput, achieving millions of reads and writes per second with single-digit millisecond latency. Its architecture features a shared cluster volume that replicates data six ways across three Availability Zones for 99.999999999% durability, while the primary instance handles read/write operations and replicas support read with minimal lag under 100 ms. This service ensures through automated , for up to 35 days, and encryption at rest using AWS Key Management Service (), making it suitable for mission-critical workloads in sectors like healthcare and . Key benefits include up to 90% cost savings compared to peak provisioning through on-demand scaling and optimized instance types, alongside compatibility that facilitates seamless migration from without code changes or downtime. Common use cases encompass systems, storage, personalized recommendations, and AI-driven applications requiring low-latency global access via Global Clusters. While it supports a wide range of operations for querying and indexing documents, it operates within AWS (VPC) for secure connectivity and integrates with tools like Amazon CloudWatch for monitoring.

Overview

Description

Amazon DocumentDB is a fully managed, MongoDB-compatible document database service that offers serverless, provisioned instance-based, and elastic cluster configurations for storing, querying, and scaling JSON-like documents on (AWS). It enables developers to handle with flexible schemas, making it suitable for applications such as content management systems, user profiles, product catalogs, and mobile applications. The service offers key benefits including automatic of compute and resources to meet application demands, through data replication across three Availability Zones, support for up to 128 of per , and the capacity to handle millions of reads and writes per second. These features provide durability and performance without requiring manual infrastructure management. Introduced on January 9, 2019, Amazon DocumentDB serves as AWS's proprietary document database solution, offering compatibility with the to facilitate adoption for existing workloads.

History

Amazon DocumentDB was launched by on January 9, 2019, as a fully managed document database service compatible with 3.6, designed to provide scalable document storage with high performance and availability. On November 9, 2020, Amazon DocumentDB introduced version 4.0, enhancing with 4.0 and adding features such as improved aggregation pipelines and sharding support to better handle complex queries and larger datasets. In November 2022, AWS announced clusters for Amazon DocumentDB, enabling across multiple shards to support workloads exceeding 128 of storage per cluster, marking a shift toward greater for distributed applications. Version 5.0 was released on March 1, 2023, bringing with 5.0, including support for client-side field-level encryption and doubling the maximum storage capacity to 128 TiB for instance-based clusters and elastic clusters. Throughout 2023, additional enhancements included the introduction of document compression in July, which uses LZ4 algorithms to reduce storage costs for large collections, and vector search capabilities in late , allowing approximate nearest neighbor queries with HNSW and IVFFLAT indexes for and workloads. In 2025, Amazon DocumentDB advanced further with the availability of serverless configurations on July 31, enabling automatic scaling in fine-grained increments without provisioning instances, followed by AWS's announcement on August 24 of joining the open-source under the to promote interoperability and community-driven development. Later that year, on October 22, support for Graviton4-based R8G instances was added, delivering improved price-performance for compute-intensive workloads. On October 28, a new query planner (version 2.0) was released, optimizing complex queries with advanced cost-based planning for up to 10x performance improvements in aggregation and join operations. On November 11, 2025, Amazon DocumentDB released version 8.0, achieving full wire protocol compatibility with 8.0, introducing query planner version 3 for enhanced aggregation performance, Zstandard compression offering up to 5x better compression ratios than LZ4, and improvements to vector search including 30x faster index builds. Standard support for version 3.6 is scheduled to end on March 30, 2026, after which extended support will be available for an additional fee to maintain patches and compatibility. Over its evolution, Amazon DocumentDB has transitioned from provisioned instance-based clusters to and serverless options, emphasizing enhancements in , through sharding and auto-scaling, and interoperability via open-source contributions.

Architecture

Core Components

An Amazon DocumentDB cluster is composed of a single primary instance that manages all write operations, up to 15 read replica instances to offload and distribute read traffic, and a shared volume that holds the persistent data for the entire cluster. The primary instance serves as the entry point for writes, while replicas provide scalable read capacity without duplicating data . Replicas can be distributed across multiple Zones to support , with replication details covered in the storage and replication architecture. Instance classes in Amazon DocumentDB include memory-optimized options, such as those in the db.r5, db.r6g, and db.r8g families, which deliver high performance for memory-intensive applications and offer up to 43% cost savings compared to equivalent instances in other popular document databases. The storage can be configured as standard or I/O-optimized; the I/O-optimized configuration provides up to 40% cost savings for workloads where I/O operations account for more than 25% of total database expenses, by reducing I/O charges through optimized storage handling. The db.r8g instances, powered by , achieve up to 30% better performance than previous Graviton-based generations like db.r6g, enabling efficient processing of demanding queries. The in an Amazon DocumentDB cluster is decoupled from compute resources, permitting independent scaling of without affecting instance . This automatically expands in 10 GB increments as data grows, reaching a maximum of 128 , and users are billed only for the actual consumed rather than provisioned . Such separation enhances flexibility for applications with varying data growth patterns. Amazon DocumentDB clusters are deployed within an (VPC) to ensure secure, isolated networking environments with customizable subnets and IP addressing. Each cluster includes a writer (also known as the cluster endpoint) that directs connections to the primary instance for both reads and writes, supporting automatic , and a reader that load-balances read-only traffic across available replicas to optimize performance.

Storage and Replication

Amazon DocumentDB employs a shared storage architecture where data is stored on a cluster volume, a , distributed, and fault-tolerant storage layer that automatically scales from 10 to 128 in 10 GB increments. This volume replicates data six ways across three Availability Zones, with two copies per zone, to ensure high durability and availability. The system achieves 99.999999999% durability by leveraging this multi-AZ replication, protecting against the failure of two Availability Zones without data loss. In the replication process, the primary instance handles all write operations and logs changes directly to the cluster volume, while read replica instances asynchronously pull these updates from the shared storage to maintain , typically with a replication of less than 100 . This pull-based model enables up to 15 replicas per cluster for read scaling, as all instances access the same underlying storage without the need for instance-to-instance data copying. Replicas can be distributed across Availability Zones to balance load and enhance . For , Amazon DocumentDB automatically detects primary instance failures and promotes the healthiest replica to primary in under 30 seconds, minimizing for read and write operations. The cluster endpoint seamlessly redirects to the new primary, and the former primary, once recovered, rejoins as a replica. Backups in Amazon DocumentDB are automated and continuous, capturing transaction logs and storing them durably in , with a configurable of up to 35 days. This enables to any second within the retention period, excluding the last five minutes, allowing restoration to a specific state without full cluster recreation.

Key Features

Scalability and Performance

Amazon DocumentDB provides flexible scaling options to handle varying workloads, supporting both instance-based and elastic cluster architectures. In instance-based clusters, users can scale vertically by resizing instances to larger types for increased compute and , or horizontally by adding up to 15 read replicas to distribute read and enhance throughput. clusters, on the other hand, automatically scale compute and storage based on demand through sharding, enabling workloads to reach millions of reads and writes per second with petabyte-scale storage. Performance is optimized through serverless auto-scaling, which dynamically adjusts capacity to match application needs, offering up to 90% cost savings compared to provisioning for peak loads. In October 2025, Amazon DocumentDB introduced a new query planner (version 2.0), which delivers up to 10x performance improvements and greater stability for complex queries. Global clusters facilitate multi-region replication, providing low-latency reads across AWS Regions and enabling with recovery time objectives (RTO) typically under one minute. For query efficiency, Amazon DocumentDB supports parallel index builds to accelerate index creation without downtime and provides index bloat metrics via Amazon CloudWatch to monitor and mitigate storage inefficiencies.

Query and Indexing Capabilities

Amazon DocumentDB provides robust query capabilities compatible with 's aggregation framework, enabling complex data processing and analysis. It supports the full aggregation pipeline, including core stages such as $group for grouping documents and computing aggregate values, and $project for reshaping documents by including, excluding, or transforming fields. This allows users to perform multi-stage operations like filtering, sorting, and joining data within a single query. Additionally, date manipulation operators like $dateAdd and $dateSubtract are fully supported, facilitating time-based computations such as adding or subtracting intervals from date fields in aggregation expressions. In July 2025, Amazon DocumentDB introduced the $regexFindAll aggregation operator, which applies a to a and returns an of all non-overlapping matches, enhancing pattern-matching capabilities for text processing in pipelines. For example, to extract all addresses from a text field, one could use { $regexFindAll: { input: "$description", regex: /\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b/ } }. This operator, along with other functions like $trim and $replaceAll, supports advanced text manipulation without requiring external processing. Indexing in Amazon DocumentDB optimizes query performance across various data types and use cases. It supports compound indexes, which combine multiple fields into a single index structure to efficiently handle multi-field queries; (Time-To-Live) indexes, which automatically expire and delete documents after a specified duration; and partial indexes, which index only documents matching a expression to reduce index size and improve selectivity for targeted queries. Parallel index builds, available since June 2024, accelerate the creation of indexes on large collections by distributing the workload across multiple workers, potentially reducing build times by up to 14 times compared to single-threaded builds on compatible instance types. For AI and machine learning applications, Amazon DocumentDB introduced vector search in November 2023, allowing storage, indexing, and similarity searches on high-dimensional vectors using approximate nearest neighbor algorithms. Users can create vector indexes on embedding fields and query them with operators like $vectorSearch to retrieve semantically similar documents, supporting up to millions of vectors per collection. Advanced features further enhance efficiency and flexibility. Document compression, introduced in version 5.0, applies LZ4 compression at the collection level to reduce storage and I/O costs, compressing documents larger than 2 KB by up to seven times while maintaining query compatibility. Starting in October 2025, version 5.0 also supports collection names up to 255 characters, accommodating longer namespaces for better organization in complex schemas. In November 2025, Amazon DocumentDB introduced engine version 8.0 with query planner version 3.0, offering up to 2x overall performance improvement over planner v2.0. This version supports 21 aggregation stages, including new ones such as $replaceWith, $vectorSearch, $merge, $set, $unset, and $bucket, along with additional operators like $pow, $rand, and various date functions. While versatile, Amazon DocumentDB has limitations in elastic clusters, where certain sharding features, such as multi-document transactions spanning multiple and some shard management commands like $shardedCollections, are not supported to ensure and . Auto-scaling in elastic clusters can handle varying query loads by dynamically adjusting shard capacity.

Compatibility

MongoDB API Support

Amazon DocumentDB (with compatibility) is designed to be compatible with the 3.6, 4.0, 5.0, and 8.0 s, operations, data types, and drivers, enabling users to leverage existing applications with minimal or no code changes. This compatibility extends to the , which allows seamless integration by emulating server responses that drivers and tools expect. As a result, developers can reuse their application code, including connections via standard drivers for these versions, without requiring modifications to connect to DocumentDB clusters. Support for 8.0 compatibility was introduced on November 14, 2025, adding enhancements such as up to 7x improved query performance, up to 5x better compression, and new aggregation operators like replaceWith and vectorSearch. Key supported features include querying and aggregating data using operations such as find, aggregate, and distinct; updating and inserting documents with commands like update, insert, and findAndModify; and managing indexes and collections through APIs like createIndexes, listIndexes, dropIndexes, createCollection, and renameCollection. Client-side field-level encryption, which enables in-application encryption of sensitive data before transmission to the database, was introduced in the 5.0 compatibility version to support compliance with data protection regulations. These features align closely with MongoDB's aggregation pipeline, including operators like $group, $match, and $sort, facilitating advanced data processing within DocumentDB. DocumentDB includes unique AWS-specific extensions integrated into the MongoDB APIs, such as at rest using AWS Key Management Service () for databases, backups, snapshots, and replicas, which enhances security without altering standard MongoDB workflows. Engine versions in DocumentDB align with MongoDB releases, providing feature parity for querying, transactions ( support in 4.0+), and change streams (with 7-day retention in 4.0+). For older versions, extended support for MongoDB 3.6 is available until March 30, 2026, after which users can opt for paid extended support to continue running clusters, ensuring gradual transitions.

Migration Considerations

Migrating data and applications to Amazon DocumentDB from other databases, particularly self-managed MongoDB instances, involves several established paths to ensure minimal disruption. One common approach is using MongoDB's native tools, such as mongodump for exporting data from the source and mongorestore for importing it into DocumentDB clusters. These tools support offline migrations and can handle parallel collections for efficiency, making them suitable for smaller datasets or initial testing. For larger-scale or online migrations with ongoing replication, the AWS Database Migration Service (DMS) is recommended, as it facilitates schema mapping, full data loads, and change data capture (CDC) from MongoDB sources in replica set mode to DocumentDB targets. DMS handles data transfer across heterogeneous environments while supporting JSON-based configurations for tasks like parallel apply threads to optimize performance. Key challenges in migration arise from differences in architecture and supported features between MongoDB and DocumentDB. For instance, DocumentDB does not support MongoDB's sharding mechanism, where data is distributed across using shard keys; instead, it relies on a shared volume for horizontal , requiring applications dependent on sharding to be refactored for data distribution logic. Additionally, DocumentDB instance-based have AWS-specific limits, such as a maximum of 16 instances per (one primary and up to 15 replicas), which may necessitate adjustments if the source MongoDB setup exceeds this for or read . These limitations can impact workloads with extreme partitioning needs, potentially requiring a redesign to leverage DocumentDB's elastic for greater scalability. To address these hurdles, best practices emphasize thorough compatibility testing and version management. Developers should validate application drivers—those compatible with MongoDB 3.6, 4.0, , or 8.0 APIs—against DocumentDB using representative workloads to identify any behavioral differences in queries or connections. For version upgrades, such as moving from MongoDB 3.6 compatibility to , migrations often involve creating a new DocumentDB at the target version and transferring data via or dump/restore tools, as direct in-place upgrades from older versions require careful planning to avoid downtime. DocumentDB supports in-place major version upgrades from 3.6 or 4.0 to , preserving endpoints, , and tags while enabling seamless transitions for existing s without data movement. Upgrades to 8.0 compatibility require creating a new and migrating data, as in-place major version upgrades are not supported. The AWS Schema Conversion Tool (SCT) can assist with minor adaptations during tasks, particularly for mapping collections and ensuring in hybrid migrations. Tools like the Amazon DocumentDB Tool further aid by analyzing source logs or code to flag potential issues before migration.

Deployment and Management

Cluster Setup

Amazon DocumentDB clusters can be deployed using the AWS Management Console, , or AWS Software Development Kits (SDKs), allowing users to provision instance-based or elastic cluster types tailored to workload needs. For instance-based clusters, the process begins by signing into the AWS Management Console, navigating to the , and selecting "Create" under Clusters, where users specify a unique cluster identifier, engine version such as 5.0.0, instance class like db.r5.large, and the number of instances (one primary writer and up to 15 replicas). Engine version 8.0, released on November 11, 2025, is also available and offers up to 7x query performance improvements and 5x better compression, but must be explicitly specified. Elastic clusters, which support sharding up to 32 shards for distributed workloads, follow a similar console workflow but require explicit selection of the elastic type during creation and setup of permissions via the AmazonDocDBElasticFullAccess policy. Network configuration is essential, involving selection of a (VPC), a subnet group spanning at least two Availability Zones, and security groups to control inbound traffic, typically on port 27017. Configuration options during setup include assigning a custom DB cluster parameter group to tune settings like retention and windows, with the fixed post-creation (options: 5.0.0 , 4.0.0, 3.6.0, or 8.0) and no explicit auto-minor versioning toggle, though AWS handles minor updates within major versions. are configured with a retention period of 1-35 days (: 1 day) and an automated preferred window, while windows to automatic scheduling to minimize disruption. requires setting a username and password, with enabled by using the AWS-managed key. Using the AWS CLI, deployment involves commands like aws docdb create-db-cluster to define the cluster identifier, , , and credentials, followed by aws docdb create-db-instance for the primary instance. After deployment, initial operations involve connecting to the cluster endpoint using MongoDB-compatible drivers, such as the mongo shell via AWS CloudShell, where users authenticate with the master credentials. Databases are not created explicitly; the default database suffices, and collections form upon data insertion, for example, via db.collection.insertOne({"key": "value"}) to add documents. Amazon DocumentDB is available in multiple AWS Regions worldwide, enabling regional deployments for low-latency access, and supports global clusters for multi-region replication across up to eleven Regions (one primary and ten secondaries), created by initiating a primary and adding secondary Regions via console actions or CLI. Supported instance classes for global clusters include db.r5 and db.r6g families.

Monitoring and Maintenance

Amazon DocumentDB integrates with Amazon CloudWatch to provide comprehensive monitoring of and instance performance through various metrics. Key metrics include CPUUtilization, which measures the percentage of CPU capacity used by an instance over a specified period, and AvailableMVCCIds, a counter indicating the number of remaining write operations available before the cluster enters read-only mode due to multi-version constraints. Additionally, LongestRunningGCProcess, which tracks the duration in seconds of the longest active collection and updates every minute, was introduced on July 29, 2025, to help assess cluster health related to collection efficiency. These metrics can be viewed and analyzed using the Amazon DocumentDB console's Monitoring tab, the CloudWatch console, AWS CLI, or CloudWatch API, allowing users to set alarms for thresholds such as low AvailableMVCCIds to prevent operational disruptions. Query logging in Amazon DocumentDB is facilitated through CloudWatch Logs, where operations like slow queries or data can be enabled and streamed for analysis. Once logged, users can employ CloudWatch Logs Insights to query, monitor, and archive this data, enabling detailed examination of query patterns and performance bottlenecks without manual log management. Maintenance activities in Amazon DocumentDB include automated patching of the database engine, which occurs during predefined maintenance windows to apply security updates and improvements with minimal disruption. If no action is taken, required patches are automatically applied in the next scheduled window, though users can defer optional ones. For proactive upkeep, manual instance reboots can be initiated via the AWS Management Console or CLI, resulting in a brief outage but without triggering a full failover, to resolve certain configuration issues or refresh resources. Manual failovers promote a replica instance to primary status, useful for testing or controlled recovery, and are performed using the failover-db-cluster operation. Index bloat, which can degrade query performance due to fragmented storage, is monitored via dedicated CloudWatch metrics introduced in engine patch versions for Amazon DocumentDB 4.0 and 5.0; optimization involves rebuilding indexes during low-traffic periods to reclaim space without downtime. Troubleshooting common issues such as connection throttling—often caused by exceeding per-instance limits or low —is supported by monitoring metrics like the number of throttled requests in a one-minute period. Amazon DocumentDB Performance Insights provides a to visualize database load, identify high-impact queries by average active sessions, and filter by wait events or SQL statements, aiding in pinpointing and resolving performance degradation. For instance, if CPU wait states dominate, it may indicate overload, prompting connection throttling or scaling adjustments. Major version upgrades in Amazon DocumentDB support in-place operations from versions 3.6 or 4.0 to , preserving cluster endpoints, storage volumes, and tags to minimize reconfiguration efforts. This process applies updates directly to the existing cluster during a maintenance window, with thorough compatibility testing ensuring smooth transitions for MongoDB-compatible workloads. Upgrades to version 8.0, available since November 11, 2025, require using to migrate from clusters with minimal downtime.

Security and Compliance

Data Protection

Amazon DocumentDB provides robust data protection through multiple layers of to secure both at rest and in transit. is encrypted using the AES-256 via the AWS Key Management Service (AWS KMS), employing envelope encryption where a data key is generated and managed by KMS to protect the underlying storage volume, including all user , indexes, logs, automated backups, and manual snapshots. This is enabled at cluster creation and applies cluster-wide, with options for AWS-managed or customer-managed KMS keys, ensuring transparency to applications without performance impact. For in transit, Amazon DocumentDB enforces () , requiring TLS 1.2 or higher and recommending TLS 1.3 for connections between clients and the cluster, utilizing Perfect Forward Secrecy (PFS) cipher suites like DHE and ECDHE. Additionally, client-side field-level is supported, compatible with MongoDB's , allowing sensitive to be encrypted before and stored in encrypted form within DocumentDB 5.0 and later versions. Backup and recovery mechanisms in Amazon DocumentDB ensure data availability and resilience against loss. The service performs continuous automated backups, capturing daily full snapshots stored in Amazon Simple Storage Service (S3), which is designed for 99.999999999% (11 nines) durability. These backups enable (PITR) to any second within the , configurable from 1 to 35 days, allowing restoration to a previous state without beyond the point. Manual snapshots can also be created for long-term retention and are encrypted using the same keys as the cluster, further safeguarding archived data. Overall data durability in Amazon DocumentDB is rated at 99.999999999% over a one-year period, achieved through a fault-tolerant system that replicates six ways across three Availability Zones (AZs) in a multi-AZ deployment. This replication ensures that the loss of up to two copies does not impact write availability, and up to three does not affect read availability, with self-healing mechanisms continuously scanning for and repairing errors. Amazon DocumentDB meets stringent compliance requirements for regulated industries, including authorization under Moderate for standard AWS Regions and High for AWS GovCloud (US) Regions, as well as support for HIPAA and DSS through AWS compliance programs and business associate agreements. These certifications validate the service's cryptographic modules under and enable use in environments handling sensitive health, financial, and government data.

Access and Auditing

Amazon DocumentDB provides (RBAC) to manage database-level permissions, using built-in roles such as read, readWrite, dbAdmin, and root to define granular actions like querying, inserting, or administering databases and collections. Users are created and managed via MongoDB-compatible commands on the admin database, such as db.createUser for with username and , allowing roles to be scoped to specific databases or the entire cluster. Custom roles can be defined with precise privileges, supporting up to 1000 users per cluster and 100 user-defined roles. For enhanced security, Amazon DocumentDB supports database authentication starting with version 5.0, enabling passwordless access using temporary AWS () tokens for users or roles. This method requires specifying authSource=$external and authMechanism=MONGODB-AWS in connection URIs, with users managed in the $external database; it integrates seamlessly with services like EC2, , and EKS via assumed roles. At the infrastructure level, access to DocumentDB resources like clusters and instances is controlled through identity-based policies, which specify actions such as docdb:CreateDBCluster on ARNs like arn:aws:docdb:region:account-id:db-cluster:cluster-name. Auditing in Amazon DocumentDB is an opt-in feature that logs database events to Amazon CloudWatch Logs, capturing authentication attempts, (DDL) operations like creating or dropping collections, and (DML) actions including reads (e.g., find) and writes (e.g., insert, update). To enable auditing, modify the audit_logs parameter group to include options like ddl, dml_read, dml_write, or all, then export logs via the AWS Management Console or CLI; logs are stored in format under paths like /aws/docdb/cluster-name/audit in the same region as the cluster. authentication events can be filtered and monitored in these logs using patterns like { $.param.mechanism = "MONGODB-AWS" }, with no additional costs beyond standard CloudWatch pricing. This auditing supports compliance requirements, such as those under Moderate and High authorizations in applicable AWS regions.

References

  1. [1]
    Amazon DocumentDB (with MongoDB compatibility)
    Amazon DocumentDB is compatible with MongoDB APIs and drivers so you can migrate applications, typically without application code changes or downtime.
  2. [2]
    What is Amazon DocumentDB (with MongoDB compatibility)
    Amazon DocumentDB is a fast, reliable, fully managed database service that makes it easy to set up, operate, and scale MongoDB-compatible databases in the ...Overview · Instances · Regions and AZs · Pricing
  3. [3]
    Amazon DocumentDB: how it works
    A fully managed, MongoDB-compatible database service. With Amazon DocumentDB, you can run the same application code and use the same drivers and tools that you ...
  4. [4]
    Understanding documents - Amazon DocumentDB
    Document databases store semistructured data as self-describing documents using nested key-value pairs, unlike relational databases with fixed structures.
  5. [5]
    JSON database solutions in AWS: Amazon DocumentDB (with ...
    Oct 22, 2025 · For organizations with variable workloads, Amazon DocumentDB can support millions of reads/writes per second and petabytes of storage capacity, ...Json Database Solutions In... · Semantic Search Capabilities · Geospatial Query...
  6. [6]
    Announcing Extended Support for Amazon DocumentDB (with ...
    Aug 13, 2025 · Key benefits of upgrading to Amazon DocumentDB version 5.0 · Increased storage – Up to 128 TiB for both instance-based and elastic clusters ...
  7. [7]
    New – Amazon DocumentDB (with MongoDB Compatibility): Fast ...
    Jan 9, 2019 · Amazon DocumentDB (with MongoDB compatibility) is available now and you can start using it today in the US East (N. Virginia), US East (Ohio), ...
  8. [8]
    Amazon DocumentDB engine version support dates
    Amazon DocumentDB engine version support dates ; Version 3.6. 9 January 2019. 30 March 2026 ; Version 4.0. 9 November 2020. N/A ; Version 5.0. 1 March 2023. N/A.
  9. [9]
    Amazon DocumentDB compatibility with MongoDB
    Amazon DocumentDB 5.0 introduces new features and capabilities that include storage limits and client-side field level encryption. The summary below introduces ...What's new in Amazon... · Get started with Amazon... · Amazon DocumentDB 4.0...
  10. [10]
    Announcing Amazon DocumentDB Elastic Clusters | AWS News Blog
    Nov 30, 2022 · Amazon DocumentDB (with MongoDB compatibility) is a scalable, highly durable, and fully managed database service for operating ...<|control11|><|separator|>
  11. [11]
    Amazon DocumentDB (with MongoDB compatibility) adds support ...
    Mar 2, 2023 · 128 TiB Storage Limit - Amazon DocumentDB doubles the storage volume in Amazon DocumentDB 5.0 clusters and Elastic Cluster shards. Storage ...
  12. [12]
    Release notes - Amazon DocumentDB - AWS Documentation
    Amazon DocumentDB is now available in the Europe (Stockholm) region. For more information, see this blog post . April 2, 2025 ...July 29, 2025 · July 23, 2024 · July 22, 2024 · January 10, 2024
  13. [13]
    Unlock cost savings using compression with Amazon DocumentDB
    Oct 25, 2024 · Document compression is only supported on Amazon DocumentDB version 5.0. Amazon DocumentDB by default only compresses documents of size 2 KB and ...
  14. [14]
    Vector search for Amazon DocumentDB (with MongoDB ...
    Amazon DocumentDB performs an approximate nearest neighbor (ANN) search using the inverted file with flat compression (IVFFLAT) vector index.Missing: November | Show results with:November
  15. [15]
    Amazon DocumentDB Serverless is now available | AWS News Blog
    Jul 31, 2025 · Amazon DocumentDB Serverless is now available starting with Amazon DocumentDB 5.0 for both new and existing clusters. You only pay a flat rate ...<|control11|><|separator|>
  16. [16]
    AWS joins the DocumentDB project to build interoperable, open ...
    AWS joins the DocumentDB project to build interoperable, open source document database technology. by Rashim Gupta on 24 AUG 2025 in Amazon DocumentDB, ...Mongodb Api Compatibility · Feature Innovations · Built On PostgresqlMissing: August | Show results with:August
  17. [17]
    Query planner - Amazon DocumentDB - AWS Documentation
    Oct 23, 2025 · The new query planner for Amazon DocumentDB (planner version 2.0) features advanced query optimization capabilities and improved performance ...
  18. [18]
    Amazon DocumentDB Extended Support
    For example, Amazon DocumentDB end of standard support date for version 3.6 is March 30, 2026, however you aren't ready to upgrade to version 5.0 before that ...
  19. [19]
    Amazon DocumentDB (with MongoDB compatibility) FAQs
    In August 2025, AWS announced it is joining this project as a member of the technical steering committee. While both open source DocumentDB and Amazon ...
  20. [20]
    Features of Amazon DocumentDB (with MongoDB compatibility)
    Amazon DocumentDB has a flexible JSON document model, data types, and efficient indexing. It uses a scale-up, in-memory optimized architecture to allow for ...
  21. [21]
    Amazon DocumentDB High availability and replication
    Amazon DocumentDB uses replica instances distributed across Availability Zones for high availability. Replicas are eventually consistent, and failover is ...High availability · Adding replicas
  22. [22]
    Managing instance classes - Amazon DocumentDB
    R8G —Latest generation of memory-optimized instances powered by Arm-based AWS Graviton4 processors that provide up to 30% better performance over R6G instances.Missing: Graviton | Show results with:Graviton
  23. [23]
    DocumentDB clusters in a VPC - AWS Documentation - Amazon.com
    Amazon DocumentDB clusters operate within Amazon VPC environments, providing logical isolation with subnet organization and IP addressing options, ...Missing: structure | Show results with:structure
  24. [24]
    Understanding Amazon DocumentDB endpoints
    Cluster endpoint. A cluster endpoint is an endpoint for an Amazon DocumentDB cluster that connects to the current primary instance for the cluster.
  25. [25]
    Understanding clusters - Amazon DocumentDB
    Amazon DocumentDB separates compute and storage, and offloads data replication and backup to the cluster volume. A cluster volume provides a durable, ...
  26. [26]
    Understanding Amazon DocumentDB cluster fault tolerance
    Amazon DocumentDB clusters are fault tolerant by design. Each cluster's volume spans multiple Availability Zones in a single AWS Region.
  27. [27]
    Scaling Amazon DocumentDB clusters - AWS Documentation
    Neptune storage scales automatically with data growth, up to 128 TiB. Instances scale by modifying DB instance class. Read scaling achieved by adding up to 15 ...
  28. [28]
    Amazon DocumentDB elastic clusters: how it works
    A Amazon DocumentDB elastic cluster contains multiple shards to split large datasets into smaller ones, allowing for improved database scaling.Amazon DocumentDB elastic... · Elastic cluster scaling
  29. [29]
    Using Amazon DocumentDB elastic clusters - AWS Documentation
    With elastic clusters, you can distribute your data over more storage volumes enabling you to store petabytes of data in a single cluster. Advantages of elastic ...Missing: benefits | Show results with:benefits
  30. [30]
  31. [31]
    Overview of Amazon DocumentDB global clusters
    With an global cluster, you can run globally distributed applications using a single cluster that spans multiple AWS Regions.Missing: reader | Show results with:reader
  32. [32]
    Disaster recovery and Amazon DocumentDB global clusters
    The status of the primary cluster changes to "Failing-over". This condition should take approximately one minute. During this time, the status of the new ...
  33. [33]
    Managing Amazon DocumentDB indexes - AWS Documentation
    Manage index build failures, latency, bloat; create indexes before migration; scale instances; rebuild indexes without downtime; monitor disk usage. November 12 ...
  34. [34]
    Supported MongoDB APIs, operations, and data types in Amazon ...
    Amazon DocumentDB is compatible with the MongoDB 3.6, 4.0, and 5.0 APIs. This section lists the supported functionality.Database commands · Cursor methods · Aggregation pipeline operators
  35. [35]
    Partial index - Amazon DocumentDB - AWS Documentation
    You can also create indexes having partial and TTL properties by specifying both partialFilterExpression and expireAfterSeconds options during index creation.
  36. [36]
    Unlock the power of parallel indexing in Amazon DocumentDB
    Jun 19, 2024 · Parallel indexing is currently supported on Amazon DocumentDB version 4.0 and higher instance-based clusters, with instance types of 2xlarge and ...
  37. [37]
    AWS announces vector search for Amazon DocumentDB
    Amazon DocumentDB (with MongoDB compatibility) now supports vector search, a new capability that enables you to store, index, and search millions of vectors.
  38. [38]
    Managing collection-level document compression
    Amazon DocumentDB supports document compression starting with version 5.0. The following are collection-level document compression functions: Default behavior — ...
  39. [39]
    Functional differences: Amazon DocumentDB and MongoDB
    Amazon DocumentDB offers MongoDB-compatible database service with high availability, automatic scaling, and encryption. November 8, 2025 ...
  40. [40]
    Amazon DocumentDB migration runbook - AWS Documentation
    This runbook provides a comprehensive guide for migrating a MongoDB database to Amazon DocumentDB using AWS Database Migration Service (DMS).
  41. [41]
    Using Amazon DocumentDB as a target for AWS Database ...
    You can use AWS DMS to migrate data to Amazon DocumentDB (with MongoDB compatibility) from any of the source data engines that AWS DMS supports.
  42. [42]
    Amazon DocumentDB Quotas and limits
    Cluster limits ; Collections per cluster, 100,000 ; Databases per cluster, 100,000 ; Database size (sum of all databases can't exceed cluster limit), 128 TiB.
  43. [43]
    Amazon DocumentDB in-place major version upgrade
    Currently, Amazon DocumentDB supports three major versions: Amazon DocumentDB 3.6, 4.0, and 5.0. You can perform an in-place major version upgrade (MVU) of your ...
  44. [44]
    Use the compatibility tool for Amazon DocumentDB (with MongoDB ...
    Apr 3, 2023 · ... Amazon DocumentDB cluster volume can grow to a maximum size of 128 TiB. Additionally, Amazon DocumentDB automates database clustering and ...
  45. [45]
    Creating an Amazon DocumentDB cluster - AWS Documentation
    Amazon DocumentDB uses an algorithm to load balance the instances across Availability Zones to help you achieve high availability. For example, if three ...
  46. [46]
    Get started with Amazon DocumentDB elastic clusters
    Step 1: Create an elastic cluster · On the Amazon DocumentDB Management Console, under Clusters, choose Create. · On the Create Amazon DocumentDB cluster page, in ...
  47. [47]
    Amazon DocumentDB Cluster settings
    Length is [1—255] alphanumeric characters. First character must be a letter. Cannot end with a hyphen or contain two consecutive hyphens. DBSubnetGroupName ...
  48. [48]
    Get started with Amazon DocumentDB - AWS Documentation
    Amazon DocumentDB offers MongoDB-compatible database service with high availability, automatic scaling, and encryption. November 11, 2025 ...
  49. [49]
    Quick start guide: global clusters - Amazon DocumentDB
    In this section we will explain how to create a brand new global cluster with new database clusters and instances, using either the AWS Management Console or ...
  50. [50]
    Monitoring Amazon DocumentDB with CloudWatch
    Amazon DocumentDB integrates with CloudWatch for monitoring via console, CLI, or API. Metrics can be viewed in the DocumentDB console under the Monitoring tab.Amazon DocumentDB metrics · Viewing CloudWatch data · Amazon DocumentDB...
  51. [51]
    Logging and monitoring in Amazon DocumentDB
    Amazon DocumentDB can be monitored using CloudWatch metrics, logged with profiler, and logged via CloudTrail. Auditing is also available for events.
  52. [52]
    Profiling Amazon DocumentDB operations - AWS Documentation
    After the operations are logged to CloudWatch Logs, you can use CloudWatch Logs Insights to analyze, monitor, and archive your Amazon DocumentDB profiling data.
  53. [53]
    Maintaining Amazon DocumentDB
    The Status for the notification in the AHD will be set to 'Ongoing' until a new Amazon DocumentDB engine patch with a new engine patch version is released. Once ...
  54. [54]
    Rebooting an Amazon DocumentDB instance - AWS Documentation
    Rebooting an instance doesn't result in a failover. To failover an Amazon DocumentDB cluster, use the AWS Management Console or the AWS CLI operation failover- ...
  55. [55]
    Amazon DocumentDB Failover - AWS Documentation
    During a failover, write down time is minimized. This is because the role of primary node fails over to one of the read replicas instead of having to create and ...
  56. [56]
    Monitoring with Performance Insights - Amazon DocumentDB
    Performance Insights helps visualize database load, determine causes of load, and when load occurs, and allows for alerts on database load.
  57. [57]
    Performance Insights concepts - Amazon DocumentDB
    Query planner. October 23, 2025. Accessing an Amazon DocumentDB cluster in a VPC. October 17, 2025. Create a dual-stack VPC for use with a DocumentDB cluster.Missing: v2. | Show results with:v2.
  58. [58]
    Upgrading Amazon DocumentDB - AWS Documentation
    Amazon DocumentDB supports three major versions (3.6, 4.0, and 5.0) with extensive testing before general availability, offering two distinct upgrade ...
  59. [59]
    Encrypting Amazon DocumentDB data at rest
    Amazon DocumentDB clusters should encrypt data at rest, configure backup retention period, restrict public access to manual snapshots, enable audit logging, ...Missing: durability | Show results with:durability
  60. [60]
    Data protection in Amazon DocumentDB - AWS Documentation
    AWS protects infrastructure; users control content. Use MFA, SSL/TLS, CloudTrail, encryption, and avoid putting sensitive data in tags or free-form text fields.Missing: durability | Show results with:durability
  61. [61]
    [PDF] Amazon DocumentDB - Developer Guide - AWS Documentation
    Amazon DocumentDB: how it works. • What is a document database? Overview of Amazon DocumentDB. The following are some high-level features of Amazon DocumentDB:.<|control11|><|separator|>
  62. [62]
    Back up and restore: concepts - Amazon DocumentDB
    Amazon DocumentDB uses daily automatic full backups, with a 1-35 day retention period for point-in-time restore. Manual snapshots can retain backups beyond ...
  63. [63]
    Database access using Role-Based Access Control
    Mar 26, 2020 · Use built-in roles and role-based access control to control user access in Amazon DocumentDB.
  64. [64]
    Authentication using IAM identity - Amazon DocumentDB
    Using Amazon DocumentDB auditing​​ Go to the audit log folder in Amazon CloudWatch, and use different search patterns to get the logs for IAM authentication. For ...
  65. [65]
    Managing access permissions to your Amazon DocumentDB ...
    A permissions policy describes who has access to what. The following section explains the available options for creating permissions policies.
  66. [66]
    Auditing Amazon DocumentDB events
    Feb 13, 2019 · You can use Amazon CloudWatch Logs to analyze, monitor, and archive your Amazon DocumentDB auditing events. Although Amazon DocumentDB does not ...
  67. [67]
    Security in Amazon DocumentDB - AWS Documentation
    Overview of security features in Amazon DocumentDB (with MongoDB compatibility), including managing users, encryption, and authentication and access ...Missing: durability | Show results with:durability