CBSA practice question 4 of 30
When writing and considering push and pull in a smart contract that involves "user" funds would it be better to ____________________?
Full set: 229 questionsCorrect Answer:
B. Withdraw funds rather than push funds to them automatically
Explanation
Withdraw funds rather than push funds to them automatically Favor pull over push for external calls as we've seen, external calls can fail for a number of reasons, including external errors. To minimize the damage caused by such failures, it is often better to isolate each external call into its own transaction that can be initiated by the recipient of the call. This is especially relevant for payments, where it is better to let users withdraw funds rather than push funds to them automatically. (This also reduces the chance of problems with the gas limit.)
Keep practicing
Take the free CBSA practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other CBSA practice questions
- Question 1Consider the following scenario: A large department store chain is being pressured by law…
- Question 2The Hyperledger Fabric business network is divided into three categories. What are the th…
- Question 3The fabric framework is implemented on ______programming language. What programming langu…
- Question 5Which of the following enterprise blockchains have a pluggable framework consensus algo? …
- Question 6Which of the following is considered the most popular public key encryption algorithm?
- Question 7Gas has multiple associated terms with it: Gas Prices, Gas Cost, Gas Limit, and Gas Fees.…
