Limited-Time Offer: Enjoy 50% Savings! - Ends In 0d 00h 00m 00s Coupon code: 50OFF
Welcome to QA4Exam

Free practice questions with explanations

Linux Foundation HFCP Dumps 2026 with Free Practice Questions and Answers

Practise for the Hyperledger Fabric Certified Practitioner exam with 13 original questions, each with an answer and explanation.

Topics: Clients Applicaiton, Hyperledger Fabric Networks, Smart Contracts and Fundamentals Of Blockchain.

Includes single answer, multiple answers, order list, drag and drop and dropdown. A new question is added every 15 days.

HFCP Practice Set Details

Exam Code
HFCP
Questions On This Page
13
Exam Topics Covered
4 of 4
Question Types
5
Newest Question
New Question
Every 15 days
Full Question Set
60
Certification
Hyperledger Fabric Practitioner
13 questions

Linux Foundation HFCP Exam Questions and Answers by Topic

Fundamentals of Blockchain

16% of the exam

2 practice questions on this topicWhat this topic covers

Question 1

Added

Single Answer

A regional food consortium wants a shared record of custody transfers among companies that do not want one participant to control the database. Regulators require identifiable organizations, controlled access to transactions, and a way to encode business rules that all authorized participants apply consistently. Public cryptocurrency mining is prohibited, and the consortium needs known membership rather than anonymous participation. Which architecture choice best fits these constraints?

Correct answer: D

Fabric's permissioned model uses known organizational identities and supports policy-controlled participation, while chaincode defines shared transaction rules. Channels and private data collections can address different confidentiality needs without requiring public mining. A public permissionless network conflicts with the known-membership and mining constraints. A centrally authoritative database leaves one company in control of ordering. Separate ledgers with manual reconciliation do not provide a consistently shared transaction history.

Question 2

Added

Drag And Drop

A manufacturer is documenting how Fabric divides responsibility among network components. Match each responsibility to the component that performs it.

Drag each item onto its matching target. On a phone: tap an item, then tap a target.

Maintain a local ledger copy and execute transaction simulation
Establish the ordered sequence of transactions in blocks
Define business operations that read or update ledger state
Authenticate organization identities and support membership-based policy evaluation
Membership Service Provider
Chaincode
Ordering service
Peer
Correct answer:
  • Maintain a local ledger copy and execute transaction simulation → Peer
  • Establish the ordered sequence of transactions in blocks → Ordering service
  • Authenticate organization identities and support membership-based policy evaluation → Membership Service Provider
  • Define business operations that read or update ledger state → Chaincode

Peers maintain ledger data and simulate proposals, while the ordering service establishes transaction order and packages transactions into blocks for distribution. An MSP supplies the rules and identity material used to recognize members; it does not execute business operations. Chaincode implements those operations but does not order transactions or serve as the network's identity authority.

Hyperledger Fabric Networks

36% of the exam

4 practice questions on this topicWhat this topic covers

Question 3

Added

Single Answer

An application team reports that a transaction received a successful endorsement response, but a query immediately afterward shows that the asset was not updated. The block containing the transaction is present on the peer, and the transaction's validation code is MVCC_READ_CONFLICT. No peer or orderer outage occurred. The application currently retries only when the Gateway call returns an error. What is the best corrective action?

Correct answer: C

Endorsement is simulation, not a guarantee that the transaction will pass validation. MVCC_READ_CONFLICT means the read version changed before commit, so the transaction appears in the block but does not update world state. The client should detect invalid commit status and retry the business operation with a fresh proposal and current state. Changing ordering batch timing does not repair the already-invalid read set. Fabric does not apply invalid transactions to world state.

Question 4

Added

Order List

A new organization is joining an existing channel. Its certificate authority and peer are ready, and the current channel configuration requires an existing organization's approval for the configuration update. Arrange the channel-joining steps in the order they must be performed.

