Bta Certified Blockchain Developer - Hyperledger Free Sample Questions

Description

Covers Hyperledger Fabric architecture and ledger management, chaincode development and testing, Fabric application design and identity management, network setup, and troubleshooting.

9 free sample questions103 in the full practice test

Try simulator

CBDH Sample Questions

  1. Question 1

    Intermediate

    Testing & Troubleshooting · CouchDB Performance Tuning

    A developer is troubleshooting a slow-performing chaincode query that uses a complex selector to find assets based on multiple JSON attributes. The underlying state database is CouchDB. What is the most effective way to improve the performance of this query?

    graph TD ClientApp -- query('{"selector":{"owner":"Alice", "color":"blue"}}') --> Peer Peer -- GetQueryResult --> Chaincode Chaincode -- CouchDB Mango Query --> CouchDB subgraph CouchDB direction LR DB_Scan[Full DB Scan] --> SlowResponse{Slow Response} end CouchDB --> Chaincode Chaincode --> Peer Peer --> ClientApp

    Answer and explanation

    Correct answer: C

    CouchDB rich queries can be slow if they result in a full database scan. The recommended way to optimize them is to create a JSON index that covers the fields used in the selector. By creating an index on 'owner' and 'color', CouchDB can satisfy the query much more efficiently. These indexes should be defined in a .json file and placed in the META-INF/statedb/couchdb/indexes directory within the chaincode package, ensuring they are automatically deployed with the chaincode.

  2. Question 2

    Intermediate

    Level DB is the default database for Hyperledger Fabric and is particularly appropriate when ledger states comprise what type of data?

    Answer and explanation

    Correct answer: D

  3. Question 3

    Intermediate

    When creating a network according to an organization's structure and also bootstrap a channel what are the following artifacts we would need to generate?

    Answer and explanation

    Correct answer: C

  4. Question 4

    Intermediate

    Which Hyperledger tool would you select to invoke, deploy or query blocks, transactions and associated data, network information (name, status, list of nodes), chain codes and transaction families, as well as other relevant information stored in the ledger?

    Answer and explanation

    Correct answer: D

Register free for 5 more questions

Or unlock all 103 CBDH questions with explanations, timed mode and flashcards.