Home / Neo4j Certified Professional / Mock exam
Neo4j Certified Professional Exam-style mock test

Neo4j Certified Professional Practice Exams|Practice test

Full explanations Exam format Pass line 70%
33 USD One-time · lifetime access
Enroll →

Sample questions

Example1 · Graph Database & Property Graph Model
A B2B SaaS company storing customer-account hierarchies finds that querying 'all sub-accounts reachable from a parent account' requires many self-joins in their relational database and performs poorly as depth grows. Why does a native graph database like Neo4j handle this kind of query better?
✓Relationships are stored as direct pointers between nodes, so traversing connected data avoids the join-and-index-lookup cost that grows with depth in relational systems
Correct. Neo4j uses index-free adjacency, storing relationships as direct references so traversing from a node to its neighbors is a constant-time hop regardless of total data size.
・A graph database rebuilds the entire hierarchy into a flat denormalized table every night, so deep reads simply scan one precomputed table
Incorrect. Neo4j does not denormalize the graph into flat nightly tables; traversals operate on the live graph structure using relationship pointers.
・The database automatically shards each account onto a separate machine, so every traversal step runs fully in parallel across the cluster
Incorrect. Automatic per-account sharding is not how Neo4j delivers traversal performance; the advantage comes from index-free adjacency, not forced distribution.
・It caches the result of every possible hierarchy query in memory, so repeated reads never touch storage at all
Incorrect. Performance does not depend on caching every possible query result; the structural pointer-based traversal is what avoids deep-join cost.
Explanation
Native graph databases store relationships physically as pointers (index-free adjacency), so multi-hop traversals cost depends on the portion of graph visited, not on table size or join count.
Example2 · Cypher Query Language Fundamentals
At the B2B SaaS company CloudLedger, the data team stores every customer as a node labeled Customer with a property named tier. An analyst needs a query that returns all customer nodes whose subscription tier equals 'Enterprise'. Which Cypher statement correctly retrieves those nodes?
✓MATCH (c:Customer {tier: 'Enterprise'}) RETURN c
Correct. MATCH with an inline property map selects Customer nodes whose tier equals 'Enterprise' and RETURN emits them.
・SELECT c FROM Customer WHERE c.tier IS EQUAL TO 'Enterprise' RETURN c
Incorrect. SELECT ... FROM is SQL syntax; Cypher uses MATCH, not SELECT, and has no FROM clause for labels.
・GET (c:Customer) FILTER tier EQUALS 'Enterprise' AND RETURN the node c
Incorrect. GET, FILTER, and EQUALS are not Cypher keywords; the clause structure is invalid for pattern matching.
・FIND (c) LABEL Customer HAVING PROPERTY tier SET TO 'Enterprise' GIVE c
Incorrect. FIND, LABEL, HAVING PROPERTY, and GIVE are invented keywords that Cypher does not recognize.
Explanation
Node retrieval in Cypher uses MATCH with a label and either an inline property map or a WHERE clause, followed by RETURN.
Example3 · Data Modeling for Graphs
A B2B SaaS company models its billing graph. An architect must decide how to represent the concept of a Subscription that links an Account to a Plan and carries its own attributes like start date, tier, and seat count. Which modeling choice fits a graph model best?
✓Represent Subscription as a node connected to both Account and Plan, because it is a first-class entity with its own properties and lifecycle
Correct. Because the Subscription has its own attributes, identity, and lifecycle, it should be promoted to a node connected to Account and Plan rather than hidden on a relationship.
・Represent Subscription as a single relationship from Account to Plan, storing the start date, tier, and seat count directly on that relationship
Incorrect. A relationship could hold the properties, but treating a rich, independently queried entity as only a relationship limits connecting it to other things like invoices or events.
・Represent Subscription by duplicating the plan tier and seat count as properties on the Account node, avoiding any extra element
Incorrect. Copying tier and seat count onto Account duplicates data and loses the distinct subscription entity, making updates and history hard to manage.
・Represent Subscription as a property map embedded inside the Account node so all billing data stays in one place
Incorrect. Embedding a property map on Account hides structure the graph should express and cannot be traversed or queried as a relationship.
Explanation
Entities with their own identity, attributes, and relationships to multiple other entities are modeled as nodes; only simple connecting facts belong on relationships.
Example4 · Importing & Managing Data
A healthcare services firm is building a brand-new Neo4j database from scratch and must load 900 million patient-visit records from CSV files before the database serves any traffic. The team wants the fastest possible one-time initial load. Which approach best fits this requirement?
✓Use the offline neo4j-admin database import command to build the store files directly while the database is stopped
Correct. The offline neo4j-admin database import tool is purpose-built for fast initial bulk loading into an empty database, writing store files directly without transactional overhead.
・Run many concurrent CREATE statements through the driver so the load is parallelized across several client sessions
Incorrect. Many concurrent CREATE statements add transactional and locking overhead and are far slower than the dedicated offline importer for an initial bulk load.
・Use LOAD CSV inside explicit transactions on the running database, committing in reasonably sized periodic batches
Incorrect. LOAD CSV with periodic batches works on a running database but is intended for incremental loads, not the fastest one-time initial load of hundreds of millions of rows.
・Invoke the apoc.load.csv procedure repeatedly within a scheduled background job on the live instance over time
Incorrect. Repeatedly invoking apoc.load.csv on the live instance is an incremental, runtime technique and is not the fastest option for an empty-database initial load.
Explanation
For a one-time initial load into an empty database, the offline neo4j-admin database import tool is the fastest choice because it bypasses the transactional layer.
Example5 · Performance, Indexes & Administration
A healthcare services firm stores Patient nodes with a nationalId property, and clinicians run exact-match lookups like MATCH (p:Patient {nationalId: $id}). Queries scan all patients and run slowly. Which index should the team create to make these exact-match lookups efficient?
・A composite range index built over both nationalId and dateOfBirth on the Patient label at once
Incorrect. A composite index over nationalId and dateOfBirth only accelerates queries filtering on both properties together, not a single-property exact-match lookup.
・A full-text index on the nationalId property so the planner can match the identifier string
Incorrect. Full-text indexes serve tokenized string search via procedures, not direct exact-match MATCH patterns on a property key.
✓A range index on the nationalId property of the Patient label
Correct. A single-property range index on Patient.nationalId backs equality (exact-match) lookups as well as range predicates, eliminating the label scan.
・A point index on nationalId so spatial-style lookups can resolve the identifier quickly
Incorrect. Point indexes are for spatial Point values and distance/bbox queries, not for string or numeric identifier equality.
Explanation
Range indexes support both equality and range predicates on a single property, which is exactly what an exact-match patient lookup needs.
Example6 · Graph Database & Property Graph Model
A healthcare services firm stores patient referrals across many specialist clinics and must frequently answer deep multi-hop questions like finding all providers reachable through a chain of referrals. Their relational system becomes slow as referral depth grows. Why does a native graph database like Neo4j typically handle these traversals more efficiently?
✓Relationships are stored as direct physical pointers between nodes, so traversals follow connections without computing joins
Correct. Native graph storage keeps relationships as direct references between node records, so index-free adjacency lets traversals jump pointer-to-pointer instead of recomputing joins at each hop.
・The graph database automatically caches every possible referral path in memory before any query is executed
Incorrect. Neo4j does not precompute and cache every possible path; such precomputation would be infeasible and is not how traversal performance is achieved.
・Graph databases avoid storing any patient attributes, keeping the dataset small enough to scan quickly
Incorrect. Property graphs do store rich node attributes as properties; reduced data volume is not the reason traversals are fast.
・Each traversal query is converted into a series of equivalent SQL join statements run against indexed tables
Incorrect. Neo4j executes Cypher against native graph structures and does not translate traversals into SQL joins over relational tables.
Explanation
Native graph databases use index-free adjacency, storing relationships as direct pointers so deep traversals avoid the join cost that grows with depth in relational systems.
Example7 · Graph Database & Property Graph Model
The data team at retailer UrbanThread runs frequent queries that traverse customer-to-customer referral chains many hops deep. Compared to their old relational schema, why does a native graph database like Neo4j typically handle these deep traversals more efficiently?
✓Relationships are stored as direct physical pointers between records, so traversals follow adjacency without recomputing table joins at query time
Correct. Native graph storage uses index-free adjacency, where each node holds direct pointers to its relationships, so traversing many hops avoids the repeated join computations a relational engine performs.
・The graph engine caches every possible referral path in memory ahead of time so that any multi-hop lookup returns instantly from the precomputed result set
Incorrect. Neo4j does not precompute and cache every possible path; traversal performance comes from adjacency pointers, not from a precomputed result set of all referral chains.
・Graph databases automatically denormalize all customer rows into one flat table, removing the need for any joins during a traversal operation
Incorrect. Graph databases do not flatten customers into a single denormalized table; they keep nodes and relationships distinct and traverse pointers between them.
・Graph queries always scan fewer total records than SQL because indexes are rebuilt before each traversal to shorten the path
Incorrect. Graph queries do not rebuild indexes before each traversal, and the efficiency comes from index-free adjacency rather than scanning fewer records via rebuilt indexes.
Explanation
Native graph databases achieve efficient deep traversals through index-free adjacency, where relationships are stored as physical pointers, avoiding the join cost that grows with depth in relational systems.
Example8 · Graph Database & Property Graph Model
UrbanThread models its catalog so that a Product and a Supplier each carry their own attributes, and the link between them records a negotiated unit price. Which four elements of the property graph model does this design use?
✓Nodes, relationships, properties, and labels, which together represent the entities, their connections, the key-value attributes, and the role tags
Correct. The property graph model is built from nodes (entities), relationships (connections), properties (key-value attributes on either), and labels (role tags), exactly matching this catalog design.
・Tables, foreign keys, columns, and primary keys arranged so that each entity references another entity through declared constraints
Incorrect. Tables, foreign keys, columns, and primary keys are relational concepts, not the elements of the property graph model.
・Documents, embedded sub-documents, collections, and indexes that nest supplier data inside each product record for fast reads
Incorrect. Documents, sub-documents, and collections describe a document database model, not the property graph model used by Neo4j.
・Vertices, edges, partitions, and shards distributed across cluster members to balance the catalog load evenly
Incorrect. Partitions and shards are distribution concerns, not the defining elements of the property graph model, which are nodes, relationships, properties, and labels.
Explanation
The property graph model consists of nodes, relationships, properties, and labels; properties can live on both nodes and relationships, as with the negotiated unit price here.
Example9 · Graph Database & Property Graph Model
An UrbanThread modeler wants certain nodes to be found quickly as premium customers while those same nodes still participate in general customer queries. How should labels be applied to these nodes in the property graph model?
✓Assign the nodes multiple labels such as Customer and PremiumCustomer, since a single node can hold more than one label to classify it in several ways
Correct. A node can carry multiple labels, so tagging it both Customer and PremiumCustomer lets it appear in general customer queries and in fast premium lookups.
・Store a property called premium set to true and avoid labels entirely, because labels are allowed only on relationships and never directly on individual nodes
Incorrect. Labels can be applied directly to nodes, and a boolean property is not required instead; the claim that labels are only for relationships is false.
・Create a separate parent node named PremiumCustomer and connect every premium shopper to it with a relationship that carries the classification tag
Incorrect. Creating a parent node and relationships is a modeling workaround that is unnecessary because multiple labels already handle this classification directly.
・Rename each node's single label to PremiumCustomer so that it is removed from the Customer grouping and queried only through the premium label
Incorrect. Renaming the sole label would drop the node from the Customer grouping, defeating the goal of keeping it in general customer queries.
Explanation
Neo4j nodes can hold multiple labels, enabling a node to be classified in several overlapping ways, such as both Customer and PremiumCustomer, without extra structure.
Example10 · Graph Database & Property Graph Model
A fraud analytics team at a financial services firm needs to trace multi-hop money flows across accounts to detect layering, where funds pass through many intermediary accounts. In a relational system these queries require many self-joins that slow down as hops increase. Why is a native graph database like Neo4j a better fit for this workload?
・Because graphs enforce a rigid tabular schema that validates each account row before any multi-hop traversal query is permitted to execute on the data
Incorrect. Neo4j is schema-optional, not rigidly tabular; this does not describe why graphs handle deep traversals well.
✓Because traversing connected accounts follows stored relationship pointers, so query cost scales with the subgraph explored rather than total table size
Correct. Native graph storage uses index-free adjacency, so each hop follows direct relationship references and cost depends on the connected data explored, not overall dataset size.
・Because the database automatically converts every join operation into an equivalent set of relational indexes and then caches them for later reuse
Incorrect. Neo4j does not translate joins into relational indexes; it stores relationships as first-class entities to avoid join-style lookups.
・Because relationships are recomputed from foreign keys at query time, which guarantees the freshest possible links between every pair of accounts
Incorrect. Relationships are stored persistently, not recomputed from foreign keys at query time, which is exactly the slow relational pattern graphs avoid.
Explanation
Deep, variable-length traversals are the classic strength of native graph databases because index-free adjacency makes each hop a constant-cost pointer chase instead of an ever-growing join.
Example11 · Graph Database & Property Graph Model
A data architect is modeling a retail bank's domain where customers hold accounts and accounts record transactions. She wants to store the amount and timestamp on the connection between an account and a transaction. In the Neo4j property graph model, which component is designed to carry these values describing the connection itself?
・A label, which groups the account and transaction into a shared category and additionally stores the per-connection amount and timestamp values
Incorrect. Labels only tag nodes into groups; they do not store key-value properties on connections.
✓A relationship, which connects two nodes with a direction and type and can itself hold properties such as amount and timestamp
Correct. Relationships in the property graph model are first-class elements that have a type, a direction, and can carry their own properties like amount and timestamp.
・A node, which represents the account entity and is the only structural element permitted to hold any key-value property data
Incorrect. Nodes can hold properties, but the values here describe the connection between two entities, which is the relationship's role.
・An index, which speeds up lookups and is where connection attributes like amount and timestamp must be persisted in the model
Incorrect. An index is a performance structure for lookups, not a place to store domain attributes of a connection.
Explanation
A defining feature of the property graph model is that relationships, not just nodes, can carry properties, making them ideal for attributes that describe a connection such as a transaction amount.
Example12 · Graph Database & Property Graph Model
A manufacturing distributor runs multi-hop queries that trace which raw-material suppliers ultimately feed each finished product across five intermediate assembly stages. In their relational system these queries slow down sharply as more supplier tiers are added. Why does a native graph database like Neo4j typically handle this workload better?
・It stores all supplier records in a single wide table, so the traversal becomes one indexed scan rather than several separate joins across normalized tables
Incorrect. A single wide table does not eliminate the fundamental cost of walking tiers, and Neo4j does not model connected data as one denormalized table scan.
✓It uses index-free adjacency, so each node directly references its neighbors and traversal cost stays proportional to the data touched rather than the total dataset size
Correct. Index-free adjacency means each node holds direct pointers to its relationships, so traversal cost depends on the local neighborhood, not the overall table size, which is why deep multi-hop queries stay fast.
・It automatically caches the full result of every supplier query in memory, guaranteeing that any later multi-hop lookup returns instantly without re-traversal
Incorrect. Neo4j does not blanket-cache every query result; performance comes from the storage model and traversal, not from guaranteed full-result caching.
・It converts the supplier hierarchy into a flat materialized view that is rebuilt on each write so reads never need to follow relationships at query time
Incorrect. Neo4j follows actual relationships at query time rather than relying on a flat materialized view rebuilt on every write.
Explanation
Native graph databases use index-free adjacency, so relationship traversal scales with the portion of the graph visited instead of the total data volume, giving an advantage on deep multi-hop queries.
Example13 · Graph Database & Property Graph Model
An engineer modeling the distributor's warehouse data lists the building blocks they can use in Neo4j's property graph model. Which set correctly names the four core elements of that model?
✓Nodes, relationships, properties, and labels that classify nodes into groups such as :Warehouse or :Product
Correct. The property graph model is built from nodes, relationships, properties (key-value pairs on nodes and relationships), and labels that group nodes, so this set is accurate.
・Tables, rows, foreign keys, and columns that are mapped onto graph structures when data is imported into the store
Incorrect. Tables, rows, foreign keys, and columns describe the relational model, not the property graph model.
・Documents, collections, embedded objects, and references resolved lazily whenever a traversal reaches a connected entity
Incorrect. Documents, collections, and embedded objects describe a document store, which is a different data model.
・Vertices, edges, adjacency lists, and partition keys that distribute the connected data evenly across cluster members
Incorrect. While vertices and edges are graph-theory terms, adjacency lists and partition keys are not the named core elements of Neo4j's property graph model.
Explanation
Neo4j's property graph model consists of nodes, relationships, properties, and labels; the other options describe relational, document, or distribution concepts.
Example14 · Graph Database & Property Graph Model
A telecom operator stores subscribers and the calls between them in a relational database, and reporting queries that trace multi-hop call chains across the subscriber base are becoming slow as data grows. Why does a native graph database typically outperform the relational approach for this traversal workload?
✓Graph databases avoid computing expensive join operations at query time because relationships are stored and traversed as direct physical connections between records
Correct. Native graph storage records relationships as direct pointers, so traversals follow connections without the repeated index-based joins relational engines need for each hop.
・Graph databases keep the entire subscriber dataset compressed in memory so that every reporting query runs without ever reading from disk storage
Incorrect. Graph databases do not require the whole dataset in memory, and performance for traversals comes from stored connections, not from avoiding disk entirely.
・Graph databases automatically convert each multi-hop call chain into a single flat table that the reporting engine can scan sequentially
Incorrect. Graph databases traverse relationships directly rather than flattening chains into a single scanned table, which would not help multi-hop queries.
・Graph databases enforce a rigid fixed schema that forces all subscriber records into identical columns for faster scanning
Incorrect. Graph databases are schema-flexible, and traversal performance is unrelated to forcing records into identical columns.
Explanation
The key advantage for connected-data traversals is index-free adjacency: relationships are stored as direct connections, eliminating the costly joins that grow expensive in relational systems.
Example15 · Graph Database & Property Graph Model
While modeling the telecom network, an engineer lists the fundamental building blocks of Neo4j's property graph model so the team uses consistent terminology. Which set correctly names the four core elements of the property graph model?
✓Nodes, relationships, properties, and labels, where properties can be attached to both nodes and relationships
Correct. The property graph model consists of nodes, relationships, properties, and labels, and properties may be stored on both nodes and relationships.
・Tables, rows, columns, and foreign keys, where every row is connected to other rows through indexed key references
Incorrect. Tables, rows, columns, and foreign keys describe the relational model, not the property graph model.
・Documents, collections, keys, and values, where nested documents represent the connections between stored entities
Incorrect. Documents, collections, keys, and values describe a document store, not Neo4j's property graph model.
・Vertices, edges, and weights, where every edge must carry a numeric weight describing its traversal cost
Incorrect. Vertices, edges, and weights describe generic weighted graph theory, and Neo4j does not require edges to carry numeric weights.
Explanation
Neo4j's property graph model is built from nodes, relationships, properties, and labels, with properties available on both nodes and relationships.
▶ Try 10 free questions (graded)
Measure your readiness with a full mock exam
All questions · full explanations · lifetime access
Enroll(33 USD)