Limited-Time Offer: Enjoy 50% Savings! Coupon code: 50OFF Use it at checkout
Skip to content

Free CompTIA DataSys+ Certification Exam DS0-001 Exam Questions

Last updated: · 11 practice questions with answers and explanations

Page: 1 / 12 Total 118 questions

Want more questions? Get Premium Access.

Question 1

New Single answer

Topic: Database Fundamentals

Skill tested: Selects a database structure that matches relationship, query, and scaling requirements.

A logistics company stores shipment events from thousands of mobile scanners. Events arrive at high volume, vary slightly by scanner model, and are usually retrieved by shipment ID and time range. The system must scale out across multiple nodes, and the team does not require joins between event records. A separate relational system already holds customers and billing data. Which approach best fits the event-store requirement without forcing a rigid schema or adding unnecessary relational operations?

Correct Answer: D. Use a document-oriented NoSQL store for event records, with indexes on shipment ID and event time.
Explanation:

A document-oriented NoSQL store accommodates evolving event attributes and can be designed to scale horizontally. Indexing shipment ID and event time supports the stated access pattern without requiring joins. Extending the billing database with normalized scanner-specific tables adds schema and join overhead that the workload does not need. A single relational table could work, but it does not directly address the stated scale-out and variable-record requirements as well. An expiring cache is not an appropriate authoritative store when shipment history must remain available.

Question 2

New Single answer

Topic: Database Fundamentals

Skill tested: Applies transaction boundaries and ACID properties to multi-step data updates.

A reservation service must reduce a room's available inventory and insert a reservation record as one business operation. During testing, the service sometimes reduces inventory even when the reservation insert fails. The database supports transactions, and the application must preserve the existing inventory value if any step fails. Which change best ensures that the operation behaves as a single all-or-nothing unit?

Correct Answer: D. Wrap both statements in a transaction and roll back the transaction if either statement fails.
Explanation:

A transaction groups the inventory decrement and reservation insert so that either both changes commit or neither does. Rolling back after a failure preserves the pre-operation state and applies atomicity. Committing the decrement separately creates the same partial-update risk seen in the scenario. A view presents data and does not, by itself, provide a transaction boundary for these writes. Retrying only the insert can create duplicate reservations or leave inventory inconsistent; retry logic does not replace atomic transaction handling.

Question 3

New Multiple answers

Topic: Database Fundamentals

Skill tested: Distinguishes server-side and client-side execution for sensitive database operations.

A financial services team is moving a data-validation workflow from desktop scripts to a shared application. The workflow checks account limits and writes validated transactions. It must use one centrally maintained rule set, prevent database credentials from being distributed to employee workstations, and avoid relying on each workstation to apply the same validation logic. Which TWO design decisions best meet these requirements? Select TWO.

Correct Answer: C. Have the application connect through a controlled service account and call the server-side procedure.; D. Run the validation and write operations in a server-side stored procedure invoked by the application.
Explanation:

A server-side procedure centralizes the validation logic and executes it close to the data, reducing inconsistent client implementations. Calling it through an application using a controlled service account avoids distributing database credentials to workstations and allows access to be managed centrally. Client-side validation alone can be changed or become inconsistent and is not a reliable enforcement point. Embedding credentials exposes them to users, while exporting account records increases data exposure and creates stale copies.

Question 4

New Single answer

Topic: Database Deployment

Skill tested: Uses schema documentation and stakeholder requirements to validate database design.

A healthcare organization is preparing a new reporting database. Several departments use the same term, "active patient," but define it differently. The implementation team has been asked to create tables immediately, while audit reviewers require traceability from business definitions to database fields. The deployment date is fixed, and rework after implementation would be costly. What should the database administrator do FIRST?

Correct Answer: C. Collect and reconcile stakeholder definitions, document data requirements, and model entities and relationships before finalizing the schema.
Explanation:

Reconciling the business meaning of "active patient" is a requirements and data-modeling task that should precede schema implementation. A data dictionary and ERD can trace agreed definitions to fields and relationships, supporting auditability and reducing expensive rework. Choosing the most common interpretation does not resolve conflicting requirements. Production values may not reveal the intended meaning, and building a denormalized table before agreeing on definitions embeds ambiguity in the design. Post-deployment documentation is too late for the stated traceability requirement.

Question 5

New Single answer

Topic: Database Deployment

Skill tested: Validates application-to-database connectivity and configuration before release.

A release candidate connects successfully to the development database but fails in the staging environment. The schema migration completed without errors, and the application reports a connection timeout rather than an authentication failure. Staging uses a separate network segment and a different connection configuration from development. The release window is limited, so the team needs the most targeted next step before repeating the deployment. What should the administrator do?

Correct Answer: B. Verify the staging connection endpoint and network path, including whether the database listener is reachable from the application host.
Explanation:

A timeout points first toward reachability or endpoint configuration, especially because staging has a distinct network segment and connection settings. Verifying the configured host and port and testing the path from the application host isolates connectivity before another release attempt. Re-running a successful migration does not resolve a connection timeout. An incorrect password generally produces an authentication error, not a network timeout. Disabling authentication is an unsafe diagnostic step and would not establish whether the staging endpoint is reachable.

Question 6

New Single answer

Topic: Database Management and Maintenance

Skill tested: Uses execution plans and workload patterns to optimize database query performance.

