Softwr

Databases · head to head

AWS Secrets Manager vs MongoDB

AWS Secrets Manager logo

AWS Secrets Manager

Databases

Managed store for database credentials and API keys with automatic rotation

From
$0.4/month
Free plan
No
MongoDB logo

MongoDB

Databases

The developer data platform

From
Free
Free plan
Yes

The short version

  • MongoDB is a general purpose, document-based, distributed database.
  • MongoDB has a free plan, then $9/mo; AWS Secrets Manager starts at $0.4/mo.
  • Only AWS Secrets Manager lists automatic rotation; only MongoDB lists document model.
  • Where AWS Secrets Manager falls short: replica secrets are billed as full secrets, which doubles or triples the cost of multi-Region storage.
  • Where MongoDB falls short: 16 MB maximum document size limits large single objects.

How do AWS Secrets Manager and MongoDB differ?

AWS Secrets Manager and MongoDB differ on starting price ($0.4/month against Free), free tier (No against Yes) and platforms (Web against Web, Self-hosted). Only the attributes on which AWS Secrets Manager and MongoDB actually diverge.

Attributes where AWS Secrets Manager and MongoDB differ
AttributeAWS Secrets ManagerMongoDB
Starting price$0.4/monthFree
Free tierNoYes
PlatformsWebWeb, Self-hosted

Not yet recorded: pricing model for MongoDB, category for AWS Secrets Manager, founded for AWS Secrets Manager.

Which features does each one have?

They share no listed features; 6 appear only for AWS Secrets Manager and 20 only for MongoDB. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.

Only in AWS Secrets Manager

  • Automatic rotation
  • KMS encryption
  • Cross-Region replication
  • Fine-grained access
  • Audit trail
  • Versioning

Only in MongoDB

  • Document model
  • Distributed architecture
  • ACID transactions
  • Real-time analytics
  • Full-text search
  • Time series data
  • Geospatial queries
  • Aggregation framework

What is each one used for?

AWS Secrets Manager is most often brought in for rotating RDS or Aurora database passwords on a schedule without code changes; MongoDB for mobile applications. The jobs each tool is most often brought in to do.

AWS Secrets Manager

  • Rotating RDS or Aurora database passwords on a schedule without code changesnot MongoDB
  • Giving ECS tasks and Lambda functions credentials at runtime instead of in environment filesnot MongoDB
  • Replicating secrets to a second Region for disaster recoverynot MongoDB
  • Centralising third-party API keys with audit logs for compliancenot MongoDB

MongoDB

  • Mobile applicationsnot AWS Secrets Manager
  • Content managementnot AWS Secrets Manager
  • Real-time analyticsnot AWS Secrets Manager
  • IoT applicationsnot AWS Secrets Manager
  • Gaming backendsnot AWS Secrets Manager

Where do AWS Secrets Manager and MongoDB fall short?

AWS Secrets Manager's most cited limit: replica secrets are billed as full secrets, which doubles or triples the cost of multi-Region storage. MongoDB's: 16 MB maximum document size limits large single objects. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

AWS Secrets Manager

  • The $0.40 per secret fee applies to every secret including rarely used ones, so organisations with thousands of per-service secrets see a steady monthly charge
  • Replica secrets are billed as full secrets, which doubles or triples the cost of multi-Region storage
  • Rotation for anything other than the supported AWS databases means writing and maintaining your own Lambda function
  • It stores static secrets only; unlike HashiCorp Vault it does not issue short-lived dynamic credentials for many targets
  • It is AWS-only, so workloads on other clouds or on-premises must call AWS APIs across the network, tying their secret access to AWS availability

MongoDB

  • 16 MB maximum document size limits large single objects
  • No native JOIN support for relational data operations
  • Higher memory usage due to storing field names with each document
  • Eventual consistency in distributed deployments can cause data stale reads

How much do AWS Secrets Manager and MongoDB cost?

