Limited-Time Offer: Enjoy 50% Savings! Coupon code: 50OFF Use it at checkout
Skip to content

Free Linux Foundation Hyperledger Fabric Certified Practitioner HFCP Exam Questions

Last updated: · 14 practice questions with answers and explanations

Page: 1 / 6 Total 60 questions

Want more questions? Get Premium Access.

Question 1

New Single answer

Topic: Fundamentals of Blockchain

Skill tested: Distinguishes permissioned blockchain consensus from transaction endorsement and validation.

A consortium is designing a ledger for organizations whose participants are known and admitted through governance. It needs deterministic transaction ordering and must prevent any single application client from deciding which transactions enter the ledger. Some stakeholders suggest that every peer should independently order transactions after endorsing them. Which design principle best addresses the consortium's requirement while fitting Hyperledger Fabric's model?

Correct Answer: B. Use the ordering service to establish a common transaction order; peers then validate transactions and commit blocks.
Explanation:

Fabric separates transaction execution and endorsement from ordering and peer validation. The ordering service establishes a consistent sequence of submitted transactions and delivers blocks; peers independently validate transactions against endorsement and other validity rules before committing them. Endorsement alone neither orders transactions nor guarantees that they will be valid at commit time. Having peers create competing blocks or letting clients dictate order would undermine the shared ordering model, while removing ordering because endorsements exist confuses distinct responsibilities.

Question 2

New Single answer

Topic: Fundamentals of Blockchain

Skill tested: Evaluates when a shared distributed ledger provides business value over a centralized database.

A group of independent freight companies wants a common record of custody transfers. Each company operates its own systems, disputes arise over which record is authoritative, and no member is willing to let a competitor control a central database. The participants are identifiable and can agree on governance and transaction rules. They do not require public, anonymous participation. Which rationale most strongly supports using a permissioned blockchain rather than simply assigning one participant's database as the system of record?

Correct Answer: D. A ledger replicated among governed members can provide shared, tamper-evident history without giving one member unilateral control.
Explanation:

The deciding business issue is the absence of a trusted neutral owner, not a need for anonymous access. A permissioned ledger can let known organizations share a replicated, ordered history under agreed membership and transaction policies. It does not inherently make all data confidential, eliminate governance, or verify the truth of off-ledger facts. A conventional database could be suitable where a trusted operator is acceptable, but that conflicts with the stated requirement that no participant control the authoritative record.

Question 3

New Multiple answers

Topic: Fundamentals of Blockchain

Skill tested: Separates smart-contract execution, endorsement, ordering, validation, and ledger commitment.

A financial consortium is reviewing its transaction lifecycle after an application began treating successful proposal evaluation as proof that a transfer was committed. The consortium requires an explanation that reflects Fabric's distinct transaction stages and avoids overstating what an endorsement means. Which THREE statements accurately describe the lifecycle? Select THREE.

Correct Answer: B. A client submits a proposal to endorsing peers, which simulate the transaction and return endorsements with proposal responses.; C. The client assembles the endorsed transaction and submits it to the ordering service for ordering into a block.; E. Peers validate ordered transactions, including required endorsement and read-set checks, before committing blocks.
Explanation:

Endorsing peers simulate a proposal and sign the resulting proposal response; simulation does not immediately update world state. The client submits an appropriately endorsed transaction to the ordering service, which orders transactions into blocks rather than executing chaincode or performing peer validity checks. Peers then validate transactions, including endorsement-policy satisfaction and whether read versions remain valid, and commit the block. Consequently, endorsement is not proof of commitment, and an invalid transaction in a committed block does not have its simulated writes applied to world state.

Question 4

New Single answer

Topic: Hyperledger Fabric Networks

Skill tested: Determines how channel membership and peer participation scope ledger data.

A manufacturer runs a Fabric network with several trading partners. One channel is shared by all partners, but a new supplier contract must be visible only to the manufacturer and one supplier. The other members must continue using the existing channel and its ledger without receiving the contract's confidential value. The organizations already have valid network identities. Which approach best meets the visibility requirement without creating a separate network?

Correct Answer: B. Create a private data collection on the channel with membership and dissemination settings limited to the manufacturer and supplier.
Explanation:

A private data collection lets eligible organizations exchange and store private data while the channel ledger records its hash for the collection's transactions. Collection membership and dissemination configuration should restrict the value to the manufacturer and supplier; other channel members can still participate in the channel without receiving that private value. Ordinary channel state is visible to channel peers, and chaincode access checks alone do not prevent ledger data from being present at those peers. Transient data is input to a transaction, not a durable private store, and a channel containing every organization would not provide the requested privacy.

Question 5

New Multiple answers

Topic: Hyperledger Fabric Networks

Skill tested: Applies MSP identity trust and channel configuration when admitting an organization.

