Home / Neo4j Graph Data Science Certification / Mock exam
Neo4j Graph Data Science Certification Exam-style mock test

Neo4j Graph Data Science Practice Exams|Practice test

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

Sample questions

Example1 · Graph Data Science Fundamentals
A B2B SaaS analytics team is modeling their platform in Neo4j, storing accounts, users, and subscription plans with attributes like signup date and monthly spend. Which description best characterizes the labeled property graph model they are using?
✓Nodes and relationships both carry one or more key-value properties, and each may also have labels or a type
Correct. In the labeled property graph model both nodes and relationships can hold key-value properties, nodes carry labels, and relationships carry a type.
・Nodes store all key-value properties while relationships only record a direction and connect two separate nodes
Incorrect. Relationships in a property graph can also store properties such as weight or timestamp, not just direction between two nodes.
・Data is stored as fixed subject-predicate-object triples where every attribute must be modeled as its own node
Incorrect. That describes the RDF triple model, not Neo4j's labeled property graph where attributes live directly on elements.
・Nodes hold labels only, and all the descriptive attributes are kept in a separate external relational lookup table
Incorrect. Properties are stored directly on nodes and relationships in the graph, not in an external relational lookup table.
Explanation
The labeled property graph used by Neo4j places key-value properties on both nodes and relationships, with labels on nodes and types on relationships.
Example2 · Graph Projections & the Catalog
A data engineer at a B2B SaaS company wants to project a graph covering all Account and Contact nodes and their RELATES_TO relationships for a community analysis. The labels and relationship types already exist in the database and no filtering or aggregation is needed. Which projection approach gives the best loading performance for this straightforward case?
✓A native projection, which reads stored labels and relationship types directly and loads faster for this case
Correct. Native projections read stored tokens (labels and relationship types) directly and are the fastest option when no custom filtering or aggregation is required.
・A Cypher projection using MATCH clauses, which runs the pattern through the query planner before loading the nodes and relationships into memory
Incorrect. Cypher projections are more flexible but slower here because every pattern is planned and executed by Cypher, which is unnecessary overhead for a simple label/type load.
・A subgraph filter applied after loading, which re-scans the projected in-memory graph and copies the matching elements into a second graph
Incorrect. A subgraph filter operates on an already-projected graph, so it does not replace the initial projection and adds an extra copy step.
・An anonymous projection passed inline to the algorithm, which skips the catalog and rebuilds the graph on every algorithm call that is issued
Incorrect. An anonymous projection avoids the catalog but must rebuild the graph for each algorithm call, which is wasteful when the same graph is reused.
Explanation
Native projections are optimized for directly reading stored labels and relationship types, making them the fastest choice when no custom filtering or aggregation logic is needed.
Example3 · Centrality & Community Detection Algorithms
A B2B SaaS analytics team models a referral graph where nodes are customer accounts and directed edges represent one account referring another. The team wants to rank accounts by their overall influence, giving more weight to referrals that come from accounts that are themselves highly referred. Which GDS centrality algorithm best fits this recursive-influence requirement?
・Degree Centrality, since counting the number of incoming referral edges per account directly measures how often each account is referred by others
Incorrect. Degree Centrality counts incoming edges but treats every referrer as equal, so it cannot give extra weight to referrals coming from highly referred accounts.
✓PageRank, because it scores each account by the quantity and quality of incoming referrals, propagating influence from accounts that are themselves well referred
Correct. PageRank recursively propagates score so an account referred by influential accounts ranks higher, matching the recursive-influence requirement exactly.
・Closeness Centrality, because it measures how near each account is to all others and therefore reflects the broad reach of its referral relationships
Incorrect. Closeness measures distance to all nodes, not recursive quality-weighted influence from incoming referrals.
・Betweenness Centrality, because it counts how often an account lies on shortest paths and thus identifies the accounts that broker referral flows
Incorrect. Betweenness identifies brokers on shortest paths, which is a different notion than recursive referral influence.
Explanation
PageRank is the canonical algorithm for ranking by recursive, quality-weighted importance derived from incoming relationships.
Example4 · Similarity & Pathfinding Algorithms
A healthcare services firm wants to recommend patients to similar care programs by comparing the set of diagnosis codes each patient has. The team models each patient's diagnoses as discrete, unweighted set memberships and needs overlap scored by shared versus total distinct codes. Which GDS similarity algorithm best fits this requirement?
・Node Similarity using the Overlap coefficient metric option
Incorrect. Overlap coefficient divides by the smaller set size, which inflates scores when one patient has very few codes and does not reflect shared-over-total.
✓Node Similarity configured to use the Jaccard similarity metric
Correct. Node Similarity defaults to Jaccard, which divides shared neighbors by the union, exactly matching shared versus total distinct codes for unweighted sets.
・K-Nearest Neighbors driven by cosine similarity over embeddings
Incorrect. KNN with cosine compares dense numeric vectors rather than discrete set membership, so it is a poor fit for diagnosis-code overlap.
・Cosine similarity applied to normalized continuous feature vectors
Incorrect. Cosine over continuous vectors assumes weighted numeric features, which does not represent unweighted discrete diagnosis-code sets well.
Explanation
Node Similarity with the Jaccard metric computes shared neighbors divided by the union, the standard choice for comparing unweighted discrete sets like diagnosis codes.
Example5 · ML Pipelines & Node Embeddings
A healthcare services firm wants to predict whether a patient node will be readmitted using a GDS node classification pipeline. After creating the pipeline, which step must be performed before adding the model candidates and training the pipeline?
✓Select the node properties that will serve as input features for the model, after any node property steps have produced them
Correct. A classification pipeline requires selecting the feature properties (via selectFeatures) before training, so the model knows which node properties to learn from.
・Immediately stream predictions from the empty pipeline so the firm can preview the readmission scores before any training occurs
Incorrect. You cannot stream predictions from an untrained pipeline; prediction requires a trained model produced by the train procedure.
・Delete the default train/test split so the full patient graph is reused unchanged for both the training phase and the evaluation phase
Incorrect. The pipeline manages train/test splits to measure generalization; removing the split and reusing all data would cause leakage and is not a valid configuration step.
・Export the projected patient graph back to the Neo4j database as new relationships so the pipeline can read the persisted features
Incorrect. Exporting the graph as relationships is unrelated to configuring pipeline features and is not a prerequisite for training.
Explanation
Node classification pipelines require feature selection after node property steps and before adding model candidates and training.
Example6 · Graph Data Science Fundamentals
A healthcare services firm wants to analyze how patients, physicians, and referrals interrelate to detect indirect referral chains spanning several hops. An analyst argues a graph data science approach is better suited than a traditional relational approach for this problem. What is the primary justification for choosing a graph approach here?
・Graph data science stores every patient attribute in a single denormalized wide table so analytical queries never need to join across entities
Incorrect. Graphs do not rely on a denormalized wide table; connected entities are modeled as nodes and relationships, not flattened rows.
✓Graph data science treats relationships as first-class elements, so multi-hop connections like referral chains are traversed efficiently without expensive repeated joins
Correct. The defining strength is that relationships are first-class citizens, making multi-hop traversals such as referral chains efficient compared with repeated relational joins.
・Graph data science replaces all statistical modeling with deterministic rules, removing the need for any predictive algorithms in the analysis
Incorrect. Graph data science does not remove statistical or predictive modeling; algorithms and ML remain central to the discipline.
・Graph data science guarantees faster writes than relational systems because it never enforces constraints on the referral records being ingested
Incorrect. Write speed and constraint handling are not the reason a graph suits connected, multi-hop referral analysis.
Explanation
Graph data science is valuable precisely because relationships are modeled explicitly, so traversing multi-hop patterns like referral chains avoids the costly joins a relational schema would require.
Example7 · Graph Data Science Fundamentals
The analytics team at UrbanThread, an online fashion retailer, wants to recommend products by exploiting chains of similar shoppers who bought related items across many purchase hops. Why is a graph data science approach better suited to this task than the team's existing relational SQL reports?
✓Graph algorithms traverse multi-hop relationships between shoppers and products directly, whereas deep relational joins become expensive and awkward as the number of hops grows.
Correct. The strength of the graph model is traversing connected entities across many hops, which relational joins handle poorly as depth increases.
・Graph databases store every purchase record as a single denormalized row, so the team never has to write any join at all for their recommendations.
Incorrect. Graphs model nodes and relationships explicitly; they do not collapse everything into one denormalized row, and traversals still use relationships.
・Graph data science removes the need to clean or validate the UrbanThread purchase data because connections are inferred automatically by the engine.
Incorrect. Data quality work is still required; the graph engine does not magically infer or clean missing connection data for UrbanThread.
・Relational reports cannot represent shoppers and products together, so UrbanThread must abandon SQL entirely before any recommendation work begins.
Incorrect. Relational databases can represent both entities; the point is relative efficiency for connected queries, not that SQL becomes unusable.
Explanation
Graph data science excels where relationships and multi-hop traversals dominate, which is exactly the shopper-to-product similarity chain UrbanThread wants to exploit.
Example8 · Graph Data Science Fundamentals
UrbanThread models its catalog so that a shopper node and a product node are joined by a PURCHASED relationship that records when the sale happened and how many units were bought. In the property graph model, how are the sale date and unit count best represented?
・As separate standalone nodes that are each wired to the shopper and the product with their own relationships.
Incorrect. Promoting every attribute to its own node adds needless structure; simple attributes of a connection belong on the relationship.
✓As relationship properties stored directly on the PURCHASED relationship connecting the shopper and the product.
Correct. In a property graph, attributes describing a connection (date, quantity) are stored as key-value properties on the relationship itself.
・As node labels applied to the shopper node so the sale metadata can be filtered during traversal.
Incorrect. Labels classify nodes into groups; they are not where you store per-transaction values like a sale date or unit count.
・As global graph settings held outside any specific node or relationship in the database.
Incorrect. Such transactional values are intrinsic to one specific purchase, so they cannot live as database-wide global settings.
Explanation
The property graph model lets both nodes and relationships carry properties, so transaction attributes naturally sit on the PURCHASED relationship.
Example9 · Graph Data Science Fundamentals
UrbanThread's graph mixes Shopper, Product, and Store nodes in a single database, and an analyst wants a reliable way to select only product nodes for a similarity analysis. What is the primary purpose of applying a node label such as :Product in this situation?
・It permanently sorts all nodes into physically separate files so each category is stored in its own partition on disk.
Incorrect. Labels are logical groupings, not a guarantee of separate on-disk partitioning per category.
・It enforces that every product node must contain exactly the same fixed set of required properties before it can be saved.
Incorrect. Labels do not impose a rigid shared schema; nodes with the same label can carry different properties.
✓It categorizes nodes into groups so queries and algorithms can efficiently target one category, such as all products.
Correct. A node label classifies nodes into a named group, letting queries and algorithms scope efficiently to that category.
・It defines the direction of the relationships that will later be allowed to connect to any product node.
Incorrect. Relationship direction is a property of relationships, not something a node label controls.
Explanation
Node labels provide logical categorization, which is what lets UrbanThread cleanly target just :Product nodes during analysis.
Example10 · Graph Data Science Fundamentals
A financial services firm wants to trace multi-hop money flows across millions of accounts to detect layered fraud. Their current relational warehouse requires deep recursive self-joins that slow down as the number of hops grows. Why is a property graph model a better fit for this traversal-heavy workload?
✓A graph stores relationships as first-class entities, so traversing from one account to connected accounts is a direct pointer hop whose cost depends on local connections rather than overall table size.
Correct. In a property graph, relationships are persisted as first-class elements, so traversal is index-free adjacency: each hop follows stored pointers and its cost scales with the number of local connections, not the total table size.
・A graph compresses every account record into a columnar binary format that is scanned faster than relational rows during each recursive join operation across the dataset.
Incorrect. Columnar compression is an analytical storage technique; the traversal advantage of graphs comes from stored relationships and adjacency, not from compressing account rows for faster joins.
・A graph removes the need to define any schema, so the database automatically decides which account links are fraudulent without any analyst-supplied traversal logic.
Incorrect. Graphs still benefit from a modeled schema, and the database does not autonomously label links as fraudulent; analysts must define the traversal or algorithm logic.
・A graph replaces all joins with a single global index that is rebuilt on every query to guarantee that multi-hop lookups never degrade as data grows.
Incorrect. Graphs do not rely on a single global index rebuilt per query; they use index-free adjacency where each node references its own relationships directly.
Explanation
The core graph advantage for multi-hop traversal is index-free adjacency, where relationships are first-class and traversal cost depends on local degree rather than total data volume.
Example11 · Graph Data Science Fundamentals
An analyst at an investment bank is modeling clients, the accounts they own, and the transactions between accounts. Each account should carry a balance and a currency, and each transaction should carry an amount and a timestamp. In the property graph model, how should the amount and timestamp of a transaction be represented?
・As two separate standalone nodes that are connected to the transaction so the engine can index every amount and timestamp value independently.
Incorrect. Property values like amount and timestamp are not modeled as separate nodes; turning every attribute into a node unnecessarily inflates the graph and misuses the model.
✓As properties stored directly on the relationship or node that represents the transaction between the two accounts.
Correct. In the property graph model, both nodes and relationships can hold key-value properties, so amount and timestamp belong as properties on the element representing the transaction.
・As a single concatenated label applied to the transaction so that filtering can be done by matching the combined amount-timestamp string.
Incorrect. Labels group nodes into categories and do not store arbitrary data values; concatenating amount and timestamp into a label is a misuse of labels.
・As global graph-level attributes shared by all transactions and overridden locally whenever a specific transaction needs a different value.
Incorrect. The property graph model has no graph-wide attribute that is locally overridden; values specific to a transaction are stored as properties on that element.
Explanation
In the property graph model, nodes and relationships store data as key-value properties, which is the correct home for a transaction's amount and timestamp.
Example12 · Graph Data Science Fundamentals
A manufacturing distributor currently stores its supplier-to-part sourcing relationships across several relational join tables and wants to analyze multi-hop sourcing chains. Why is a property graph model generally better suited for this kind of connected analysis?
・A property graph requires every relationship to be pre-aggregated into summary tables before any traversal across sourcing chains becomes possible.
Incorrect. Property graphs do not require pre-aggregation into summary tables; traversals operate directly over stored relationships without that step.
✓A property graph stores relationships as first-class elements, so traversing multi-hop sourcing chains avoids the repeated join operations relational tables require.
Correct. In a property graph relationships are stored as first-class elements with direct pointers, so multi-hop traversals avoid the costly repeated joins relational schemas impose.
・A property graph eliminates the need to store any properties on suppliers or parts because all relevant data is held only inside relationship records.
Incorrect. Property graphs fully support properties on nodes such as suppliers and parts; data is not confined to relationship records only.
・A property graph converts all sourcing relationships into fixed-width columns so the distributor can query them with standard aggregate SQL functions.
Incorrect. Property graphs do not flatten relationships into fixed-width columns for SQL aggregates; that describes a relational structure, not a graph.
Explanation
The core advantage of the property graph model for connected data is that relationships are stored as first-class, directly traversable elements, removing the join overhead that relational multi-hop queries incur.
Example13 · Graph Data Science Fundamentals
A data engineer at the distributor models warehouses, parts, and the SHIPS_TO connections between them, attaching a quantity value to each connection. In Neo4j's property graph model, how is that quantity value best represented?
・As a label applied to the SHIPS_TO relationship so the traversal engine can group all shipments by their quantity automatically.
Incorrect. Labels classify nodes and relationship types categorize relationships; they are not used to carry a numeric quantity value.
・As a separate intermediate node linked between the warehouse and part so that the quantity can participate in later computations.
Incorrect. Introducing an intermediate node is unnecessary here because relationships themselves can hold the quantity as a property.
✓As a property stored on the SHIPS_TO relationship, since relationships in the property graph model can carry key-value properties.
Correct. In the property graph model relationships, like nodes, can store key-value properties, so the quantity belongs directly on the SHIPS_TO relationship.
・As an index entry maintained outside the graph so that the quantity does not consume storage within the relationship record.
Incorrect. The quantity is graph data that belongs on the relationship; indexes support lookups but are not where such a value is defined.
Explanation
A defining feature of Neo4j's property graph model is that both nodes and relationships can hold properties, so a per-shipment quantity is stored as a property on the relationship.
Example14 · Graph Data Science Fundamentals
A telecom operator stores subscriber call records in relational tables and wants to understand how influence spreads through the customer base before a plan change. A data scientist argues a graph data science approach adds value here that tabular analysis struggles to deliver. What is the strongest justification for this claim?
✓Graph data science can efficiently analyze the structure of multi-hop connections between subscribers, surfacing indirect relationships that repeated table joins obscure
Correct. The core advantage is reasoning over connection patterns across many hops, where relationships themselves are first-class and indirect influence paths become tractable rather than buried in costly join chains.
・Graph data science removes the need to clean or validate the underlying subscriber call records before any analysis is run
Incorrect. Graphs do not eliminate data quality work; the same cleaning and validation of call records is still required before meaningful analysis.
・Graph data science guarantees faster aggregate sum and average queries on billing columns than a well-indexed relational database system would
Incorrect. Simple columnar aggregations like sums and averages are exactly where tuned relational systems excel; graphs are not chosen for that workload.
・Graph data science stores subscriber attributes as rows and columns, which is the format most analysts already know well
Incorrect. Storing data as rows and columns describes the tabular model, which is the very approach graph data science is being contrasted against here.
Explanation
Graph data science is valuable precisely when the relationships and multi-hop connectivity carry the signal, as with influence spreading through a subscriber network.
Example15 · Graph Data Science Fundamentals
A telecom operator models its network so that each cell tower is a node carrying a region attribute, and towers that share a fiber link are joined by a connection that stores a bandwidth attribute. In property graph terminology, how are the tower's region attribute and the link's bandwidth attribute best described?
・Both are labels, because any descriptive text attached to towers or fiber links in the model is categorized as a label by definition
Incorrect. Labels classify nodes into groups; they are not the mechanism for storing descriptive attribute values like a region string.
✓Both are properties, which are key-value pairs that can be attached to either the tower nodes or the fiber-link relationships
Correct. In the property graph model, attributes are properties expressed as key-value pairs, and they may live on nodes as well as on relationships.
・The region is a property but the bandwidth cannot be modeled, since the property graph forbids attributes on relationships entirely
Incorrect. The property graph explicitly allows relationships to carry properties, so bandwidth on a fiber link is perfectly valid.
・The region is a node label and the bandwidth is a relationship type used to classify each element in the graph
Incorrect. Labels group nodes and types categorize relationships; neither is how an attribute value such as region or bandwidth is stored.
Explanation
Properties are key-value pairs and are a defining feature of the property graph model, attachable to 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)