CompTIA DataSys+ (DS0-002) Exam-style mock test
CompTIA DataSys+ (DS0-002) Practice Exams — 6 Full Mocks|Practice test
Full explanations
Exam format
Pass line 65%
33 USD One-time · lifetime access
Enroll →
Sample questions
Example1 · Database Fundamentals
An e-commerce platform must store each product with a flexible, varying set of attributes (color, size, warranty terms) that differ per category, and retrieve a whole product by its id. Which database structure type best fits this access pattern?
・A graph database traversing relationships
Incorrect. A graph database is optimized for relationship traversal, not for self-contained per-product attribute bags.
・A column-oriented store for wide analytics
Incorrect. Column-oriented stores favor aggregate scans over many rows, not single-document retrieval by id.
✓A document database keyed by product id
Correct. A document database stores each product as one self-describing document and fetches it whole by id, allowing attributes to vary per category.
・A relational schema with fixed columns
Incorrect. A fixed relational schema forces every product into identical columns, which clashes with per-category attributes.
Explanation
Documents are self-describing and retrieved whole by key, so varying per-item attributes and id lookups map directly to a document store. Graph suits relationships, column stores suit analytics, and a rigid relational schema struggles with heterogeneous attributes. Source: CompTIA DataSys+ DS0-002 Objective 1.1.
Example2 · Database Deployment
An online retailer wants the cloud provider to run and patch the database engine while the team keeps full control of schema and queries, with no OS maintenance. Which cloud service model matches?
・Infrastructure as a service (IaaS)
Incorrect. With IaaS the team must install and patch the OS and engine themselves on provided VMs.
・Software as a service (SaaS)
Incorrect. SaaS delivers a finished application, leaving no engine or schema for the team to administer.
✓Platform as a service (PaaS)
Correct. A managed database PaaS runs and patches the engine while the team manages schema and queries.
・On-premises colocation
Incorrect. On-premises colocation leaves all hardware and software maintenance to the team.
Explanation
A managed PaaS database offloads engine and OS maintenance to the provider while customers retain schema and query control. IaaS keeps OS duties with the team, SaaS removes database control entirely, and colocation is fully self-managed. Source: CompTIA DataSys+ DS0-002 Objective 2.1.
Example3 · Business Continuity
The retailer keeps an identical second copy of the order database synchronized in real time so a hardware failure on the primary does not lose committed transactions. Which DR technique maintains this synchronized copy?
・Data masking
Incorrect. Data masking obscures values for privacy and keeps no synchronized copy.
・Query caching
Incorrect. Query caching speeds repeated reads but does not maintain a DR copy.
✓Mirroring
Correct. Mirroring keeps a synchronized duplicate so the copy stays current with the primary.
・Index tuning
Incorrect. Index tuning improves performance and does not replicate the database.
Explanation
Mirroring maintains a real-time synchronized duplicate of the database for failover, protecting committed transactions. Masking, caching, and index tuning address privacy and performance, not DR copies. Source: CompTIA DataSys+ DS0-002 Objective 5.1.
Example4 · Database Management and Maintenance
The error log on a hospital database repeatedly shows:
ERROR: deadlock detected
Process 214 waits for ShareLock on transaction 9981; blocked by process 377.
Two nightly batch jobs update the same patient and billing rows in opposite order. Which action most directly prevents these recurring deadlocks?
✓Make the jobs lock shared rows in one order
Correct. Acquiring locks in a consistent order removes the circular wait that deadlocks.
・Grant both of the batch jobs broader table-level privileges
Incorrect. Broader privileges do not change the lock ordering that causes the cycle.
・Increase the database server's total memory allocation substantially
Incorrect. More memory does not resolve a mutual lock-ordering conflict.
・Disable the engine's built-in deadlock detection logic entirely
Incorrect. Turning off detection lets sessions hang indefinitely instead of fixing the cycle.
Explanation
Deadlocks arise from a circular wait; having all jobs acquire locks in a single consistent order breaks the cycle and is the direct, recommended fix over tuning memory or privileges. Source: CompTIA DataSys+ DS0-002 Objective 3.1.
Example5 · Data and Database Security
A hospital stores patient Social Security numbers but wants support staff viewing records to see only the last four digits, while the full value stays protected. Which data security technique achieves this presentation-level protection?
・Full-disk encryption of the data at rest
Incorrect. At-rest encryption protects stored files but still shows the full value to authorized reads.
・A database backup stored off-site nightly
Incorrect. An off-site backup protects availability, not what staff see on screen.
・A firewall rule limiting the client subnet
Incorrect. A firewall rule limits network access, not the displayed digits.
✓Data masking that hides most of the value
Correct. Data masking reveals only part of the value, such as the last four digits.
Explanation
Data masking obscures part of a sensitive field so viewers see only what they need (the last four digits), keeping the full value hidden. Source: CompTIA DataSys+ DS0-002 Objective 4.1.
Example6 · Data Integration
A hospital loads raw lab feeds into its cloud data warehouse first and only afterward runs transformations inside the warehouse using its compute. Which data integration pattern does this sequence describe?
・ETL, transforming data before it is loaded
Incorrect. ETL transforms before loading, the opposite of loading raw data first.
・A change-data-capture stream of row deltas
Incorrect. Change-data-capture streams row-level changes, not the load-then-transform order.
・A manual spreadsheet export done each week
Incorrect. A manual spreadsheet export is not an automated integration pattern.
✓ELT, loading first then transforming in place
Correct. ELT loads raw data first, then transforms it inside the warehouse.
Explanation
ELT loads raw data into the target first and transforms it there using the warehouse's compute; ETL instead transforms before loading. The described order is ELT. Source: CompTIA DataSys+ DS0-002 Objective 6.1.
Example7 · Database Fundamentals
A payments platform must record each wire transfer as a chain of immutable events and often query the full event trail for one account by account id. Which database structure type most directly supports appending self-contained records and fetching them whole by key?
・A graph database tuned for relationship walks
Incorrect. Graph engines excel at traversing edges, not at appending self-contained records retrieved by a single key.
・A column-oriented engine for wide scans
Incorrect. Column-oriented engines favor aggregate scans across many rows, not whole-record retrieval by key.
・A relational schema with rigid columns
Incorrect. A rigid relational schema forces every event into fixed columns, which fits heterogeneous event payloads poorly.
✓A document store keyed by account id
Correct. A document store appends each event as a self-describing record and returns the account trail whole by its key.
Explanation
Document stores hold self-describing records retrieved whole by key, matching an append-only event trail per account. Graph suits relationship walks, column stores suit analytics, and fixed relational columns resist heterogeneous payloads. Source: CompTIA DataSys+ DS0-002 Objective 1.1.
Example8 · Database Fundamentals
A fraud analytics team needs to answer whether two bank accounts are connected through many intermediate transfers, following several hops of links at interactive speed. Which NoSQL category is purpose-built for this workload?
✓Graph database
Correct. A graph database stores accounts as vertices and transfers as edges, so multi-hop link traversal is its core strength.
・Key-value store
Incorrect. A key-value store returns a value by its key and offers no native way to follow links between records.
・Column-oriented database
Incorrect. A column-oriented database is tuned for columnar aggregation, not for walking relationships.
・Document database
Incorrect. A document database excels at whole-document retrieval, not efficient multi-hop traversal.
Explanation
Graph databases model entities as vertices and relationships as edges, making multi-hop traversals such as transfer-chain analysis efficient. The other categories optimize key lookup, columnar scans, or document retrieval. Source: CompTIA DataSys+ DS0-002 Objective 1.1.
Example9 · Database Fundamentals
On a ledger table a DBA runs UPDATE accounts SET balance = balance - 500 WHERE id = 10; then sees the id should have been 11. Autocommit is off and no COMMIT has run. Which single statement discards this uncommitted change?
・COMMIT
Incorrect. COMMIT would make the wrong deduction permanent rather than discarding it.
✓ROLLBACK
Correct. ROLLBACK reverts all changes made since the last commit, undoing the mistaken update.
・SAVEPOINT s1
Incorrect. SAVEPOINT only marks a point within the transaction; it does not undo the change.
・SET AUTOCOMMIT = 1
Incorrect. Enabling autocommit affects future statements and does not reverse the open transaction.
Explanation
ROLLBACK is a transaction control statement that reverts uncommitted work to the last commit point. COMMIT would persist the error, SAVEPOINT merely marks a position, and toggling autocommit does not undo an open transaction. Source: CompTIA DataSys+ DS0-002 Objective 1.2.
Example10 · Database Fundamentals
A factory ingests millions of tag readings per hour, each a (sensor_id, timestamp, value) point that is almost always queried as ranges over time for one machine. Which storage model best matches this append-and-range access pattern?
・A graph database modeling edges between machines
Incorrect. A graph database targets relationship traversal, not sequential time-range reads of metrics.
✓A time-series oriented store tuned for timestamp ranges
Correct. Time-series stores optimize append-heavy writes and range scans over (series, time), matching telemetry workloads.
・A document store holding one blob per reading
Incorrect. Wrapping each tiny reading in a document adds overhead without helping range queries.
・A key-value cache returning a value per key
Incorrect. A key-value cache fetches single values by key and cannot scan a timestamp range efficiently.
Explanation
Sensor telemetry is written append-only and read as time ranges per series, so a time-series model (specialized schema or engine) fits best. Graph suits relationships, documents suit heterogeneous records, and key-value suits point lookups. Source: CompTIA DataSys+ DS0-002 Objective 1.1.
Example11 · Database Fundamentals
A plant maintenance team must trace how a defect propagates through a bill-of-materials where parts contain sub-assemblies that contain further parts, following many hops of 'is-part-of' links. Which NoSQL type is purpose-built for this?
✓Graph database
Correct. A graph database stores vertices and edges, so multi-hop traversal of component relationships is its core strength.
・Column-oriented database
Incorrect. A column-oriented database favors columnar aggregation, not relationship walks.
・Document database
Incorrect. A document database retrieves whole documents and is not built for arbitrary hop traversal.
・Key-value store
Incorrect. A key-value store returns a value by key with no native relationship traversal.
Explanation
Nested component relationships traversed many hops map directly onto a graph model of vertices and edges. The other types are tuned for aggregation, whole-document retrieval, or key lookup. Source: CompTIA DataSys+ DS0-002 Objective 1.1.
Example12 · Database Fundamentals
A municipal permits office must store each building-permit application as one self-contained record whose fields vary by permit type, and the office almost always retrieves a whole application by its permit number. Which database structure type fits this access pattern most directly?
・A graph database linking inspectors to permits
Incorrect. A graph database is tuned for traversing relationships, not for returning one variable-shape application whole by its identifier.
✓A document database keyed by permit number
Correct. A document database stores each application as a self-describing document with varying fields and returns it whole by its permit number.
・A column-oriented store for wide analytical scans
Incorrect. A column-oriented store favors aggregate scans over many rows rather than whole-record retrieval by key.
・A key-value cache returning a single value
Incorrect. A key-value cache returns an opaque value by key and cannot model the application's rich internal fields.
Explanation
Permit applications are heterogeneous, self-contained records fetched whole by identifier, which maps directly onto a document model. Graph suits relationship walks, column stores suit analytics, and key-value stores hold opaque values. Source: CompTIA DataSys+ DS0-002 Objective 1.1.
Example13 · Database Fundamentals
A public-health agency must determine whether two residents are linked through shared household and employment contacts across many intermediate people. Which NoSQL category is purpose-built to answer such multi-hop connection questions at interactive speed?
・Document database
Incorrect. A document database excels at retrieving whole documents, not at walking links across many intermediate records.
✓Graph database
Correct. A graph database stores residents as vertices and contacts as edges, so traversing many hops of connections is its core strength.
・Key-value store
Incorrect. A key-value store returns a value by its key and provides no native way to follow relationships.
・Column-oriented database
Incorrect. A column-oriented database is tuned for columnar aggregation rather than relationship traversal.
Explanation
Finding paths through many intermediate contacts is relationship traversal, which a graph model of vertices and edges handles efficiently. Documents, key-value, and columnar stores optimize retrieval, lookup, and aggregation instead. Source: CompTIA DataSys+ DS0-002 Objective 1.1.
Example14 · Database Fundamentals
A SaaS analytics product ingests billions of event rows and almost every dashboard query aggregates a handful of fields (event_name, tenant_id, revenue) across huge time ranges. Which storage structure serves these scans most efficiently?
✓A column-oriented analytical store
Correct. A column-oriented store keeps each column together, so scanning only a few fields across many rows reads far less data.
・A graph database optimized for traversal
Incorrect. Graph databases excel at walking relationships, not at scanning a few columns over billions of rows.
・A row-oriented transactional table
Incorrect. Row stores read whole rows, so aggregating a few fields still pulls unneeded columns off disk.
・A key-value cache keyed by event id
Incorrect. A key-value cache fetches one value by key and cannot aggregate across the dataset.
Explanation
Column-oriented storage physically groups each column, so analytical queries that touch few columns over many rows read only the needed data. Row stores suit transactional whole-row access, graphs suit relationships, and key-value suits single-key lookups. Source: CompTIA DataSys+ DS0-002 Objective 1.1.
Example15 · Database Fundamentals
A collaboration SaaS must model how documents, folders, and teams are connected and answer queries like "which users can reach this file through any sharing chain." Which database type fits best?
・A document database
Incorrect. A document database retrieves self-contained documents and is weak at arbitrary-depth relationship traversal.
✓A graph database
Correct. A graph database models nodes and edges directly, making multi-hop reachability over sharing chains natural and fast.
・A relational star schema
Incorrect. A star schema serves aggregate reporting, not variable-depth path queries.
・A wide-column store
Incorrect. A wide-column store scales writes and scans but does not traverse edges efficiently.
Explanation
Reachability through arbitrary-length sharing chains is a path-traversal problem, which graph databases handle natively with nodes and edges. Documents suit whole-item retrieval, star schemas suit reporting, and wide-column suits large tabular scans. Source: CompTIA DataSys+ DS0-002 Objective 1.1.
▶ Try 10 free questions (graded)