ExamGecko
Question list
Search
Search

Related questions











Question 12 - CBDH discussion

Report
Export

Chaincode in Hyperledger Fabric is a decentralized transactional program which is running on the validating nodes. Chaincode implements the Chaincode interface in particular, Init and Invoke functions.

Which two statements about Chaincode is correct? (Select two.)

A.
Init is called during instantiate transaction after the chaincode container has been established for the first time, allowing the chaincode to initialize its internal data
Answers
A.
Init is called during instantiate transaction after the chaincode container has been established for the first time, allowing the chaincode to initialize its internal data
B.
Invoke is called to update or query the ledger after a proposal transaction. Update state variables are committed to the ledger before the transaction is committed
Answers
B.
Invoke is called to update or query the ledger after a proposal transaction. Update state variables are committed to the ledger before the transaction is committed
C.
Init is called during Instantiate transaction after the chaincode ledger has been established for the first time, allowing the chaincode to initialize its internal dataD. Invoke is called to update or query the ledger in a proposal transaction. Updated state variables are not committed to the ledger until the transaction is committed.
Answers
C.
Init is called during Instantiate transaction after the chaincode ledger has been established for the first time, allowing the chaincode to initialize its internal dataD. Invoke is called to update or query the ledger in a proposal transaction. Updated state variables are not committed to the ledger until the transaction is committed.
Suggested answer: A

Explanation:

Chaincode is a decentralized transactional program, running on the validating nodes. As with every chaincode, it implements the Chaincode interface in particular, Init and Invoke functions. Init is called during Instantiate transaction after the chaincode container has been established for the first time, allowing the chaincode to initialize its internal data. Invoke is called to update or query the ledger in a proposal transaction. Updated state variables are not committed to the ledger until the transaction is committed.

asked 16/09/2024
George Kavvalakis
28 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first