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
Why might a dApp frontend be hosted on IPFS rather than a traditional web server?
Answer: To reduce reliance on a single centralized host
Hosting the frontend on IPFS resists takedowns and aligns with the decentralization goal.
What problem does an oracle solve in dApp architecture?
Answer: Bringing off-chain data on-chain
Oracles like Chainlink feed external data (prices, weather) to contracts that cannot access it natively.
In a dApp, what is a common reason to use an off-chain relayer with meta-transactions?
Answer: To let users transact without paying gas directly
Relayers submit users' signed meta-transactions and pay gas, enabling gasless UX.
Which describes the typical data flow when a user clicks 'Submit' in a dApp?
Answer: Frontend builds tx, wallet signs, node broadcasts
The frontend constructs a transaction, the wallet signs it, and a node propagates it to the network.
What is the main architectural risk of relying on a single RPC provider like Infura?
Answer: Reintroduces a centralized dependency/outage point
A single hosted RPC endpoint becomes a centralization and availability bottleneck for the dApp.
Why do dApps often emit events from smart contracts?
Answer: To provide a cheap, indexable log of state changes
Events write to logs that are cheaper than storage and let off-chain indexers track activity.
What is a proxy contract pattern primarily used for in dApp architecture?
Answer: Upgradeable contract logic
Proxy patterns separate storage from logic so the implementation can be upgraded while preserving state and address.