Categories
All Categories
DMV
ServSafe
OSHA
NCLEX
HESI
TEAS
ATI Nursing
CNA & Nurse Aide
NREMT & EMS
ACLS
BLS
CPR
Quizzes
Study Guides
Flashcards
Packages
0
Log In
Register
Categories
All Categories
DMV
ServSafe
OSHA
NCLEX
HESI
TEAS
Quizzes
Study Guides
Flashcards
Packages
Contact
Cart
0
Log In
Register
CHFD Practice Questions - Certified Hyperledger Fabric Developer (CHFD) Exam
Helpsheet
×
Helpsheet
×
Report question problem
×
I think the answer is wrong
There are multiple correct answers
There is a typing error
Image or comprehension text is not display properly
Something else(please specify below)
Any more information
Question Number 5
A chaincode method needs to allow only callers that hold the attribute `role=auditor` on their x509 certificate. Which approach is correct in Fabric v2.2 Node.js chaincode?
Read `process.env.AUDITOR_USER` and compare to a hard-coded list
Use `ctx.clientIdentity.assertAttributeValue('role', 'auditor')` to enforce ABAC
Pass the password in the transaction args and check it in chaincode
Disable endorsement and trust the application code
✔ Correct Answer:
Use `ctx.clientIdentity.assertAttributeValue('role', 'auditor')` to enforce ABAC
Count Down:
Related questions :