Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Linux Foundation Exam HFCP Topic 4 Question 26 Discussion

Actual exam question for Linux Foundation's HFCP exam
Question #: 26
Topic #: 4
[All HFCP Questions]

What happens if the user submits a transaction with no matching function?

Show Suggested Answer Hide Answer
Suggested Answer: D

In Hyperledger Fabric, if a user submits a transaction with no matching function specified in the smart contract, the unknownTransaction function is invoked by default. This function serves as a catch-all method that can be used to handle cases where the transaction type is not recognized, providing a mechanism to manage or log these occurrences effectively .


Contribute your Thoughts:

Sunny
12 days ago
Hold up, what if the user submits a transaction with no matching function and it's a Saturday night? Surely that calls for a celebratory 'unknownTransaction' function, right? Option D all the way!
upvoted 0 times
...
Winfred
13 days ago
Definitely Option B. Ignoring the transaction is the only sensible choice here. Anything else would just be a mess waiting to happen.
upvoted 0 times
Cristina
16 hours ago
I agree, option B is the safest bet.
upvoted 0 times
...
...
Harris
15 days ago
Option C is just asking for chaos. Calling the first transaction function when there's no match? That's a surefire way to break everything.
upvoted 0 times
...
Miesha
1 months ago
I'm going with Option D. The 'unknownTransaction' function sounds like it's designed to handle these kinds of situations. Seems like the most logical choice to me.
upvoted 0 times
Ashleigh
10 days ago
I agree, it's always good to have a fallback option for handling unexpected scenarios.
upvoted 0 times
...
Marilynn
11 days ago
I think Option D is the correct choice too. It makes sense to have a function specifically for unknown transactions.
upvoted 0 times
...
...
Markus
1 months ago
Hmm, I see your point. But I still think D) makes more sense because it handles unknown transactions.
upvoted 0 times
...
Lashawna
1 months ago
Option B is the correct answer. Why would the peer even process a transaction with no matching function? That's just asking for trouble.
upvoted 0 times
Salome
12 days ago
Option B is the correct answer. Why would the peer even process a transaction with no matching function? That's just asking for trouble.
upvoted 0 times
...
Sue
21 days ago
B) Nothing, the transaction is ignored.
upvoted 0 times
...
Slyvia
1 months ago
A) The peer will have rejected the transaction.
upvoted 0 times
...
...
Ashanti
2 months ago
I disagree, I believe the correct answer is A) The peer will have rejected the transaction.
upvoted 0 times
...
Markus
2 months ago
I think the answer is D) The unknownTransaction function is called.
upvoted 0 times
...

Save Cancel