Amazon Neptune: Three Query Languages and One Cluster

Property graph or RDF, Gremlin or openCypher or SPARQL - and the choice you make once, in a managed cluster inside a VPC.

Taught by Noshad Alam 7 lessons 53 min Published 30 Nov 2026

Amazon Neptune is a managed graph database that supports **two data models and three query languages**, and the first real decision in this course is which of them you are using. The **property graph** model, queried with **Gremlin** or **openCypher**, is the Neo4j-shaped world: vertices and edges with properties. The **RDF** model, queried with **SPARQL**, is the semantic web world: subject-predicate-object triples, global identifiers, and an inference and vocabulary ecosystem that nothing else in this programme has.

Overview

**They are separate stores in the same cluster.** Data loaded as a property graph is not visible to SPARQL and vice versa, and there is no conversion. So this is not a flexibility you can defer - it is a decision you make before loading, and the cost of being wrong is a reload and a rewrite. Module 2 exists to make that choice properly.

The operational half of the course is **AWS**. Neptune is a cluster with a writer and read replicas over a shared distributed storage layer, deployed **inside a VPC with no public endpoint**, authenticated by IAM or not at all, billed by instance-hour or by capacity unit on Serverless. If you have done the DynamoDB course the shape is familiar; if not, be prepared for the laboratory work to be as much about VPC endpoints, security groups and IAM policies as about graphs. **Neptune cannot be run locally** - there is no emulator - so every laboratory costs money, and the instructions include teardown steps for that reason.

The third thing the course covers honestly is **where Neptune differs from what you expect**. openCypher support is real and not complete; Gremlin support is real and some steps behave differently; SPARQL is well supported and the inference story is narrower than the RDF ecosystem implies; and there is no equivalent of Neo4j's graph algorithms library on the transactional engine - **Neptune Analytics** is a separate service for that. Knowing those boundaries before you design is most of what this course is for.

Seven modules, about 80 hours. The capstone is an identity resolution graph with duplicate detection, secure ingestion and a failover design.

Introduction

This course assumes the programme's shared foundations. **The Neo4j course is a strong prerequisite for the property graph half** - graph modelling, bounded traversals, and the reasons a path query is dangerous are all assumed here. No RDF knowledge is assumed, and Module 2 introduces it properly.

For a sandbox you need an **AWS account**, and this is the course's main practical constraint. Neptune has no local emulator. The cheapest useful setup is a **Serverless cluster with a low minimum capacity** plus a **Neptune notebook** (a managed Jupyter environment with the `%%gremlin`, `%%oc` and `%%sparql` magics, which is genuinely the best way to explore). Because the cluster lives in a VPC with no public endpoint, you reach it from the notebook, from an EC2 instance in the same VPC, or through a bastion - and **sorting that out is the first laboratory**, not an aside.

Write the teardown into your notes on day one: delete the cluster, the notebook, the NAT gateway if you created one, and the snapshots. A Neptune cluster left running is a meaningful bill, and a NAT gateway left running is a surprising one.

One framing to carry through. Neptune's value is not that it is the fastest graph database - it is that it is a **managed** one, inside your VPC, with IAM authentication, automated backups, point-in-time recovery and read replicas, speaking the query languages you already know. The course is therefore about the model choice, the language boundaries, and operating it properly.

What you will be able to do

  • Provision a Neptune cluster and reach it from inside a VPC
  • Explain the cluster architecture: writer, replicas and shared storage
  • Choose between the property graph and RDF models, and defend the choice
  • Explain that the two stores are separate and the choice is not reversible
  • Write Gremlin traversals, and name where Neptune's Gremlin differs
  • Write openCypher queries, and state what Neptune does not support
  • Write SPARQL queries, including joins and optional patterns
  • Load data in bulk from S3 and diagnose a failed load
  • Use transactions, and state Neptune's isolation guarantees
  • Explain the read-replica consistency model and when it matters
  • Use explain and profile, and act on what they show
  • Bound a traversal and explain why it matters here too
  • Manage connections and understand the connection limits
  • Configure read replicas, multi-AZ and cluster failover
  • Use snapshots, point-in-time recovery and cloning
  • Explain what Neptune Analytics is and when to use it instead
  • Implement IAM database authentication and least privilege
  • Configure VPC endpoints, TLS, KMS and CloudWatch
  • Choose between provisioned and Serverless capacity, and model the cost

