




























































































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. What is the primary purpose of Deployment Automation in a DevOps pipeline? A) To replace developers with robots B) To manually trigger releases on demand C) To speed up delivery while ensuring consistency and repeatability D) To eliminate the need for testing Answer: C Explanation: Deployment automation aims to accelerate software delivery, reduce human error, and provide repeatable, consistent releases across environments. Question 2. Which statement best differentiates Continuous Integration (CI) from Continuous Delivery (CD)? A) CI builds the code; CD only runs unit tests B) CI merges code changes; CD automates the release of those changes to production after approval C) CI deploys to production; CD deploys to staging only D) CI and CD are identical concepts Answer: B Explanation: CI focuses on integrating code frequently and running automated tests, while CD extends CI by automating the delivery pipeline up to production, often requiring manual approval before final deployment.
Question 3. In the context of deployment automation, what does “immutability” of artifacts imply? A) Artifacts can be edited after they are built B) Artifacts are version‑controlled and never changed once created C) Artifacts are deleted after each deployment D) Artifacts are stored in a mutable database Answer: B Explanation: Immutable artifacts are built once, versioned, and never altered, ensuring traceability and reproducibility across environments. Question 4. Which deployment model does NOT require an agent installed on the target machine? A) Agent‑based model B) Agentless model using SSH or REST APIs C) Hybrid model with both agents and scripts D) None of the above Answer: B Explanation: Agentless deployments rely on protocols like SSH, WinRM, or HTTP APIs, avoiding the need to install a persistent agent on the target host.
Question 7. Which gate is commonly used to transition a build from “Test” to “Stage”? A) Manual approval by a product owner B) Successful execution of automated integration tests C) Completion of a marketing campaign D) Random time‑based trigger Answer: B Explanation: A gate typically requires passing automated integration (or other quality) tests before promoting the build to the next environment. Question 8. A Release Train in deployment terminology refers to: A) A physical train that transports servers B) A scheduled, regular cadence for bundling multiple features into a single release C) An ad‑hoc release triggered by a developer D) A tool for monitoring network latency Answer: B Explanation: Release Train is a predictable, time‑boxed schedule that bundles changes, enabling coordinated releases.
Question 9. Which repository type is most suitable for storing built Docker images? A) Maven repository B) Container Registry (e.g., Docker Hub, ECR) C) Git repository D) Artifact repository for JAR files only Answer: B Explanation: Container registries are designed to store, version, and distribute Docker images and OCI artifacts. Question 10. Which of the following best describes Infrastructure as Code (IaC)? A) Writing documentation for infrastructure manually B) Managing infrastructure through declarative or imperative code stored in version control C) Using spreadsheets to track server IPs D) Outsourcing infrastructure management to a third‑party vendor Answer: B
Explanation: Idempotent tasks ensure that repeated executions do not change the system if it already matches the desired state. Question 13. Which tool is primarily used for creating immutable machine images? A) Packer B) Jenkins C) Git D) Nagios Answer: A Explanation: Packer automates the creation of identical, immutable VM or container images across multiple platforms. Question 14. What is the main advantage of using Helm charts in Kubernetes deployments? A) They replace the need for a container registry B) They provide templated, versioned packages for Kubernetes resources, simplifying upgrades and rollbacks C) They automatically write application code D) They eliminate the need for any YAML files
Answer: B Explanation: Helm packages Kubernetes manifests into reusable charts, enabling easy installation, upgrades, and rollbacks. Question 15. Which of the following is NOT a typical method for injecting environment‑specific configuration into a container at runtime? A) ConfigMaps B) Secrets C) Hard‑coding values inside the Dockerfile D) Environment variables passed by the orchestrator Answer: C Explanation: Hard‑coding values defeats the purpose of environment‑specific configuration; ConfigMaps, Secrets, and env variables are the preferred mechanisms. Question 16. Which of the following best describes a “canary release”? A) Deploying the new version to 100 % of users instantly B) Deploying the new version to a small, controlled subset of users before wider rollout C) Deploying the new version only on weekends D) Deploying the new version without any testing
Answer: B Explanation: MTTR measures how quickly a system can be restored after an incident, reflecting recovery efficiency. Question 19. What is the primary function of a “secret vault” such as HashiCorp Vault in a CI/CD pipeline? A) Store large binary artifacts B) Securely store and provide dynamic credentials at runtime C) Host static website content D) Replace version control Answer: B Explanation: Secret vaults manage, rotate, and deliver secrets (API keys, passwords) securely to pipelines without exposing them in code. Question 20. Which scanning tool type is used to detect vulnerabilities in compiled binaries and libraries before they are packaged? A) SAST (Static Application Security Testing) B) DAST (Dynamic Application Security Testing) C) IAST (Interactive Application Security Testing) D) SBOM analysis
Answer: A Explanation: SAST analyzes source code or compiled artifacts statically to find security flaws early in the pipeline. Question 21. Role‑Based Access Control (RBAC) in a deployment platform primarily restricts: A) Network traffic between containers B) Which users can trigger, approve, or modify deployments C) The size of Docker images D) The number of branches in Git Answer: B Explanation: RBAC assigns permissions based on roles, ensuring only authorized personnel can perform specific deployment actions. Question 22. Which compliance regulation specifically requires audit trails for changes to electronic health information? A) SOX B) HIPAA C) PCI‑DSS D) GDPR
Answer: B Explanation: Imperative IaC scripts specify exact steps (create, modify, delete) to reach the target infrastructure. Question 25. In Terraform, what does the “plan” command do? A) Applies changes directly to the cloud provider B) Generates a visual diagram of resources C) Shows a preview of actions that will be taken without making changes D) Deletes the state file Answer: C Explanation: terraform plan calculates and displays the changes required to reach the desired state, allowing review before applying. Question 26. Which of the following is a characteristic of an “immutable infrastructure” approach? A) Patching live servers in place B) Rebuilding and redeploying entire instances when changes are needed C) Manual configuration via SSH after deployment D) Keeping long‑running servers for months
Answer: B Explanation: Immutable infrastructure avoids in‑place changes; instead, new instances are provisioned with the updated configuration. Question 27. Which Kubernetes object is primarily used to perform a rolling update of a Deployment? A) Service B) ConfigMap C) Deployment controller itself (spec.strategy.type: RollingUpdate) D) PersistentVolume Answer: C Explanation: The Deployment controller manages rolling updates based on the RollingUpdate strategy defined in its spec. Question 28. What is the purpose of a “canary analysis” tool such as Kayenta or Argo Rollouts? A) To generate Docker images automatically B) To evaluate metrics and decide whether to promote or rollback a canary release C) To replace unit testing frameworks D) To encrypt secrets in the pipeline
Answer: A Explanation: Static analysis examines source code early; running it during the Build stage provides immediate feedback before further testing. Question 31. Which of the following is a common cause of “pipeline brittleness”? A) Using container images with fixed tags B) Over‑reliance on hard‑coded environment‑specific values in scripts C) Parallel execution of independent jobs D) Implementing proper retry logic Answer: B Explanation: Hard‑coded values create fragility when environments change, leading to failures and reduced portability. Question 32. What does the “artifact immutability” principle prevent? A) Automatic scaling of services B) Modification of stored build outputs after they are published C) Versioning of source code D) Use of multiple CI servers
Answer: B Explanation: Once an artifact is stored (e.g., a JAR, Docker image), it should never be altered, preserving reproducibility and traceability. Question 33. Which of the following is NOT a typical gate used before promoting a build to production? A) Successful execution of performance benchmarks B) Manual sign‑off from a compliance officer C) Random selection of a team member to approve D) Zero critical security findings from scans Answer: C Explanation: Gates are systematic and risk‑based; random approvals do not provide meaningful control. Question 34. In Azure Pipelines YAML, which keyword defines a reusable template that can be referenced in multiple pipelines? A) script: B) template: C) stage: D) artifact:
Answer: B Explanation: Parallelism allows independent stages or tests to run concurrently, decreasing total build time. Question 37. Which of the following tools is primarily used for secret injection into Kubernetes pods at runtime? A) Helm B) Vault Agent Injector C) Terraform D) SonarQube Answer: B Explanation: Vault Agent Injector can mutate pod specifications to inject secrets as files or environment variables securely. Question 38. In a Jenkins pipeline, which directive is used to pause execution and request manual approval? A) input B) sh C) checkout D) archiveArtifacts
Answer: A Explanation: The input step creates a pause and prompts a user for approval before proceeding. Question 39. Which AWS service provides a managed container registry for storing Docker images? A) Amazon S B) Amazon ECR C) AWS Lambda D) Amazon RDS Answer: B Explanation: Amazon Elastic Container Registry (ECR) is a fully managed Docker image repository. Question 40. What does “GitOps” emphasize in deployment automation? A) Manual configuration of servers B) Using Git as the single source of truth for both application and infrastructure definitions, with automated agents applying changes C) Deploying only from GitHub Enterprise D) Requiring a Git commit for every database transaction