





















































































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 of the following best defines Continuous Integration (CI)? A) Deploying code to production automatically after every commit B) Merging code changes into a shared repository frequently and running automated builds and tests C) Manual testing of code before it is merged D) Only building code on a nightly schedule Answer: B Explanation: CI is the practice of frequently integrating code into a shared repository and automatically building and testing each change to detect errors early. Question 2. In the context of DevOps, what distinguishes Continuous Delivery (CD) from Continuous Deployment? A) Continuous Delivery includes manual approval before production, while Continuous Deployment does not B) Continuous Deployment is slower than Continuous Delivery C) Continuous Delivery only applies to front-end code D) Continuous Deployment requires a separate repository Answer: A Explanation: Continuous Delivery automates the release pipeline up to a production-ready artifact, but may require a manual gate; Continuous Deployment pushes every change automatically to production. Question 3. Which phase of the Software Development Lifecycle (SDLC) benefits most directly from CI? A) Requirements gathering B) Design C) Implementation and testing D) Maintenance
Answer: C Explanation: CI integrates code during implementation and runs automated tests, providing immediate feedback on build quality. Question 4. Which of the following is NOT a typical benefit of adopting a CI/CD pipeline? A) Faster feedback on code changes B) Reduced integration problems C) Increased manual testing effort D) Improved release predictability Answer: C Explanation: CI/CD reduces the need for extensive manual testing by automating build and test steps. Question 5. In CloudBees CI architecture, what is the primary role of the Operations Center? A) Execute pipeline steps on behalf of agents B) Store source code repositories C) Provide centralized management, governance, and view of all Controllers D) Host only freestyle jobs Answer: C Explanation: The Operations Center is the central hub for managing multiple Jenkins Controllers, handling security, licensing, and configuration. Question 6. Which component in CloudBees CI is responsible for running builds for a specific team or project? A) Operations Center B) Managed Controller C) Shared Library
A) System Information B) Job Configuration C) Build History D) Plugin Manager Answer: C Explanation: The Build History panel displays recent builds, their results, and timestamps for a selected job. Question 10. Which statement correctly differentiates a Freestyle project from a Pipeline project? A) Freestyle projects support only scripted pipelines B) Pipeline projects can define the entire build process as code, while Freestyle projects use UI configuration C) Freestyle projects are required for Kubernetes agents D) Pipeline projects cannot use credentials Answer: B Explanation: Pipeline projects use a Jenkinsfile to define build steps as code, whereas Freestyle jobs are configured through the UI. Question 11. What is the primary purpose of a backup in CloudBees CI? A) To speed up build execution B) To enable restoration of Controllers and their configurations after failure or disaster C) To increase the number of agents available D) To automatically upgrade plugins Answer: B Explanation: Backups capture the state of Controllers, jobs, and system configuration so they can be restored in case of data loss or corruption.
Question 12. Which feature provides High Availability (HA) for a CloudBees CI Controller? A) Single-node deployment with SSD storage B) Running multiple Controller instances behind a load balancer with shared storage C) Using only freestyle jobs D) Disabling all plugins Answer: B Explanation: HA is achieved by deploying multiple Controllers that share configuration and data, allowing failover without downtime. Question 13. The CloudBees Assurance Program (CAP) primarily aims to: A) Provide free plugins to all users B) Offer vetted, supported plugins with security and compatibility guarantees C) Replace Jenkins core with a proprietary engine D) Automate credential rotation Answer: B Explanation: CAP curates plugins, providing assurance of quality, security, and support from CloudBees. Question 14. Which CAP tier includes 24/7 premium support and guaranteed response times for critical security issues? A) Community Tier B) Standard Tier C) Enterprise Tier D) Open Source Tier Answer: C
Answer: B Explanation: A Configuration Bundle groups CasC YAML files and supporting assets, allowing consistent configuration across many Controllers. Question 18. Which method is NOT a recommended way to apply CasC at scale? A) Storing YAML on a Git repository and pulling it during startup B) Manually editing the UI for each Controller C) Using the Operations Center to distribute bundles D) Automating deployment via infrastructure-as-code tools Answer: B Explanation: Manual UI edits defeat the purpose of CasC, which aims for automated, repeatable configuration. Question 19. CloudBees Support for system maintenance typically includes: A. Unlimited free plugin upgrades for all versions B. Quarterly security patches and advisory notifications C. Direct access to source code of Jenkins core D. Automatic migration to a new cloud provider Answer: B Explanation: Support provides regular security patches, advisories, and guidance for maintaining a secure CI environment. Question 20. Where can administrators find information about newly disclosed Jenkins security vulnerabilities? A) Jenkins Wiki only B) CloudBees Security Advisory page and the Jenkins Security Mailing List
C) The controller’s job console output D) The plugin manager’s “Updates” tab Answer: B Explanation: Official security advisories are published on the CloudBees Security Advisory site and the Jenkins mailing list. Question 21. In a Declarative Jenkinsfile, which top-level block defines the agent that will run the pipeline? A) stages B) environment C) agent D) post Answer: C Explanation: The agent directive specifies where the pipeline or a particular stage will execute. Question 22. Which of the following is a valid Declarative Pipeline syntax for defining parallel stages? A) parallel { stage('A') { steps { echo 'A' } } stage('B') { steps { echo 'B' } } } B) stage('Parallel') { parallel { stage('A') { steps { echo 'A' } } stage('B') { steps { echo 'B' } } } } C) parallel { steps { echo 'A' } steps { echo 'B' } } D) stage('A') { parallel { steps { echo 'A' } } } Answer: B Explanation: Declarative syntax uses stage containing a parallel block that nests additional stages. Question 23. What is the purpose of the post section in a Declarative Jenkinsfile?
Question 26. Which of the following best describes a static agent? A) An agent that is provisioned on demand and destroyed after the build B) An agent that is always online, manually managed, and does not change per build C) An agent that runs inside a Docker container for each stage D) An agent that automatically scales based on queue length Answer: B Explanation: Static agents are long-living machines that remain online and are manually maintained. Question 27. What is a key advantage of using ephemeral (dynamic) agents such as Kubernetes agents? A) They reduce the need for license management B) They provide consistent, isolated environments and scale automatically with workload demand C) They eliminate the need for a source code repository D) They guarantee zero build failures Answer: B Explanation: Ephemeral agents are created per build, ensuring clean environments and allowing the cluster to scale resources up or down. Question 28. How can a single agent be shared across multiple Controllers in CloudBees CI? A) By installing the same plugins on each Controller B) By configuring the agent as a “Shared Agent” in the Operations Center and assigning it to Controllers C) By using the same credentials on all Controllers D) By duplicating the agent’s node definition manually Answer: B
Explanation: CloudBees CI allows defining shared agents at the Operations Center level, making them available to any Controller that needs them. Question 29. What is the primary goal of a Pipeline Template in CloudBees CI? A) To store credentials securely B) To provide a reusable, version-controlled pipeline skeleton that multiple teams can instantiate C) To replace the Jenkinsfile entirely D) To enforce a single build agent type Answer: B Explanation: Templates enable teams to create pipelines from a predefined structure, ensuring consistency and best practices. Question 30. Where are Pipeline Templates stored for reuse across Controllers? A) Inside each job’s configuration B) In a shared Catalog managed by the Operations Center C) In the Jenkins core directory D) In the user’s home folder Answer: B Explanation: Templates are organized in Catalogs, which are centrally managed and can be referenced by any Controller. Question 31. Which feature allows teams to encapsulate common Groovy code and steps for reuse across many pipelines? A) Credential Store B) Shared Libraries C) Plugin Manager D) Job DSL
C) Enforcing a single user’s exclusive access to all pipelines D) Providing read-only visibility of another team’s jobs Answer: C Explanation: Exclusive access contradicts collaboration; the platform encourages shared visibility and controlled permissions. Question 35. Implementing Single Sign-On (SSO) for CloudBees CI primarily reduces: A) The number of pipelines that can run concurrently B) The administrative overhead of managing separate user passwords and improves security through centralized authentication C) The need for agent nodes D) The size of the Jenkins home directory Answer: B Explanation: SSO delegates authentication to an external identity provider, simplifying user management and enhancing security. Question 36. Which protocol is commonly used to integrate CloudBees CI with an external SAML identity provider? A) FTP B) SSH C) SAML 2. D) HTTP Basic Answer: C Explanation: SAML 2.0 is the standard protocol for SSO integrations with providers like Okta, Azure AD, etc. Question 37. In CloudBees CI, Role-Based Access Control (RBAC) assigns permissions based on:
A) The IP address of the user only B) Roles, which are collections of permissions, that can be granted to users or groups C) The name of the job file D) The size of the build artifact Answer: B Explanation: RBAC uses roles containing specific permissions; users or groups are assigned these roles to control access. Question 38. Which of the following is an example of a permission that can be controlled via RBAC? A) Ability to change the background color of the UI B) Ability to create, configure, or delete jobs on a Controller C) Ability to view the Jenkins log file on the OS level D) Ability to edit the operating system kernel Answer: B Explanation: RBAC controls Jenkins-level actions such as job creation, configuration, and deletion. Question 39. How can an administrator propagate a new role definition to all Controllers from the Operations Center? A) Manually edit each Controller’s config.xml B) Use the “Global Roles” feature in the Operations Center, which synchronizes to managed Controllers C) Restart each Controller after editing the UI D) Install a special plugin on each node Answer: B Explanation: The Operations Center provides a global role management UI that distributes role definitions to all Controllers.
Answer: C Explanation: The “SSH Username with private key” type securely stores the private key and optional passphrase. Question 43. In Jenkins, what is the scope of a credential set to “System”? A) Visible to all users and jobs on the Controller, regardless of folder or pipeline B) Visible only to the user who created it C) Visible only to jobs in the same folder D) Not usable by any job Answer: A Explanation: System-scoped credentials are global to the Controller and can be accessed by any job that references them. Question 44. Which of the following is a recommended practice for rotating credentials in CloudBees CI? A) Store them in plain text within the Jenkinsfile B) Use the Credential Management UI to create new credentials and update pipelines to reference the new ID, then delete the old one C) Never change credentials once created D) Encode credentials with Base64 and store in environment variables Answer: B Explanation: Rotating credentials involves creating fresh entries, updating references, and removing old credentials to maintain security. Question 45. Which of the following statements about the Jenkins Health Advisor’s “Plugin Compatibility” check is true? A) It only checks plugins that are already installed on the master node B) It can suggest upgrading plugins that have known security vulnerabilities or incompatibilities with the current Jenkins core version
C) It automatically updates all plugins without user consent D) It disables all plugins that are not from the CAP Answer: B Explanation: The Health Advisor scans installed plugins, flags security issues, and recommends compatible versions. Question 46. When using CasC, which file name is conventionally used for the main configuration YAML? A) config.xml B) jenkins.yaml C) settings.yml D) casc.yaml Answer: B Explanation: jenkins.yaml is the default filename that the Jenkins CasC plugin looks for on startup. Question 47. Which command can be used to validate a CasC YAML file before applying it? A) java -jar jenkins.war --validate-casc /path/to/jenkins.yaml B) jenkins-cli validate-casc C) curl -X POST /casc/validate D) docker run -v $PWD:/var/jenkins_home jenkins/jenkins:lts-jdk11 cat /var/jenkins_home/jenkins.yaml Answer: A Explanation: The Jenkins war provides a --validate-casc flag to check the syntax and semantics of a CasC file. Question 48. Which of the following best describes a “Managed Controller” lifecycle in CloudBees CI?
Question 51. In a Jenkinsfile, which step is used to archive artifacts produced by a build? A) publish B) archiveArtifacts C) store D) saveArtifacts Answer: B Explanation: The archiveArtifacts step records specified files as build artifacts for later retrieval. Question 52. Which of the following is a recommended way to limit which agents a pipeline may run on? A) Use the agent any directive B) Use agent { label 'linux && docker' } to require a node with both labels C) Omit the agent directive altogether D) Set the job’s description to the node name Answer: B Explanation: Specifying a label expression restricts the pipeline to agents matching those labels. Question 53. What is the effect of enabling “Quiet Period” for a Jenkins job? A) The job will run immediately after being triggered B) Jenkins will wait a configurable number of seconds before starting the build, allowing subsequent triggers to be coalesced C) The job will be paused indefinitely D) The job will be disabled
Answer: B Explanation: Quiet period delays execution to group rapid triggers into a single build. Question 54. Which of the following is a benefit of using a Pipeline Catalog in CloudBees CI? A) It automatically generates unit tests for every job B) It provides a central location for approved pipeline templates, ensuring consistency across teams C) It eliminates the need for a Jenkinsfile D) It stores credentials in plain text for easy access Answer: B Explanation: Catalogs hold vetted templates that teams can instantiate, promoting standardization. Question 55. In CloudBees CI, what is the purpose of a “Team Controller”? A) To host shared libraries for the entire organization B) To provide a dedicated Jenkins instance for a specific team, isolated from other teams but still governed by the Operations Center C) To act as a backup for the Operations Center D) To replace the need for an Operations Center Answer: B Explanation: Team Controllers give teams their own workspace while still allowing central governance. Question 56. Which of the following statements about “Shared Agents” is true? A) They can only be used by the Operations Center, not by Controllers B) They are defined once in the Operations Center and can be assigned to multiple Controllers, reducing duplication of agent configuration