← All CBDH Flashcard Decks

Data Management & Integration Flashcards

7 cards from real CBDH practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.

Read the first 7 Data Management & Integration flashcards as text
  1. Which Fabric state database is required to run JSON rich queries from chaincode?

    Answer: CouchDB

    Only CouchDB supports selector-based rich queries; LevelDB supports key and range queries only.

  2. What is the main purpose of a composite key in Fabric chaincode?

    Answer: Querying related assets by partial key prefix

    CreateCompositeKey with GetStateByPartialCompositeKey lets you retrieve groups of related keys efficiently.

  3. What does GetHistoryForKey return?

    Answer: The sequence of values, transaction IDs and delete flags for a key over time

    The history database tracks each committed change to a key, including TxId and delete markers.

  4. Why should results of rich (CouchDB) queries generally not be used to drive state updates in the same transaction?

    Answer: They are not re-executed at validation, so phantom reads are not detected

    Range queries are re-validated for phantoms, but rich queries are not, so the result set could change before commit.

  5. Where must CouchDB index definitions be placed in a chaincode package to be deployed automatically?

    Answer: META-INF/statedb/couchdb/indexes

    Fabric installs index JSON files found under META-INF/statedb/couchdb/indexes when the chaincode is deployed.

  6. What does the bookmark returned by GetQueryResultWithPagination represent?

    Answer: A pointer to where the next page of results should start

    The bookmark is passed into the next paginated query to continue from the last returned record.

  7. Two transactions in the same block both read and modify key K. What is the likely outcome?

    Answer: The first is valid; the second is marked MVCC_READ_CONFLICT

    The second transaction's read version of K is stale after the first commits, so it is invalidated at validation.

How this page was made: written with AI tools and published by Nathan Beja, founder of Practice Test Geeks, who is responsible for its content. Exam facts are checked against the official sources listed below. Not reviewed by a subject-matter expert. Editorial policy

Sources & references

Exam facts on this page (fees, format, dates, passing scores) are checked against these official sources; the date is our last check. Editorial policy

  1. blockchaintrainingalliance.com — Test delivery, passing score, score release, test dates, fees, exam format, time limit · verified Oct 2026