Certified Blockchain Solutions Architect (CBSA) — Question 6
When writing and considering push and pull in a smart contract that involves "user" funds would it be better to ____________________?
Answer options
- A. Withdraw funds rather than pull funds to them automatically
- B. Withdraw funds rather than push funds to them automatically
- C. Pull funds rather than push funds to them automatically
- D. Push funds rather than pull funds to them automatically
Correct answer: B
Explanation
The correct answer is B because withdrawing funds gives users control over their assets and prevents potential loss from automatic transactions. Options A and C suggest pulling funds, which could be less secure, while option D implies pushing funds, which is often considered riskier as it may lead to unintentional losses.