Automation & Scripting Flashcards
7 cards from real CBDH practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.
Read the first 7 Automation & Scripting flashcards as text
Which tool and flag combination generates a channel genesis block from configtx.yaml in Fabric 2.3+ without a system channel?
Answer: configtxgen -profile -outputBlock -channelID
configtxgen with -outputBlock builds the channel genesis block that is then joined using osnadmin.
Which command joins an orderer to a channel using the Orderer admin API in a Fabric 2.4+ script?
Answer: osnadmin channel join --channelID --config-block --orderer-address
osnadmin channel join calls the orderer's admin endpoint with the channel config block.
When scripting peer CLI calls as a different organization, which environment variable sets the MSP ID the peer CLI presents?
Answer: CORE_PEER_LOCALMSPID
CORE_PEER_LOCALMSPID identifies the MSP of the identity used by the CLI.
What is the intended use of the cryptogen tool?
Answer: Generating static crypto material for development and testing only
cryptogen creates fixed certificates for dev/test, while production should use Fabric CA or an enterprise CA.
Which environment variable tells Fabric binaries where to find core.yaml, configtx.yaml or orderer.yaml?
Answer: FABRIC_CFG_PATH
FABRIC_CFG_PATH points the binaries at the directory holding their configuration files.
Which tool converts a channel config block between protobuf and JSON for scripted config updates?
Answer: configtxlator
configtxlator proto_decode and proto_encode translate configuration between binary and JSON forms.
A script needs to check which chaincode packages are installed on a peer and obtain the package ID. Which command does this?
Answer: peer lifecycle chaincode queryinstalled
queryinstalled lists installed packages with their package IDs and labels.
How this page was made: written with AI tools and published by Nathan Beja, founder of Practice Test Geeks, who is responsible for its content. Exam facts are checked against the official sources listed below. Not reviewed by a subject-matter expert. Editorial policy
Sources & references
Exam facts on this page (fees, format, dates, passing scores) are checked against these official sources; the date is our last check. Editorial policy
- blockchaintrainingalliance.com — Test delivery, passing score, score release, test dates, fees, exam format, time limit · verified Oct 2026