Courseiva
Describe core data conceptshardMultiple ChoiceObjective-mapped

DP-900 Describe core data concepts Practice Question

A healthcare application stores patient medical history in a relational database. The system must ensure that after a transaction updates multiple records (e.g., diagnosis and medication), all changes are saved or none are saved. This property is best described as:

⚠ Common exam trap

Watch out — candidates often confuse atomicity with consistency, mistakenly thinking that 'all-or-nothing' is about maintaining data rules, when in fact atomicity is specifically about the transaction's indivisibility at the write level.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Atomicity

Atomicity ensures that a transaction is treated as a single, indivisible unit of work. In the context of a relational database storing patient medical history, if a transaction updates both the diagnosis and medication records, atomicity guarantees that either both updates are committed or both are rolled back, preventing partial updates that could leave the data in an inconsistent state.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Atomicity

    Why this is correct

    In this healthcare scenario, Atomicity guarantees that a multi-step transaction—such as writing a patient diagnosis, associated medications, and lab results together—either commits all changes to the medical history or rolls back completely. If any statement in the transaction fails, the database discards all earlier writes, leaving the patient record untouched. This all-or-nothing behavior directly matches the requirement that incomplete updates never appear, which is why Atomicity is correct. Azure SQL Database uses a transaction log and rollback segments to enforce this property even when the service fails mid-transaction.

  • Consistency

    Why it's wrong here

    Consistency is an ACID property that ensures a transaction transforms a database from one valid state to another, preserving declared constraints like primary keys, foreign keys, check constraints, and data type rules. It does not, however, force a transaction to be applied as a single indivisible unit; a partially executed transaction could theoretically leave the database in a valid but incomplete state if no constraint happens to be violated. In a patient medical history, Consistency would prevent duplicate patient IDs or invalid codes, but it cannot guarantee that all elements of a multi-record update appear together. That indivisibility requirement belongs to Atomicity, so Consistency is incorrect here.

  • Durability

    Why it's wrong here

    Durability, once a transaction commits, makes its changes permanent on non-volatile storage so they survive power failures, crashes, or service restarts. In the medical history context, it assures clinicians that a saved diagnosis will still be there after a system failure, but it only applies after the transaction has successfully reached commit. Durability has no mechanism for reversing a partial multi-step transaction; if a failure occurs before commit, it simply preserves whatever was already written. Therefore, while durability supports reliable persistence, it does not enforce the all-or-nothing semantics this question requires.

  • Isolation

    Why it's wrong here

    Isolation governs how concurrent transactions interact, ensuring that an uncommitted transaction cannot be observed by others and that intermediate states are hidden from concurrent readers and writers. In a healthcare system, isolation prevents one clinician from seeing another's unfinished edits to a patient record, thus avoiding dirty reads and lost updates. But isolation does not decide whether a single transaction's own multiple writes are rolled back as a unit; two concurrent transactions could both be atomic yet still interfere unless isolation levels like READ COMMITTED or SERIALIZABLE are used. The scenario asks about the transaction's own failure behavior, not about concurrency interference, so Isolation is not the correct answer.

About these practice questions

This DP-900 question is part of Courseiva's 820-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This DP-900 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the DP-900 exam.