Cyber Monday 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
2 months 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
1 months ago
I wonder what other surprises the unknownTransaction function has.
upvoted 0 times
...
Kathrine
1 months ago
That would be cool if it ordered pizza automatically!
upvoted 0 times
...
Dortha
2 months ago
D is correct. The unknownTransaction function is called.
upvoted 0 times
...
...
Susana
2 months 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
2 months ago
I agree with Deangelo, because if there's no matching function, the transaction should be rejected.
upvoted 0 times
...
Theron
2 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
3 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
2 months ago
D) The unknownTransaction function is called.
upvoted 0 times
...
Dyan
2 months ago
D) The unknownTransaction function is called.
upvoted 0 times
...
Lajuana
2 months ago
B) Nothing, the transaction is ignored.
upvoted 0 times
...
Gary
2 months ago
A) The peer will have rejected the transaction.
upvoted 0 times
...
Tayna
2 months ago
A) The peer will have rejected the transaction.
upvoted 0 times
...
...
Polly
3 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
2 months ago
I agree, it's better to go with option A to avoid any issues.
upvoted 0 times
...
Elouise
3 months ago
I think option A is correct. The peer will reject the transaction.
upvoted 0 times
...
...
Deangelo
3 months ago
I think the answer is A) The peer will have rejected the transaction.
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