



















































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




















































































Question 1. Which component in the Blockchain Automation Framework (BAF) is primarily responsible for secret management such as private keys and certificates? A) Helm B) Ambassador C) HashiCorp Vault D) Ansible Answer: C Explanation: HashiCorp Vault stores and manages sensitive data like private keys and certificates, providing secure secret handling for BAF deployments. Question 2. In BAF’s “Configuration‑as‑Code” philosophy, which file acts as the single source of truth for network topology, organizations, and node definitions? A) site.yaml B) inventory.ini C) network.yaml D) values.yaml Answer: C Explanation: The network.yaml file defines the entire network layout and is the authoritative source for BAF deployments. Question 3. Which of the following DLT platforms is NOT directly supported by BAF out of the box? A) Hyperledger Fabric B) Hyperledger Besu C) Hyperledger Indy D) Ethereum Classic
Answer: D Explanation: BAF supports Fabric, Besu, Indy, and Corda, but not Ethereum Classic. Question 4. When initializing a new BAF‑managed Hyperledger Fabric network, which role is typically executed first? A) create_channel B) install_chaincode C) bootstrap_orderer D) join_peer Answer: C Explanation: The bootstrap_orderer role sets up the ordering service, which must exist before peers can join or channels can be created. Question 5. Which Kubernetes resource does BAF use to expose Fabric peer services outside the cluster when using Ambassador? A) Service of type LoadBalancer B) Ingress resource C) ConfigMap D) PersistentVolumeClaim Answer: B Explanation: Ambassador operates via an Ingress resource, routing external traffic to internal services. Question 6. In the BAF automation stack, Helm is primarily used for: A) Orchestrating multi‑step playbooks B) Packaging and deploying containerized applications
Question 9. When configuring persistent storage for Fabric peers on AWS, which Kubernetes storage class is commonly referenced? A) gp2‑sc B) azurefile‑sc C) standard‑sc D) nfs‑sc Answer: A Explanation: The gp2‑sc storage class maps to AWS EBS gp2 volumes, suitable for peer ledger storage. Question 10. Which Ansible variable controls the Docker image tag for the Fabric peer container in a BAF deployment? A) fabric_peer_image_tag B) peer_image_version C) docker_tag_peer D) image_tag_fabric_peer Answer: A Explanation: The variable fabric_peer_image_tag is defined in the role defaults to specify the peer container tag. Question 11. In a multi‑cloud BAF deployment, what is the primary purpose of configuring VPC peering between clusters? A) To share IAM roles across clouds B) To enable direct pod‑to‑pod network traffic across clusters C) To synchronize Helm chart repositories D) To replicate Vault secrets automatically
Answer: B Explanation: VPC peering creates a network bridge allowing pods in different cloud VPCs to communicate directly. Question 12. Which tool is used by BAF contributors to perform unit testing of Ansible roles before submitting a pull request? A) Molecule B) Testinfra C) Inspec D) Terratest Answer: A Explanation: Molecule provides a framework for testing Ansible roles in isolation. Question 13. When deploying a Hyperledger Indy network with BAF, which component replaces the Fabric ordering service? A) Indy Ledger B) Besu Consensus C) Corda Notary D) Fabric Orderer Answer: A Explanation: Indy uses its own distributed ledger architecture and does not require a separate ordering service. Question 14. Which of the following Helm chart values would you modify to increase the CPU limit for a Fabric peer container? A) resources.requests.cpu
Question 17. Which command would you use to view the logs of a specific Fabric peer pod in a BAF‑managed Kubernetes cluster? A) helm logs peer‑ 0 B) kubectl logs <pod‑name> - n
Question 20. In a BAF deployment, the inventory.ini file is primarily used to: A) Define Helm chart values B) List host groups and connection details for Ansible C) Store secret keys for Vault D) Configure Kubernetes network policies Answer: B Explanation: inventory.ini tells Ansible which hosts to target and how to connect to them. Question 21. Which Kubernetes object does BAF use to enforce network policies between Fabric orderer and peer pods? A) ServiceAccount B) NetworkPolicy C) ConfigMap D) PersistentVolume Answer: B Explanation: NetworkPolicy objects restrict traffic flow between pods based on labels and ports. Question 22. When customizing a BAF Helm chart for a Corda network, which template file would you edit to change the JVM memory settings? A) deployment.yaml B) values.yaml C) configmap.yaml D) statefulset.yaml Answer: D
C) replicaCount.orderer D) orderer.instanceCount Answer: A Explanation: The orderer.replicaCount key specifies how many orderer pods to run. Question 26. When contributing a new Ansible role to the BAF repository, which CI/CD platform runs automated linting and Molecule tests on each pull request? A) CircleCI B) Travis CI C) GitHub Actions D) Jenkins Answer: C Explanation: BAF uses GitHub Actions workflows to validate contributions. Question 27. Which of the following is NOT a typical step in the BAF chaincode lifecycle automation? A) Package the chaincode source into a tar.gz B) Install the chaincode on each peer C) Generate a new TLS certificate for the chaincode D) Approve the chaincode definition for each organization Answer: C Explanation: Chaincode does not require its own TLS certificate; TLS is handled at the peer/orderer level. Question 28. In a hybrid BAF deployment spanning on‑premise and cloud clusters, which Kubernetes feature enables pods to use the same ServiceAccount across clusters?
A) Federated ServiceAccounts B) OIDC token projection C) Cluster‑wide RBAC D) External Secrets Operator Answer: B Explanation: OIDC token projection allows pods to obtain tokens that can be validated by multiple clusters, enabling cross‑cluster identity. Question 29. Which BAF component automates the creation of Fabric channel genesis block? A) channel_artifact role B) genesis_block role C) bootstrap_orderer role D) create_channel role Answer: B Explanation: The genesis_block role generates the channel configuration transaction used to create the genesis block. Question 30. What is the default namespace used by BAF when deploying Fabric components if no namespace is specified? A) baf‑fabric B) hyperledger C) default D) fabric‑net Answer: C
D) getambassador.io/host Answer: C Explanation: The getambassador.io/tls-secret annotation points to the TLS secret used for termination. Question 34. Which Ansible module does BAF use to interact with Kubernetes resources during deployment? A) k8s B) kubectl C) helm D) docker_container Answer: A Explanation: The k8s module allows Ansible to create, update, and delete Kubernetes objects. Question 35. In a BAF‑managed Besu network, which consensus mechanism can be selected via Helm values? A) Raft B) IBFT 2. C) Solo D) Kafka Answer: B Explanation: Besu supports IBFT 2.0 as a proof‑of‑authority consensus option configurable via Helm. Question 36. Which file should be edited to add a new storage class for Azure Disk in a BAF Azure deployment?
A) values.yaml under storageClasses B) azure‑storage‑class.yaml in the Helm chart templates C) inventory.ini under [azure] D) network.yaml under storage Answer: B Explanation: The Helm chart template azure‑storage‑class.yaml defines Azure Disk storage classes. Question 37. When running BAF on a local Minikube cluster, which environment variable must be set to point Helm to the correct Kubernetes context? A) KUBECONFIG B) HELM_HOME C) KUBE_CONTEXT D) MINIKUBE_IN_USE Answer: A Explanation: KUBECONFIG tells Helm (and kubectl) which cluster configuration to use. Question 38. Which of the following best describes the role of the fabric_orderer Ansible role in BAF? A) Deploys the ordering service containers and configures TLS certificates B) Generates chaincode endorsement policies C) Creates channel configuration transactions D) Manages peer ledger snapshots Answer: A Explanation: The fabric_orderer role provisions orderer pods and handles their security material.
Explanation: Jinja2 templates allow dynamic generation of core.yaml based on variables. Question 42. Which BAF feature enables automatic regeneration of TLS certificates when they approach expiration? A) Vault auto‑renewal policy B) Helm post‑upgrade hook C) Ansible cron job role D) Kubernetes CertificateSigningRequest controller Answer: A Explanation: Vault can be configured with a lease duration and auto‑renewal, ensuring certificates stay valid. Question 43. In a BAF deployment, which of the following is the correct way to reference a secret stored in Vault from a Kubernetes pod? A) Using a ConfigMap that contains the secret value B) Mounting a Vault Agent sidecar that injects the secret as a file C) Embedding the secret directly in the pod spec D) Storing the secret in a Docker image environment variable Answer: B Explanation: A Vault Agent sidecar can fetch secrets and expose them to the main container securely. Question 44. When adding a new organization to a Fabric network, which channel operation must be performed to ensure the new org can see existing channel configurations? A) Update the channel configuration block with the new org MSP and submit an update transaction
B) Delete and recreate the channel with the new org included C) Only install the chaincode on the new org’s peers D) Restart all orderer nodes Answer: A Explanation: The channel config must be updated to add the new org’s MSP, then the update transaction is committed. Question 45. Which of the following is NOT a valid storage backend for Kubernetes PVCs used by BAF on GCP? A) pd‑ssd B) pd‑standard C) nfs‑gcp D) local‑path Answer: D Explanation: Local‑path is a node‑local storage class, not a GCP persistent disk backend. Question 46. In BAF, what does the ansible.cfg file primarily control? A) Helm chart versioning B) Ansible connection settings, retries, and inventory paths C) Kubernetes RBAC policies D) Vault secret engine configuration Answer: B Explanation: ansible.cfg defines defaults for connections, retries, and other Ansible behaviours. Question 47. Which of the following Helm chart values would you adjust to enable sidecar injection of a monitoring agent into Fabric peer pods?
Question 50. When customizing the BAF Helm chart for a larger Fabric network, which parameter would you increase to allow more concurrent Fabric SDK connections? A) fabric_sdk.maxConcurrentCalls B) peer.maxConcurrentEndorsements C) orderer.maxConcurrentStreams D) kubelet.maxPods Answer: A Explanation: fabric_sdk.maxConcurrentCalls controls the SDK’s concurrency limits. Question 51. Which of the following is a required step before committing a new BAF role to the upstream repository? A) Running helm lint on all charts B) Executing ansible-lint on the role files C) Updating the Dockerfile for the CI image D) Adding a new Kubernetes CRD definition Answer: B Explanation: ansible-lint ensures role syntax and best practices before merging. Question 52. In BAF, the fabric_channel role is responsible for: A) Generating genesis block for the system channel only B) Creating, joining, and updating application channels across organizations C) Deploying the chaincode lifecycle manager D) Configuring TLS certificates for orderers Answer: B
Explanation: fabric_channel handles full channel lifecycle operations. Question 53. Which Kubernetes label is commonly applied by BAF to identify pods belonging to a specific Fabric organization? A) org=<org_name> B) fabric-org=<org_name> C) hyperledger.org=<org_name> D) bhf.org=<org_name> Answer: B Explanation: BAF uses the fabric-org label to tag resources per organization. Question 54. When using BAF with Azure AKS, which Azure resource must be created to allow the cluster to pull Docker images from Azure Container Registry (ACR)? A) ACR Pull Role Assignment on the AKS Managed Identity B) A virtual network peering between AKS and ACR C) A storage account for image caching D) An Azure Firewall rule Answer: A Explanation: Assigning the ACR Pull role to the AKS managed identity grants image pull permissions. Question 55. Which of the following is the correct way to pass a custom value file to Helm when deploying BAF components? A) helm install - f custom-values.yaml