Examers.io
ExamsOrganizationsHow it worksPricingHelp & FAQ
CompTIA logo

CompTIADataSys+

Domain 1Objective 2

SQL Code Development DS0-001 Practice Questions (Page 1)

Part of the Database fundamentals domain, which accounts for 24% of the DS0-001 exam. CompTIA does not publish an official question count, but from its 90-minute exam (~35–60 total, ~8–14 in this domain), expect 2–4 from this objective — we provide 22 practice questions to prepare you well beyond it. (estimate)

22questions here
5free pages
6concepts
24%of the exam

Questions 1–5

  1. 1foundation · easy

    A database administrator executes a series of DML statements to update multiple tables. Before the changes are finalized, the administrator decides to undo all changes made since the transaction began. Which TCL command should be used?

    Select an answer first
  2. 2application · medium

    A reporting team frequently joins the `orders` and `customers` tables to retrieve customer names and their order totals. They find the join syntax cumbersome. You want to provide them with a reusable object that simplifies their queries without duplicating data. What should you create?

    Select an answer first
  3. 3application · easy

    A customer service representative accidentally updated the `phone` column for the wrong customer in the `customers` table. The change has not been committed yet, and the transaction is still open. Which command should be used to undo the UPDATE and return the data to its original state?

    Select an answer first
  4. 4expert · hard

    An e-commerce platform processes orders. Two concurrent transactions attempt to update the same inventory item's stock quantity. Transaction T1 reads the stock as 10, and Transaction T2 reads the stock as 10. T1 then updates the stock to 9 and commits. T2 then updates the stock to 9 and commits, overwriting T1's change. Which ACID property is being violated, and what is the most direct way to prevent this scenario?

    Select an answer first
  5. 5foundation · easy

    A developer needs to add a new column named 'email' to an existing 'customers' table. Which DDL command accomplishes this?

    Select an answer first
Finished these 5 questions?

Review the revealed explanations, or continue through the curriculum.

Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by CompTIA. “DS0-001” is a trademark of its owner, used for identification only.