Databases · head to head
Amazon DocumentDB vs AWS WAF

Amazon DocumentDB
Databases
Managed MongoDB-compatible document database service on AWS
- From
- On request
- Free plan
- No

AWS WAF
Databases
Managed web application firewall for CloudFront, load balancers and APIs on AWS
- From
- $5/month
- Free plan
- No
The short version
- Amazon DocumentDB is a managed document database on AWS.
- AWS WAF starts at $5/mo; Amazon DocumentDB prices on request.
- Only Amazon DocumentDB lists MongoDB driver and tool compatibility; only AWS WAF lists web ACLs and rules.
- Where Amazon DocumentDB falls short: runs only on AWS; it cannot run on premises or across cloud providers.
- Where AWS WAF falls short: it only attaches to a fixed list of AWS resources, so applications hosted outside AWS or behind another CDN cannot use it.
How do Amazon DocumentDB and AWS WAF differ?
Amazon DocumentDB and AWS WAF differ on starting price (On request against $5/month) and pricing model. Only the attributes on which Amazon DocumentDB and AWS WAF actually diverge.
| Attribute | Amazon DocumentDB | AWS WAF |
|---|---|---|
| Starting price | On request | $5/month |
| Pricing model | Usage-based | Per web ACL, per rule and per million requests |
Identical on both: free tier (No), platforms (Web).
Not yet recorded: category for AWS WAF.
Which features does each one have?
They share no listed features; 8 appear only for Amazon DocumentDB and 6 only for AWS WAF. 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 Amazon DocumentDB
- MongoDB driver and tool compatibility
- Managed patching, backups and monitoring
- Serverless capacity scaling
- Elastic clusters
- Global clusters across up to 10 AWS Regions
- I/O-Optimized pricing configuration
- CloudWatch, IAM and AWS Backup integration
- Zero ETL to Amazon OpenSearch Service
Only in AWS WAF
- Web ACLs and rules
- Managed rule groups
- Bot Control
- Fraud Control
- Rate-based rules
- Logging
What is each one used for?
Amazon DocumentDB is most often brought in for migrating MongoDB workloads to AWS; AWS WAF for rate limiting login and API endpoints that sit behind CloudFront. The jobs each tool is most often brought in to do.
Amazon DocumentDB
- Migrating MongoDB workloads to AWSnot AWS WAF
- Content and catalogue document storesnot AWS WAF
- Serverless document databases for variable loadnot AWS WAF
- Multi region read replicas for disaster recoverynot AWS WAF
AWS WAF
- Blocking SQL injection, cross-site scripting and known bad inputs in front of an Application Load Balancernot Amazon DocumentDB
- Rate limiting login and API endpoints that sit behind CloudFrontnot Amazon DocumentDB
- Adding bot detection to a retail site already hosted on AWSnot Amazon DocumentDB
- Applying one set of WAF rules across many accounts through AWS Firewall Managernot Amazon DocumentDB
Where do Amazon DocumentDB and AWS WAF fall short?
Amazon DocumentDB's most cited limit: runs only on AWS; it cannot run on premises or across cloud providers. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.
Amazon DocumentDB
- Runs only on AWS; it cannot run on premises or across cloud providers
- Compatible with MongoDB rather than identical, with no time series collection support
- Cost combines instance, storage, I/O and backup charges, which are harder to forecast
- Free tier allowance lasts 30 days for new accounts and is excluded in some regions
AWS WAF
- It only attaches to a fixed list of AWS resources, so applications hosted outside AWS or behind another CDN cannot use it
- Charges come from several meters at once (web ACL, rules, rule groups, requests, logging, and per-feature fees), so predicting a bill needs a worksheet rather than a single price
- Account Takeover Prevention and Fraud Control start at $1,000 per million requests, so protecting a busy login endpoint can cost more than the web ACL itself
- Managed rules ship in count-first workflows and generate false positives on unusual payloads, so someone has to review logs and tune exclusions
- Request body inspection is capped by default, and inspecting beyond the limit or using more than the default capacity units carries extra per-request charges
How much do Amazon DocumentDB and AWS WAF cost?
AWS WAF starts at $5/mo. Plan by plan below, from each vendor's own pricing page.
Amazon DocumentDB
On requestNo published plan breakdown. See the Amazon DocumentDB review.
AWS WAF
$5/month- Pay-as-you-go$5/mo
- $5.00 per web ACL per month
- $1.00 per rule and $1.00 per rule group per month
- $0.60 per million requests
- Bot Control$10/mo
- $10.00 per web ACL per month subscription
- Common: $1.00 per million requests, first 10 million free
- Targeted: $10.00 per million requests, first million free
- Account Takeover and Fraud Control$10/mo
- $10.00 per web ACL per month per rule group
- $1,000 per million requests for the first 2 million, falling to $50 per million at the highest tier
Which should you pick?
Choose Amazon DocumentDB if
- You need mongodb driver and tool compatibility.
- You also want managed patching, backups and monitoring.
Questions people ask
- Is Amazon DocumentDB or AWS WAF better?
- It depends on the job. Amazon DocumentDB fits migrating MongoDB workloads to AWS; AWS WAF fits blocking SQL injection, cross-site scripting and known bad inputs in front of an Application Load Balancer. Amazon DocumentDB starts at On request and AWS WAF at $5/month.
- Which is cheaper, Amazon DocumentDB or AWS WAF?
- Amazon DocumentDB starts at On request and AWS WAF at $5/month.
- Does Amazon DocumentDB or AWS WAF run on more platforms?
- Both run on Web, so platform support will not decide this one for you.
- What is Amazon DocumentDB best used for?
- Amazon DocumentDB is most often used for migrating mongodb workloads to aws, content and catalogue document stores, serverless document databases for variable load, multi region read replicas for disaster recovery. Of those, migrating mongodb workloads to aws and content and catalogue document stores are not what AWS WAF is typically brought in for.
- What can Amazon DocumentDB do that AWS WAF cannot?
- Amazon DocumentDB covers MongoDB driver and tool compatibility, Managed patching, backups and monitoring, Serverless capacity scaling, Elastic clusters. AWS WAF covers Web ACLs and rules, Managed rule groups, Bot Control, Fraud Control.
Answered from the vendors’ own pages
Amazon DocumentDB: Is DocumentDB the same as MongoDB?
No. It is MongoDB compatible: existing MongoDB drivers and tools work, but Wikipedia notes it supports MongoDB 3.6 and 4.0 with later partial 5.0 compliance and no time series collections.
SourceAWS WAF: How much does AWS WAF cost per month?
On pay-as-you-go pricing it is $5.00 per web ACL and $1.00 per rule per month, plus $0.60 per million requests, per the AWS pricing page. Bot Control, fraud rules, CAPTCHA and logging are billed on top.
Amazon DocumentDB: How is DocumentDB priced?
Pay as you go. Provisioned clusters are billed for instances per second, I/O, storage and backup storage, while serverless uses DocumentDB Capacity Units billed per second.
SourceAWS WAF: Does AWS WAF work outside AWS?
No. It protects supported AWS resources such as CloudFront, Application Load Balancer and API Gateway. Origins elsewhere can be covered if they sit behind CloudFront.
Amazon DocumentDB: Is there a free tier?
New AWS accounts get one month: 750 hours a month of db.t3.medium, 30 million I/Os, 5 GB storage and 5 GB backup. It is not available in AWS GovCloud (US) or China (Ningxia).
SourceAWS WAF: Is AWS WAF included with Shield Advanced?
Shield Advanced includes WAF usage for protected resources, up to 50 billion requests per month and 1,500 capacity units per web ACL, per the Shield pricing page.
Amazon DocumentDB: Can it run outside AWS?
No. Wikipedia says it runs only on AWS and cannot span cloud providers or run on premises.
SourceRelated pages
More on Amazon DocumentDB
Other head to heads
- Amazon DocumentDB vs Azure Cosmos DB
- Amazon DocumentDB vs MongoDB
- Amazon DocumentDB vs Couchbase
- Amazon DocumentDB vs PlanetScale
- Amazon DocumentDB vs Neon
- Amazon DocumentDB vs BigQuery
- Amazon DocumentDB vs Upstash
- Amazon DocumentDB vs ScyllaDB
- Amazon DocumentDB vs Tinybird
- Amazon DocumentDB vs Aerospike
- Amazon DocumentDB vs Percona
- Amazon DocumentDB vs Apache Ignite
- Amazon DocumentDB vs DbVisualizer
- Amazon DocumentDB vs EDB Postgres
- Amazon DocumentDB vs etcd
- Amazon DocumentDB vs Exasol
- Amazon DocumentDB vs Azure Synapse Analytics
- Amazon DocumentDB vs MongoDB Atlas
- Amazon DocumentDB vs Imperva
- Amazon DocumentDB vs FortiWeb
- Amazon DocumentDB vs Sucuri
- Amazon DocumentDB vs Wordfence
- Amazon DocumentDB vs Sophos Firewall
- Amazon DocumentDB vs Clerk
- Amazon DocumentDB vs Transcend
- Amazon DocumentDB vs Hanwha Vision
- Amazon DocumentDB vs Baffle
- Amazon DocumentDB vs Cisco Secure Firewall
- Amazon DocumentDB vs Palo Alto Networks Next-Generation Firewall
- Amazon DocumentDB vs Dashlane
- Amazon DocumentDB vs Mullvad VPN
- Amazon DocumentDB vs JumpCloud
- Amazon DocumentDB vs Genetec Security Center
- Amazon DocumentDB vs Microsoft Sentinel
- Amazon DocumentDB vs IVPN
- Amazon DocumentDB vs FortiMail
- AWS WAF vs Azure Cosmos DB
- AWS WAF vs MongoDB
- AWS WAF vs Couchbase
- AWS WAF vs PlanetScale
- AWS WAF vs Neon
- AWS WAF vs BigQuery
- AWS WAF vs Upstash
- AWS WAF vs ScyllaDB
- AWS WAF vs Tinybird
- AWS WAF vs Aerospike
- AWS WAF vs Percona
- AWS WAF vs Apache Ignite
- AWS WAF vs DbVisualizer
- AWS WAF vs EDB Postgres
- AWS WAF vs etcd
- AWS WAF vs Exasol
- AWS WAF vs Azure Synapse Analytics
- AWS WAF vs MongoDB Atlas
- AWS WAF vs Imperva
- AWS WAF vs FortiWeb
- AWS WAF vs Sucuri
- AWS WAF vs Wordfence
- AWS WAF vs Sophos Firewall
- AWS WAF vs Clerk
- AWS WAF vs Transcend
- AWS WAF vs Hanwha Vision
- AWS WAF vs Baffle
- AWS WAF vs Cisco Secure Firewall
- AWS WAF vs Palo Alto Networks Next-Generation Firewall
- AWS WAF vs Dashlane
- AWS WAF vs Mullvad VPN
- AWS WAF vs JumpCloud
- AWS WAF vs Genetec Security Center
- AWS WAF vs Microsoft Sentinel
- AWS WAF vs IVPN
- AWS WAF vs FortiMail