A newly onboarded organization has received its enrollment credentials and can connect to a peer endpoint, but it cannot participate in a channel or have its peers treated as channel members. The network administrator confirms that the organization should join the existing channel and that other members must continue to approve configuration changes under the current governance rules. Which TWO actions are required to establish the organization's channel membership? Select TWO.

Correct Answer: A. Add the organization's MSP definition to the channel configuration through a configuration update that satisfies the existing modification policy.; B. Have the joining organization submit a channel configuration update containing its MSP and obtain the required existing-member approvals.
Explanation:

A peer's local MSP configuration supports identity processing at that peer, but channel membership is governed by the channel configuration. The organization's MSP definition must be incorporated through a channel configuration update, and that update must satisfy the channel's existing modification policy. The joining organization can propose the update, but it cannot unilaterally make itself a member. Enrollment credentials are not chaincode endorsement policies, and an ordering identity does not automatically add an organization's peers to channels.

Question 6

New Single answer

Topic: Hyperledger Fabric Networks

Skill tested: Diagnoses the distinction between ordering service availability and peer ledger participation.

A retailer reports that a transaction submission returned successfully, but its application's local asset query still shows the old value. The orderer is reachable, and the transaction appears in a block delivered to one peer. The retailer's application queries a different peer, which is several blocks behind and has intermittent connectivity to the ordering service. No evidence yet shows whether the transaction passed peer validation. What is the most appropriate first diagnostic action?

Correct Answer: C. Check the queried peer's block height and commit processing, then inspect the transaction's validation code in the relevant block.
Explanation:

A successful submission or orderer response does not establish that a peer committed a valid state update. The querying peer may be behind, disconnected, or still processing blocks; alternatively, the transaction may be marked invalid during peer validation. Checking block height and commit progress, then examining the transaction validation code, distinguishes these causes. Repeated submissions can create duplicate or conflicting transactions, and orderers sequence transactions but do not maintain the peer world state or determine chaincode endorsement success.

Question 7

New Single answer

Topic: Hyperledger Fabric Networks

Skill tested: Selects the appropriate peer channel operation for joining an organization's peer.

A network operator has created a channel and verified that its configuration contains the intended organizations. A new peer belonging to one of those organizations is running and its local MSP is configured, but the peer has not yet participated in the channel. The operator wants the peer to receive the channel ledger and begin processing channel blocks. Which operation should be performed?

Correct Answer: B. Have the peer join the channel using the channel's genesis or most recently acquired channel block.
Explanation:

A peer joins a channel using a channel block, after which it can receive subsequent blocks and maintain that channel's ledger. The organization's membership and policies belong in channel configuration; peer hostnames are not how a peer is added to a channel configuration. Installing a chaincode package makes chaincode available to a peer but does not make the peer a channel participant. Creating another channel would establish a separate ledger and would not transfer or preserve the existing channel's history.

Question 8

New Multiple answers

Topic: Hyperledger Fabric Networks

Skill tested: Distinguishes peer ledger components and the functions of ordering nodes.

A platform team is separating storage and service responsibilities in its Fabric operational design. It needs to explain where current key-value state is maintained, where the immutable transaction history resides, and which components establish the shared sequence of transactions. Which TWO statements are accurate? Select TWO.

Correct Answer: B. The blockchain records the ordered block history, while the world state provides a current-state view that can be rebuilt from that history.; C. A peer maintains a channel ledger that includes the blockchain and a world state representing the latest values.
Explanation:

Peers maintain ledgers for their channels, including the block history and a world-state database containing the latest values. The block history is the ordered record; world state is a query-efficient current view and can be reconstructed from ledger history. Ordering nodes establish transaction order and package transactions into blocks, but they do not maintain peer world state, execute chaincode queries, or perform the peer-side validation of read sets. Endorsers simulate proposals rather than ordering blocks.

Question 9

New Single answer

Topic: Hyperledger Fabric Networks

Skill tested: Uses channel configuration update governance to modify network policies safely.

A consortium needs to change a channel's application policy so that a new organization can endorse a particular class of transactions. The existing policy requires approval from a defined set of current channel administrators. The proposed organization is already listed in the channel's MSP configuration, but no policy change has been made. Which action is the appropriate next step?

Correct Answer: B. Commit a channel configuration update for the policy change and obtain the signatures required by the applicable modification policy.
Explanation:

Channel policies are part of channel configuration, so changing them requires a configuration update approved under the channel's applicable modification policy. Having the organization's MSP already present establishes that its identity can be recognized, but it does not automatically change endorsement requirements. Local peer edits do not alter shared channel configuration, and a chaincode package cannot silently update channel policy. The new organization also cannot bypass the existing governance rules by endorsing its own configuration request.

Question 10

New Single answer

Topic: Smart Contracts

Skill tested: Applies read-write set validation and MVCC behavior to concurrent chaincode updates.