AWS Secrets Manager starts at $0.4/mo; MongoDB has a free plan, with paid plans from $9/mo. Plan by plan below, from each vendor's own pricing page.

AWS Secrets Manager

$0.4/month
  • Secrets$0.4/mo
    • $0.40 per secret per month, prorated hourly
    • Each replica secret is billed as a separate secret
  • API callsOn request
    • $0.05 per 10,000 API calls
    • Rotation, retrieval and management calls all count

MongoDB

Free
  • M0Free
    • 512 MB storage
    • Learning and exploration
  • M2$9/mo
    • 2 GB storage
    • Development and testing
  • M5$25/mo
    • 5 GB storage
  • M10+$56.94/mo
    • Dedicated clusters for production

Which should you pick?

Choose AWS Secrets Manager if

  • You need automatic rotation.
  • You also want kms encryption.

Choose MongoDB if

  • You need document model.
  • You want to start without paying.
  • You work on Web, Self-hosted.
  • You also want distributed architecture.

Questions people ask

Is AWS Secrets Manager or MongoDB better?
It depends on the job. AWS Secrets Manager fits rotating RDS or Aurora database passwords on a schedule without code changes; MongoDB fits mobile applications. AWS Secrets Manager starts at $0.4/month and MongoDB at Free.
Which is cheaper, AWS Secrets Manager or MongoDB?
MongoDB has a free tier; the other does not. Paid plans start at $0.4/month for AWS Secrets Manager and Free for MongoDB.
Does AWS Secrets Manager or MongoDB run on more platforms?
AWS Secrets Manager runs on Web. MongoDB runs on Web, Self-hosted.
Can I use MongoDB for free?
Yes. MongoDB has a free tier, so you can try it without paying. AWS Secrets Manager starts at $0.4/month.
What is AWS Secrets Manager best used for?
AWS Secrets Manager is most often used for rotating rds or aurora database passwords on a schedule without code changes, giving ecs tasks and lambda functions credentials at runtime instead of in environment files, replicating secrets to a second region for disaster recovery, centralising third-party api keys with audit logs for compliance. Of those, rotating rds or aurora database passwords on a schedule without code changes and giving ecs tasks and lambda functions credentials at runtime instead of in environment files are not what MongoDB is typically brought in for.
What can AWS Secrets Manager do that MongoDB cannot?
AWS Secrets Manager covers Automatic rotation, KMS encryption, Cross-Region replication, Fine-grained access. MongoDB covers Document model, Distributed architecture, ACID transactions, Real-time analytics.

Answered from the vendors’ own pages

AWS Secrets Manager: How much does Secrets Manager cost?

$0.40 per secret per month and $0.05 per 10,000 API calls, per the AWS pricing page. A replica in another Region is billed as another secret.

MongoDB: Does MongoDB offer a free tier?

Yes. MongoDB Atlas offers an M0 free tier with 512 MB storage for learning and exploration, plus paid options starting at $9/month for M2 with 2 GB storage.

Source
AWS Secrets Manager: Is Secrets Manager cheaper than Parameter Store?

Parameter Store standard parameters carry no charge, so for static values that do not need rotation it is cheaper. Secrets Manager adds rotation and replication.

MongoDB: Can I self-host MongoDB?

Yes. You can run MongoDB Community Edition on your own servers, or use MongoDB Enterprise Advanced for self-managed production deployments with enterprise features.

Source
AWS Secrets Manager: Does it rotate secrets automatically?

Yes. It has managed rotation for supported AWS databases and uses Lambda functions for other secret types.

MongoDB: What is the maximum document size in MongoDB?

Documents are limited to 16 MB. For documents exceeding this limit, you can use MongoDB's GridFS API to store files larger than the maximum size.

Source
MongoDB: Does MongoDB support ACID transactions?

Yes. MongoDB supports ACID transactions within a single document by default, and multi-document ACID transactions are available for replica sets and sharded clusters in MongoDB 4.0+.

Source
Share

Related pages

Other head to heads