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 HFCP Exam - 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:

0/2000 characters
Lindsey
4 months ago
I agree with A, can't process what it doesn't recognize!
upvoted 0 times
...
Cassie
4 months ago
Wait, are you sure about that? I thought it would just error out.
upvoted 0 times
...
Erin
4 months ago
Definitely D, the unknownTransaction function should handle it!
upvoted 0 times
...
Helene
4 months ago
I think B makes more sense, it just gets ignored.
upvoted 0 times
...
Corinne
5 months ago
A is correct, the peer will reject it.
upvoted 0 times
...
Therese
5 months ago
I'm leaning towards the idea that the peer rejects the transaction, but I might be mixing it up with another topic we covered.
upvoted 0 times
...
Javier
5 months ago
I feel like I saw a question similar to this where an unknown function was called, but I can't recall the details.
upvoted 0 times
...
Crista
5 months ago
I remember something about transactions being ignored if they don't match, but that seems too simple.
upvoted 0 times
...
Carman
5 months ago
I think if there's no matching function, the transaction gets rejected, but I'm not entirely sure.
upvoted 0 times
...
Bok
5 months ago
I'm a little confused on this one. I know that if there's no matching function, the transaction can't be processed, but I'm not sure if that means it gets rejected or just ignored. I'll have to review the material again before deciding.
upvoted 0 times
...
Lavera
5 months ago
Okay, let me think this through step-by-step. If there's no matching function, the transaction can't be executed, so it seems like the most logical answer would be that it gets rejected. I'll go with option A.
upvoted 0 times
...
Teddy
5 months ago
Hmm, I'm not sure about this one. I'm thinking it might just get ignored, but I could be wrong. I'll have to think it through a bit more.
upvoted 0 times
...
Amber
6 months ago
I'm pretty sure the transaction will be rejected, so I'll go with option A.
upvoted 0 times
...
Erasmo
6 months ago
I'm a bit confused; I thought upgrade notifications were sometimes sent via email, but I guess that's more about alerts than actual logs.
upvoted 0 times
...
Gail
1 year 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 year ago
I wonder what other surprises the unknownTransaction function has.
upvoted 0 times
...
Kathrine
1 year ago
That would be cool if it ordered pizza automatically!
upvoted 0 times
...
Dortha
1 year ago
D is correct. The unknownTransaction function is called.
upvoted 0 times
...
...
Susana
1 year 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 year ago
I agree with Deangelo, because if there's no matching function, the transaction should be rejected.
upvoted 0 times
...
Theron
1 year ago
I'm going with C. It's like the default case in a switch statement - gotta catch 'em all!
upvoted 0 times
...
Isaac
2 years 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
1 year ago
D) The unknownTransaction function is called.
upvoted 0 times
...
Dyan
1 year ago
D) The unknownTransaction function is called.
upvoted 0 times
...
Lajuana
1 year ago
B) Nothing, the transaction is ignored.
upvoted 0 times
...
Gary
1 year ago
A) The peer will have rejected the transaction.
upvoted 0 times
...
Tayna
1 year ago
A) The peer will have rejected the transaction.
upvoted 0 times
...
...
Polly
2 years 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
1 year ago
I agree, it's better to go with option A to avoid any issues.
upvoted 0 times
...
Elouise
2 years ago
I think option A is correct. The peer will reject the transaction.
upvoted 0 times
...
...
Deangelo
2 years ago
I think the answer is A) The peer will have rejected the transaction.
upvoted 0 times
...

Save Cancel