A customer-support report has become slow as the order table has grown. The query filters on customer_id and a date range, then sorts by order_date. Monitoring shows high disk reads during the report, while CPU and memory remain below their limits. The report runs frequently, and the same predicates are used consistently. The administrator wants to reduce reads without changing the report's results or adding broad infrastructure capacity. What is the best next action?

Correct Answer: B. Inspect the query execution plan and evaluate an index that supports the filter and ordering pattern.
Explanation:

High disk reads on a frequently executed query suggest that its access path deserves investigation. The execution plan can show whether the database scans many rows, and a suitable composite index may support the customer and date predicates and the requested ordering. Increasing memory without evidence does not address an inefficient access path. Removing a predicate changes report semantics and can increase returned data. A stored procedure can improve maintainability, but it does not inherently eliminate reads or alter an inefficient plan.

Question 7

New Multiple answers

Topic: Database Management and Maintenance

Skill tested: Selects maintenance actions that preserve data integrity while controlling redundancy.

An operations team receives a nightly extract containing a customer address repeated on every order row. Address corrections are therefore being applied inconsistently, and reports sometimes show several addresses for the same customer. The application must continue returning orders with customer details, but the team wants one authoritative address and clear referential integrity. A large application rewrite is not currently feasible. Which TWO database changes best address the problem? Select TWO.

Correct Answer: B. Store customer address attributes once in a customer table and reference that row from each order.; C. Add a foreign-key relationship from orders to customers using the customer key.
Explanation:

Keeping the address in one customer record establishes a single authoritative value and reduces update anomalies. A foreign key from each order to its customer enforces that referenced customer records exist, preserving the relationship while allowing applications to retrieve combined data through a query or view. A nightly synchronization script leaves duplicated data and a window for inconsistency. A view does not store updated values in its definition, and removing identifiers would eliminate the relationship needed to associate orders with customers.

Question 8

New Single answer

Topic: Data and Database Security

Skill tested: Applies least-privilege authorization and secure credential handling for database access.

A reporting contractor needs read-only access to selected sales tables for six weeks. The database currently uses one shared administrator account for all application and analyst connections. Audit policy requires individual attribution, and the contractor must not read employee payroll data or change database objects. Which access design best satisfies the requirement?

Correct Answer: C. Create an individual contractor identity, grant only SELECT access to the required sales objects, and set an expiration or removal date.
Explanation:

An individual identity provides audit attribution, while narrowly scoped SELECT grants limit access to the required sales objects and prevent changes. A defined end date supports timely revocation when the engagement ends. A shared administrator credential violates least privilege and prevents reliable attribution. A broad shared reporting account still exposes unrelated databases and weakens accountability. Exporting data creates an unnecessary copy and exposes payroll information despite the contractor's limited need.

Question 9

New Multiple answers

Topic: Data and Database Security

Skill tested: Chooses encryption and masking controls to protect sensitive database information.

A retailer is preparing payment data for a nonproduction test environment. Developers need realistic data relationships and transaction patterns, but they do not need actual cardholder values. Production database connections must also be protected while data moves between application and database servers. Which TWO controls most directly meet these requirements? Select TWO.

Correct Answer: A. Encrypt production database connections in transit using an appropriately configured secure transport.; E. Mask or tokenize sensitive payment values in the test copy while preserving required test relationships.
Explanation:

Masking or tokenizing sensitive values in the nonproduction copy preserves useful structure while preventing developers from seeing real cardholder data. Encrypting application-to-database traffic protects data while it traverses the network. Access restrictions alone do not remove sensitive values from test data. Encrypting only backups does not protect live traffic, and replacing production with a test copy would not meet the operational requirement to process real payments.

Question 10

New Single answer

Topic: Data and Database Security

Skill tested: Mitigates SQL injection by separating query logic from user-supplied values.

A web application accepts an order number from a request and builds a database query by concatenating that value into SQL text. A security review demonstrates that crafted input can alter the query structure. The development team wants a change that protects the database query path without changing the user-facing feature or granting the application broader database privileges. Which remediation is most appropriate?

Correct Answer: D. Use parameterized queries so the order number is treated as a value rather than executable SQL.
Explanation:

Parameterized queries keep SQL structure separate from user-supplied values, preventing the order number from being interpreted as executable SQL. This directly addresses the demonstrated injection path without changing the feature or expanding privileges. Hand-written escaping is error-prone across input forms and database syntax. Additional privileges increase the impact of a successful attack. Hiding errors may reduce information disclosure, but it does not prevent the vulnerable query from being altered.

Question 11

New Single answer

Topic: Business Continuity

Skill tested: Designs recovery objectives and replication-based failover for database continuity.

A regional sales database supports order processing around the clock. Management sets a recovery time objective of 30 minutes and a recovery point objective of five minutes. Backups are currently taken nightly, and the organization can fund a warm secondary site but cannot justify a continuously active second environment. The team needs a design that limits potential data loss and supports recovery within the stated time. Which approach is most appropriate?

Correct Answer: D. Maintain a warm secondary database with replication configured to meet the five-minute recovery point, and document and test failover procedures.
Explanation:

A warm secondary site balances the stated cost constraint with the 30-minute recovery target. Replication designed to keep the recovery point within five minutes limits data loss, while documented and tested failover procedures help meet the recovery time objective. Nightly backups can lose far more than five minutes of work and may take too long to restore. An active-active deployment exceeds the stated budget and is not required. Four-hour full backups still fail the five-minute recovery point.