Drag the steps into the correct order, or use the arrows.

  1. Join the peer to the channel using the fetched channel block
  2. Fetch the channel's latest block using the new organization's peer identity
  3. Add the new organization MSP and required channel configuration to the channel configuration update
  4. Collect the required existing-organization signatures and submit the configuration update
Correct answer:
  1. Add the new organization MSP and required channel configuration to the channel configuration update
  2. Collect the required existing-organization signatures and submit the configuration update
  3. Fetch the channel's latest block using the new organization's peer identity
  4. Join the peer to the channel using the fetched channel block

A joining organization must first be represented in the channel configuration, and the update must be approved according to the existing modification policy. Only after that configuration is committed can the new peer use its identity to fetch the channel block and join. Fetching or joining before the channel recognizes the organization cannot establish valid channel membership. The peer's readiness alone does not change channel configuration.

Question 5

Added

Dropdown

An operator is creating a channel through the Fabric Gateway client model and needs a signed channel configuration update submitted through the channel participation API. Complete the CLI command with the correct command and flags.

Choose the correct value for each blank.

peer channel --channelID supply --file supply.tx --outputBlock supply.block
Correct answer:

peer channel create --channelID supply --file supply.tx --outputBlock supply.block

The channel participation API uses the peer channel create command with a channel ID and a channel configuration transaction file; the output block is generated as part of channel creation. Join attaches a peer to an existing channel, update submits a configuration update, and fetch retrieves an existing block. Those commands do not create the channel from the supplied configuration.

Question 6

Added

Multiple Answers

A three-organization channel has peers in each organization and a Raft ordering service. The operations team is planning routine peer maintenance and wants to avoid losing ledger data or unnecessarily disrupting the channel. Which two actions are appropriate before and during a planned peer replacement? (Choose two.)

Correct answer: A, C

Backing up operational data and configuration supports recovery, while a replacement peer can join the channel using a current channel block and synchronize ledger history. Deleting channel configuration is unnecessary and would disrupt membership. Excluding an organization from endorsement policy is not a routine prerequisite for restarting a peer. An arbitrary block file is not a substitute for ensuring the peer has the correct channel membership and join material.

Smart Contracts

24% of the exam

3 practice questions on this topicWhat this topic covers

Question 7

Added

Single Answer

A chaincode operation transfers an asset from one owner to another. The current implementation reads the asset, changes its owner in memory, and writes the updated value, but it does not verify the caller's authorization until after the write call. The endorsement policy requires two organizations, and the client wants a transaction that is rejected when the caller is not permitted to transfer the asset. What is the best implementation change?

Correct answer: A

Chaincode should validate caller identity and business authorization before making ledger writes. Returning an error prevents a successful proposal response and therefore prevents the intended update from being endorsed and committed through the normal flow. Writing before checking authorization is unsafe design, even though failed simulations do not become valid ledger updates. Client-side checks can be bypassed, and a rich query is not an authorization policy.

Question 8

Added

Single Answer

A chaincode package has been installed on the required peers and approved by all organizations. One peer reports that the definition is committed, but another organization cannot invoke the contract because its peer has not joined the channel. The release plan requires the chaincode to be available consistently without changing the agreed sequence or weakening endorsement requirements. What should the team do next?

Correct answer: D

Chaincode lifecycle definition is committed at channel scope, but packages are installed on individual peers and peers must be channel members to participate in that channel. The missing peer must join and have the package available before it can endorse. Orderers sequence transactions and do not install chaincode. Recommitting a definition per peer misunderstands lifecycle scope, and an off-channel peer cannot satisfy channel endorsement simply by weakening a policy.

Question 9

Added

Single Answer

A consortium stores shipment metadata on a channel but must keep negotiated prices visible only to the buyer and seller. Other channel members must still agree to the transaction, and an auditor with authorized access must be able to retrieve the private value. The price should not be placed in every peer's world state. Which design best satisfies these requirements?

Correct answer: A

