




























































































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 statement best describes the primary goal of Continuous Integration (CI)? A) Deploying code to production automatically after every commit B) Merging code changes into a shared repository frequently and verifying them with automated builds C) Performing manual testing on every code change before integration D) Creating long‑running feature branches that are merged only at release time Answer: B Explanation: CI focuses on frequent merges to a central repository and automatically building and testing those changes to detect issues early. Question 2. In the context of CI/CD, what distinguishes Continuous Delivery (CD) from Continuous Deployment? A) Continuous Delivery includes automated testing, while Continuous Deployment does not B) Continuous Delivery requires a manual approval step before production, whereas Continuous Deployment pushes automatically C) Continuous Delivery only applies to on‑premise environments, while Continuous Deployment is cloud‑only D) Continuous Delivery and Continuous Deployment are synonymous terms Answer: B Explanation: Continuous Delivery automates the pipeline up to production but leaves the final release decision to a human; Continuous Deployment releases automatically after passing all stages.
Question 3. Which benefit is NOT typically associated with adopting a CI/CD pipeline? A) Faster feedback on code changes B) Reduced manual integration effort C) Increased likelihood of merge conflicts remaining undetected D) Higher overall software quality Answer: C Explanation: CI/CD aims to detect merge conflicts early, not increase their likelihood. Question 4. In CloudBees CI architecture, what is the primary role of the Operations Center? A) Executing build jobs for all teams B) Providing a centralized UI for managing multiple Controllers and enforcing governance policies C) Storing source code repositories D) Acting as a Kubernetes cluster for dynamic agents Answer: B Explanation: The Operations Center is the management hub that oversees Controllers, applies global settings, and offers governance capabilities. Question 5. Which of the following best describes a “managed controller” in CloudBees CI?
B) The “Dashboard” page of the Operations Center, under the “System Health” section C) The “Configure System” page of each Controller D) The “Plugins” management screen Answer: B Explanation: The Operations Center dashboard aggregates health metrics for all Controllers. Question 8. In a Jenkins UI, which view provides a list of all builds for a particular job, including timestamps and results? A) Configure page B) Build History sidebar C) Credentials store D) System Log Answer: B Explanation: The Build History shows each build with its status and timing details. Question 9. Which Jenkins project type is most suitable for defining a complex, multi‑stage workflow as code? A) Freestyle project B) Maven project C) Pipeline project (Declarative or Scripted) D) Multi‑configuration project
Answer: C Explanation: Pipeline projects allow you to describe the entire workflow in a Jenkinsfile, supporting stages, parallelism, and more. Question 10. Which of the following is NOT a characteristic of a Freestyle project? A) Configuration is done through the UI rather than code B) Supports scripted pipelines written in Groovy C) Limited support for complex branching logic D) Can run simple shell or batch steps Answer: B Explanation: Freestyle projects do not use scripted pipelines; they rely on UI‑based configuration. Question 11. What is the purpose of the CloudBees Assurance Program (CAP)? A) To provide free unlimited plugins to all users B) To certify plugins for security, stability, and compatibility, offering support tiers for enterprise customers C) To replace Jenkins core with a proprietary engine D) To enforce mandatory licensing on all Jenkins installations Answer: B
Question 14. What is the main benefit of Configuration as Code (CasC) in CloudBees CI? A) It eliminates the need for any UI configuration B) It allows you to version‑control controller configuration, enabling reproducible and auditable setups C) It automatically generates Jenkinsfiles for all jobs D) It disables all dynamic agents for security reasons Answer: B Explanation: CasC stores configuration in YAML files that can be tracked in source control, ensuring consistency across environments. Question 15. Which file format is used for defining a CasC configuration bundle? A) JSON B) XML C) YAML D) INI Answer: C Explanation: CasC uses YAML to describe Jenkins configuration, making it human‑readable and easy to version. Question 16. When scaling controllers with CasC, which practice is recommended?
A) Manually editing each controller’s UI settings after provisioning B) Storing a single CasC YAML file in a shared Git repository and applying it during controller bootstrapping C) Disabling all plugins to reduce configuration complexity D) Using only the default “admin” user for all controllers Answer: B Explanation: Centralizing CasC definitions in Git enables consistent provisioning of multiple controllers. Question 17. Which CloudBees support offering provides proactive notifications about newly disclosed security vulnerabilities? A) Community Forums B) CloudBees Support Portal (Enterprise Support) C) Open‑source Jenkins mailing list D) Third‑party security blogs Answer: B Explanation: Enterprise support includes security advisories and guidance on remediation. Question 18. In a Declarative Jenkinsfile, which top‑level block defines the execution environment for the pipeline? A) stages B) steps
Explanation: Shared libraries let teams centralize common pipeline logic, promoting DRY practices. Question 21. Which of the following best describes an “ephemeral agent” in CloudBees CI? A) A permanently allocated node that never shuts down B) A temporary build executor that is provisioned on demand (e.g., via Kubernetes) and terminated after the build C) An agent that runs only on the Operations Center machine D) A virtual machine that is shared across all pipelines simultaneously Answer: B Explanation: Ephemeral agents are created for a single build and destroyed afterward, providing isolation and scalability. Question 22. What advantage do Kubernetes agents provide over static agents? A) They guarantee 100 % uptime for all builds B) They automatically scale based on workload, offering isolation and resource efficiency C) They eliminate the need for any Docker images D) They allow builds to run without any network connectivity Answer: B Explanation: Kubernetes agents spin up pods on demand, scaling with demand and isolating builds in containers.
Question 23. In CloudBees CI, what is a “Pipeline Template”? A) A pre‑written Jenkinsfile that can be instantiated with parameters to enforce standard structures across teams B) A UI theme for the Jenkins dashboard C) A default configuration for the Operations Center D) A plugin that disables all pipeline features Answer: A Explanation: Pipeline Templates let administrators define reusable pipeline skeletons that teams can instantiate, ensuring consistency. Question 24. Which feature enables an organization to enforce coding standards and security checks across all pipelines? A) Pipeline Templates B) Pipeline Policies C) Shared Libraries D) Agent Labels Answer: B Explanation: Pipeline Policies let admins define rules (e.g., required steps, prohibited plugins) that pipelines must comply with. Question 25. What is the purpose of a “Pipeline Catalog” in CloudBees CI? A) To store compiled binaries for downstream deployment
D) Disable all dynamic agents for security compliance Answer: B Explanation: HA architectures provide redundancy so that CI services remain available despite hardware or network failures. Question 28. Which disaster recovery strategy is recommended for a CloudBees CI deployment? A) Rely solely on local disk snapshots of the Operations Center B) Perform regular off‑site backups of the Operations Center and each managed controller, and test restores periodically C) Disable all plugins that touch external services D) Use a single static agent for all builds to simplify recovery Answer: B Explanation: Off‑site backups and periodic restore testing ensure that the environment can be recovered after a catastrophic event. Question 29. When configuring Single Sign‑On (SSO) for CloudBees CI, which protocol is most commonly used? A) FTP B) SAML 2. C) SMTP D) SNMP Answer: B
Explanation: SAML 2.0 is the standard protocol for federated authentication and is widely supported for SSO integrations. Question 30. Which step is NOT part of the typical SSO configuration workflow in CloudBees CI? A) Register the Operations Center as a Service Provider (SP) in the IdP B) Upload a public SSH key for each user C) Import the IdP metadata XML into the Operations Center D) Map IdP attributes to Jenkins roles or groups Answer: B Explanation: SSO does not involve per‑user SSH keys; it relies on identity provider assertions. Question 31. Role‑Based Access Control (RBAC) in CloudBees CI primarily helps to: A) Automatically generate pipeline code B) Assign granular permissions to users, groups, or roles for specific resources such as jobs and controllers C) Encrypt all build artifacts at rest D) Disable all non‑CAP plugins Answer: B Explanation: RBAC defines who can do what within the CI environment, enhancing security and compliance.
A) Username with password B) Secret file C) Secret text D) SSH private key Answer: C Explanation: “Secret text” stores a single string securely, ideal for API tokens. Question 35. What is the primary security risk of storing credentials in plain text on a build agent’s filesystem? A) Build agents will run faster B) Credentials can be exposed to any process or user with file system access, leading to compromise C) Jenkins will automatically encrypt them D) It prevents the use of shared libraries Answer: B Explanation: Plain‑text credentials are vulnerable to leakage, violating security best practices. Question 36. Which Jenkins feature allows you to define environment variables that are scoped to a specific stage? A) Global properties B) environment block inside a stage C) System properties passed to the JVM
D) Plugin configuration page Answer: B Explanation: An environment block inside a stage defines variables available only for that stage’s steps. Question 37. In a Declarative pipeline, which syntax correctly runs a step inside a Docker container? A) docker { image 'maven:3.6' } B) agent { docker 'node:14' } C) container('python:3.8') { sh 'python --version' } D) stage('Build') { steps { sh 'make' } } Answer: B Explanation: agent { docker 'image-name' } specifies that the entire pipeline (or stage) runs inside that Docker container. Question 38. Which of the following best describes the “post” section of a Declarative Jenkinsfile? A) It defines the agents to be used for each stage B) It contains steps that run after the pipeline completes, based on the build result C) It declares global environment variables D) It sets the Jenkinsfile version Answer: B
Question 41. In CloudBees CI, what is a “shared agent” used for? A) Providing a single executor that can be used by multiple Controllers, reducing infrastructure sprawl B) Storing shared credentials across all pipelines C) Hosting the Jenkinsfile repository D) Managing user authentication across the platform Answer: A Explanation: Shared agents allow several Controllers to schedule builds on the same pool of executors, improving resource utilization. Question 42. Which of the following is a direct benefit of using Pipeline Templates together with a Catalog? A) Automatic versioning of all plugins B) Centralized discovery and reuse of standardized pipelines across teams, reducing duplication C) Elimination of the need for any RBAC configuration D) Real‑time monitoring of agent CPU usage Answer: B Explanation: Templates in a Catalog provide a single source of truth for pipeline structures, fostering reuse. Question 43. Which policy would you implement to ensure that no pipeline can run with elevated privileges on an agent?
A) Enforce agent any for all pipelines B) Require sandbox mode for all Groovy scripts and forbid sudo usage in steps C) Disable all shared libraries D) Force all pipelines to run on the master node Answer: B Explanation: Enforcing sandbox and prohibiting privileged commands prevents pipelines from obtaining elevated rights. Question 44. What is the primary purpose of the “Jenkins Health Advisor” warning “Plugin Compatibility Issue”? A) To notify that a plugin version is not compatible with the current Jenkins core version, potentially causing instability B) To indicate that a plugin has been deprecated and should be removed immediately C) To suggest that the plugin can be upgraded to a newer version for performance gains D) To inform that the plugin is not covered by the CloudBees Assurance Program Answer: A Explanation: Compatibility warnings flag mismatched plugin‑core versions that could cause runtime errors. Question 45. Which of the following actions is recommended after a critical security vulnerability is disclosed for a plugin you use? A) Immediately uninstall the plugin without checking for a patch