← All CBDH Flashcard Decks

Performance Monitoring & Optimization 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 Performance Monitoring & Optimization flashcards as text
  1. Which state database choice generally gives faster simple key lookups but no rich queries?

    Answer: LevelDB

    LevelDB is embedded and fast for key and range operations but does not support JSON rich queries.

  2. Where should CouchDB index definitions be packaged in a Go chaincode so they deploy automatically?

    Answer: META-INF/statedb/couchdb/indexes

    Index JSON files placed in META-INF/statedb/couchdb/indexes are installed with the chaincode package.

  3. Why are key-range queries preferred over rich queries when possible?

    Answer: They efficiently scan keys and are re-validated at commit, unlike rich query results

    Range queries are cheaper and their results are re-checked for phantom reads at validation, while rich queries are not.

  4. What is the purpose of GetQueryResultWithPagination?

    Answer: Limit the number of results returned per call to bound resource use

    Pagination returns a page of results with a bookmark, preventing huge result sets.

  5. Many transactions update a single counter key and most fail with MVCC_READ_CONFLICT. What design change helps?

    Answer: Store each update under a unique composite key and aggregate on read

    Writing separate delta keys avoids multiple transactions in a block contending for one key version.

  6. What is a performance and operational benefit of chaincode-as-an-external-service?

    Answer: The peer does not build or launch chaincode containers via Docker

    External chaincode runs as a service the peer connects to, avoiding peer-managed Docker builds and launches.

  7. Which peer setting bounds how long a chaincode invocation can run before it is aborted?

    Answer: chaincode.executetimeout

    chaincode.executetimeout in core.yaml sets the invocation timeout, 30s by default.

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