
CompTIA · Plus Series
CompTIA DataSys+ (DS0-002) hands-on labs and PBQs
32 hands-on labs and 100 performance-based questions that cover the exam's 20 numbered objectives. You do the work; each task is checked and explained.
- Hands-on labs
- 32
- Performance-based questions
- 100
- Lab tasks to complete
- 211
- Hours of lab work
- 20
What's inside
6 labs on a real Linux machine
A Linux system that boots in your browser tab. You work at root's shell, and each task is checked on the machine itself.
13 labs on simulated devices
The screens a technician works in, drawn in the page: admin console, cloud console, analytics tool, security console, server, switch. Each behaves like the real one for the settings its lab uses.
13 labs on a real PostgreSQL database
PostgreSQL itself, running in your tab. You write the SQL and the database answers.
100 performance-based questions
Marked item by item, each with the reason behind the right answer.
The question types: drag and drop (18), sorting (19), ordering (16), configuration (21) and command line (26).
The labs
32 labs. Together they practice 20 of the exam's 20 objectives.
- Included in the track
Lab 1: Choose database types and data types for new workloads
Classify nine data sources as structured, semistructured or unstructured, place eight workloads on the relational or NoSQL database type that fits, size a time series store and answer three teams' proposals in a data platform's intake console.
Simulated device25 minBeginner6 tasksObjective 1.1
On: Data platform intake
- Start free lab
Lab 2: Create, read, update and delete inventory data in transactions
Do a distributor's daily inventory work in SQL: a reorder report, new products, a price rise for one category, a discontinued product removed, a stock transfer and a delivery done as transactions, a mistake undone with a savepoint, and a supplier's price file merged in.
PostgreSQL database40 minIntermediate7 tasksObjective 1.2
- Included in the track
Lab 3: Answer a support desk's questions with joins, windows and set logic
Write the queries a support manager asks a DBA for: a self-join, a left join that keeps zeros, a correlated nested query, ROW_NUMBER, RANK, a running total with LAG, INTERSECT — and a row-by-row function rewritten as one set-based statement.
PostgreSQL database45 minIntermediate8 tasksObjective 1.2
- Included in the track
Lab 4: Program the database: a function, a procedure and two triggers
Put a print shop's rules into the database: a PL/pgSQL function that prices an order, a stored procedure that archives closed orders, a trigger that keeps updated_at current and another that writes an audit row on every status change — each one tested.
PostgreSQL database45 minAdvanced6 tasksObjective 1.2
- Included in the track
Lab 5: Repair a server-side maintenance script
On a database server, repair the shell script that checks the nightly dumps one bug at a time (a variable, a log line, the loop over the databases' dump folders, the status it tests and the status it returns), run it from the command line, and schedule it with cron.
Linux machine30 minBeginner6 tasksObjective 1.3
- Included in the track
Lab 6: Measure and fix the SQL that ORMs generate
Review the SQL that SQLAlchemy, Hibernate, Entity Framework and a dbt model generate in an application performance console, find an N+1 pattern, a wide read and a filter applied in the application, confirm the rewrites on staging and measure the impact on the database server.
Simulated device35 minAdvanced6 tasksObjective 1.4
On: Application performance console
- Included in the track
Lab 7: Plan and provision a database in the cloud
Gather the requirements for a loan database's move to the cloud with a gap analysis and a resource projection, choose the service and deployment models, write the SLA with its KPIs, escalation and reporting, and provision the instance once its prerequisites are met.
Simulated device40 minAdvanced7 tasksObjective 2.1
On: Cloud console
- Included in the track
Lab 8: Validate a database after its import
Before a migrated shipment database is signed off, check it the way a DBA does: the import against its source layout, values against their rules, duplicates, orphan rows and the foreign key they block, the indexes the import left out, and regression totals against the old system's.
PostgreSQL database40 minIntermediate7 tasksObjective 2.1
- Included in the track
Lab 9: Build a schema from its design documents
Turn a fleet maintenance design into a physical PostgreSQL schema: tables, keys, constraints and data types from a data dictionary and an ERD, a many-to-many relationship made into a junction table, the documentation stored in the database, and atomicity shown by a transaction that fails as a whole.
PostgreSQL database45 minIntermediate6 tasksObjective 2.2
- Included in the track
Lab 10: Connect clients to a database in a cloud network
Place a database in private subnets across two zones with a static address, address its clients, set up an internet-facing and an internal load balancer, fix its DNS records, open only PostgreSQL's port to the clients that need it, require TLS and test the connection.
Simulated device35 minIntermediate7 tasksObjective 2.3
On: Cloud console
- Included in the track
Lab 11: Troubleshoot a database connection from its client
On an application server that cannot reach its database after a migration, fix the connection settings and the name resolution, get the server listening on its network address, allow the application servers in the database's access file, and write the result to the ticket.
Linux machine35 minIntermediate5 tasksObjective 2.3
- Included in the track
Lab 12: Monitor a database server from its logs
On a database server, read yesterday's PostgreSQL log, the backup job's log and the monitoring agent's disk readings: count the failed connection attempts by address, find the deadlocks and the slowest statements, check the backup run and the data volume against its growth alert, and write the daily report.
Linux machine40 minIntermediate6 tasksObjective 3.1
- Included in the track
Lab 13: Set up monitoring and alerts for a database server
Capture a performance and configuration baseline, set thresholds for IOPS, disk space and connections, alert on growth, jobs, backups, failed connections and deadlocks, read an outage from the dashboard's figures and test the alerts.
Simulated device35 minIntermediate6 tasksObjective 3.1
On: Monitoring console
- Included in the track
Lab 14: Tune a slow database and check its integrity
Do a night of maintenance on a utility's payments database: read a slow query's plan, index it, refresh the planner's statistics, rewrite a view that cannot use its index, reclaim a purged table's space with VACUUM, and find corrupt and invalid rows before validating a constraint.
PostgreSQL database40 minAdvanced7 tasksObjective 3.2
- Included in the track
Lab 15: Run database maintenance through change control
Evaluate and schedule an engine patch, refresh staging from production with masked data, put schema migrations through version control and CI/CD, design a partitioning change, raise its change request and review a week of logs in a change control console.
Simulated device40 minIntermediate7 tasksObjective 3.2
On: Change control · Schema pipeline
- Included in the track
Lab 16: Manage a ticketing database's data and design
Do a DBA's data management jobs on one database: a relationship and its index, an appended column, a computed column, a view for a team, a repeating group normalized into its own table, statistics on two correlated columns, and a denormalized reporting table built in a REPEATABLE READ transaction.
PostgreSQL database45 minAdvanced8 tasksObjective 3.3
- Included in the track
Lab 17: Protect subscriber data and audit a telecom database
Apply data protection and a security audit inside the database: dynamic masking by role, suppression of small counts, an anonymized extract, expired accounts found and disabled with what they did after expiring, failed connection requests read, and credentials found where they should never be stored.
PostgreSQL database40 minAdvanced8 tasksObjective 4.1
- Included in the track
Lab 18: Encrypt databases and manage their keys
Choose customer-managed, BYOK and KYOK keys, rotate them under envelope encryption, encrypt card databases at rest with volume encryption and TDE, enforce TLS in transit, encrypt one column on the client, protect data in use with confidential computing and crypto-shred a retired volume.
Simulated device40 minAdvanced8 tasksObjective 4.1
On: Key management console · Database service console
- Included in the track
Lab 19: Close a health retailer's governance findings
Label sensitive columns, enforce data loss prevention, apply retention schedules and a legal hold, keep replicas and backups in their permitted regions, close PCI DSS gaps in the card data, answer a GDPR erasure request and report a breach within 72 hours.
Simulated device40 minIntermediate7 tasksObjective 4.2
On: Data governance console
- Included in the track
Lab 20: Set up roles and row-level security for an HR database
Bring an HR database to least privilege: audit what its roles hold, cut the application down to what it uses, replace grants to people with a group role, set default privileges, keep the auditor read-only and give managers only their own department's rows with row-level security.
PostgreSQL database40 minAdvanced7 tasksObjective 4.3
- Included in the track
Lab 21: Fix authentication for a company's databases
Put the DBA tools behind single sign-on, require phishing-resistant MFA of administrators, fix a duplicate and a missing Kerberos service principal name, federate with a partner's identity provider, choose OpenID Connect or OAuth 2.0 for two apps and renew a database server's TLS certificate.
Simulated device40 minAdvanced7 tasksObjective 4.3
On: Identity provider · Directory · Finance database server
- Included in the track
Lab 22: Find and fix SQL injection in a bookstore database
Defend a storefront's database: read the request log for the textbook indicator of SQL injection, find the functions that build SQL from their input, rewrite them to take parameters with an allow list for the sort column, and give the application's role least privilege.
PostgreSQL database35 minAdvanced6 tasksObjective 4.4
- Included in the track
Lab 23: Review a database's security posture
Secure the server room, close the database tier to everything but its clients, lock down the switch ports, grant access by Zero Trust, triage a vulnerability scan and prove the fix, stop poisoned training data, and respond to malware and a social engineering call.
Simulated device40 minAdvanced7 tasksObjective 4.4
On: Security console · Database rack switch
- Included in the track
Lab 24: Back up, validate and restore a database server's files
On a database server, validate the week's backups against their SHA-256 hashes and repair a damaged one from the off-site copy, take the missed differential with tar and find -newer, choose a restore point and restore it, copy the backup off site, archive the previous week, report and alert, and schedule the backups with cron.
Linux machine40 minAdvanced7 tasksObjective 5.1
- Included in the track
Lab 25: Validate a restore and repair a ledger from it
Use last night's backup the way a DBA does after a bad job: validate the restored copy against the backup's manifest, record the result, find what changed since the restore point, keep a snapshot, repair only the damage, and archive the closed years.
PostgreSQL database35 minAdvanced6 tasksObjective 5.1
- Included in the track
Lab 26: Run a credit union's disaster recovery
Complete the DR documentation, work out the RPO and RTO from a restore test, set log shipping to meet the RPO, run a parallel DR test, fail over for a power shutdown without losing a transaction, and plan the failback.
Simulated device35 minIntermediate6 tasksObjective 5.2
On: DR console
- Included in the track
Lab 27: Make a delivery app's database highly available
Find the single points of failure in a database cluster, spread it across a multizone region with a witness, replicate synchronously in the region and asynchronously to another, choose mirroring or replication, make the transaction log durable and run a failover drill.
Simulated device35 minIntermediate6 tasksObjective 5.3
On: Database cluster console
- Included in the track
Lab 28: Acquire data from four sources on an integration server
On an integration server, inspect a flat file, a JSON export and an XML file and count their records against their control totals, classify each source, move a partner's feed from FTP to SFTP, tell a streaming source from the batch ones, and stage the batch for the load.
Linux machine35 minIntermediate5 tasksObjective 6.1
- Included in the track
Lab 29: Transform landed JSON inside the database (ELT)
Run the transform step of an ELT pipeline in PostgreSQL: profile raw JSON from an orders API, an OData catalog and a stock stream, classify each document, turn the documents into typed tables with jsonb operators, keep the latest event per item, and reconcile the load with the source's control totals.
PostgreSQL database40 minAdvanced7 tasksObjective 6.1
- Included in the track
Lab 30: Troubleshoot an invoice load that fails
Get a failing nightly load running again by working through its errors one at a time: a syntax error in the load procedure, a renamed column, a permission the loader lacks, dates and amounts in another format, a value too large for its column, text decoded with the wrong encoding, and duplicate keys at runtime.
PostgreSQL database40 minAdvanced7 tasksObjective 6.2
- Included in the track
Lab 31: Troubleshoot a data feed that fails
On an ETL server, troubleshoot a supplier's nightly price feed one failure at a time: a fetch that times out, a file the loader cannot read, a driver too old for the database, a schema mismatch in the header, Windows line ends and Latin-1 text in a UTF-8 pipeline, until the feed is processed.
Linux machine40 minAdvanced6 tasksObjective 6.2
- Included in the track
Lab 32: Bring AI into a distributor's data integration
Match the data manipulation libraries to their jobs, ground a RAG assistant in the data catalog and the user's permissions, engineer a SQL assistant's prompt, review AI output for hallucinations, build a virtual data warehouse over two sources and automate a recurring download with RPA.
Simulated device35 minIntermediate6 tasksObjective 6.3
On: Data integration console
The performance-based questions
100 questions, spread over the exam's domains.
- Drag and drop 18
- Sorting 19
- Ordering 16
- Configuration 21
- Command line 26
5 of them are free to try.
Questions per domain
- 1. Database Fundamentals19
- 2. Database Deployment17
- 3. Database Management and Maintenance18
- 4. Data and Database Security19
- 5. Business Continuity14
- 6. Data Integration13
The exam objectives this track follows
From the vendor's own document: CompTIA DataSys+ Certification Exam Objectives, exam number DS0-002 (V2), Exam Objectives Document Version 3.0.
1. Database Fundamentals19% of the exam · 4 objectives · 6 labs · 19 PBQs
- 1.1Compare and contrast database types and data types
- 1.2Given a scenario, develop, modify, and run Structured Query Language (SQL) code
- 1.3Compare and contrast scripting methods and environments
- 1.4Explain the impact of programming on database performance
2. Database Deployment17% of the exam · 3 objectives · 5 labs · 17 PBQs
- 2.1Compare and contrast aspects of database planning and operations
- 2.2Given a scenario, implement techniques related to database design and documentation
- 2.3Explain connectivity concepts related to databases
3. Database Management and Maintenance18% of the exam · 3 objectives · 5 labs · 18 PBQs
- 3.1Explain the purpose of monitoring and reporting for database management and performance
- 3.2Explain common database maintenance processes
- 3.3Given a scenario, implement data management tasks
4. Data and Database Security19% of the exam · 4 objectives · 7 labs · 19 PBQs
- 4.1Explain data security concepts
- 4.2Explain the purpose of governance and regulatory compliance
- 4.3Given a scenario, implement policies and best practices related to authentication and authorization
- 4.4Explain the purpose of database security
5. Business Continuity14% of the exam · 3 objectives · 4 labs · 14 PBQs
- 5.1Given a scenario, implement backup and restoration processes
- 5.2Explain the importance of disaster recovery (DR) and best practices
- 5.3Compare and contrast fault tolerance operations
6. Data Integration13% of the exam · 3 objectives · 5 labs · 13 PBQs
- 6.1Given a scenario, use data acquisition techniques and methods
- 6.2Given a scenario, troubleshoot common data acquisition issues
- 6.3Explain emerging technologies and AI concepts related to data integration
Questions about this track
Still need help? Contact us.
What do I get with the CompTIA DataSys+ (DS0-002) track?
32 hands-on labs and 100 performance-based questions, all of them for CompTIA DataSys+ (DS0-002). Every lab has a scenario, tasks that are checked as you work, hints and worked solutions; every question explains its answer.
Can I try it before I buy?
Yes. One complete lab and a short run of performance-based questions are open to everybody, with no account. They are marked on this page.
Is this the real exam?
No. LabsDigest is independent and is not a certification body. The labs and questions are written from the vendor's published exam objectives; nothing is copied from a live exam.
What do I need to run the labs?
A current browser. A lab on the Linux machine or on a database needs a keyboard and works best on a computer; labs on simulated devices and the questions work on a phone too.
Every lab, for life
One payment opens every track LabsDigest has and every track it adds. If it is not for you, ask for your money back within 60 days.
- 502 hands-on labs
- 1,610 performance-based questions
- 16 certification tracks
- Lifetime updates
- One-time payment
- 60-day money-back guarantee