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
Which layer in a dApp is responsible for state finality and ordering of transactions?
Answer: The consensus/blockchain layer
Consensus among nodes determines the canonical order and finality of transactions.
When designing a dApp, why is minimizing on-chain logic often recommended?
Answer: Every operation costs gas and is permanent
On-chain computation is costly and immutable, so non-critical logic is pushed off-chain.
What does 'composability' mean in dApp architecture?
Answer: Contracts can call and build on other contracts
Composability lets dApps integrate other on-chain protocols like money legos.
Which approach helps a dApp scale read-heavy queries without overloading nodes?
Answer: Caching via an indexed subgraph or backend
Indexed/cached layers serve reads efficiently instead of repeatedly hitting the chain.
What is the purpose of a Layer 2 in a dApp's architecture?
Answer: Scale transactions while inheriting L1 security
Layer 2 networks process transactions off the main chain and settle proofs to L1 for security.
In a dApp, why should a frontend never hold or transmit a user's private key?
Answer: It would compromise the user's entire account
Private keys must stay in the wallet; exposing them lets attackers fully control funds.
What does deterministic execution guarantee in smart contract architecture?
Answer: Every node computes the same result
Deterministic execution ensures all nodes reach identical state, which is required for consensus.