BlackFriday 2024! 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 18 Discussion

Actual exam question for Linux Foundation's HFCP exam
Question #: 18
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:

Gail
26 days ago
D is the way to go. Although, I'm curious if the 'unknownTransaction' function has easter eggs. Maybe it orders pizza automatically?
upvoted 0 times
Dyan
20 hours ago
I wonder what other surprises the unknownTransaction function has.
upvoted 0 times
...
Kathrine
2 days ago
That would be cool if it ordered pizza automatically!
upvoted 0 times
...
Dortha
15 days ago
D is correct. The unknownTransaction function is called.
upvoted 0 times
...
...
Susana
30 days ago
I'm not sure, but I think it could also be D) The unknownTransaction function is called. It makes sense to handle unknown transactions that way.
upvoted 0 times
...
Kristofer
1 months ago
I agree with Deangelo, because if there's no matching function, the transaction should be rejected.
upvoted 0 times
...
Theron
1 months ago
I'm going with C. It's like the default case in a switch statement - gotta catch 'em all!
upvoted 0 times
...
Isaac
1 months ago
B is tempting, but I'd rather not have the transaction ignored. Imagine the chaos if that happened in production!
upvoted 0 times
Terina
18 days ago
D) The unknownTransaction function is called.
upvoted 0 times
...
Dyan
25 days ago
D) The unknownTransaction function is called.
upvoted 0 times
...
Lajuana
25 days ago
B) Nothing, the transaction is ignored.
upvoted 0 times
...
Gary
1 months ago
A) The peer will have rejected the transaction.
upvoted 0 times
...
Tayna
1 months ago
A) The peer will have rejected the transaction.
upvoted 0 times
...
...
Polly
2 months ago
Option D seems the most logical, but my gut says A. I really hope the 'unknownTransaction' function isn't filled with glitter bombs!
upvoted 0 times
Willodean
30 days ago
I agree, it's better to go with option A to avoid any issues.
upvoted 0 times
...
Elouise
2 months ago
I think option A is correct. The peer will reject the transaction.
upvoted 0 times
...
...
Deangelo
2 months ago
I think the answer is A) The peer will have rejected the transaction.
upvoted 0 times
...

Save Cancel