Exam Information
Free practice questions with explanations
Linux Foundation HFCP Practice Questions
Answer a question to see the correct answer and the explanation, or click Show answer. Newest questions first.
- Questions
- 15
- Answered
- 0
- Correct
- 0
- Score
- -
-
1 Question 1 Single choice Hyperledger Fabric Networks
A consortium runs a Fabric channel with three organisations, each operating two peers, and a Raft ordering service with five orderers spread across three data centres. A new regulator requires that no single organisation can unilaterally stop block delivery, and the consortium wants to keep the existing channel and its ledger history intact. The channel's ordering service must be extended to add two orderers hosted by a fourth organisation. Which action should the administrators take to meet these requirements with the least disruption?
Correct Answer: AExplanationConsenter set changes in Fabric are made through a channel configuration update that is signed according to the channel's modification policy, so the existing ledger and history remain on the same channel. Restarting orderers with local file edits does not change the channel's consenter set and will not be honoured by the other nodes. Recreating the ledger on a new channel discards the continuity the consortium wants, and a separate system channel does not move an existing application channel. The majority-signed config update is the approach that keeps the ledger intact while adding the new consenters.
-
2 Question 2 Single choice Clients Applicaiton
A retail company runs a Fabric network where a mobile client submits transactions through the peer gateway service. The security team requires that the private signing key for the client never leaves a locked-down signing device and that the client application must never have access to the key material. The developers want to keep the standard gateway API. Which approach best satisfies these requirements?
Correct Answer: CExplanationThe gateway-based offline signing pattern separates proposal construction from signing, so the private key stays on the signing device and only the digest is transmitted. A wallet file on the application server still exposes the key to that server and its operators. Having the gateway sign with a shared administrator certificate breaks identity attribution and violates least privilege. Embedding a key in a mobile bundle exposes it to anyone who extracts the app, so rotation does not mitigate the risk.
-
3 Question 3 Single choice Smart Contracts
A supply chain chaincode stores shipment records in the world state. A new requirement states that a shipment's status may be changed only by the carrier organisation that currently owns the shipment, while other channel members must still be able to read the record. The team wants to implement this without creating a separate channel or a private data collection. Which design best meets the requirement?
Correct Answer: CExplanationState-based endorsement policies allow an endorsement requirement to be attached to an individual key in the world state, so the shipment's owner organisation can be required to endorse changes to that key. A chaincode-level check alone can be bypassed if the chaincode endorsement policy is satisfied by other organisations, which fails the requirement. Moving the record into a private collection hides it from other members, contrary to the read requirement. Requiring every member is stricter than needed and does not restrict updates to the owner.
-
4 Question 4 Single choice Fundamentals of Blockchain
A logistics firm is evaluating whether to build its trading platform on a permissioned distributed ledger. The firm needs participants to be known and vetted, transaction finality with no forks, and the ability to run business logic that is executed and endorsed before ordering. The CTO asks which property of the proposed platform best distinguishes Fabric's consensus model from a public proof-of-work network. Which statement is correct?
Correct Answer: AExplanationFabric's execute-order-validate architecture endorses transactions on peers, orders them through a consensus service such as Raft, and produces blocks that are final, so the ledger does not fork. Probabilistic finality and longest-chain selection describe proof-of-work systems rather than Fabric. Requiring every peer in the network to validate in a global round is not how Fabric commits, since validation is performed per channel by committing peers.
-
5 Question 5 Single choice Clients Applicaiton
A Node.js client uses the Fabric gateway client library to submit transactions to a channel. Under load, some submissions return an error indicating that the endorsement policy was not satisfied, while the same transaction succeeds when submitted manually. The developer has enabled commit status checking. The chaincode uses a policy requiring endorsements from two organisations, and the gateway's discovery is enabled. Which change most directly addresses the root cause?
Correct Answer: CExplanationThe error means the proposal responses collected by the gateway did not cover the organisations required by the endorsement policy, which usually happens when discovery returns peers from only one organisation or when a peer is unavailable. Verifying discovery and peer connectivity for both organisations targets that cause. Increasing timeouts does not add the missing organisation's endorsements. Disabling discovery makes the problem worse by limiting which peers can endorse. Reducing concurrency does not change which organisations endorse a transaction.
-
6 Question 6 Single choice Hyperledger Fabric Networks
A network operator is preparing to take one peer offline for a planned hardware upgrade. The peer is the only anchor peer for its organisation on a channel that uses service discovery. The operations team wants to avoid any interruption to clients and must keep the channel configuration consistent throughout. Which action should be taken first?
Correct Answer: CExplanationAnchor peers are used for cross-organisation gossip discovery, so replacing the anchor role with another peer in the same organisation through a channel config update before shutting down preserves connectivity. Stopping the peer first leaves the organisation without a reachable anchor. Removing the MSP from the channel would disrupt the organisation's membership and is far more disruptive than needed. Restarting orderers does not alter anchor peer configuration.
-
7 Question 7 Multiple choice Smart Contracts
A healthcare consortium stores patient consent records in a private data collection that is shared only between two hospitals. A third organisation on the same channel must be able to verify that a consent record exists, but must not see its contents. The team also needs a policy that prevents a record from being purged before the regulatory retention period ends. Which TWO design decisions meet these requirements? (Choose two.)
Correct Answer: D, EExplanationPlacing the payload in the collection and publishing only its hash on the public channel state lets the third organisation verify existence without seeing contents, and blockToLive controls purge timing for private data, so setting it to cover the retention period prevents early purging. Granting the third organisation collection access exposes the data. A blockToLive of zero means the data is never purged, which is the opposite of retaining it with a defined lifecycle and misreads the setting. Endorsement policies govern writes, not read visibility, so they cannot restrict reads of world state.
-
8 Question 8 Order list Hyperledger Fabric Networks
A consortium is bootstrapping a new Fabric network for a trade finance pilot. Each organisation has generated its crypto material and the network must start with a channel that all organisations can join. Arrange the steps in the correct order.
Drag the steps into the correct order, or use the arrows.
- Have each organisation's peers join the channel using the channel's genesis block
- Install and approve the chaincode definition for each organisation on the channel
- Generate the genesis block for the system channel and start the ordering service nodes
- Create the application channel by submitting a channel creation transaction to the ordering service
Correct Answer:- Generate the genesis block for the system channel and start the ordering service nodes
- Create the application channel by submitting a channel creation transaction to the ordering service
- Have each organisation's peers join the channel using the channel's genesis block
- Install and approve the chaincode definition for each organisation on the channel
ExplanationThe ordering service must be running and the system channel's genesis block must exist before any application channel can be created through the orderers. Once the channel exists, peers join it using its genesis block, which gives them the ledger to synchronise. Chaincode lifecycle steps such as install and approve come last, because they require peers that have already joined the channel and an agreed definition.
-
9 Question 9 Drag and drop Clients Applicaiton
A client team is building a transaction flow for a token-transfer application that must notify downstream systems when a specific transaction commits and must resume from the correct position after a restart. Match each requirement to the Fabric capability that satisfies it.
Drag each item onto its matching target. On a phone: tap an item, then tap a target.
Resume event delivery from the last processed block after a client restartReceive notifications when a specific transaction is committed to a blockKeep the signing key outside the application server while still submitting transactionsAnchor peer gossip configurationBlock and transaction event listenerStored checkpoint of the block numberPrivate data collection purge policyOffline signing with the gatewayCorrect Answer:- Receive notifications when a specific transaction is committed to a block → Block and transaction event listener
- Resume event delivery from the last processed block after a client restart → Stored checkpoint of the block number
- Keep the signing key outside the application server while still submitting transactions → Offline signing with the gateway
ExplanationBlock and transaction event listeners report commit results to clients, and a stored checkpoint of the last block processed lets a client resume without missing or repeating events. Offline signing keeps the private key on a separate signing device while the gateway handles submission. Private data purge policy governs data retention on peers and anchor peer gossip handles cross-organisation discovery, so neither matches these requirements.
-
10 Question 10 Dropdown Hyperledger Fabric Networks
A channel operator needs to inspect the current channel configuration and then check that a new Raft orderer node has joined the cluster before the channel is used for production traffic. Select the correct value for each blank in the command sequence.
Choose the correct value for each blank.
peer channel fetch mychannel.block -c mychannel and then osnadmin channel list -o --ca-file ca.pem --client-cert client.pem --client-key client.keyCorrect Answer:peer channel fetch config mychannel.block -c mychannel and then osnadmin channel list -o orderer1.example.com:7053 --ca-file ca.pem --client-cert client.pem --client-key client.key
ExplanationFetching the config block retrieves the current channel configuration for inspection, and the osnadmin channel list command queries an ordering node's administration endpoint, which uses port 7053 by default for the orderer admin API. Newest and oldest fetch application blocks rather than configuration, and genesis retrieves the original configuration rather than the current one. A peer address is not an orderer admin endpoint, and the CA port does not serve channel administration.
-
11 Question 11 Dropdown Smart Contracts
A developer must set up a chaincode definition so that a new version of a chaincode is approved by a majority of organisations before it can be committed to the channel. Select the correct value for each blank in the lifecycle command pattern.
Choose the correct value for each blank.
peer lifecycle chaincode --channelID mychannel --name basic --version 2.0 --sequence 2 --signature-policy "OR('Org1MSP.peer','Org2MSP.peer')" and then peer lifecycle chaincode --channelID mychannel --name basic --version 2.0 --sequence 2Correct Answer:peer lifecycle chaincode approveformyorg --channelID mychannel --name basic --version 2.0 --sequence 2 --signature-policy "OR('Org1MSP.peer','Org2MSP.peer')" and then peer lifecycle chaincode commit --channelID mychannel --name basic --version 2.0 --sequence 2
ExplanationEach organisation runs approveformyorg to approve the chaincode definition, and once enough organisations approve under the channel's lifecycle policy, the definition is committed with the commit subcommand. Queryinstalled lists packages on a peer and package only creates the tarball, so neither completes the approval step. Install places the package on a peer rather than committing the definition, and getinstalledpackage retrieves a package rather than committing it.
-
12 Question 12 Single choice Fundamentals of Blockchain
A bank is comparing a distributed ledger proposal with its current shared database. The compliance team asks which property a distributed ledger provides that the shared database typically does not, given that all participants maintain replicated copies and the business needs tamper-evident history. Which answer best identifies that property?
Correct Answer: BExplanationA distributed ledger chains blocks by including the hash of the previous block, so tampering with a historic record breaks the chain and is detectable by every replica holder. A single administrator holding all history is the opposite of a distributed ledger. A shared encryption key does not provide tamper evidence and would not prevent participants from reading data they hold. Storing data in one location describes a centralised database, not a distributed one.
-
13 Question 13 Single choice Clients Applicaiton
A company runs a gateway-based application that has been moved from a development environment to a production channel. Operators report that event listeners stop receiving block events after a peer restart, and the application recovers only when the client process is restarted. The team wants a durable fix that avoids missing events during restarts. Which change is the BEST fix?
Correct Answer: DExplanationEvent listeners can lose their position when a connection drops, so the reliable pattern is to persist the last processed block number and resume from it, which avoids both missed and duplicate events. Slowing gossip retries does not address the client's lost subscription. Orderers do not replay full history to arbitrary listeners and are not the event source applications should rely on. Polling queries misses intermediate states and increases load without guaranteeing ordering of commits.
-
14 Question 14 Order list Smart Contracts
A team needs to upgrade a deployed chaincode from version 1.0 to 1.1 on a channel where three organisations must approve the change before it takes effect. The new package must be deployed without disrupting the running definition. Arrange the steps in the correct order.
Drag the steps into the correct order, or use the arrows.
- Check commit readiness to confirm the required organisations have approved the new definition
- Commit the chaincode definition to the channel using the agreed sequence number
- Package the new chaincode source with the new label and install it on each organisation's endorsing peers
- Each organisation approves the new chaincode definition with an incremented sequence number
Correct Answer:- Package the new chaincode source with the new label and install it on each organisation's endorsing peers
- Each organisation approves the new chaincode definition with an incremented sequence number
- Check commit readiness to confirm the required organisations have approved the new definition
- Commit the chaincode definition to the channel using the agreed sequence number
ExplanationThe new package must be packaged and installed on peers before any organisation can reference its package identifier in an approval. Each organisation then approves the definition with an incremented sequence number, checkcommitreadiness confirms the approvals satisfy the lifecycle policy, and only then is the definition committed. Committing before approvals are complete would fail, and the sequence number must increase for the upgrade to be accepted.
-
15 Question 15 Single choice Hyperledger Fabric Networks
A consortium plans to add a second organisation's certificate authority to its existing network. Members must be able to revoke compromised identities, and the operators want certificate revocation to take effect across all peers and orderers without restarting nodes. Which configuration change best achieves this?
Correct Answer: CExplanationIn Fabric, the MSP definition in the channel configuration can carry revocation lists, and updating it through a channel configuration update propagates the change to all nodes on the channel without a restart. Deleting local MSP folders bypasses the consensus-governed configuration and creates inconsistency. Restarting nodes does not reload revocation state from the CA. Removing and re-adding peers is disruptive and does not update the channel's revocation view.
These are 15 of the 60 questions in the full HFCP pack.
Get All 60 QuestionsGet all 60 questions & answers
Full access options for Linux Foundation HFCP
Self-study
PDF Version
- 60 actual exam questions
- Compatible with all devices
- Printable PDF format
- No download limits
- 90 days free updates
- 24/7 customer support
Best value
Bundle Pack
- Discounted PDF + online access
- 60 actual exam questions
- Both PDF and online practice test
- Free 90 days updates
- No download or practice limits
- 24/7 customer support
Exam simulation
Online Practice Test
- 60 actual exam questions
- Actual exam environment
- 90 days free updates
- Browser-based software
- 24/7 customer support
100% Money Back Guarantee
Your success comes first
At DumpsProvider, we give you a 100% money back guarantee on all of our exam dumps. For us, your success is the #1 priority and we are more than confident that our exam material will help you pass the HFCP Exam (Hyperledger Fabric Certified Practitioner) on your very first attempt.
In a rare case, if you fail your exam, we will refund your amount without asking a single question.