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

Free practice questions with explanations

Blockchain CBDE Dumps 2026 with Free Practice Questions and Answers

Practise for the BTA Certified Blockchain Developer - Ethereum exam with 11 original questions, each with an answer and explanation.

Topics: Objective 1: Implement web3.js, Objective 2: Write And Compile Solidity Smart Contracts, Objective 3: Create Secure Smart Contracts, Objective 4: Deploy Smart Contracts Both The Live And Test Ethereum Networks and 3 more.

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

CBDE Practice Set Details

Exam Code
CBDE
Questions On This Page
11
Exam Topics Covered
7 of 7
Question Types
5
Newest Question
New Question
Every 15 days
Full Question Set
102
Certification
Certified Blockchain Developer - Ethereum
11 questions

Blockchain CBDE Exam Questions and Answers by Topic

Objective 1: Implement web3.js

2 practice questions on this topic

Question 1

Added

Single Answer

A settlement dashboard uses web3.js 1.x and must submit a contract transaction from an operator's unlocked account on a locally managed Ethereum node. The transaction should be signed by that node, and the application must display the mined transaction receipt rather than treating submission as confirmation. Which implementation best meets these requirements?

Correct answer: C

Using send with from identifies the unlocked account whose node-managed key signs the transaction. In web3.js 1.x, send returns a PromiEvent that exposes transaction lifecycle events, including receipt after mining. call executes a read-only simulation and does not create a transaction or receipt. eth_sendRawTransaction expects an already signed transaction, not unsigned encoded method data. A transaction hash indicates that submission was accepted, not that a block included it.

Question 2

Added

Single Answer

A web application must read a contract's current configuration from a remote Ethereum endpoint. The operation must not consume transaction gas, alter chain state, or require an unlocked account. The team also needs a deterministic return value for display and accepts that the result reflects the selected block state rather than a pending state change. Which web3.js contract interaction is appropriate?

Correct answer: A

A contract method call performs an eth_call simulation against a selected state and returns decoded output without submitting a transaction or requiring a signer. A send submits a state-changing transaction and needs a sender and gas payment. estimateGas predicts execution gas requirements; it does not return the method's application result. sendSignedTransaction broadcasts a signed transaction and therefore does not meet the no-state-change or no-account requirement.

Objective 2: Write and Compile Solidity Smart Contracts

2 practice questions on this topic

Question 3

Added

Multiple Answers

A team maintains a Solidity 0.5.x contract that accepts an external token address at deployment and stores it for later transfers. The build must be reproducible, reject addresses that do not contain contract code, and avoid silently treating an unset interface as a valid token. The repository already uses the compiler's standard JSON input format and cannot upgrade the compiler during this release. Which two changes best satisfy the requirements? (Choose two.)

Correct answer: A, C

An interface-typed state variable gives calls the token's declared function signatures, while validating before assignment prevents accepting an address without deployed code. In Solidity 0.5.x, an extcodesize check is a conventional constructor-time contract-code validation for this purpose. An interface is not deployed by converting an address, and address payable provides no function-interface validation. Compiling with a different compiler violates the fixed-version constraint and can change language behavior and bytecode.

Question 4

Added

Single Answer

A Solidity 0.5.x library has a public function that accepts a storage reference to a struct and updates one of its fields. The calling contract must use the library without copying the struct into memory, and the build pipeline must produce deployable bytecode without a separately linked library address. Which declaration and call pattern meets these constraints?

Correct answer: A

An internal library function can accept a storage reference and is compiled into the calling contract, so this pattern avoids a separately deployed and linked library address while updating storage directly. A memory parameter would operate on a copy rather than the required storage reference. A public library function is an external library call and requires deployment and linking. calldata is for external function arguments and is not the required mutable storage reference.

Objective 4: Deploy Smart Contracts Both the Live and Test Ethereum Networks

2 practice questions on this topic

Question 5

Added

Order List

A release engineer has compiled a Solidity contract and must deploy it first to a public Ethereum test network, verify the deployed code, and then deploy the same reviewed artifact to mainnet. The team uses a web3.js deployment script and a hardware-protected mainnet key; it must not expose that key to the build server. Arrange the release steps in the order they must be performed.

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

  1. Obtain release approval for the verified artifact and deployment parameters.
  2. Sign and submit the mainnet deployment transaction using the protected key workflow.
  3. Verify the test deployment address and runtime bytecode against the intended artifact.
  4. Connect the deployment script to the selected test network and deploy the reviewed artifact.
Correct answer:
  1. Connect the deployment script to the selected test network and deploy the reviewed artifact.
  2. Verify the test deployment address and runtime bytecode against the intended artifact.
  3. Obtain release approval for the verified artifact and deployment parameters.
  4. Sign and submit the mainnet deployment transaction using the protected key workflow.

The test deployment must precede verification, since verification requires an address and resulting runtime code. Approval should be based on the verified artifact and explicit deployment parameters. The mainnet transaction is last and is signed through the protected key workflow, keeping the key off the build server. Deploying to mainnet before test verification risks releasing an unvalidated artifact, while approving before the test deployment omits evidence about the deployed result.

Question 6

Added

Single Answer

