CHFD Practice Questions - Certified Hyperledger Fabric Developer (CHFD) Exam

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?
✔ Correct Answer:
Use `ctx.clientIdentity.assertAttributeValue('role', 'auditor')` to enforce ABAC