What each level covers

5 levels · 7 lessons

  1. Beginner - Foundations

    The cluster and the VPC; then the model and language choice that cannot be deferred.

    2 lessons 16 min of reading

    Start with Clusters, Endpoints, Notebooks and the VPC →
  2. Intermediate - Application Behaviour

    The three languages in practice, transactions, and the engine-specific limitations to design around.

    1 lesson 7 min of reading

    Start with Gremlin, openCypher, SPARQL and Transactions →
  3. Advanced - Performance and Reliability

    Explain, selectivity and connections; then replicas, failover, recovery and the Analytics distinction.

    2 lessons 14 min of reading

    Start with Explain, Profile, Selectivity and Connection Management →
  4. Expert - Security and Production Architecture

    IAM authentication, the VPC boundary, and the capacity and cost decision.

    1 lesson 9 min of reading

    Start with IAM Authentication, VPC, KMS, Monitoring and Capacity →
  5. Capstone

    One identity graph, defended on a model choice, measured consistency and a survived failover.

    1 lesson 7 min of reading

    Start with Capstone - Identity Resolution Graph →

Guides and articles

Longer reading about this subject, written alongside the course.

Course guide How to work through this course Why the model choice comes first, the AWS tax, what the notebook is for, and what to skip. 4 min read

Before you start

  • An AWS account with billing (there is no free tier for Neptune)
  • A VPC, and a Neptune notebook or an EC2 instance inside it
  • The AWS CLI, and one programming language with a Gremlin or openCypher driver
  • The Neo4j course, strongly recommended for the property graph modules
  • The programme's shared foundations

Common questions

What does the Amazon Neptune: Three Query Languages and One Cluster course cover?
It is 5 levels and 7 lessons: Beginner - Foundations; Intermediate - Application Behaviour; Advanced - Performance and Reliability; Expert - Security and Production Architecture; Capstone. Each level ends with a quiz, and the last one is an exam over the whole course.
How long does it take?
About 53 minutes of reading and exercises - roughly 0.9 hours. It is self-paced with no cohort and no start date, so you can leave and come back and the site remembers where you were.
What do I need to know first?
An AWS account with billing (there is no free tier for Neptune). A VPC, and a Neptune notebook or an EC2 instance inside it. The AWS CLI, and one programming language with a Gremlin or openCypher driver. The Neo4j course, strongly recommended for the property graph modules. The programme's shared foundations.
Is it free?
Yes. Every lesson, example and quiz in this course is free to read, and you do not need an account to read them. Signing in only adds progress tracking and quiz results.
What will I be able to do afterwards?
Provision a Neptune cluster and reach it from inside a VPC. Explain the cluster architecture: writer, replicas and shared storage. Choose between the property graph and RDF models, and defend the choice. Explain that the two stores are separate and the choice is not reversible. Write Gremlin traversals, and name where Neptune's Gremlin differs. Write openCypher queries, and state what Neptune does not support. Write SPARQL queries, including joins and optional patterns. Load data in bulk from S3 and diagnose a failed load. Use transactions, and state Neptune's isolation guarantees. Explain the read-replica consistency model and when it matters. Use explain and profile, and act on what they show. Bound a traversal and explain why it matters here too. Manage connections and understand the connection limits. Configure read replicas, multi-AZ and cluster failover. Use snapshots, point-in-time recovery and cloning. Explain what Neptune Analytics is and when to use it instead. Implement IAM database authentication and least privilege. Configure VPC endpoints, TLS, KMS and CloudWatch. Choose between provisioned and Serverless capacity, and model the cost.