An operations team is preparing a contract deployment on a public test network. Its deployment script reports that the account has insufficient funds for the transaction, even though the account has an ample balance on a local Ganache chain. The team must preserve the existing deployment artifact and avoid sending funds from mainnet. Which action is the best next step?

Correct answer: C

Balances are network-specific, so a local Ganache balance does not fund an account on a public test network. The deployment account needs native test currency on the actual target network to pay transaction fees. Raising the gas limit increases the required fee and does not solve an insufficient balance. An ABI describes contract interfaces and has no effect on account funding or network balances. Mainnet funds are unnecessary for a test deployment.

Objective 7: Run an Ethereum Node on Development Machines

1 practice question on this topic

Question 7

Added

Drag And Drop

A developer workstation must support local contract compilation and deployment, repeatable testing with a disposable chain, and independent inspection of blocks received from the public Ethereum network. Match each operational requirement to the appropriate tool.

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

Run an isolated, resettable local blockchain for tests
Compile Solidity source into ABI and bytecode
Synchronize and inspect a public-network node using JSON-RPC
solc
Ganache
Geth
Correct answer:
  • Compile Solidity source into ABI and bytecode → solc
  • Run an isolated, resettable local blockchain for tests → Ganache
  • Synchronize and inspect a public-network node using JSON-RPC → Geth

solc compiles Solidity source and produces artifacts such as ABI and bytecode. Ganache provides a local Ethereum-compatible blockchain suited to repeatable development tests and can be reset between runs. Geth is an Ethereum execution client that can connect to and synchronize with a public network and expose JSON-RPC. Using Geth as the compiler, solc as a blockchain, or Ganache as a public-network synchronization client confuses distinct roles.

Objective 6: Unit Test Smart Contracts

1 practice question on this topic

Question 8

Added

Single Answer

A contract's withdrawal function should transfer exactly the caller's accrued credit and reduce that credit to zero. A Truffle test currently calls the function and then checks the balance of the test runner account, but other tests use the same account and make the assertion order-dependent. The test suite must remain deterministic and should verify both the accounting effect and the emitted event without relying on a production network. What is the best next change?

Correct answer: A

A dedicated account isolates the test from unrelated transactions, while a before-and-after balance comparison can account for the withdrawal and transaction gas. Checking the event arguments and remaining stored credit directly verifies both the observable event and contract accounting. Mainnet testing is unnecessary and nondeterministic for a unit test. A transaction hash proves submission, not the intended state transition. A fixed final balance remains sensitive to gas costs and shared-account activity.

Objective 5: Calculate Ethereum Gas Costs

1 practice question on this topic

Question 9

Added

Dropdown

A service estimates transaction fees for an Ethereum transaction using a fixed legacy gas price. The transaction consumes 84,000 gas, and the configured gas price is 22 gwei per gas. The finance report must show the maximum fee budget in ether, not the amount actually paid if execution uses less gas. Complete the calculation by selecting the correct values.

Choose the correct value for each blank.

Maximum fee budget = gas x gwei/gas = ether.
Correct answer:

Maximum fee budget = 84,000 gas x 22 gwei/gas = 0.001848 ether.

Multiplying the gas limit used for the estimate, 84,000, by 22 gwei per gas gives 1,848,000 gwei. Since 1 ether equals 1,000,000,000 gwei, that budget is 0.001848 ether. The calculation is a maximum fee budget based on the stated gas amount and price; actual charged gas can be lower if execution consumes less. The other numerical selections either reverse the quantities or misconvert gwei to ether.

Objective 3: Create Secure Smart Contracts

2 practice questions on this topic

Question 10

Added

Single Answer

A crowdsale contract lets an administrator refund a contributor by sending Ether to the contributor's address. Contributors can be contracts whose fallback functions may execute arbitrary code. The administrator must be able to continue processing refunds even if one recipient refuses Ether, and the accounting must remain correct if a recipient reenters the crowdsale. Which design is best?

Correct answer: D

A pull-payment design isolates each recipient's failure and avoids making arbitrary external calls while iterating over contributors. Clearing the caller's credit before the external call follows checks-effects-interactions and prevents a reentrant withdrawal from spending the same credit twice. A transfer-based push loop can still be blocked by a recipient failure and by gas growth. Calling recipients before clearing balances permits reentrancy. Ignoring send's false result can mark an unpaid refund as complete.

Question 11

Added

Multiple Answers

A vault contract allows an owner to change the address that receives emergency withdrawals. A review finds that the setter is externally callable and that the withdrawal function forwards Ether to the configured recipient. The contract is deployed once, and the team cannot add an upgrade mechanism. Before deployment, which two changes most directly reduce the identified authorization and reentrancy risks? (Choose two.)

Correct answer: A, E

Owner authorization prevents arbitrary callers from redirecting vault withdrawals, and rejecting the zero address avoids configuring a recipient that cannot usefully receive funds. A pull-payment withdrawal with state updated before the external call limits reentrancy and isolates recipient behavior. Requiring a prior withdrawal does not authorize the setter. tx.origin is not a safe authorization substitute and breaks contract-wallet use. Updating configuration after an external call leaves the call exposed to reentrancy.

More Practice Questions

Get the Full Blockchain CBDE Dumps as PDF and Practice Test

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