A company wants to run a MongoDB-compatible database on AWS with automated patching and backups. Which service should they choose?
Fully managed MongoDB-compatible database.
Why this answer
Amazon DocumentDB with MongoDB compatibility is the correct choice because it is a fully managed, MongoDB-compatible database service that provides automated patching and backups. It supports the MongoDB wire protocol and drivers, allowing existing MongoDB applications to migrate with minimal changes while offloading administrative tasks like patching, backup, and replication to AWS.
Exam trap
The trap here is that candidates may confuse Amazon DocumentDB's MongoDB compatibility with full feature parity, but DocumentDB does not support all MongoDB features (e.g., some aggregation pipeline stages or change streams), so the exam expects you to recognize it as the only managed MongoDB-compatible option with automated patching and backups.
How to eliminate wrong answers
Option B is wrong because self-managed MongoDB on Amazon EC2 requires the company to manually handle patching, backups, and operational overhead, which contradicts the requirement for automated patching and backups. Option C is wrong because Amazon DynamoDB is a key-value and document database that is not MongoDB-compatible; it uses a different API and data model, so it cannot run MongoDB workloads. Option D is wrong because Amazon RDS for MySQL is a relational database that does not support the MongoDB wire protocol or document model, making it incompatible with MongoDB-based applications.