โ† All Blockchain Technology Flashcard Decks

Decentralized Application (dApp) Architecture Flashcards

7 cards from real Blockchain Technology practice questions. Tap to flip, then mark Knew It or Still Learning โ€” missed cards come back until you master them.

Read the first 7 Decentralized Application (dApp) Architecture flashcards as text
  1. In a typical dApp stack, what role does the smart contract layer primarily serve?

    Answer: Backend business logic and state on-chain

    Smart contracts act as the on-chain backend, holding state and enforcing business logic deterministically.

  2. Which library is most commonly used by a dApp frontend to interact with an EVM blockchain?

    Answer: ethers.js

    ethers.js (and web3.js) provide JavaScript APIs to read contracts and send transactions.

  3. Why are decentralized storage systems like IPFS used in dApps instead of storing files on-chain?

    Answer: On-chain storage is expensive and limited

    Storing large files on-chain costs enormous gas, so dApps store data off-chain and keep only the hash on-chain.

  4. What does a wallet like MetaMask provide to a dApp architecture?

    Answer: Key management and transaction signing

    Wallets manage the user's private keys and sign transactions without exposing the keys to the dApp.

  5. Which component lets a dApp efficiently query historical and aggregated on-chain data?

    Answer: An indexer like The Graph

    Indexing protocols like The Graph parse events into queryable subgraphs since blockchains are poor at complex queries.

  6. What is the purpose of an ABI in dApp architecture?

    Answer: Defines how to encode/decode contract calls

    The Application Binary Interface describes contract functions and types so clients can encode calls and decode results.

  7. A 'trustless' dApp means users must trust which of the following?

    Answer: The deployed contract code and chain consensus

    Trustlessness comes from verifiable on-chain code and consensus rather than a trusted intermediary.