Two warehouse applications concurrently invoke a chaincode function to reserve the last unit of the same product. Both proposals simulate while the inventory value is one and each receives the required endorsements. The transactions are then submitted close together and included in the same block. The business must not allow both reservations to succeed. What should the application and operations team expect from peer validation?

Correct Answer: D. At most one transaction should pass the read-version check; the conflicting transaction is marked invalid and its writes are not applied.
Explanation:

Fabric endorsers simulate proposals and produce read-write sets; they do not lock the key or apply the simulated write. During validation, a peer checks whether the versions read during simulation are still current. Once the first valid transaction changes the inventory key, the other transaction's stale read can fail MVCC validation, so its writes are not applied to world state even though it remains recorded in the block. The ordering service does not rerun chaincode, and endorsement does not guarantee transaction validity.

Question 11

New Multiple answers

Topic: Smart Contracts

Skill tested: Chooses ledger query methods compatible with reliable transaction simulation and validation.

A reporting service needs to list assets matching a rich predicate and display the results to an analyst. A separate chaincode transaction will update one asset selected by a key. The team wants to avoid relying on a query result set as a concurrency guarantee and must distinguish read-only reporting from state-changing execution. Which TWO implementation choices are appropriate? Select TWO.

Correct Answer: A. For the state-changing operation, read the selected asset by key and base the update on that specific ledger read.; D. Use a supported rich query for the reporting operation, which does not submit a ledger-changing transaction.
Explanation:

A rich query is suitable for a read-only reporting request when the client only needs results for display. For an update, reading the specific asset by key produces a read set that participates in transaction validation, helping detect stale state. Fabric does not provide general phantom-read protection for rich-query result sets in the same way as a range query, so a rich query should not be assumed to protect every matching document against concurrent changes. Direct database writes bypass ledger transaction processing, and query responses do not commit state.

Question 12

New Single answer

Topic: Smart Contracts

Skill tested: Configures private data collections to control dissemination and public hash visibility.

A healthcare consortium records referrals on a channel shared by six organizations. Only the referring clinic and receiving clinic may see the patient-specific referral details, while all channel members may verify that a private record existed and was not altered. The system must retain the private record in eligible peers' private state rather than relying on clients to keep the only copy. Which design best satisfies these requirements?

Correct Answer: A. Use a private data collection limited to the two clinics, with the private value distributed to eligible peers and its hash recorded on the channel ledger.
Explanation:

A private data collection controls which organizations receive and store the private value, while a hash on the channel ledger allows channel members to verify the data's integrity without seeing the value. This matches both the confidentiality and verifiability requirements. Ordinary channel state is available to channel peers regardless of whether applications hide it. Transient data is not itself retained as private ledger state, and a channel shared by all six organizations would expose the referral to too many members.

Question 13

New Multiple answers

Topic: Smart Contracts

Skill tested: Uses state-based endorsement to apply key-specific endorsement requirements.

An asset marketplace has a chaincode-level endorsement policy requiring endorsements from either of two member organizations. For regulated assets, each asset owner must additionally require endorsement by a designated auditor before that asset's state can be changed. The chaincode definition cannot be altered for the marketplace as a whole, and the auditor should not be required for ordinary assets. Which TWO design choices best meet the requirement? Select TWO.

Correct Answer: A. Use the key-level validation parameter so the regulated asset's updates are checked against its specific endorsement policy.; D. Set a state-based endorsement policy for each regulated asset that includes the designated auditor.
Explanation:

A state-based endorsement policy, also called a key-level validation parameter, can impose an endorsement requirement for a particular state key. Applying it to regulated assets allows their updates to require the designated auditor without changing the chaincode-level policy for every asset. A channel-wide policy would unnecessarily affect the whole channel. An application-side signature that is not part of validation does not enforce the rule, and transient input is not an ordering-service policy mechanism.

Question 14

New Single answer

Topic: Clients Applicaiton

Skill tested: Uses the Fabric Gateway transaction lifecycle and waits for commit status.

A retail application uses the Fabric Gateway client API to submit an order transaction. Its current code treats a successful submission call as proof that the order is committed, then immediately displays the new order state. During peak load, users sometimes see the old value and retry, creating duplicate business requests. The application must confirm the peer commit outcome before reporting success while retaining Gateway's transaction flow. What should the developers do?

Correct Answer: D. After submitting, wait for the transaction commit status and report success only when the peer reports a valid commit.
Explanation:

Gateway separates transaction evaluation and submission from the peer's eventual commit notification. The application should wait for the transaction status and verify that the transaction committed validly before showing success; this avoids confusing acceptance for ordering with successful state application. An evaluated proposal is simulation, and an ordering service does not provide world-state queries. Disabling validation would undermine ledger correctness rather than solve the application's acknowledgment problem.