Hyperledger Fabric Transaction Flow (Interview Q&A & Notes)

hyperledger fabric transaction flow

This article represents concepts in relation to, how does a transaction flow in Hyperledger Fabric Blockchain network, in form of notes and interview questions and answers. Those appearing for Hyperledger Fabric interview would find the questions and notes very useful for quick brush-up.

Hyperledger Fabric is a platform for distributed ledger solutions. The following represents key participants in Hyperledger Fabric Blockchain network who are involved in the transaction flow right from the initiation of transaction proposal to committing a transaction into the distributed ledger.

  • Application: Gets involved in following capacity:
    • Sends the transaction proposal to endorsing peers
    • Receives the transaction results from endorsing peers
    • Broadcasts the transaction message to ordering service
  • Endorsing peers: Do some of the following:
    • Validates the transaction proposal
    • Invokes chaincode for processing transaction proposal
    • Sends back the transaction result to application
    • Commit the transaction block to blockchain; Writes the data to state database
  • Membership service provider: Do some of the following:
    • Verify the transaction proposal requests
    • Sign the transaction results
  • Ordering service: Do some of the following:
    • Creates the block of transaction for each channel
    • Send the block of transaction to all peer



Notes – Transaction Flow in Hyperledger Fabric Blockchain Network

  • Hyperledger Fabric supports transactions such as reading from the ledger and writing to ledger.
  • The transaction related to querying data from ledger are not submitted to ordering service
  • Transaction proposal is related to the invocation of chaincode for reading and writing data from/to the state database/ledger.
  • Membership service provider (MSP) is used to verify the transaction requests and sign the transaction results.
  • The transaction result of transaction proposal request consists of following:
    • Read set
    • Write set
    • Response value
  • No updates are made to the ledger at transaction proposal endorsement stage.
  • Transaction proposal responses can be verified at following stages:
    • Application verifies whether the proposal responses fulfill the endorsement policies
    • Endorsement policies are once again enforced during commit validation phase.
  • Transaction message sent to ordering service consists of the following information:
    • Transaction proposal
    • Transaction proposal responses sent by endorsing peers
  • Ordering service groups the transaction based on the channel they belong to.
  • Upon receiving the block of transactions from ordering service, peer nodes do the following before committing the transactions to the ledger
    • Ensure endorsement policy is fulfilled
    • Ensure that there have been no changes to ledger state for read-set variables
  • The following is done as part of committing the block to Blockchain:
    • Append the block of transactions to the channel’s blockchain
    • Persist the write-sets into world state database for each of the valid transactions.



Practice Test – Transaction Flow in Hyperledger Fabric Blockchain Network

Hyperledger Fabric supports which kind of transactions

Correct! Wrong!

Which of the following is required to sign the transaction outcome or results (endorsements)?

Correct! Wrong!

All kind of transactions (read from ledger or write to ledger) are submitted to ordering service

Correct! Wrong!

The chaincode is executed against which of the following?

Correct! Wrong!

The transaction result sent back by the endorsing peers during transaction initiation phase consists of which of the following data?

Correct! Wrong!

During transaction proposal endorsement stage, ledger is updated for audit purpose

Correct! Wrong!

Application must verify the endorsement policies for transaction proposal it received, or, else the transaction would get rejected

Correct! Wrong!

Endorsement policies are enforced on transactions during which of the following stages?

Correct! Wrong!

Which of the following is responsible for creating the blocks of transactions?

Correct! Wrong!

Transaction message sent to ordering service consists of which of the following information

Correct! Wrong!

Transaction message sent to ordering service consists of which of the following information

Correct! Wrong!

Ordering service creates block of transaction based on following?

Correct! Wrong!

The block of transactions are committed to ledger by which of the following

Correct! Wrong!

Which of the following is mandatorily done before committing the transactions into the ledger?

Correct! Wrong!

Hyperledger Fabric Transaction Flow Interview Q&A
You did extremely well!!
You did reasonably well!!
Better luck next time!!

Share your Results:

Other Practice Tests



References

Ajitesh Kumar
Follow me

Ajitesh Kumar

I have been recently working in the area of Data analytics including Data Science and Machine Learning / Deep Learning. I am also passionate about different technologies including programming languages such as Java/JEE, Javascript, Python, R, Julia, etc, and technologies such as Blockchain, mobile computing, cloud-native technologies, application security, cloud computing platforms, big data, etc. For latest updates and blogs, follow us on Twitter. I would love to connect with you on Linkedin. Check out my latest book titled as First Principles Thinking: Building winning products using first principles thinking. Check out my other blog, Revive-n-Thrive.com
Posted in BlockChain, Hyperledger, Interview questions. Tagged with , , , .

Leave a Reply

Your email address will not be published. Required fields are marked *