# Amazon DocumentDB Developer Guide > Provides a conceptual overview of Amazon DocumentDB and provides instructions on using the various features with both the console and the command line interface. - [Quotas](https://docs.aws.amazon.com/documentdb/latest/devguide/limits.md) - [Release notes](https://docs.aws.amazon.com/documentdb/latest/devguide/release-notes.md) - [Document history](https://docs.aws.amazon.com/documentdb/latest/devguide/doc-history.md) ## [What is Amazon DocumentDB](https://docs.aws.amazon.com/documentdb/latest/devguide/what-is.md) - [How it works](https://docs.aws.amazon.com/documentdb/latest/devguide/how-it-works.md): Overview of Amazon DocumentDB, a fully managed, MongoDB-compatible database service. ### [What is a document database?](https://docs.aws.amazon.com/documentdb/latest/devguide/what-is-document-db.md) Overview of what a document database is, and examples that demonstrate how to use the MongoDB API to work with documents. - [Use cases](https://docs.aws.amazon.com/documentdb/latest/devguide/document-database-use-cases.md): Scenarios in which you might consider using a document database like Amazon DocumentDB to manage your data. - [Understanding documents](https://docs.aws.amazon.com/documentdb/latest/devguide/document-database-documents-understanding.md): Overview of documents and the terminology used in document databases. - [Working with documents](https://docs.aws.amazon.com/documentdb/latest/devguide/document-database-working-with-documents.md): Examples that use the MongoDB API to add, query, update, and delete documents in a document database. ## [Get started guide](https://docs.aws.amazon.com/documentdb/latest/devguide/get-started-guide.md) - [Quick start using CloudFormation](https://docs.aws.amazon.com/documentdb/latest/devguide/quick_start_cfn.md): Integrating Amazon DocumentDB (with MongoDB compatibility) with CloudFormation. ## [Migrating and upgrading](https://docs.aws.amazon.com/documentdb/latest/devguide/docdb-migration.md) - [Quick start guide](https://docs.aws.amazon.com/documentdb/latest/devguide/migration-quick-start.md): AWS Database Migration Service (DMS) enables migration to Amazon DocumentDB by setting up a replication instance and configuring source/target endpoints to perform either one-time data migration or continuous replication between your existing database and DocumentDB cluster. - [Migration runbook](https://docs.aws.amazon.com/documentdb/latest/devguide/docdb-migration-runbook.md): Insert your chapter abstract text here. - [Migration from Couchbase Server](https://docs.aws.amazon.com/documentdb/latest/devguide/migration-from-couchbase.md): Migrating from Couchbase Server to Amazon DocumentDB. - [Engine version support dates](https://docs.aws.amazon.com/documentdb/latest/devguide/docdb-version-support-dates.md): Release dates, end of standard support dates, and Extended Support dates for Amazon DocumentDB engine versions. - [Upgrading a major engine version](https://docs.aws.amazon.com/documentdb/latest/devguide/docdb-mvu.md): Performing an Amazon DocumentDB engine version upgrade using in-place MVU (major version upgrade). - [Upgrading a minor engine version](https://docs.aws.amazon.com/documentdb/latest/devguide/docdb-minor-version-upgrade.md): Upgrading your Amazon DocumentDB cluster to a new minor engine version, either automatically or manually. - [Upgrading using AWS DMS](https://docs.aws.amazon.com/documentdb/latest/devguide/docdb-migration.versions.md): How to upgrade from one version of Amazon DocumentDB to another using AWS DMS. - [Using a long-term support (LTS) release](https://docs.aws.amazon.com/documentdb/latest/devguide/docdb-lts-release.md): Information about using long-term support releases in Amazon DocumentDB. ### [Extended Support](https://docs.aws.amazon.com/documentdb/latest/devguide/extended-support.md) Information about Amazon DocumentDB Extended Support, which allows you to continue running an engine version past the end of standard support for an additional cost. - [Extended Support charges](https://docs.aws.amazon.com/documentdb/latest/devguide/support-charges.md): You will incur charges for all clusters running on Extended Support beginning July 1, 2026. - [Responsibilities](https://docs.aws.amazon.com/documentdb/latest/devguide/support-responsibilities.md): The following are the Amazon DocumentDB responsibilities and your responsibilities with Amazon DocumentDB Extended Support. ## [Features and configurations](https://docs.aws.amazon.com/documentdb/latest/devguide/docdb-engine-version-supportability.md) - [Choosing Regions and Availability Zones](https://docs.aws.amazon.com/documentdb/latest/devguide/regions-and-azs.md): Amazon cloud computing resources are hosted in multiple locations worldwide. - [OpenSearch integration](https://docs.aws.amazon.com/documentdb/latest/devguide/openSearch-zero-etl.md): Integrate the Amazon OpenSearch Service with Amazon DocumentDB. ## [Developing](https://docs.aws.amazon.com/documentdb/latest/devguide/documentdb-development.md) ### [Connect to DocumentDB](https://docs.aws.amazon.com/documentdb/latest/devguide/connect-docdb.md) Amazon DocumentDB provides multiple connection options, including programmatic connections using MongoDB drivers, connecting from outside a VPC through SSH tunneling or AWS VPN, and popular tools like Studio 3T and DataGrip. - [Connecting programmatically](https://docs.aws.amazon.com/documentdb/latest/devguide/connect_programmatically.md): This section contains code examples that demonstrate how to connect to Amazon DocumentDB (with MongoDB compatibility) using several different languages. - [Connecting from outside an Amazon VPC](https://docs.aws.amazon.com/documentdb/latest/devguide/connect-from-outside-a-vpc.md): Use SSH tunneling to connect to an Amazon DocumentDB cluster. - [Connecting as a replica set](https://docs.aws.amazon.com/documentdb/latest/devguide/connect-to-replica-set.md): Connect to your Amazon DocumentDB cluster as a replica set and distribute reads to replica instances. - [Connect using Studio 3T](https://docs.aws.amazon.com/documentdb/latest/devguide/studio3t.md): Studio 3T is a popular GUI and IDE for developers and data engineers who work with MongoDB. - [Connect using DataGrip](https://docs.aws.amazon.com/documentdb/latest/devguide/data-grip-connect.md): DataGrip is a powerful integrated development environment (IDE) that supports various database systems, including Amazon DocumentDB. ### [Connect using Amazon EC2](https://docs.aws.amazon.com/documentdb/latest/devguide/connect-ec2.md) Step-by-step example of how to set up connectivity between an Amazon DocumentDB cluster and Amazon EC2 and interact with it. - [Connect Amazon EC2 automatically](https://docs.aws.amazon.com/documentdb/latest/devguide/connect-ec2-auto.md): Topics - [Connect Amazon EC2 manually](https://docs.aws.amazon.com/documentdb/latest/devguide/connect-ec2-manual.md): Topics ### [Connect using the JDBC driver](https://docs.aws.amazon.com/documentdb/latest/devguide/connect-jdbc.md) Step-by-step example of how to use Amazon DocumentDB JDBC driver to connect from BI tools such as Tableau and PowerBI. - [Connect from Tableau Desktop](https://docs.aws.amazon.com/documentdb/latest/devguide/connect-jdbc-tableau.md): Step-by-step example of how to use Amazon DocumentDB JDBC driver to connect from Tableau. - [Connect from DbVisualizer](https://docs.aws.amazon.com/documentdb/latest/devguide/connect-jdbc-DbVisualizer.md): Step-by-step example of how to use Amazon DocumentDB JDBC driver to connect from DbVisualizer. - [JDBC automatic schema generation](https://docs.aws.amazon.com/documentdb/latest/devguide/connect-jdbc-autoschemagen.md): Amazon DocumentDB is a document database and therefore does not have the concept of tables and schema. - [SQL support and limitations](https://docs.aws.amazon.com/documentdb/latest/devguide/connect-jdbc-sqlandlimits.md): The Amazon DocumentDB JDBC driver is a read-only driver that supports a subset of SQL-92 and some common extensions. - [Troubleshooting](https://docs.aws.amazon.com/documentdb/latest/devguide/connect-jdbc-troubleshooting.md): If you are having problems using the Amazon DocumentDB JDBC driver, refer to the Troubleshooting Guide. ### [Connect using the ODBC driver](https://docs.aws.amazon.com/documentdb/latest/devguide/connect-odbc.md) Step-by-step example of how to use Amazon DocumentDB ODBC driver to connect from BI tools such as BI Desktop and Microsoft tools such as Excel. - [Setting up the ODBC driver in Windows](https://docs.aws.amazon.com/documentdb/latest/devguide/connect-odbc-setup-windows.md): Use the following procedure to set up the Amazon DocumentDB ODBC driver in Windows: - [Connect from Microsoft Excel](https://docs.aws.amazon.com/documentdb/latest/devguide/connect-odbc-excel.md) - [Connect from Microsoft Power BI Desktop](https://docs.aws.amazon.com/documentdb/latest/devguide/connect-odbc-power-bi.md): Topics - [Automatic schema generation](https://docs.aws.amazon.com/documentdb/latest/devguide/connect-odbc-schema.md): The ODBC driver is utilizing the Amazon DocumentDB JDBC driver through JNI (Java Native Interface) - making the automatic schema generation feature to work similarly in the JDBC driver. - [SQL support and limitations](https://docs.aws.amazon.com/documentdb/latest/devguide/connect-odbc-sql-support.md): The Amazon DocumentDB ODBC driver is a read-only driver that supports a subset of SQL-92 and some common extensions. - [Troubleshooting](https://docs.aws.amazon.com/documentdb/latest/devguide/connect-odbc-troubleshooting.md): If you are having problems using the Amazon DocumentDB ODBC driver, refer to the Troubleshooting Guide. ### [Program with Amazon DocumentDB](https://docs.aws.amazon.com/documentdb/latest/devguide/program-docdb.md) The service supports JSON schema validation. ### [DocumentDB Java programming guide](https://docs.aws.amazon.com/documentdb/latest/devguide/docdb-java-pg.md) This comprehensive guide provides a detailed walk through for working with Amazon DocumentDB using MongoDB’s Java drivers, covering essential aspects of database operations and management. - [Connecting with a Java driver](https://docs.aws.amazon.com/documentdb/latest/devguide/java-pg-connect-mongo-driver.md): This section provides a step-by-step guide for connecting to Amazon DocumentDB using Java drivers. - [CRUD operations with Java](https://docs.aws.amazon.com/documentdb/latest/devguide/java-crud-operations.md): This section discusses performing CRUD (create, read, update, delete) operation in Amazon DocumentDB using MongoDB Java drivers. - [Index management with Java](https://docs.aws.amazon.com/documentdb/latest/devguide/index-management-java.md): Indexes allow efficient retrieval of data from an Amazon DocumentDB collection. - [Event-driven programming](https://docs.aws.amazon.com/documentdb/latest/devguide/event-driven-programming.md): Event-driven programming in the context of Amazon DocumentDB represents a powerful architectural pattern where database changes serve as the primary event generators that trigger subsequent business logic and processes. - [Using JSON schema validation](https://docs.aws.amazon.com/documentdb/latest/devguide/json-schema-validation.md): Amazon DocumentDB collections with JSON schema validation. ### [Querying](https://docs.aws.amazon.com/documentdb/latest/devguide/querying.md) Overview of querying in Amazon DocumentDB. - [Query planner v2](https://docs.aws.amazon.com/documentdb/latest/devguide/query-planner.md): The new query planner for Amazon DocumentDB (planner version 2.0) features advanced query optimization capabilities and improved performance. - [Query planner v3](https://docs.aws.amazon.com/documentdb/latest/devguide/query-planner-v3.md): Planner Version 3 in Amazon DocumentDB 8.0 supports 21 aggregation stages, including 6 new stages. - [Geospatial data](https://docs.aws.amazon.com/documentdb/latest/devguide/geospatial.md): This section covers how you can query Geospatial data with Amazon Amazon DocumentDB. - [Partial index](https://docs.aws.amazon.com/documentdb/latest/devguide/partial-index.md): Insert your chapter abstract text here. - [Text search](https://docs.aws.amazon.com/documentdb/latest/devguide/text-search.md): Text index for native text searching. ### [Indexes](https://docs.aws.amazon.com/documentdb/latest/devguide/indexes.md) Understanding and managing indexes in Amazon DocumentDB. ### [Index management](https://docs.aws.amazon.com/documentdb/latest/devguide/index-management.md) This section covers index management topics for Amazon DocumentDB. - [Index creation](https://docs.aws.amazon.com/documentdb/latest/devguide/index-creation.md): Building indexes in Amazon DocumentDB requires a number of decisions to be made: - [Maintaining indexes](https://docs.aws.amazon.com/documentdb/latest/devguide/maintaining-indexes.md) - [Best practices for working with indexes](https://docs.aws.amazon.com/documentdb/latest/devguide/best-practices-indexes.md) ### [Index types](https://docs.aws.amazon.com/documentdb/latest/devguide/index-types.md) - [Single field indexes](https://docs.aws.amazon.com/documentdb/latest/devguide/indexes-single-field.md): Creating and using single field indexes in Amazon DocumentDB. - [Compound indexes](https://docs.aws.amazon.com/documentdb/latest/devguide/indexes-compound.md): Creating and using compound indexes in Amazon DocumentDB. - [Multi-key indexes](https://docs.aws.amazon.com/documentdb/latest/devguide/indexes-multikey.md): Creating and using multi-key indexes in Amazon DocumentDB. - [Text indexes](https://docs.aws.amazon.com/documentdb/latest/devguide/indexes-text.md): Creating and using text indexes in Amazon DocumentDB. - [Geospatial indexes](https://docs.aws.amazon.com/documentdb/latest/devguide/indexes-geospatial.md): Creating and using geospatial indexes in Amazon DocumentDB. - [Vector indexes](https://docs.aws.amazon.com/documentdb/latest/devguide/indexes-vector.md): Creating and using vector indexes in Amazon DocumentDB. ### [Index properties](https://docs.aws.amazon.com/documentdb/latest/devguide/index-properties.md) Properties and characteristics of indexes in Amazon DocumentDB. - [name](https://docs.aws.amazon.com/documentdb/latest/devguide/index-property-name.md): The name property for indexes in Amazon DocumentDB. - [unique](https://docs.aws.amazon.com/documentdb/latest/devguide/index-property-unique.md): The unique property for indexes in Amazon DocumentDB. - [sparse](https://docs.aws.amazon.com/documentdb/latest/devguide/index-property-sparse.md): The sparse property for indexes in Amazon DocumentDB. - [partialFilterExpression](https://docs.aws.amazon.com/documentdb/latest/devguide/index-property-partialfilterexpression.md): The partialFilterExpression property for indexes in Amazon DocumentDB. - [expireAfterSeconds](https://docs.aws.amazon.com/documentdb/latest/devguide/index-property-expireafterseconds.md): The expireAfterSeconds property for indexes in Amazon DocumentDB. - [hidden](https://docs.aws.amazon.com/documentdb/latest/devguide/index-property-hidden.md): The hidden property for indexes in Amazon DocumentDB. - [Using change streams](https://docs.aws.amazon.com/documentdb/latest/devguide/change_streams.md): Get a time-ordered sequence of change events that occur within your cluster’s collections using change streams in Amazon DocumentDB. - [Transactions](https://docs.aws.amazon.com/documentdb/latest/devguide/transactions.md): Overview of the transactions function in Amazon DocumentDB, a fully managed MongoDB-compatible database service. - [Using collation](https://docs.aws.amazon.com/documentdb/latest/devguide/collation.md): This section describes the steps to set up and manage collation in Amazon DocumentDB 8.0. - [Using views](https://docs.aws.amazon.com/documentdb/latest/devguide/views.md): This section describes the steps to set up and manage views in Amazon DocumentDB 8.0. ### [Generative AI](https://docs.aws.amazon.com/documentdb/latest/devguide/generative-ai.md) Enable machine learning (ML) and generative artificial intelligence (AI) models to work with data stored in Amazon DocumentDB. - [SageMaker Canvas](https://docs.aws.amazon.com/documentdb/latest/devguide/no-code-machine-learning.md): Amazon DocumentDB integration with Amazon SageMaker AI Canvas - [Vector search](https://docs.aws.amazon.com/documentdb/latest/devguide/vector-search.md): Insert your chapter abstract text here. - [Using AWS Lambda with change streams](https://docs.aws.amazon.com/documentdb/latest/devguide/using-lambda.md): Using AWS Lambda to process records in Amazon DocumentDB change streams. ## [MongoDB compatibility](https://docs.aws.amazon.com/documentdb/latest/devguide/compatibility.md) - [Functional differences with MongoDB](https://docs.aws.amazon.com/documentdb/latest/devguide/functional-differences.md): Comparison of functional differences between Amazon DocumentDB and MongoDB. ### [Supported MongoDB APIs, operations, and data types](https://docs.aws.amazon.com/documentdb/latest/devguide/mongo-apis.md) MongoDB APIs that are supported by Amazon DocumentDB. ### [Aggregation pipeline operators](https://docs.aws.amazon.com/documentdb/latest/devguide/mongo-apis-aggregation-pipeline-operators.md) MongoDB aggregation pipeline operators that are supported by Amazon DocumentDB. - [$$DESCEND](https://docs.aws.amazon.com/documentdb/latest/devguide/DESCEND.md): The $$DESCEND operator in Amazon DocumentDB is a special positional array operator used within the $redact pipeline stage. - [$$KEEP](https://docs.aws.amazon.com/documentdb/latest/devguide/KEEP.md): The $$KEEP system variable is used with the $redact stage in the aggregation pipeline to keep the current document or field unchanged and include it in the output. - [$$PRUNE](https://docs.aws.amazon.com/documentdb/latest/devguide/PRUNE.md): The $$PRUNE system variable is used with the $redact stage in the aggregation pipeline to exclude documents or embedded document levels from the results. - [$ROOT](https://docs.aws.amazon.com/documentdb/latest/devguide/ROOT.md): The $ROOT operator in Amazon DocumentDB is used to reference the entire input document within an aggregation pipeline. - [$abs](https://docs.aws.amazon.com/documentdb/latest/devguide/abs.md): The $abs operator in Amazon DocumentDB returns the absolute value of a number. - [$acos](https://docs.aws.amazon.com/documentdb/latest/devguide/acos.md): New from version 8.0.1. - [$acosh](https://docs.aws.amazon.com/documentdb/latest/devguide/acosh.md): New from version 8.0.1. - [$add](https://docs.aws.amazon.com/documentdb/latest/devguide/add.md): The $add operator in Amazon DocumentDB is used to add numbers or dates together. - [$addToSet](https://docs.aws.amazon.com/documentdb/latest/devguide/addToSet-aggregation.md): The $addToSet aggregation operator returns an array of unique values from a specified expression for each group. - [$addFields](https://docs.aws.amazon.com/documentdb/latest/devguide/addFields.md): The $addFields stage in the Amazon DocumentDB aggregation pipeline allows you to add new computed fields to documents. - [$allElementsTrue](https://docs.aws.amazon.com/documentdb/latest/devguide/allElementsTrue.md): New from version 4.0 - [$and](https://docs.aws.amazon.com/documentdb/latest/devguide/and-aggregation.md): The $and aggregation operator evaluates multiple expressions and returns true only if all expressions evaluate to true. - [$anyElementTrue](https://docs.aws.amazon.com/documentdb/latest/devguide/anyElementTrue.md): New from version 4.0 - [$arrayElemAt](https://docs.aws.amazon.com/documentdb/latest/devguide/arrayElemAt.md): The $arrayElemAt operator in Amazon DocumentDB allows you to retrieve an element from an array by its index position. - [$arrayToObject](https://docs.aws.amazon.com/documentdb/latest/devguide/arrayToObject.md): The $arrayToObject operator in Amazon DocumentDB is the reverse of the $objectToArray operator. - [$asin](https://docs.aws.amazon.com/documentdb/latest/devguide/asin.md): New from version 8.0.1. - [$asinh](https://docs.aws.amazon.com/documentdb/latest/devguide/asinh.md): New from version 8.0.1. - [$atan](https://docs.aws.amazon.com/documentdb/latest/devguide/atan.md): New from version 8.0.1. - [$atan2](https://docs.aws.amazon.com/documentdb/latest/devguide/atan2.md): New from version 8.0.1. - [$atanh](https://docs.aws.amazon.com/documentdb/latest/devguide/atanh.md): New from version 8.0.1. - [$avg](https://docs.aws.amazon.com/documentdb/latest/devguide/avg.md): The $avg aggregation operator in Amazon DocumentDB calculates the average value of the specified expression across the documents that are input to the stage. - [$binarySize](https://docs.aws.amazon.com/documentdb/latest/devguide/binarySize.md): New from version 8.0.1. - [$bitAnd](https://docs.aws.amazon.com/documentdb/latest/devguide/bitAnd.md): New from version 8.0.1. - [$bitNot](https://docs.aws.amazon.com/documentdb/latest/devguide/bitNot.md): New from version 8.0.1. - [$bitOr](https://docs.aws.amazon.com/documentdb/latest/devguide/bitOr.md): New from version 8.0.1. - [$bitXor](https://docs.aws.amazon.com/documentdb/latest/devguide/bitXor.md): New from version 8.0.1. - [$bottom](https://docs.aws.amazon.com/documentdb/latest/devguide/bottom.md): New from version 8.0.1. - [$bottomN](https://docs.aws.amazon.com/documentdb/latest/devguide/bottomN.md): New from version 8.0.1. - [$bsonSize](https://docs.aws.amazon.com/documentdb/latest/devguide/bsonSize.md): New from version 8.0.1. - [$bucket](https://docs.aws.amazon.com/documentdb/latest/devguide/bucket.md): New from version 8.0 - [$ceil](https://docs.aws.amazon.com/documentdb/latest/devguide/ceil.md): New from version 4.0 - [$changeStream](https://docs.aws.amazon.com/documentdb/latest/devguide/changeStream.md): Not supported by Elastic cluster. - [$cmp](https://docs.aws.amazon.com/documentdb/latest/devguide/cmp.md): The $cmp operator in Amazon DocumentDB is used to compare two values and return an integer value that indicates their relative order. - [$collStats](https://docs.aws.amazon.com/documentdb/latest/devguide/collStats.md): New from version 4.0 - [$concat](https://docs.aws.amazon.com/documentdb/latest/devguide/concat.md): The $concat aggregation operator in Amazon DocumentDB concatenates (or combines) multiple strings in a document to produce a single string that can be returned to the application. - [$concatArrays](https://docs.aws.amazon.com/documentdb/latest/devguide/concatArrays.md): The $concatArrays aggregation operator in Amazon DocumentDB is used to concatenate two or more arrays into a single array. - [$cond](https://docs.aws.amazon.com/documentdb/latest/devguide/cond.md): The $cond operator in Amazon DocumentDB is used to evaluate a conditional expression and return one of two possible result expressions. - [$convert](https://docs.aws.amazon.com/documentdb/latest/devguide/convert.md): New from version 4.0 - [$cos](https://docs.aws.amazon.com/documentdb/latest/devguide/cos.md): New from version 8.0.1. - [$cosh](https://docs.aws.amazon.com/documentdb/latest/devguide/cosh.md): New from version 8.0.1. - [$count (stage)](https://docs.aws.amazon.com/documentdb/latest/devguide/count.md): The $count aggregation stage in Amazon DocumentDB is used to count the number of documents that pass into the stage. - [$count (accumulator)](https://docs.aws.amazon.com/documentdb/latest/devguide/count-accumulator.md): New from version 8.0.1. - [$currentOp](https://docs.aws.amazon.com/documentdb/latest/devguide/currentOp.md): The $currentOp aggregation stage returns information about currently running operations in the database. - [$dateAdd](https://docs.aws.amazon.com/documentdb/latest/devguide/dateAdd.md): New from version 5.0 - [$dateDiff](https://docs.aws.amazon.com/documentdb/latest/devguide/dateDiff.md): New from version 5.0 - [$dateFromParts](https://docs.aws.amazon.com/documentdb/latest/devguide/dateFromParts.md): New from version 5.0.1 and 8.0 - [$dateFromString](https://docs.aws.amazon.com/documentdb/latest/devguide/dateFromString.md): The $dateFromString aggregation operator in Amazon DocumentDB allows you to convert a date-time string into a date object. - [$dateSubtract](https://docs.aws.amazon.com/documentdb/latest/devguide/dateSubtract.md): New from version 5.0 - [$dateToParts](https://docs.aws.amazon.com/documentdb/latest/devguide/dateToParts.md): New from version 5.0.1 and 8.0 - [$dateToString](https://docs.aws.amazon.com/documentdb/latest/devguide/dateToString.md): The $dateToString aggregation operator in Amazon DocumentDB is used to convert a date or timestamp value to a string representation. - [$dateTrunc](https://docs.aws.amazon.com/documentdb/latest/devguide/dateTrunc.md): New from version 8.0 - [$dayOfMonth](https://docs.aws.amazon.com/documentdb/latest/devguide/dayOfMonth.md): The $dayOfMonth aggregation operator in Amazon DocumentDB retrieves the day of the month (from 1 to 31) for a given date. - [$dayOfWeek](https://docs.aws.amazon.com/documentdb/latest/devguide/dayOfWeek.md): The $dayOfWeek operator in Amazon DocumentDB extracts the day of the week from a given date field. - [$dayOfYear](https://docs.aws.amazon.com/documentdb/latest/devguide/dayOfYear.md): The $dayOfYear operator in Amazon DocumentDB returns the day of the year for a date as a number between 1 and 366 (365 in non-leap years). - [$degreesToRadians](https://docs.aws.amazon.com/documentdb/latest/devguide/degreesToRadians.md): New from version 8.0.1. - [$divide](https://docs.aws.amazon.com/documentdb/latest/devguide/divide.md): The $divide operator in the Amazon DocumentDB aggregation pipeline is used to divide one number by another. - [$eq](https://docs.aws.amazon.com/documentdb/latest/devguide/eq-aggregation.md): The $eq aggregation operator compares two values and returns true if they are equal, otherwise returns false. - [$exp](https://docs.aws.amazon.com/documentdb/latest/devguide/exp.md): New from version 4.0 - [$filter](https://docs.aws.amazon.com/documentdb/latest/devguide/filter.md): The $filter operator in Amazon DocumentDB is used to apply a filter expression to each element of an array and return an array containing only the elements that match the specified condition. - [$first](https://docs.aws.amazon.com/documentdb/latest/devguide/first.md): New from version 5.0. - [$firstN](https://docs.aws.amazon.com/documentdb/latest/devguide/firstN.md): New from version 8.0.1. - [$floor](https://docs.aws.amazon.com/documentdb/latest/devguide/floor.md): New from version 4.0. - [$geoNear](https://docs.aws.amazon.com/documentdb/latest/devguide/geoNear.md): The $geoNear aggregation stage returns documents in order of proximity to a specified point. - [$group](https://docs.aws.amazon.com/documentdb/latest/devguide/group.md): The $group aggregation stage in Amazon DocumentDB allows you to group documents by a specified expression and perform various accumulative operations on the grouped data. - [$gt](https://docs.aws.amazon.com/documentdb/latest/devguide/gt-aggregation.md): The $gt aggregation operator compares two values and returns true if the first value is greater than the second, otherwise returns false. - [$gte](https://docs.aws.amazon.com/documentdb/latest/devguide/gte-aggregation.md): The $gte aggregation operator compares two values and returns true if the first value is greater than or equal to the second, otherwise returns false. - [$hour](https://docs.aws.amazon.com/documentdb/latest/devguide/hour.md): The $hour operator extracts the hour component from a date or timestamp field. - [$ifNull](https://docs.aws.amazon.com/documentdb/latest/devguide/ifNull.md): The $ifNull operator is used to return a specified value if the input expression evaluates to null or undefined. - [$in](https://docs.aws.amazon.com/documentdb/latest/devguide/in-aggregation.md): The $in aggregation operator checks if a specified value exists within an array. - [$indexOfArray](https://docs.aws.amazon.com/documentdb/latest/devguide/indexOfArray.md): The $indexOfArray operator in Amazon DocumentDB is used to find the index of the first occurrence of a specified element in an array. - [$indexOfBytes](https://docs.aws.amazon.com/documentdb/latest/devguide/indexOfBytes.md): The $indexOfBytes operator in Amazon DocumentDB is used to find the starting index of a substring within a string, based on the byte positions of the characters. - [$indexOfCP](https://docs.aws.amazon.com/documentdb/latest/devguide/indexOfCP.md): The $indexOfCP operator in Amazon DocumentDB is used to find the index, in code points (CP), of the first occurrence of a specified substring within a string expression. - [$indexStats](https://docs.aws.amazon.com/documentdb/latest/devguide/indexStats.md): The $indexStats aggregation stage in Amazon DocumentDB provides insight into the usage of indexes within a collection. - [$isArray](https://docs.aws.amazon.com/documentdb/latest/devguide/isArray.md): The $isArray operator in Amazon DocumentDB is used to check if a field in a document is an array. - [$isNumber](https://docs.aws.amazon.com/documentdb/latest/devguide/isNumber.md): New from version 8.0.1. - [$isoDayOfWeek](https://docs.aws.amazon.com/documentdb/latest/devguide/isoDayOfWeek.md): The $isoDayOfWeek operator in Amazon DocumentDB returns the ISO day of the week for a date as an integer value. - [$isoWeek](https://docs.aws.amazon.com/documentdb/latest/devguide/isoWeek.md): The $isoWeek operator in Amazon DocumentDB returns the ISO week number for a date. - [$isoWeekYear](https://docs.aws.amazon.com/documentdb/latest/devguide/isoWeekYear.md): The $isoWeekYear operator in Amazon DocumentDB returns the ISO 8601 week year number for a given date. - [$last](https://docs.aws.amazon.com/documentdb/latest/devguide/last.md): The $last operator in Amazon DocumentDB is used to return the last element in an array that matches the query criteria. - [$lastN](https://docs.aws.amazon.com/documentdb/latest/devguide/lastN.md): New from version 8.0.1. - [$let](https://docs.aws.amazon.com/documentdb/latest/devguide/let.md): The $let operator in Amazon DocumentDB is used to bind variables to values and use those variables in the expression. - [$limit](https://docs.aws.amazon.com/documentdb/latest/devguide/limit.md): The $limit operator in Amazon DocumentDB is used to restrict the number of documents returned by a query. - [$listSearchIndexes](https://docs.aws.amazon.com/documentdb/latest/devguide/listSearchIndexes.md): New from version 8.0.1. - [$literal](https://docs.aws.amazon.com/documentdb/latest/devguide/literal.md): The $literal operator in Amazon DocumentDB is used to represent a literal value within an aggregation pipeline stage. - [$ln](https://docs.aws.amazon.com/documentdb/latest/devguide/ln.md): New from version 4.0. - [$log](https://docs.aws.amazon.com/documentdb/latest/devguide/log.md): New from version 4.0. - [$log10](https://docs.aws.amazon.com/documentdb/latest/devguide/log10.md): New from version 4.0. - [$lt](https://docs.aws.amazon.com/documentdb/latest/devguide/lt-aggregation.md): The $lt aggregation operator compares two values and returns true if the first value is less than the second, otherwise returns false. - [$lte](https://docs.aws.amazon.com/documentdb/latest/devguide/lte-aggregation.md): The $lte aggregation operator compares two values and returns true if the first value is less than or equal to the second, otherwise returns false. - [$lookup](https://docs.aws.amazon.com/documentdb/latest/devguide/lookup.md): The $lookup aggregation stage in Amazon DocumentDB allows you to perform a left outer join between two collections. - [$ltrim](https://docs.aws.amazon.com/documentdb/latest/devguide/ltrim.md): New from version 4.0. - [$map](https://docs.aws.amazon.com/documentdb/latest/devguide/map.md): The $map operator in Amazon DocumentDB allows you to apply a specified expression to each element in an array and return a new array with the transformed elements. - [$match](https://docs.aws.amazon.com/documentdb/latest/devguide/match.md): The $match pipeline stage in Amazon DocumentDB is used to filter the input documents to only those that match the specified query criteria. - [$max](https://docs.aws.amazon.com/documentdb/latest/devguide/max.md): The $max aggregation stage is used to return the maximum value of a specified field across all documents in a pipeline stage. - [$maxN](https://docs.aws.amazon.com/documentdb/latest/devguide/maxN.md): New from version 8.0.1. - [$median](https://docs.aws.amazon.com/documentdb/latest/devguide/median.md): New from version 8.0.1. - [$meta](https://docs.aws.amazon.com/documentdb/latest/devguide/meta-aggregation.md): The $meta aggregation operator accesses metadata associated with documents in an aggregation pipeline. - [$merge](https://docs.aws.amazon.com/documentdb/latest/devguide/merge.md): Introduced in 8.0 - [$mergeObjects](https://docs.aws.amazon.com/documentdb/latest/devguide/mergeObjects.md): The $mergeObjects operator in Amazon DocumentDB is used to combine multiple documents or objects into a single document. - [$millisecond](https://docs.aws.amazon.com/documentdb/latest/devguide/millisecond.md): The $millisecond operator in Amazon DocumentDB is used to extract the millisecond portion of a date value. - [$min](https://docs.aws.amazon.com/documentdb/latest/devguide/min.md): The $min operator returns the minimum value from an array of values. - [$minN](https://docs.aws.amazon.com/documentdb/latest/devguide/minN.md): New from version 8.0.1. - [$minute](https://docs.aws.amazon.com/documentdb/latest/devguide/minute.md): The $minute aggregation pipeline stage in Amazon DocumentDB extracts the minute value from a date or timestamp field. - [$mod](https://docs.aws.amazon.com/documentdb/latest/devguide/mod.md): The $mod operator is an arithmetic operator that performs a modulo operation on a number. - [$month](https://docs.aws.amazon.com/documentdb/latest/devguide/month.md): The $month operator in Amazon DocumentDB returns the month of a date as a number between 1 and 12. - [$multiply](https://docs.aws.amazon.com/documentdb/latest/devguide/multiply.md): The $multiply operator in Amazon DocumentDB is used to multiply the values of two or more fields or expressions. - [$natural](https://docs.aws.amazon.com/documentdb/latest/devguide/natural.md): The $natural operator in Amazon DocumentDB is used to sort the documents in their natural order, which is the order in which they were inserted into the collection. - [$ne](https://docs.aws.amazon.com/documentdb/latest/devguide/ne-aggregation.md): The $ne aggregation operator compares two values and returns true if they are not equal, otherwise returns false. - [$not](https://docs.aws.amazon.com/documentdb/latest/devguide/not-aggregation.md): The $not aggregation operator performs a logical NOT operation on an expression. - [$objectToArray](https://docs.aws.amazon.com/documentdb/latest/devguide/objectToArray.md): The $objectToArray aggregation operator in Amazon DocumentDB converts an object (or document) into an array. - [$or](https://docs.aws.amazon.com/documentdb/latest/devguide/or-aggregation.md): The $or aggregation operator evaluates multiple expressions and returns true if at least one expression evaluates to true. - [$out](https://docs.aws.amazon.com/documentdb/latest/devguide/out.md): The $out operator in Amazon DocumentDB is used to write the result of an aggregation pipeline to a specified collection. - [$percentile](https://docs.aws.amazon.com/documentdb/latest/devguide/percentile.md): New from version 8.0.1. - [$pow](https://docs.aws.amazon.com/documentdb/latest/devguide/pow.md): Introduced in 8.0 - [$push](https://docs.aws.amazon.com/documentdb/latest/devguide/push-aggregation.md): The $push aggregation operator returns an array of all values from a specified expression for each group. - [$project](https://docs.aws.amazon.com/documentdb/latest/devguide/project.md): The $project operator in Amazon DocumentDB allows you to selectively include or exclude fields from output documents, pass values to the next pipeline stage, and compute new fields from input document values. - [$radiansToDegrees](https://docs.aws.amazon.com/documentdb/latest/devguide/radiansToDegrees.md): New from version 8.0.1. - [$rand](https://docs.aws.amazon.com/documentdb/latest/devguide/rand.md): New from version 8.0 - [$range](https://docs.aws.amazon.com/documentdb/latest/devguide/range.md): The $range aggregation operator in Amazon DocumentDB is used to create an array of consecutive numbers within a specified range. - [$redact](https://docs.aws.amazon.com/documentdb/latest/devguide/redact.md): The $redact aggregation stage in Amazon DocumentDB is used to selectively include or exclude content from the output documents based on the values of specified fields. - [$reduce](https://docs.aws.amazon.com/documentdb/latest/devguide/reduce.md): The $reduce aggregation operator in Amazon DocumentDB is used to apply a function of two arguments cumulatively to the elements of an array to reduce the array to a single value. - [$regexFind](https://docs.aws.amazon.com/documentdb/latest/devguide/regexFind.md): New from version 5.0. - [$regexFindAll](https://docs.aws.amazon.com/documentdb/latest/devguide/regexFindAll.md): Introduced in 5.0 - [$regexMatch](https://docs.aws.amazon.com/documentdb/latest/devguide/regexMatch.md): New from version 5.0. - [$replaceAll](https://docs.aws.amazon.com/documentdb/latest/devguide/replaceAll.md): Introduced in 5.0 - [$replaceOne](https://docs.aws.amazon.com/documentdb/latest/devguide/replaceOne.md): Introduced in 5.0 - [$replaceRoot](https://docs.aws.amazon.com/documentdb/latest/devguide/replaceRoot.md): The $replaceRoot operator is used to replace the root document with the specified embedded document. - [$replaceWith](https://docs.aws.amazon.com/documentdb/latest/devguide/replaceWith.md): New from version 8.0 - [$reverseArray](https://docs.aws.amazon.com/documentdb/latest/devguide/reverseArray.md): The $reverseArray operator in Amazon DocumentDB is used to reverse the elements of an array in the specified order. - [$round](https://docs.aws.amazon.com/documentdb/latest/devguide/round.md): New from version 8.0.1. - [$rtrim](https://docs.aws.amazon.com/documentdb/latest/devguide/rtrim.md): New from version 4.0. - [$sample](https://docs.aws.amazon.com/documentdb/latest/devguide/sample.md): The $sample aggregation stage in Amazon DocumentDB is used to randomly select a specified number of documents from a collection. - [$search](https://docs.aws.amazon.com/documentdb/latest/devguide/search.md): New from version 5.0. - [$second](https://docs.aws.amazon.com/documentdb/latest/devguide/second.md): The $second operator in Amazon DocumentDB extracts the seconds component from a date or timestamp. - [$set](https://docs.aws.amazon.com/documentdb/latest/devguide/set-stage.md): New from version 8.0 - [$setDifference](https://docs.aws.amazon.com/documentdb/latest/devguide/setDifference.md): New from version 4.0. - [$setEquals](https://docs.aws.amazon.com/documentdb/latest/devguide/setEquals.md): The $setEquals operator in Amazon DocumentDB is used to determine if two sets are equal. - [$setIntersection](https://docs.aws.amazon.com/documentdb/latest/devguide/setIntersection.md): The $setIntersection operator in Amazon DocumentDB is used to return the common elements between two or more arrays. - [$setIsSubset](https://docs.aws.amazon.com/documentdb/latest/devguide/setIsSubset.md): The $setIsSubset operator in Amazon DocumentDB is used to determine if a set of values is a subset of another set. - [$setUnion](https://docs.aws.amazon.com/documentdb/latest/devguide/setUnion.md): The $setUnion aggregation operator in Amazon DocumentDB is used to combine two or more sets of values and return a set that contains all the unique elements from the input sets. - [$sigmoid](https://docs.aws.amazon.com/documentdb/latest/devguide/sigmoid.md): New from version 8.0.1. - [$sin](https://docs.aws.amazon.com/documentdb/latest/devguide/sin.md): New from version 8.0.1. - [$sinh](https://docs.aws.amazon.com/documentdb/latest/devguide/sinh.md): New from version 8.0.1. - [$skip](https://docs.aws.amazon.com/documentdb/latest/devguide/skip.md): In Amazon DocumentDB, the $skip operator is used to offset the starting point of the query results, allowing you to retrieve a specific subset of the matching documents. - [$slice](https://docs.aws.amazon.com/documentdb/latest/devguide/slice.md): The $slice aggregation operator enables you to return a subset of an array by either traversing the array from the beginning or the end of the array. - [$size](https://docs.aws.amazon.com/documentdb/latest/devguide/size.md): The $size operator is used to return the count of items within an array field. - [$sort](https://docs.aws.amazon.com/documentdb/latest/devguide/sort.md): The $sort aggregation stage orders documents in the pipeline based on specified field values. - [$sortArray](https://docs.aws.amazon.com/documentdb/latest/devguide/sortArray.md): New from version 8.0 - [$sortByCount](https://docs.aws.amazon.com/documentdb/latest/devguide/sortByCount.md): New from version 8.0.1. - [$split](https://docs.aws.amazon.com/documentdb/latest/devguide/split.md): The $split aggregation operator in Amazon DocumentDB is used to split a string into an array of substrings, based on a specified delimiter. - [$sqrt](https://docs.aws.amazon.com/documentdb/latest/devguide/sqrt.md): New from version 4.0. - [$stdDevPop](https://docs.aws.amazon.com/documentdb/latest/devguide/stdDevPop.md): New from version 8.0.1. - [$stdDevSamp](https://docs.aws.amazon.com/documentdb/latest/devguide/stdDevSamp.md): New from version 8.0.1. - [$strLenBytes](https://docs.aws.amazon.com/documentdb/latest/devguide/strLenBytes.md): The $strLenBytes operator in Amazon DocumentDB is used to determine the length of a string in bytes. - [$strLenCP](https://docs.aws.amazon.com/documentdb/latest/devguide/strLenCP.md): The $strLenCP operator in Amazon DocumentDB is used to determine the length of a string expression in code points (Unicode characters). - [$strcasecmp](https://docs.aws.amazon.com/documentdb/latest/devguide/strcasecmp.md): The $strcasecmp operator in Amazon DocumentDB performs a case-insensitive comparison between two strings. - [$substr](https://docs.aws.amazon.com/documentdb/latest/devguide/substr.md): The $substr operator in Amazon DocumentDB is used to extract a substring from a given string. - [$substrBytes](https://docs.aws.amazon.com/documentdb/latest/devguide/substrBytes.md): The $substrBytes operator in Amazon DocumentDB is used to extract a substring from a string based on a specified byte range. - [$substrCP](https://docs.aws.amazon.com/documentdb/latest/devguide/substrCP.md): The $substrCP operator in Amazon DocumentDB is used to extract a substring from a string, where the substring is specified as a range of UTF-8 code points (CP). - [$subtract](https://docs.aws.amazon.com/documentdb/latest/devguide/subtract.md): The $subtract operator in Amazon DocumentDB is used to subtract values. - [$sum](https://docs.aws.amazon.com/documentdb/latest/devguide/sum.md): The $sum operator in Amazon DocumentDB returns the sum of the specified expression for each document in a group. - [$switch](https://docs.aws.amazon.com/documentdb/latest/devguide/switch.md): New from version 4.0. - [$tan](https://docs.aws.amazon.com/documentdb/latest/devguide/tan.md): New from version 8.0.1. - [$tanh](https://docs.aws.amazon.com/documentdb/latest/devguide/tanh.md): New from version 8.0.1. - [$top](https://docs.aws.amazon.com/documentdb/latest/devguide/top-accumulator.md): New from version 8.0.1. - [$topN](https://docs.aws.amazon.com/documentdb/latest/devguide/topN.md): New from version 8.0.1. - [$trunc](https://docs.aws.amazon.com/documentdb/latest/devguide/trunc.md): New from version 8.0.1. - [$tsIncrement](https://docs.aws.amazon.com/documentdb/latest/devguide/tsIncrement.md): New from version 8.0.1. - [$tsSecond](https://docs.aws.amazon.com/documentdb/latest/devguide/tsSecond.md): New from version 8.0.1. - [$toBool](https://docs.aws.amazon.com/documentdb/latest/devguide/toBool.md): The $toBool operator in Amazon DocumentDB converts an expression to a boolean value. - [$toDate](https://docs.aws.amazon.com/documentdb/latest/devguide/toDate.md): New from version 4.0 - [$toDecimal](https://docs.aws.amazon.com/documentdb/latest/devguide/toDecimal.md): New from version 4.0 - [$toDouble](https://docs.aws.amazon.com/documentdb/latest/devguide/toDouble.md): New from version 4.0 - [$toInt](https://docs.aws.amazon.com/documentdb/latest/devguide/toInt.md): New from version 4.0 - [$toLong](https://docs.aws.amazon.com/documentdb/latest/devguide/toLong.md): New from version 4.0 - [$toLower](https://docs.aws.amazon.com/documentdb/latest/devguide/toLower.md): The $toLower operator in Amazon DocumentDB is used to convert a string to lowercase. - [$toObjectId](https://docs.aws.amazon.com/documentdb/latest/devguide/toObjectId.md): New from version 4.0 - [$toString](https://docs.aws.amazon.com/documentdb/latest/devguide/toString.md): New from version 4.0 - [$toUpper](https://docs.aws.amazon.com/documentdb/latest/devguide/toUpper.md): The $toUpper operator in Amazon DocumentDB is used to convert a string to uppercase. - [$toUUID](https://docs.aws.amazon.com/documentdb/latest/devguide/toUUID.md): New from version 8.0.1. - [$trim](https://docs.aws.amazon.com/documentdb/latest/devguide/trim.md): New from version 4.0 - [$type](https://docs.aws.amazon.com/documentdb/latest/devguide/type-aggregation.md): The $type aggregation operator returns the BSON data type of a specified field. - [$unset](https://docs.aws.amazon.com/documentdb/latest/devguide/unset-stage.md): New from version 8.0 - [$unwind](https://docs.aws.amazon.com/documentdb/latest/devguide/unwind.md): The $unwind operator is used to deconstruct an array field from the input documents to output a document for each element. - [$vectorSearch](https://docs.aws.amazon.com/documentdb/latest/devguide/vectorSearch.md): New from version 8.0 - [$week](https://docs.aws.amazon.com/documentdb/latest/devguide/week.md): The $week operator in Amazon DocumentDB returns the week number of a date (0-53) based on the ISO 8601 standard. - [$year](https://docs.aws.amazon.com/documentdb/latest/devguide/year.md): The $year operator in Amazon DocumentDB extracts the year component from a date or timestamp. - [$zip](https://docs.aws.amazon.com/documentdb/latest/devguide/zip.md): The $zip operator in Amazon DocumentDB allows you to combine multiple arrays into a single array of tuples (key-value pairs). ### [Geospatial](https://docs.aws.amazon.com/documentdb/latest/devguide/mongo-apis-geospatial-operators.md) MongoDB geospatial operators that are supported by Amazon DocumentDB. - [$geometry](https://docs.aws.amazon.com/documentdb/latest/devguide/geometry.md): The $geometry operator in Amazon DocumentDB is used to specify a GeoJSON geometry object as part of a geospatial query. - [$geoIntersects](https://docs.aws.amazon.com/documentdb/latest/devguide/geoIntersects.md): The $geoIntersects operator in Amazon DocumentDB is used to find documents whose geospatial data intersects with a specified GeoJSON object. - [$geoWithin](https://docs.aws.amazon.com/documentdb/latest/devguide/geoWithin.md): The $geoWithin operator in Amazon DocumentDB is used to find documents whose location data (represented as GeoJSON objects) are completely contained within a specified shape, such as a polygon or multipolygon. - [$maxDistance](https://docs.aws.amazon.com/documentdb/latest/devguide/maxDistance.md): The $maxDistance operator in Amazon DocumentDB is used to specify the maximum distance (in meters) from a GeoJSON point that documents must be within to be included in the query results. - [$minDistance](https://docs.aws.amazon.com/documentdb/latest/devguide/minDistance.md): $minDistance is a find operator used in conjunction with $nearSphere or $geoNear to filter documents that are at least at the specified minimum distance from the center point. - [$near](https://docs.aws.amazon.com/documentdb/latest/devguide/near.md): The $near operator in Amazon DocumentDB is used to find documents that are geographically near a specified point. - [$nearSphere](https://docs.aws.amazon.com/documentdb/latest/devguide/nearSphere.md): The $nearSphere operator in Amazon DocumentDB is used to find documents that are within a specified distance of a geospatial point. ### [Query and projection operators](https://docs.aws.amazon.com/documentdb/latest/devguide/mongo-apis-query-projection-operators.md) MongoDB query and projection operators that are supported by Amazon DocumentDB. - [$](https://docs.aws.amazon.com/documentdb/latest/devguide/dollar-projection.md): The $ projection operator limits the contents of an array field to return only the first element that matches the query condition. - [$all](https://docs.aws.amazon.com/documentdb/latest/devguide/all.md): The $all operator in Amazon DocumentDB is used to match documents where the value of a field is an array and contains all the specified elements, regardless of the order of the elements in the array. - [$and](https://docs.aws.amazon.com/documentdb/latest/devguide/and.md): The $and operator in Amazon DocumentDB is used to combine multiple expressions and evaluate them as a single condition. - [$bitsAllClear](https://docs.aws.amazon.com/documentdb/latest/devguide/bitsAllClear.md): The $bitsAllClear operator in Amazon DocumentDB is used to match the documents where all the specified bits in a field are cleared (set to 0). - [$bitsAllSet](https://docs.aws.amazon.com/documentdb/latest/devguide/bitsAllSet.md): The $bitsAllSet operator in Amazon DocumentDB is used to query for documents where a specific set of bits are all set to 1 in a field. - [$bitsAnyClear](https://docs.aws.amazon.com/documentdb/latest/devguide/bitsAnyClear.md): The $bitsAnyClear operator in Amazon DocumentDB is used to match the documents where any of the specified bit in a field are cleared (set to 0). - [$bitsAnySet](https://docs.aws.amazon.com/documentdb/latest/devguide/bitsAnySet.md): The $bitsAnySet operator in Amazon DocumentDB is used to query documents where at least one bit is set to 1 in the specified bits in a field. - [$comment](https://docs.aws.amazon.com/documentdb/latest/devguide/comment.md): The $comment operator in Amazon DocumentDB is used to attach a comment to a query. - [$elemMatch](https://docs.aws.amazon.com/documentdb/latest/devguide/elemMatch.md): The $elemMatch operator in Amazon DocumentDB is used to query an array field and return documents where at least one element in the array matches the specified criteria. - [$eq](https://docs.aws.amazon.com/documentdb/latest/devguide/eq.md): The $eq operator in Amazon DocumentDB is used to match documents where the value of a field is equal to the specified value. - [$exists](https://docs.aws.amazon.com/documentdb/latest/devguide/exists.md): The $exists operator is used to check whether a field exists in a document or not. $exists particularly useful when working with sparse indexes in Amazon DocumentDB, where the indexed field may not be present in all documents. - [$expr](https://docs.aws.amazon.com/documentdb/latest/devguide/expr.md): New from version 4.0. - [$gt](https://docs.aws.amazon.com/documentdb/latest/devguide/gt.md): The $gt operator in Amazon DocumentDB is used to select documents where the value of the specified field is greater than the specified value. - [$gte](https://docs.aws.amazon.com/documentdb/latest/devguide/gte.md): The $gte operator in Amazon DocumentDB is used to match values that are greater than or equal to a specified value. - [$in](https://docs.aws.amazon.com/documentdb/latest/devguide/in.md): The $in operator in Amazon DocumentDB is a logical query operator that allows you to find documents where the value of a field equals any of the values specified in an array. - [$jsonSchema](https://docs.aws.amazon.com/documentdb/latest/devguide/jsonSchema.md): New from version 4.0. - [$lt](https://docs.aws.amazon.com/documentdb/latest/devguide/lt.md): The $lt operator in Amazon DocumentDB is used to match values that are less than the specified value. - [$mod](https://docs.aws.amazon.com/documentdb/latest/devguide/mod-query.md): The $mod query operator selects documents where a field value divided by a divisor has a specified remainder. - [$lte](https://docs.aws.amazon.com/documentdb/latest/devguide/lte.md): The $lte operator in Amazon DocumentDB is used to match documents where the value of a specified field is less than or equal to the specified value. - [$meta](https://docs.aws.amazon.com/documentdb/latest/devguide/meta.md): The $meta operator is used to access metadata associated with the current query execution. - [$ne](https://docs.aws.amazon.com/documentdb/latest/devguide/ne.md): The $ne operator is used to match documents where the value of a field is not equal to the specified value. - [$nin](https://docs.aws.amazon.com/documentdb/latest/devguide/nin.md): The $nin operator is used to match values that are not in the specified array. - [$nor](https://docs.aws.amazon.com/documentdb/latest/devguide/nor.md): The $nor operator is used to match documents where none of the specified query conditions are true. - [$not](https://docs.aws.amazon.com/documentdb/latest/devguide/not.md): The $not operator is used to negate the result of a given expression. - [$or](https://docs.aws.amazon.com/documentdb/latest/devguide/or.md): The $or operator is used to perform a logical OR operation on an array of two or more expressions. - [$regex](https://docs.aws.amazon.com/documentdb/latest/devguide/regex.md): The $regex operator allows you to perform regular expression matching on string fields. - [$sampleRate](https://docs.aws.amazon.com/documentdb/latest/devguide/sampleRate.md): New from version 8.0.1. - [$slice](https://docs.aws.amazon.com/documentdb/latest/devguide/slice-projection.md): The $slice projection operator limits the number of array elements returned in a query result. - [$size](https://docs.aws.amazon.com/documentdb/latest/devguide/size-query.md): The $size query operator matches documents where an array field has exactly the specified number of elements. - [$text](https://docs.aws.amazon.com/documentdb/latest/devguide/text.md): The $text operator is used to perform full-text search on text-indexed fields within a document collection. - [$type](https://docs.aws.amazon.com/documentdb/latest/devguide/type.md): The $type operator is used to check the data type of a field in a document. ### [Update operators](https://docs.aws.amazon.com/documentdb/latest/devguide/mongo-apis-update-operators.md) MongoDB update operators that are supported by Amazon DocumentDB. - [$](https://docs.aws.amazon.com/documentdb/latest/devguide/dollar-update.md): The $ positional operator updates the first array element that matches the query condition. - [$[]](https://docs.aws.amazon.com/documentdb/latest/devguide/dollarBrackets-update.md): The $[] all positional operator updates all elements in an array. - [$[]](https://docs.aws.amazon.com/documentdb/latest/devguide/dollarIdentifier-update.md): The $[] filtered positional operator updates all array elements that match the specified filter conditions. - [$addToSet](https://docs.aws.amazon.com/documentdb/latest/devguide/addToSet.md): The $addToSet operator in Amazon DocumentDB is used to add a value to an array only if the value is not already present in the array. - [$bit](https://docs.aws.amazon.com/documentdb/latest/devguide/bit.md): The $bit operator in Amazon DocumentDB allows you to perform bitwise operations on the bits of a given field. - [$currentDate](https://docs.aws.amazon.com/documentdb/latest/devguide/currentDate.md): The $currentDate operator is used to set the value of a field to the current date and time. - [$each](https://docs.aws.amazon.com/documentdb/latest/devguide/each.md): The $each operator is used in conjunction with other update operators, such as $push and $addToSet, to add multiple values to an array field. - [$inc](https://docs.aws.amazon.com/documentdb/latest/devguide/inc.md): The $inc operator is used to increment the value of a field by a specified amount. - [$max](https://docs.aws.amazon.com/documentdb/latest/devguide/max-update.md): The $max update operator updates a field's value only if the specified value is greater than the current field value. - [$min](https://docs.aws.amazon.com/documentdb/latest/devguide/min-update.md): The $min update operator updates a field's value only if the specified value is less than the current field value. - [$mul](https://docs.aws.amazon.com/documentdb/latest/devguide/mul.md): The $mul operator in Amazon DocumentDB is used to multiply the value of a field by a specified number. - [$pop](https://docs.aws.amazon.com/documentdb/latest/devguide/pop.md): The $pop operator in Amazon DocumentDB is used to remove the first or last element from an array field. - [$position](https://docs.aws.amazon.com/documentdb/latest/devguide/position.md): The $position modifier in Amazon DocumentDB specifies the location in the array at which the $push operator inserts elements. - [$pull](https://docs.aws.amazon.com/documentdb/latest/devguide/pull.md): The $pull operator is used to remove from an array all instances of a value or values that match a specified condition. - [$pullAll](https://docs.aws.amazon.com/documentdb/latest/devguide/pullAll.md): The $pullAll operator in Amazon DocumentDB is used to remove all instances of the specified values from an array field. - [$push](https://docs.aws.amazon.com/documentdb/latest/devguide/push.md): The $push operator in Amazon DocumentDB is used to add an item to an array field in a document. - [$rename](https://docs.aws.amazon.com/documentdb/latest/devguide/rename.md): The $rename operator in Amazon DocumentDB is used to rename a field in a document. - [$set](https://docs.aws.amazon.com/documentdb/latest/devguide/set-update.md): The $set operator in Amazon DocumentDB is used to update the value of a specified field in a document. - [$setOnInsert](https://docs.aws.amazon.com/documentdb/latest/devguide/setOnInsert.md): The $setOnInsert operator in Amazon DocumentDB is used to set the value of a field if a document is being inserted, but it has no effect if the document is being updated. - [$slice](https://docs.aws.amazon.com/documentdb/latest/devguide/slice-update.md): The $slice update operator modifies an array by limiting its size. - [$sort](https://docs.aws.amazon.com/documentdb/latest/devguide/sort-update.md): The $sort update modifier orders array elements when used with the $push operator. - [$unset](https://docs.aws.amazon.com/documentdb/latest/devguide/unset-update.md): The $unset operator in Amazon DocumentDB is used to remove a specified field from a document. ## [Managing clusters and instances](https://docs.aws.amazon.com/documentdb/latest/devguide/managing-documentdb.md) - [Operational tasks overview](https://docs.aws.amazon.com/documentdb/latest/devguide/operational_tasks.md): Overview of operational tasks for an Amazon DocumentDB cluster and how to accomplish these tasks using the AWS CLI. ### [Global clusters](https://docs.aws.amazon.com/documentdb/latest/devguide/global-clusters.md) With an global cluster, you can run globally distributed applications using a single cluster that spans multiple AWS Regions. - [Quick start guide](https://docs.aws.amazon.com/documentdb/latest/devguide/global-clusters.get-started.md) - [Managing global clusters](https://docs.aws.amazon.com/documentdb/latest/devguide/global-clusters.manage.md): You perform most management operations on the individual clusters that make up a global cluster. - [Connecting global clusters](https://docs.aws.amazon.com/documentdb/latest/devguide/global-clusters-connect.md): How you connect to a global cluster depends on whether you need to write to the cluster or read from the cluster: - [Monitoring global clusters](https://docs.aws.amazon.com/documentdb/latest/devguide/global-clusters-monitor.md): Amazon DocumentDB (with MongoDB compatibility) integrates with CloudWatch so that you can gather and analyze operational metrics for your clusters. - [Disaster recovery](https://docs.aws.amazon.com/documentdb/latest/devguide/global-clusters-disaster-recovery.md): Topics ### [Managing clusters](https://docs.aws.amazon.com/documentdb/latest/devguide/db-clusters.md) Overview of creating, connecting to, viewing, modifying, and managing Amazon DocumentDB clusters. - [Understanding clusters](https://docs.aws.amazon.com/documentdb/latest/devguide/db-clusters-understanding.md): Amazon DocumentDB separates compute and storage, and offloads data replication and backup to the cluster volume. - [Cluster settings](https://docs.aws.amazon.com/documentdb/latest/devguide/db-cluster-parameters.md): When you create or modify a cluster, it is important to understand which parameters are immutable and which are modifiable after the cluster has been created. - [Cluster storage configurations](https://docs.aws.amazon.com/documentdb/latest/devguide/db-cluster-storage-configs.md): Starting from Amazon DocumentDB 5.0, instance-based clusters support two storage configuration types: - [Determining a cluster's status](https://docs.aws.amazon.com/documentdb/latest/devguide/db-cluster-status.md): You can determine a cluster's status using the AWS Management Console or AWS CLI. ### [Cluster lifecycle](https://docs.aws.amazon.com/documentdb/latest/devguide/db-cluster-life-cycle.md) The lifecycle of an Amazon DocumentDB cluster includes creating, describing, modifying, and deleting the cluster. - [Creating a cluster](https://docs.aws.amazon.com/documentdb/latest/devguide/db-cluster-create.md): An Amazon DocumentDB cluster consists of instances and a cluster volume that represents the data for the cluster. - [Describing clusters](https://docs.aws.amazon.com/documentdb/latest/devguide/db-cluster-view-details.md): View the details of your Amazon DocumentDB cluster using the AWS Management Console or the AWS CLI. - [Modifying a cluster](https://docs.aws.amazon.com/documentdb/latest/devguide/db-cluster-modify.md): Modify a specific Amazon DocumentDB cluster using the AWS Management Console or the AWS CLI. - [Determining pending maintenance](https://docs.aws.amazon.com/documentdb/latest/devguide/db-cluster-determine-pending-maintenance.md): Maintenance most often involves updates to the following resources in your cluster: - [Patch updating a cluster's engine version](https://docs.aws.amazon.com/documentdb/latest/devguide/db-cluster-version-upgrade.md): In this section, we will explain how to deploy a patch update using the AWS Management Console or the AWS CLI. - [Updating a cluster's operating system](https://docs.aws.amazon.com/documentdb/latest/devguide/db-cluster-os-upgrade.md): You can apply operating system (OS) updates across all instances in your cluster using the cluster-level os-upgrade maintenance action. - [Stopping and starting a cluster](https://docs.aws.amazon.com/documentdb/latest/devguide/db-cluster-stop-start.md): Stopping and starting Amazon DocumentDB clusters can help you manage costs for development and test environments. - [Deleting a cluster](https://docs.aws.amazon.com/documentdb/latest/devguide/db-cluster-delete.md): Delete an Amazon DocumentDB cluster using the AWS Management Console or the AWS CLI. - [Scaling clusters](https://docs.aws.amazon.com/documentdb/latest/devguide/db-cluster-manage-performance.md): Amazon DocumentDB enables you to scale the storage and compute in your clusters based on your needs. - [Cloning a volume for a cluster](https://docs.aws.amazon.com/documentdb/latest/devguide/db-cluster-cloning.md) - [Understanding cluster fault tolerance](https://docs.aws.amazon.com/documentdb/latest/devguide/db-cluster-fault-tolerance.md): Amazon DocumentDB clusters are fault tolerant by design. ### [Managing instances](https://docs.aws.amazon.com/documentdb/latest/devguide/db-instances.md) Overview of management tasks for Amazon DocumentDB (with MongoDB compatibility) instances, including creating, viewing, and modifying. ### [Instance lifecycle](https://docs.aws.amazon.com/documentdb/latest/devguide/db-instance-life-cycle.md) Overview of the lifecycle of an Amazon DocumentDB (with MongoDB compatibility) instance, including creation, maintenance, and deletion. - [Adding an instance](https://docs.aws.amazon.com/documentdb/latest/devguide/db-instance-add.md): Add an Amazon DocumentDB instance using the AWS Management Console or the AWS CLI. - [Describing instances](https://docs.aws.amazon.com/documentdb/latest/devguide/db-instance-view-details.md): See details about your Amazon DocumentDB instance using the AWS Management Console or the AWS CLI. - [Modifying an instance](https://docs.aws.amazon.com/documentdb/latest/devguide/db-instance-modify.md): Modify your Amazon DocumentDB instance using the AWS Management Console or the AWS CLI. - [Rebooting an instance](https://docs.aws.amazon.com/documentdb/latest/devguide/db-instance-reboot.md): Reboot your Amazon DocumentDB instance using the AWS Management Console or the AWS CLI. - [Deleting an instance](https://docs.aws.amazon.com/documentdb/latest/devguide/db-instance-delete.md): Delete an Amazon DocumentDB instance using the AWS Management Console or the AWS CLI. - [Managing instance classes](https://docs.aws.amazon.com/documentdb/latest/devguide/db-instance-classes.md): Overview of Amazon DocumentDB instance classes, which determine the computation and memory capacity of an instance. - [NVMe-backed instances](https://docs.aws.amazon.com/documentdb/latest/devguide/db-instance-nvme.md): Insert your chapter abstract text here. ### [Managing subnet groups](https://docs.aws.amazon.com/documentdb/latest/devguide/document-db-subnet-groups.md) A virtual private cloud (VPC) is a virtual network dedicated to your AWS account. - [Creating a subnet group](https://docs.aws.amazon.com/documentdb/latest/devguide/document-db-subnet-group-create.md): When creating an Amazon DocumentDB cluster, you must choose a Amazon VPC and corresponding subnet group within that Amazon VPC to launch your cluster. - [Describing a subnet group](https://docs.aws.amazon.com/documentdb/latest/devguide/document-db-subnet-group-describe.md): You can use the AWS Management Console or the AWS CLI to get the details of an Amazon DocumentDB subnet group. - [Modifying a subnet group](https://docs.aws.amazon.com/documentdb/latest/devguide/document-db-subnet-group-modify.md): You can use the AWS Management Console or AWS CLI to modify a subnet group's description or to add or remove subnets from an Amazon DocumentDB subnet group. - [Deleting a subnet group](https://docs.aws.amazon.com/documentdb/latest/devguide/document-db-subnet-group-delete.md): You can use the AWS Management Console or AWS CLI to delete an Amazon DocumentDB subnet group. ### [High availability and replication](https://docs.aws.amazon.com/documentdb/latest/devguide/replication.md) You can achieve high availability and read scaling in Amazon DocumentDB (with MongoDB compatibility) by using replica instances. - [Failover](https://docs.aws.amazon.com/documentdb/latest/devguide/failover.md): In certain cases, such as certain types of planned maintenance, or in the unlikely event of a primary node or Availability Zone failure, Amazon DocumentDB (with MongoDB compatibility) detects the failure and replaces the primary node. - [Managing events](https://docs.aws.amazon.com/documentdb/latest/devguide/managing-events.md): Amazon DocumentDB (with MongoDB compatibility) keeps a record of events that relate to your clusters, instances, snapshots, security groups, and cluster parameter groups. ### [Managing cluster parameter groups](https://docs.aws.amazon.com/documentdb/latest/devguide/cluster_parameter_groups.md) You can manage Amazon DocumentDB engine configuration by using parameters in a cluster parameter group. - [Describing cluster parameter groups](https://docs.aws.amazon.com/documentdb/latest/devguide/cluster_parameter_groups-describe.md): A default cluster parameter group is created automatically when you create the first Amazon DocumentDB cluster in a new AWS Region or are using a new engine. - [Creating cluster parameter groups](https://docs.aws.amazon.com/documentdb/latest/devguide/cluster_parameter_groups-create.md): Manage the parameters of your Amazon DocumentDB clusters by creating a new cluster parameter group and associating it to a cluster. - [Modifying cluster parameter groups](https://docs.aws.amazon.com/documentdb/latest/devguide/cluster_parameter_groups-modify.md): Modify the ParameterValue, Description, or ApplyMethod of any modifiable parameter in a cluster parameter group in Amazon DocumentDB. - [Modifying clusters to use customized cluster parameter groups](https://docs.aws.amazon.com/documentdb/latest/devguide/cluster_parameter_groups-modify_clusters.md): When you create an Amazon DocumentDB cluster, a default.docdb4.0 parameter group is automatically created for that cluster. - [Copying cluster parameter groups](https://docs.aws.amazon.com/documentdb/latest/devguide/cluster_parameter_groups-copy.md): Make a copy of a cluster parameter group in Amazon DocumentDB using the AWS CLI. - [Resetting cluster parameter groups](https://docs.aws.amazon.com/documentdb/latest/devguide/cluster_parameter_groups-reset.md): Reset some or all of an Amazon DocumentDB cluster parameter group's values to the default values by resetting the cluster parameter group. - [Deleting cluster parameter groups](https://docs.aws.amazon.com/documentdb/latest/devguide/cluster_parameter_groups-delete.md): Delete a custom cluster parameter group in Amazon DocumentDB using the console or AWS CLI. ### [Cluster parameters reference](https://docs.aws.amazon.com/documentdb/latest/devguide/cluster_parameter_groups-list_of_parameters.md) View the parameters that apply to all instances in an Amazon DocumentDB cluster. - [Modifying cluster parameters](https://docs.aws.amazon.com/documentdb/latest/devguide/cluster_parameter_groups-parameters.md): In Amazon DocumentDB, cluster parameter groups consist of parameters that apply to all of the instances that you create in the cluster. ### [Understanding endpoints](https://docs.aws.amazon.com/documentdb/latest/devguide/endpoints.md) You can use Amazon DocumentDB (with MongoDB compatibility) endpoints to connect to a cluster or instance. - [Finding a cluster's endpoints](https://docs.aws.amazon.com/documentdb/latest/devguide/db-cluster-endpoints-find.md): You can find a cluster's cluster endpoint and reader endpoint using the Amazon DocumentDB console or AWS CLI. - [Finding an instance's endpoint](https://docs.aws.amazon.com/documentdb/latest/devguide/db-instance-endpoint-find.md): You can find the endpoint for an instance using the Amazon DocumentDB console or the AWS CLI. - [Connecting to endpoints](https://docs.aws.amazon.com/documentdb/latest/devguide/endpoints-connecting.md): When you have your endpoint, either cluster or instance, you can connect to it using the mongo shell or a connection string. - [Understanding Amazon DocumentDB ARNs](https://docs.aws.amazon.com/documentdb/latest/devguide/documentdb-arns.md): Overview of creating and using ARNs in Amazon DocumentDB (with MongoDB compatibility). - [Tagging resources](https://docs.aws.amazon.com/documentdb/latest/devguide/tagging.md): Using tags in Amazon DocumentDB to add metadata to your resources. - [Maintaining Amazon DocumentDB](https://docs.aws.amazon.com/documentdb/latest/devguide/db-instance-maintain.md): Amazon DocumentDB periodically performs two kinds of maintenance: - [Understanding service-linked roles](https://docs.aws.amazon.com/documentdb/latest/devguide/service-linked-roles.md): Amazon DocumentDB (with MongoDB compatibility) uses AWS Identity and Access Management (IAM) service-linked roles. ## [Performance optimization](https://docs.aws.amazon.com/documentdb/latest/devguide/performance-optimization.md) ### [Common performance issues](https://docs.aws.amazon.com/documentdb/latest/devguide/performance-common-issues.md) This section covers common performance issues you might encounter with Amazon DocumentDB and how to resolve them. - [High CPU](https://docs.aws.amazon.com/documentdb/latest/devguide/performance-high-cpu-utilization.md): High CPU utilization is one of the issues you might encounter at some point while working with Amazon DocumentDB. - [Connection issues](https://docs.aws.amazon.com/documentdb/latest/devguide/performance-connection-issues.md) - [Query running slow](https://docs.aws.amazon.com/documentdb/latest/devguide/performance-slow-queries.md) ### [Anti-patterns](https://docs.aws.amazon.com/documentdb/latest/devguide/performance-anti-patterns.md) This section covers common anti-patterns that can negatively impact Amazon DocumentDB performance. - [Compound index anti-pattern more than 3 attributes](https://docs.aws.amazon.com/documentdb/latest/devguide/anti-pattern-compound-index.md) - [Long running queries](https://docs.aws.amazon.com/documentdb/latest/devguide/anti-pattern-long-running-queries.md) - [Low used and redundant indexes](https://docs.aws.amazon.com/documentdb/latest/devguide/anti-pattern-low-used-redundant-indexes.md) - [Multi-key indexes with large arrays](https://docs.aws.amazon.com/documentdb/latest/devguide/anti-pattern-multi-key-indexes.md) - [Performance improvement tips](https://docs.aws.amazon.com/documentdb/latest/devguide/performance-improvement-tips.md): This section provides five performance optimization strategies for Amazon DocumentDB to improve application efficiency and query execution. - [Query plan analysis](https://docs.aws.amazon.com/documentdb/latest/devguide/performance-query-plan-analysis.md): Query plan analysis through explain plan provides essential insights into Amazon DocumentDB query performance. - [Best practices](https://docs.aws.amazon.com/documentdb/latest/devguide/best_practices.md): Operational, security, metrics, and parameter group best practices for Amazon DocumentDB. - [Managing indexes](https://docs.aws.amazon.com/documentdb/latest/devguide/managing-indexes.md) - [Managing document compression](https://docs.aws.amazon.com/documentdb/latest/devguide/doc-compression.md): Insert your chapter abstract text here. - [Managing dictionary-based compression](https://docs.aws.amazon.com/documentdb/latest/devguide/dict-compression.md): This section describes dictionary-based compression and steps to manage it in Amazon DocumentDB 8.0. ## [Security](https://docs.aws.amazon.com/documentdb/latest/devguide/security.md) - [Password management with AWS Secrets Manager](https://docs.aws.amazon.com/documentdb/latest/devguide/docdb-secrets-manager.md): Insert your chapter abstract text here. ### [Data protection](https://docs.aws.amazon.com/documentdb/latest/devguide/security.data-protection.md) The AWS shared responsibility model applies to data protection in Amazon DocumentDB. - [Client-side field level encryption](https://docs.aws.amazon.com/documentdb/latest/devguide/field-level-encryption.md): Encrypting client data before it is sent to a Amazon DocumentDB cluster. - [Encrypting data at rest](https://docs.aws.amazon.com/documentdb/latest/devguide/encryption-at-rest.md): Overview of the storage encryption features in Amazon DocumentDB. - [Encrypting data in transit](https://docs.aws.amazon.com/documentdb/latest/devguide/security.encryption.ssl.md): Connect to an Amazon DocumentDB cluster using Transport Layer Security (TLS). - [Key management](https://docs.aws.amazon.com/documentdb/latest/devguide/security.encryption.ssl.public-key.md): Amazon DocumentDB uses AWS Key Management Service (AWS KMS) to retrieve and manage encryption keys. ### [Identity and Access Management](https://docs.aws.amazon.com/documentdb/latest/devguide/security-iam.md) How to authenticate requests and manage access to your Amazon DocumentDB resources. - [How Amazon DocumentDB works with IAM](https://docs.aws.amazon.com/documentdb/latest/devguide/security_iam_service-with-iam.md): Before you use IAM to manage access to Amazon DocumentDB, learn what IAM features are available to use with Amazon DocumentDB. - [Identity-based policy examples](https://docs.aws.amazon.com/documentdb/latest/devguide/security_iam_id-based-policy-examples.md): By default, users and roles don't have permission to create or modify Amazon DocumentDB resources. - [Troubleshooting](https://docs.aws.amazon.com/documentdb/latest/devguide/security_iam_troubleshoot.md): Use the following information to help you diagnose and fix common issues that you might encounter when working with Amazon DocumentDB and IAM. - [Managing access permissions to your Amazon DocumentDB resources](https://docs.aws.amazon.com/documentdb/latest/devguide/UsingWithRDS.IAM.AccessControl.Overview.md): Manage permissions for accessing and performing actions on Amazon DocumentDB resources. - [Using identity-based policies (IAM policies)](https://docs.aws.amazon.com/documentdb/latest/devguide/UsingWithRDS.IAM.AccessControl.IdentityBased.md): Use IAM policies to attach permissions to users, groups and roles in Amazon DocumentDB. - [AWS managed policies for Amazon DocumentDB](https://docs.aws.amazon.com/documentdb/latest/devguide/docdb-managed-policies.md): Managed policies - [Amazon DocumentDB API permissions reference](https://docs.aws.amazon.com/documentdb/latest/devguide/UsingWithRDS.IAM.ResourcePermissions.md): Create fine-grained permissions that specify which Amazon DocumentDB resources users can perform actions on. - [Cross-service confused deputy prevention](https://docs.aws.amazon.com/documentdb/latest/devguide/cross-service-confused-deputy-prevention.md): The confused deputy problem is a security issue where an entity that doesn't have permission to perform an action can coerce a more-privileged entity to perform the action. - [Authentication using IAM identity](https://docs.aws.amazon.com/documentdb/latest/devguide/iam-identity-auth.md): Use IAM identity for Amazon DocumentDB cluster authentication. - [Authentication using SCRAM-SHA-256](https://docs.aws.amazon.com/documentdb/latest/devguide/scram-sha-256-auth.md): Use SCRAM-SHA-256 for password-based Amazon DocumentDB (with MongoDB compatibility) cluster authentication. - [Managing Amazon DocumentDB users](https://docs.aws.amazon.com/documentdb/latest/devguide/security.managing-users.md): How to manage users in Amazon DocumentDB (with MongoDB compatibility), including working with the primary user and creating additional users. - [Role-Based Access Control](https://docs.aws.amazon.com/documentdb/latest/devguide/role_based_access_control.md): Use built-in roles and role-based access control to control user access in Amazon DocumentDB. - [Updating certificates](https://docs.aws.amazon.com/documentdb/latest/devguide/ca_cert_rotation.md): Instructions for updating CA certificates to use the new CA certificate to create TLS connections in Amazon DocumentDB. - [Compliance validation](https://docs.aws.amazon.com/documentdb/latest/devguide/security.compliance-validation.md): The security and compliance of Amazon DocumentDB is assessed by third-party auditors as part of multiple AWS compliance programs, including the following: - [Resilience](https://docs.aws.amazon.com/documentdb/latest/devguide/security.disaster-recovery-resiliency.md): The AWS global infrastructure is built around AWS Regions and Availability Zones. - [Infrastructure security](https://docs.aws.amazon.com/documentdb/latest/devguide/security.infrastructure.md): As a managed service, Amazon DocumentDB is protected by AWS global network security. - [VPC endpoints (AWS PrivateLink)](https://docs.aws.amazon.com/documentdb/latest/devguide/docdb-private-link.md): AWS PrivateLink integration with Amazon DocumentDB - [Security best practices](https://docs.aws.amazon.com/documentdb/latest/devguide/security_best_practices.md): Amazon DocumentDB provides security features including Amazon VPC isolation, encryption at rest using AWS KMS, encryption in transit using TLS, and fine-grained access control through IAM. - [Auditing events](https://docs.aws.amazon.com/documentdb/latest/devguide/event-auditing.md): Audit events that were performed in your cluster in Amazon DocumentDB. ### [Amazon VPC and Amazon DocumentDB](https://docs.aws.amazon.com/documentdb/latest/devguide/vpc-docdb.md) Amazon VPC enables DocumentDB deployment in customizable virtual networks with IPv4-only or dual-stack options at no extra cost. - [DocumentDB clusters in a VPC](https://docs.aws.amazon.com/documentdb/latest/devguide/vpc-clusters.md): Amazon DocumentDB clusters operate within Amazon VPC environments, providing logical isolation with subnet organization and IP addressing options, while offering guidance on cluster creation and management within these virtual networks. - [Accessing a cluster in a VPC](https://docs.aws.amazon.com/documentdb/latest/devguide/access-cluster-vpc.md): Amazon DocumentDB provides flexible connectivity options for accessing clusters within VPC environments, supporting scenarios for connections from EC2 instances in both the same VPC and across different VPCs. - [Create an IPv4-only VPC for a cluster](https://docs.aws.amazon.com/documentdb/latest/devguide/docdb-vpc-create-ipv4.md): create an Amazon DocumentDB clusters with IPv4-only) networking in a VPC environment. - [Create a dual-stack VPC for a cluster](https://docs.aws.amazon.com/documentdb/latest/devguide/docdb-vpc-create-dual-stack.md): Create an Amazon DocumentDB clusters with dual-stack (IPv4 and IPv6) networking in a VPC environment. ## [Backing up and restoring](https://docs.aws.amazon.com/documentdb/latest/devguide/backup_restore.md) - [Back up and restore: concepts](https://docs.aws.amazon.com/documentdb/latest/devguide/backup_restore-nouns_verbs.md) - [Understanding backup storage usage](https://docs.aws.amazon.com/documentdb/latest/devguide/backup_restore-understanding_backup_storage_usage.md): Amazon DocumentDB backup storage consists of continuous backups within the backup retention period and manual snapshots outside the retention period. - [Dumping, restoring, importing, and exporting data](https://docs.aws.amazon.com/documentdb/latest/devguide/backup_restore-dump_restore_import_export_data.md): You can use the mongodump, mongorestore, mongoexport, and mongoimport utilities to move data in and out of your Amazon DocumentDB cluster. - [Cluster snapshot considerations](https://docs.aws.amazon.com/documentdb/latest/devguide/backup_restore-cluster_snapshot_considerations.md): Issues to consider when using Amazon DocumentDB automatic and manual snapshots. - [Comparing automatic and manual snapshots](https://docs.aws.amazon.com/documentdb/latest/devguide/backup_restore-compare_automatic_manual_snapshots.md): Compare the key features of Amazon DocumentDB automatic and manual snapshots. - [Creating a manual cluster snapshot](https://docs.aws.amazon.com/documentdb/latest/devguide/backup_restore-create_manual_cluster_snapshot.md): Create a manual cluster snapshot in Amazon DocumentDB using the console or AWS CLI. - [Copying a cluster snapshot](https://docs.aws.amazon.com/documentdb/latest/devguide/backup_restore-copy_cluster_snapshot.md): Copy an Amazon DocumentDB cluster snapshot using the AWS Management Console or AWS CLI. - [Sharing a cluster snapshot](https://docs.aws.amazon.com/documentdb/latest/devguide/backup_restore-share_cluster_snapshots.md): How to share Amazon DocumentDB snapshots. - [Restoring from a cluster snapshot](https://docs.aws.amazon.com/documentdb/latest/devguide/backup_restore-restore_from_snapshot.md): Restore an Amazon DocumentDB cluster from a snapshot. - [Restoring to a point in time](https://docs.aws.amazon.com/documentdb/latest/devguide/backup_restore-point_in_time_recovery.md): Restore a cluster in Amazon DocumentDB to any point in time within the backup retention period using the AWS CLI. - [Deleting a cluster snapshot](https://docs.aws.amazon.com/documentdb/latest/devguide/backup_restore-delete_cluster_snapshot.md): Delete a cluster snapshot in Amazon DocumentDB using the console or the AWS CLI. ## [Monitoring and logging](https://docs.aws.amazon.com/documentdb/latest/devguide/monitoring_docdb.md) - [Monitoring a cluster's status](https://docs.aws.amazon.com/documentdb/latest/devguide/monitoring_docdb-cluster_status.md): The status of a cluster indicates the health of the cluster. - [Monitoring an instance's status](https://docs.aws.amazon.com/documentdb/latest/devguide/monitoring_docdb-instance_status.md): Overview of how to view Amazon DocumentDB instance statuses. - [Viewing Amazon DocumentDB recommendations](https://docs.aws.amazon.com/documentdb/latest/devguide/view-docdb-recommendations.md): Amazon DocumentDB provides a list of automated recommendations for database resources, such as instances and clusters. ### [Event subscriptions](https://docs.aws.amazon.com/documentdb/latest/devguide/event-subscriptions.md) Amazon DocumentDB uses Amazon Simple Notification Service (Amazon SNS) to provide notifications when an Amazon DocumentDB event occurs. - [Subscribing to events](https://docs.aws.amazon.com/documentdb/latest/devguide/event-subscriptions.subscribe.md): You can use the Amazon DocumentDB console to subscribe to event subscriptions, as follows: - [Manage subscriptions](https://docs.aws.amazon.com/documentdb/latest/devguide/event-subscriptions.managing.md): If you choose Event subscriptions in the navigation pane of the Amazon DocumentDB console, you can view subscription categories and a list of your current subscriptions. - [Categories and messages](https://docs.aws.amazon.com/documentdb/latest/devguide/event-subscriptions.categories-messages.md): Amazon DocumentDB generates a significant number of events in categories that you can subscribe to using the console. - [Monitoring Amazon DocumentDB with CloudWatch](https://docs.aws.amazon.com/documentdb/latest/devguide/cloud_watch.md): Use CloudWatch metrics to monitor the health and performance of your Amazon DocumentDB clusters. - [Logging Amazon DocumentDB API calls with CloudTrail](https://docs.aws.amazon.com/documentdb/latest/devguide/logging-with-cloudtrail.md): Use CloudWatch metrics to monitor the health and performance of your Amazon DocumentDB clusters. - [Profiling operations](https://docs.aws.amazon.com/documentdb/latest/devguide/profiling.md): Use the profiler to log the execution time and details of operations that were performed on your Amazon DocumentDB cluster. ### [Monitoring with Performance Insights](https://docs.aws.amazon.com/documentdb/latest/devguide/performance-insights.md) Learn how Performance Insights can help illustrate your cluster performance and analyze any issues that affect it. - [Performance Insights concepts](https://docs.aws.amazon.com/documentdb/latest/devguide/performance-insights-concepts.md): Learn the key concepts needed to use Performance Insights with Amazon DocumentDB - [Enabling and disabling Performance Insights](https://docs.aws.amazon.com/documentdb/latest/devguide/performance-insights-enabling.md): Learn how to enable and disable Performance Insights monitoring. - [Configuring access policies for Performance Insights](https://docs.aws.amazon.com/documentdb/latest/devguide/performance-insights-policies.md): Learn how to configure access policies for Performance Insights ### [Analyzing metrics with the Performance Insights dashboard](https://docs.aws.amazon.com/documentdb/latest/devguide/performance-insights-analyzing.md) Learn about the different database performance information available through the Performance Insights dashboard. - [Overview of the Performance Insights dashboard](https://docs.aws.amazon.com/documentdb/latest/devguide/performance-insights-dashboard-overview.md): Get an overview of the Performance Insights dashboard. - [Opening the Performance Insights dashboard](https://docs.aws.amazon.com/documentdb/latest/devguide/performance-insights-dashboard-opening.md): Learn how to open the Performance Insights dashboard. - [Analyzing database load by wait states](https://docs.aws.amazon.com/documentdb/latest/devguide/performance-insights-analyzing-db-load.md): Learn how to analyze your database load with Performance Insights. - [Overview of the Top queries tab](https://docs.aws.amazon.com/documentdb/latest/devguide/performance-insights-top-queries.md): Learn how to interact with the Top queries tab. - [Zooming in on the database load chart](https://docs.aws.amazon.com/documentdb/latest/devguide/performance-insights-zoom-db-load.md): Learn about the different components in the database load chart. - [Retrieving metrics with the Performance Insights API](https://docs.aws.amazon.com/documentdb/latest/devguide/performance-insights-metrics.md): Learn how to retrieve metrics with the Performance Insights API - [Amazon CloudWatch metrics for Performance Insights](https://docs.aws.amazon.com/documentdb/latest/devguide/performance-insights-cloudwatch.md): Learn how Performance Insights interacts with CloudWatch - [Performance Insights for counter metrics](https://docs.aws.amazon.com/documentdb/latest/devguide/performance-insights-counter-metrics.md): Learn about the operating system metrics in the Performance Insights dashboard for Amazon DocumentDB ## [Serverless](https://docs.aws.amazon.com/documentdb/latest/devguide/docdb-serverless.md) - [How serverless works](https://docs.aws.amazon.com/documentdb/latest/devguide/docdb-serverless-how-it-works.md): How AWS serverless works in Amazon DocumentDB, including supported configurations, scaling, and idle state. - [Serverless requirements and limitations](https://docs.aws.amazon.com/documentdb/latest/devguide/docdb-serverless-limitations.md): Amazon DocumentDB requirements and limitations including Region availability. - [Creating a cluster that uses serverless](https://docs.aws.amazon.com/documentdb/latest/devguide/docdb-serverless-create-cluster.md): Creating an Amazon DocumentDB serverless cluster. - [Migrating to serverless](https://docs.aws.amazon.com/documentdb/latest/devguide/docdb-serverless-migrating.md): Migrating to an Amazon DocumentDB serverless cluster from an existing DocumentDB provisioned cluster or from MongoDB. - [Managing serverless](https://docs.aws.amazon.com/documentdb/latest/devguide/docdb-serverless-managing.md): Managing Amazon DocumentDB serverless clusters. - [Serverless instance limits](https://docs.aws.amazon.com/documentdb/latest/devguide/docdb-serverless-instance-limits.md): Amazon DocumentDB serverless instance limits including instance memory, connections, cursor limit, open transactions, and active connections. - [Serverless scaling configuration](https://docs.aws.amazon.com/documentdb/latest/devguide/docdb-serverless-scaling-config.md): Amazon DocumentDB serverless scaling configuration including capacity range and avoiding out-of-memory errors. - [Monitoring serverless](https://docs.aws.amazon.com/documentdb/latest/devguide/docdb-serverless-monitoring.md): Monitoring Amazon DocumentDB serverless using Amazon CloudWatch or Performance Insights. ## [Elastic Clusters](https://docs.aws.amazon.com/documentdb/latest/devguide/docdb-using-elastic-clusters.md) - [How it works](https://docs.aws.amazon.com/documentdb/latest/devguide/elastic-how-it-works.md): Overview of Amazon DocumentDB, a fully managed, MongoDB-compatible database service. - [Get started](https://docs.aws.amazon.com/documentdb/latest/devguide/elastic-get-started.md): Amazon DocumentDB Elastic clusters getting started. - [Best practices](https://docs.aws.amazon.com/documentdb/latest/devguide/elastic-best-practices.md): Insert your chapter abstract text here. ### [Managing elastic clusters](https://docs.aws.amazon.com/documentdb/latest/devguide/elastic-managing.md) Managing elastic cluster configuration - [Managing elastic cluster snapshots](https://docs.aws.amazon.com/documentdb/latest/devguide/elastic-manage-snapshots.md): Manual snapshots can be taken after an elastic cluster has been created. - [Stopping and starting an elastic cluster](https://docs.aws.amazon.com/documentdb/latest/devguide/elastic-cluster-stop-start.md): Stopping and starting Amazon DocumentDB elastic clusters can help you manage costs for development and test environments. - [Maintaining elastic clusters](https://docs.aws.amazon.com/documentdb/latest/devguide/elastic-cluster-maintenance.md): Topics - [Data encryption at rest](https://docs.aws.amazon.com/documentdb/latest/devguide/elastic-encryption.md): Encrypting Amazon DocumentDB elastic cluster data at rest. - [Service-linked roles](https://docs.aws.amazon.com/documentdb/latest/devguide/elastic-service-linked-roles.md): Insert your chapter abstract text here. ## [Troubleshooting](https://docs.aws.amazon.com/documentdb/latest/devguide/troubleshooting.md) - [Connectivity issues](https://docs.aws.amazon.com/documentdb/latest/devguide/troubleshooting.connecting.md): Having trouble connecting? Here are some common scenarios and how to resolve them. - [Indexes](https://docs.aws.amazon.com/documentdb/latest/devguide/troubleshooting.index-creation.md): The following topics address what to do if your index or background index build fails. - [Performance and resource utilization](https://docs.aws.amazon.com/documentdb/latest/devguide/user_diagnostics.md): Covers common questions and solutions for your Amazon DocumentDB deployment, such as how to determine running tasks, terminate blocked queries, optimize your query plan, and more. - [Garbage collection](https://docs.aws.amazon.com/documentdb/latest/devguide/garbage-collection.md): ??? - [Error codes](https://docs.aws.amazon.com/documentdb/latest/devguide/error-codes.md): Reference of error codes returned by Amazon DocumentDB 8.0. ## Full content The entire guide is also available as a single markdown file, useful for feeding the full guide to an LLM in one pass: - [Complete guide (single file)](https://docs.aws.amazon.com/documentdb/latest/devguide/full.md)