A private data collection lets authorized peers hold the private value while the channel ledger records its hash, supporting agreement and later verification without distributing the value to every peer. Collection membership and policy control which organizations can access and endorse private-data operations; an authorized auditor can be included appropriately. UI concealment does not protect public ledger data. Per-shipment channels add unnecessary operational overhead, while chaincode events are not a durable private-data storage mechanism.

Clients Applicaiton

24% of the exam

4 practice questions on this topicWhat this topic covers

Question 10

Added

Single Answer

A logistics application uses the Fabric Gateway client API to submit a shipment update. The team wants the application to send an endorsed transaction to the ordering service and wait until the transaction is committed, while avoiding manual peer discovery and endorsement orchestration in application code. The gateway peer is configured to use the channel's endorsement policies, and the client identity is already enrolled. Which application sequence best meets the requirement?

Correct answer: A

Creating a transaction and calling submit uses the Gateway workflow to obtain endorsements, submit the endorsed transaction for ordering, and wait for commit status. That status distinguishes a valid commit from an invalid transaction. Evaluating is a read-only simulation, so it does not submit a ledger update. Sending a proposal response directly to the ordering service bypasses the normal Gateway submission flow. The convenience submitTransaction call waits for commit, but a successful invocation alone must not be described as proof of valid commit without checking the commit result.

Question 11

Added

Multiple Answers

A consortium's client service connects through a peer running Fabric Gateway. The application is being moved to a restricted subnet, and the security team requires outbound connections only to the gateway peer, not to every peer that might endorse a transaction. The network has correctly configured discovery and endorsement policies. Which two design choices satisfy the connectivity requirement while retaining Gateway-managed transaction processing? (Choose two.)

Correct answer: D, E

Gateway moves endorsement coordination out of the client, so the client can connect to its chosen gateway peer while that peer must reach required endorsers and ordering infrastructure. Direct client connections to every endorser defeat the restricted-subnet goal. Disabling discovery does not make an unsigned proposal acceptable to the ordering service. Independently querying peers and assembling endorsements recreates coordination in the client and is not the Gateway model.

Question 12

Added

Single Answer

A client submits transactions through Fabric Gateway and needs to trigger an off-chain reconciliation job when a transaction becomes committed, including transactions that are later marked invalid by validation. The service must not rely on polling ledger height, and application restarts must be handled without silently losing its place in the event stream. Which approach is best?

Correct answer: B

Block events include committed blocks regardless of whether an individual transaction is valid, and persisting the processed block position lets a restarted service resume rather than depending on in-memory progress. Chaincode events from invalid transactions are not delivered as committed ledger events. A one-time status query cannot report future commits. Filtered block events can indicate transaction validation codes, but they do not justify assuming every transaction is valid.

Question 13

Added

Order List

A field device must sign a Fabric transaction proposal while disconnected from the network. A separate online service will later submit the signed proposal using the same enrolled client identity. Arrange the steps in the order needed for offline signing and later submission.

Drag the steps into the correct order, or use the arrows.

  1. Attach the signature and send the signed proposal to the online client service
  2. Submit the endorsed transaction and wait for its commit status
  3. Construct the transaction proposal with the intended channel, contract, and arguments
  4. Sign the proposal payload using the offline identity's private key
Correct answer:
  1. Construct the transaction proposal with the intended channel, contract, and arguments
  2. Sign the proposal payload using the offline identity's private key
  3. Attach the signature and send the signed proposal to the online client service
  4. Submit the endorsed transaction and wait for its commit status

The proposal must first define the transaction being requested, because its payload is what the private key signs. The signature is then attached to that proposal and can be transported to the online service. The online service can continue the Gateway flow, obtaining endorsements and submitting the transaction for ordering, then observe commit status. Signing before constructing the proposal would sign different or incomplete data, and submission cannot precede the signed request.

More Linux Foundation Practice Questions

Get the Full Linux Foundation HFCP Dumps as PDF and Practice Test

13 questions are free on this page and the full set has 60. It comes as a PDF and an online practice test, with 90 days of free updates.