AWS · Database
Amazon Neptune
A managed graph database for highly connected data, queried with Gremlin, openCypher or SPARQL.
What it is and what problem it solves
Amazon Neptune stores data as a graph: nodes (vertices) connected by relationships (edges), each with properties. Queries follow relationships quickly, which is hard and slow with joins in a relational database. Neptune supports property graphs queried with Apache TinkerPop Gremlin or openCypher, and RDF graphs queried with SPARQL. Like Aurora, it has a shared storage volume and up to 15 read replicas. Neptune Analytics adds in-memory graph analytics.
When to use it
- Social networks, recommendations ("people who bought this also bought"), fraud detection by finding linked accounts.
- Knowledge graphs, identity graphs and network topology.
- Queries that traverse many relationships, several hops deep.
When to avoid it
- Data without many relationships: a relational or key-value database is simpler and cheaper.
- Simple lookups by key: DynamoDB.
Limits and quotas
| Item | Value | Context | Source |
|---|---|---|---|
| Maximum cluster volume size | 128 TiB | Source checked |
|
| Read replicas | Up to 15 | In addition to the primary instance. | Source checked |
| Query languages | Gremlin, openCypher and SPARQL | Source checked |
Quotas and limits change. Check the linked source before designing around a number.
Cost model
What you pay for
Instance-hours (or serverless capacity units), storage per GB-month, I/O per million on the standard configuration (none on I/O-Optimized), backups, Global Database replicated writes, data transfer, and Neptune Analytics capacity.
Where it is cost-efficient
Relationship-heavy queries that would otherwise need expensive joins.
Where costs grow
Over-sized instances and replicas kept for occasional analysis.
Cost controls and common surprises
Use serverless for variable load and right-size replicas.
Prices differ by Region and change over time; see the pricing page linked under Sources.
Security
Controls the service provides
VPC-only access, encryption at rest and in transit, and IAM database authentication.
What you configure
Keep clusters private and grant least-privilege IAM access.
Logging and monitoring
Audit logs to CloudWatch Logs; CloudTrail.
Related security services
KMS, IAM.
Shared responsibility
AWS manages the infrastructure. You manage data, access and queries.
Availability, backup and failure behavior
Storage is replicated across Availability Zones; replicas take over if the primary fails. Global Database supports cross-Region recovery.
Common service combinations
Lambda and API Gateway as clients, S3 for bulk loading, SageMaker for graph machine learning.
Business application examples
- A bank links accounts, devices and addresses to spot fraud rings.
- A retailer recommends products from purchase and browsing relationships.
Exam cues and common confusions
- Graph data, relationships, social networks, fraud rings, recommendations: Neptune.
- Many-hop relationship queries are slow with SQL joins; that phrasing in a question points to a graph database.
Related
Courses and lessons
- Purpose-built databases: DocumentDB, Keyspaces, Neptune, Redshift and more · AWS Solutions Architect – Associate (SAA-C03) · Members
Services, comparisons and patterns
- Amazon DynamoDB · Service
- Amazon DocumentDB · Service
- Amazon Aurora · Service
Sources
Independent study material, not affiliated with or endorsed by Amazon Web Services. AWS and service names are trademarks of Amazon.com, Inc. or its affiliates.