Free HFCP sample questions
Real questions from the Hyperledger Fabric Certified Practitioner practice bank, with the correct answer and an explanation for each one. No junk, no filler.
Try them in the simulator Same questions, with study, timed and flashcard modes.
Showing 10 of 20 free sample questions.
A developer is writing a Go chaincode function to update an asset's state. To ensure data privacy, the asset's price must be passed to the chaincode function but NOT recorded in the transaction's read-write set on the public ledger. Which method should be used to access this private data within the chaincode?
A system administrator is joining a peer of a newly added organization to an existing channel. When the administrator requests the channel's genesis block from the ordering service (`peer channel fetch 0 ...`) so that the peer can join, the request is rejected and the ordering node's logs show 'access denied' policy-check failures for the request. The TLS connection to the ordering node is established successfully, and the organization's MSP ID is correct. What is a common cause of this issue?
A developer is building a client application using the Fabric Gateway SDK. The application needs to query the current world state to display information to a user but should not create a transaction that goes through the ordering service. Which Gateway method is most efficient for this purpose?
True or False: When using Private Data Collections (PDCs), the actual private data is sent to the ordering service and included in the block, but it is encrypted so only authorized peers can decrypt it.
During a chaincode upgrade using the new lifecycle, an administrator successfully packages and installs the new version. However, when trying to commit the new chaincode definition to the channel, the transaction fails. Which of the following are potential reasons for this commit failure? (Select TWO)
A supply chain network uses anchor peers to facilitate cross-organization communication. Org1 has two peers, peer0.org1 and peer1.org1. Initially, only peer0.org1 was defined as an anchor peer. The administrator now wants to add peer1.org1 as a second anchor peer for redundancy. Which tool and process should be used to perform this update on a running network?
A developer needs to implement a query in chaincode that finds all assets belonging to a specific owner. The assets are stored with keys like `ASSET_1`, `ASSET_2`, etc., and the owner is an attribute in the JSON value. To make this query efficient without scanning the entire state database, which feature should be used?
An event-listening service is designed to monitor a Hyperledger Fabric channel for specific chaincode events. The service crashes and is restarted. To avoid processing duplicate events or missing events that occurred during the downtime, what mechanism should the application implement?
A DevOps engineer is setting up monitoring for a production Hyperledger Fabric network using Prometheus. To get detailed metrics about transaction validation latency and chaincode execution time, which component's configuration must be updated to enable the operations service?
10 more free samples are waiting
Create a free account to unlock the whole HFCP sample bank, or get full access to all 204 practice questions in the simulator.