Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Blockchain Exam CBDE Topic 2 Question 72 Discussion

Actual exam question for Blockchain's CBDE exam
Question #: 72
Topic #: 2
[All CBDE Questions]

When you do external calls to other smart contracts:

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

Martha
29 days ago
I'm just going to write 'All of the above' and hope the grader is in a good mood. Navigating these Solidity patterns is like trying to solve a Rubik's Cube blindfolded.
upvoted 0 times
Kimberlie
15 days ago
User 1: A) you should follow the checks-effects-interactions pattern and avoid state changes after the call.
upvoted 0 times
...
...
Tasia
1 months ago
Wait, so we have to do a dance before, during, and after the external call? This exam is turning into the Hokey Pokey!
upvoted 0 times
Ahmed
2 days ago
Haha, it does sound like a dance routine, but it's just a way to ensure the safety and efficiency of your smart contract interactions.
upvoted 0 times
...
Elmer
4 days ago
C) you should follow the checks-effects-interactions pattern, which is only necessary when you do calls to contracts where a direct contract call is not possible.
upvoted 0 times
...
Martha
5 days ago
A) you should follow the checks-effects-interactions pattern and avoid state changes after the call.
upvoted 0 times
...
Callie
5 days ago
A) you should follow the checks-effects-interactions pattern and avoid state changes after the call.
upvoted 0 times
...
...
Roslyn
2 months ago
I think Option C is the right answer. The checks-effects-interactions pattern is only necessary when you can't directly call the other contract. Otherwise, it's overkill.
upvoted 0 times
Gladys
11 days ago
B) you should follow the effects-checks-interactions pattern and avoid state changes before the call.
upvoted 0 times
...
Luann
14 days ago
C) you should follow the checks-effects-interactions pattern, which is only necessary when you do calls to contracts where a direct contract call is not possible.
upvoted 0 times
...
Claudia
1 months ago
A) you should follow the checks-effects-interactions pattern and avoid state changes after the call.
upvoted 0 times
...
...
Clorinda
2 months ago
I'm not sure about that 'effects-checks-interactions' thing. Isn't it better to just avoid state changes altogether when making external calls?
upvoted 0 times
Tarra
5 days ago
A) you should follow the checks-effects-interactions pattern and avoid state changes after the call.
upvoted 0 times
...
Camellia
23 days ago
A) you should follow the checks-effects-interactions pattern and avoid state changes after the call.
upvoted 0 times
...
Lashawn
1 months ago
C) you should follow the checks-effects-interactions pattern, which is only necessary when you do calls to contracts where a direct contract call is not possible.
upvoted 0 times
...
Derrick
1 months ago
B) you should follow the effects-checks-interactions pattern and avoid state changes before the call.
upvoted 0 times
...
Margart
2 months ago
A) you should follow the checks-effects-interactions pattern and avoid state changes after the call.
upvoted 0 times
...
...
Mitzie
2 months ago
But what about option C? It says it's necessary for calls to contracts where a direct contract call is not possible.
upvoted 0 times
...
Renea
2 months ago
I agree with Polly, it helps to avoid state changes after the call.
upvoted 0 times
...
Percy
2 months ago
Option A is definitely the way to go. Following the checks-effects-interactions pattern is crucial to avoid reentrancy vulnerabilities.
upvoted 0 times
Kaitlyn
24 days ago
User 2: I agree, following the checks-effects-interactions pattern is crucial to avoid reentrancy vulnerabilities.
upvoted 0 times
...
Devon
1 months ago
User 1: Option A is definitely the way to go.
upvoted 0 times
...
...
Polly
2 months ago
I think when doing external calls, we should follow the checks-effects-interactions pattern.
upvoted 0 times
...
Veta
2 months ago
I think both options have their merits, but I prefer following the checks-effects-interactions pattern, especially when direct contract calls are not possible.
upvoted 0 times
...
Dick
2 months ago
I disagree, I believe we should follow the effects-checks-interactions pattern and avoid state changes before the call.
upvoted 0 times
...
Tayna
2 months ago
I think when doing external calls, we should follow the checks-effects-interactions pattern and avoid state changes after the call.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77