← All CBDH Flashcard Decks

CBDH Smart Contract Development Flashcards

6 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 6 CBDH Smart Contract Development flashcards as text
  1. What Fabric feature allows you to query a range of keys in the world state?

    Answer: stub.GetStateByRange()

    GetStateByRange returns an iterator over all key-value pairs between a specified start and end key in the world state.

  2. Which Fabric chaincode API enables rich queries against a CouchDB state database?

    Answer: stub.GetQueryResult()

    GetQueryResult executes a rich query against the CouchDB state database using a JSON selector query string.

  3. What does the chaincode lifecycle command `peer lifecycle chaincode package` do?

    Answer: Creates a deployable .tar.gz package from chaincode source

    The package command bundles chaincode source, metadata, and dependencies into a .tar.gz file ready for installation.

  4. In Hyperledger Fabric 2.x, how many organizations must approve a chaincode definition before it can be committed?

    Answer: The number required by the channel's LifecycleEndorsement policy

    The LifecycleEndorsement policy (default: majority of channel orgs) determines how many organizations must approve before committing.

  5. What is the role of `shim.Start(cc Chaincode)` in a Fabric chaincode program?

    Answer: Starts the chaincode process and connects it to the peer

    shim.Start() launches the chaincode process and establishes the gRPC connection between the chaincode and its peer.

  6. Which method retrieves the history of state changes for a specific key in Fabric chaincode?

    Answer: stub.GetHistoryForKey()

    GetHistoryForKey returns an iterator of all historical values and their associated transaction IDs for a given key.

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