Docsity

Certificate in DevOps Practice Exam, Exams of Technology

Toggle sidebar
bg1
Certificate in DevOps Practice Exam
**Question 1.** Which component of the CALMS framework focuses on establishing trust,
psychological safety, and blameless post‑mortems?
A) Automation
B) Culture
C) Lean
D) Measurement
Answer: B
Explanation: Culture in CALMS emphasizes trust, collaboration, psychological safety, and
blameless post‑mortems, creating an environment where teams can learn from failures.
**Question 2.** In DORA metrics, which metric measures the time taken from code commit to
successful production deployment?
A) Deployment frequency
B) Lead time for changes
C) Mean time to recovery
D) Change failure rate
Answer: B
Explanation: Lead time for changes captures the duration from code commit to when that
change is running in production.
**Question 3.** Which Lean principle is primarily concerned with eliminating activities that do
not add value to the customer?
A) Flow
B) Muda
C) Feedback
D) Batching
Answer: B
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a

Partial preview of the text

Download Certificate in DevOps Practice Exam and more Exams Technology in PDF only on Docsity!

Question 1. Which component of the CALMS framework focuses on establishing trust, psychological safety, and blameless post‑mortems? A) Automation B) Culture C) Lean D) Measurement Answer: B Explanation: Culture in CALMS emphasizes trust, collaboration, psychological safety, and blameless post‑mortems, creating an environment where teams can learn from failures. Question 2. In DORA metrics, which metric measures the time taken from code commit to successful production deployment? A) Deployment frequency B) Lead time for changes C) Mean time to recovery D) Change failure rate Answer: B Explanation: Lead time for changes captures the duration from code commit to when that change is running in production. Question 3. Which Lean principle is primarily concerned with eliminating activities that do not add value to the customer? A) Flow B) Muda C) Feedback D) Batching Answer: B

Explanation: “Muda” is the Japanese term for waste; Lean aims to eliminate it to improve efficiency. Question 4. Which of the following best describes “Trunk‑Based Development”? A) Long‑lived feature branches merged after weeks of work B) Developers commit directly to a single main branch with short‑lived feature toggles C) A branching model that requires a release branch for each version D) Using GitFlow with develop, release, and hotfix branches Answer: B Explanation: Trunk‑Based Development encourages frequent commits to the main branch, often using feature flags to hide incomplete work. Question 5. According to Conway’s Law, the architecture of a system tends to mirror: A) The programming language used B) The organization’s communication structure C) The hardware platform D) The database schema design Answer: B Explanation: Conway’s Law states that system design reflects the communication patterns of the organization that builds it. Question 6. In Team Topologies, which team type is primarily responsible for building and maintaining a self‑service platform for other teams? A) Stream‑aligned team B) Enabling team C) Platform team D) Complicated subsystem team

D) To merge branches automatically Answer: B Explanation: Code reviews act as a quality gate, ensuring standards are met and defects are identified before integration. Question 10. Which build tool is most commonly associated with Java projects and uses a declarative XML configuration file? A) Maven B) Gradle C) npm D) Ant Answer: A Explanation: Maven uses a pom.xml file to declare project structure, dependencies, and build lifecycle. Question 11. In dependency management, what is the “dependency lock file” primarily used for? A) To encrypt dependencies B) To ensure reproducible builds by fixing exact versions C) To list transitive dependencies only D) To automatically update dependencies to the latest version Answer: B Explanation: A lock file (e.g., package‑lock.json, Pipfile.lock) records exact versions, guaranteeing the same dependencies across environments. Question 12. Which repository type stores compiled binaries, Docker images, and other build artifacts for later retrieval? A) Source code repository

B) Artifact repository C) Document repository D) Secret store Answer: B Explanation: Artifact repositories like Artifactory or Nexus manage versioned binaries and containers produced by builds. Question 13. In the testing pyramid, which layer typically has the highest number of tests? A) Unit tests B) Integration tests C) End‑to‑end tests D) Performance tests Answer: A Explanation: Unit tests are numerous, fast, and cheap, forming the base of the pyramid, while higher‑level tests are fewer. Question 14. Which CI practice ensures that every commit is automatically built and tested before merging? A) Manual build trigger B) Scheduled nightly builds C) Continuous Integration trigger on push D) Pull request approval only Answer: C Explanation: CI pipelines are configured to run on every push, providing immediate feedback on code quality. Question 15. Which CI/CD stage is responsible for executing security static analysis tools?

Question 18. What is the main advantage of using feature toggles? A) Reducing the number of code branches B) Decoupling deployment from release, enabling instant rollback C) Eliminating the need for automated tests D) Increasing the size of the binary artifact Answer: B Explanation: Feature flags let you turn functionality on/off at runtime, allowing quick rollback without redeploying. Question 19. In immutable infrastructure, how are updates typically applied? A) Patching the running servers in place B) Rebuilding and redeploying new server instances C) Editing configuration files on the fly D) Using SSH to run upgrade scripts on existing hosts Answer: B Explanation: Immutable infrastructure never modifies live instances; instead, new images are built and swapped in. Question 20. Which Docker command creates an image layer from a Dockerfile instruction? A) docker run B) docker build C) docker pull D) docker commit Answer: B Explanation: docker build processes a Dockerfile, creating layers for each instruction and producing a final image.

Question 21. In Kubernetes, which object ensures that a specified number of pod replicas are always running? A) Service B) Deployment C) ConfigMap D) Ingress Answer: B Explanation: A Deployment manages replica sets, guaranteeing the desired number of pod replicas. Question 22. Which IaC principle guarantees that applying the same configuration multiple times results in the same system state? A) Idempotence B) Immutability C) Declarativity D) Provisioning Answer: A Explanation: Idempotence ensures repeated executions do not cause unintended changes. Question 23. Terraform stores the mapping between resources and their real‑world identifiers in a file called: A) variables.tf B) backend.yaml C) state file D) lockfile.lock Answer: C

Answer: B Explanation: Vault can generate dynamic, time‑limited credentials (e.g., database passwords) that reduce exposure risk. Question 27. What is the primary purpose of structured logging? A) To reduce log file size B) To enable easy parsing and querying of log data C) To hide sensitive information automatically D) To replace monitoring tools Answer: B Explanation: Structured logs (e.g., JSON) allow log aggregation systems to index fields for efficient search and analysis. Question 28. Which component of the observability triad captures distributed request flow across microservices? A) Metrics B) Logs C) Traces D) Alerts Answer: C Explanation: Traces record the path and timing of a request as it traverses services, enabling end‑to‑end visibility. Question 29. Prometheus stores time‑series data using which format? A) Relational tables B) Log files C) Flat files in JSON

D) TSDB (Time‑Series Database) Answer: D Explanation: Prometheus uses its own TSDB to efficiently store and query metric samples over time. Question 30. Which alerting practice helps reduce “alert fatigue” in on‑call engineers? A) Sending every metric change as an alert B) Using high‑severity thresholds for all alerts C) Implementing alert deduplication and meaningful severity levels D) Disabling alerts during business hours Answer: C Explanation: Proper grouping, deduplication, and appropriate severity reduce noise and prevent fatigue. Question 31. Service Level Indicators (SLIs) are: A) The contractual penalties for downtime B) The quantitative metrics used to measure a service’s performance C) The tools used to collect logs D) The policies for data retention Answer: B Explanation: SLIs define the specific measurements (e.g., latency, error rate) that indicate service health. Question 32. Which testing type simulates real user traffic against a running application to find performance bottlenecks? A) Unit testing B) Load testing

C) On running applications in a staging environment D) On container images before they are pushed to a registry Answer: C Explanation: DAST interacts with a live application, probing for runtime vulnerabilities. Question 36. A Software Bill of Materials (SBOM) provides: A) A list of all open source licenses used in a product B) A detailed inventory of all components, libraries, and dependencies in a software artifact C) The cost breakdown of each third‑party library D) The deployment diagram of the application Answer: B Explanation: An SBOM enumerates every component in a build, aiding vulnerability tracking and compliance. Question 37. Which IaC feature can automatically enforce that all storage buckets have server‑side encryption enabled? A) Terraform variable validation B) Policy‑as‑code with Sentinel or OPA C) Manual code review D) CloudWatch alarms Answer: B Explanation: Policy‑as‑code frameworks evaluate IaC plans against security rules, ensuring resources meet encryption requirements. Question 38. Which CI/CD orchestrator is native to GitHub and uses YAML workflow files? A) Jenkins B) GitLab CI

C) GitHub Actions D) Azure DevOps Pipelines Answer: C Explanation: GitHub Actions runs workflows defined in .github/workflows/*.yml directly within GitHub. Question 39. In a blue/green deployment, the “green” environment represents: A) The old version still serving traffic B) The new version that receives traffic after switch C) A canary subset of users D) The staging environment for testing only Answer: B Explanation: After validation, traffic is switched from blue (old) to green (new), allowing instant rollback by switching back. Question 40. Which Kubernetes object abstracts a set of Pods behind a stable IP and DNS name? A) Deployment B) Service C) ConfigMap D) PersistentVolume Answer: B Explanation: A Service provides a stable endpoint for accessing a group of Pods. Question 41. Which of the following is NOT a typical metric collected by Prometheus for monitoring microservices? A) HTTP request latency

B) To speed up image builds by reusing unchanged layers C) To encrypt the image content D) To manage network ports inside the container Answer: B Explanation: Docker caches each instruction’s result; unchanged layers are reused, making subsequent builds faster. Question 45. Which configuration management tool uses a “push” model where the control node initiates changes on target nodes? A) Ansible B) Chef C) Puppet D) SaltStack (in master‑less mode) Answer: A Explanation: Ansible operates by SSH-ing into target machines and applying changes, i.e., a push model. Question 46. What is the primary advantage of using a “centralized logging” system like the ELK stack? A) Reducing application latency B) Enabling real‑time log aggregation, search, and visualization across multiple services C) Encrypting logs at rest automatically D) Replacing the need for metrics collection Answer: B Explanation: Centralized logging collects logs from many sources, allowing unified querying and dashboards.

Question 47. Which of the following is a common practice to avoid “configuration drift” in cloud environments? A. Manual updates via console B. Periodic manual audits only C. Using IaC to declare and apply the desired state continuously D. Relying on default cloud provider settings Answer: C Explanation: IaC enforces the declared configuration on each apply, preventing drift caused by ad‑hoc changes. Question 48. Which of the following is an example of a “pipeline gate” that ensures security compliance before production? A. Unit test pass B. Docker image push to registry C. OWASP Dependency‑Check pass with no critical CVEs D. Automated email notification Answer: C Explanation: A security gate that blocks progression if critical CVEs are detected ensures compliance. Question 49. In the context of observability, “high cardinality” data refers to: A. Metrics with few possible values B. Logs that are unstructured C. Labels or dimensions that can have a large number of distinct values D. Traces with long durations Answer: C

D. ServiceAccount Answer: B Explanation: ConfigMaps hold configuration data that can be injected into pods as env vars or files. Question 53. Which of the following is a primary goal of “Lean Software Development”? A. Maximizing documentation overhead B. Deferring quality until after release C. Building quality in and eliminating waste D. Increasing batch sizes for releases Answer: C Explanation: Lean focuses on delivering value by building quality early and removing wasteful activities. Question 54. Which metric is NOT part of the original DORA four metrics? A. Deployment frequency B. Change failure rate C. Code coverage percentage D. Mean time to recovery Answer: C Explanation: Code coverage is a quality metric but not one of the four DORA metrics. Question 55. What does “Git rebasing” primarily accomplish? A. Merges two unrelated histories without conflicts B. Rewrites commit history to apply changes on top of another base branch C. Deletes a branch permanently D. Creates a new remote repository

Answer: B Explanation: Rebasing re‑applies commits onto a new base, resulting in a linear history. Question 56. In a CI pipeline, which stage would most likely run “npm audit” for a Node.js project? A. Source B. Build C. Test D. Deploy Answer: C Explanation: npm audit checks for known vulnerabilities in dependencies and is typically part of the test stage. Question 57. Which of the following best describes “Blue/Green” vs. “Canary” deployment? A. Blue/Green swaps entire environments; Canary rolls out gradually to a subset of users. B. Blue/Green is only for databases; Canary is only for front‑end services. C. Both are identical concepts with different names. D. Canary requires no traffic routing changes, while Blue/Green does. Answer: A Explanation: Blue/Green switches traffic between two full environments; Canary gradually routes a fraction of traffic to the new version. Question 58. Which tool is commonly used for container image scanning to detect CVEs? A. SonarQube B. Trivy C. JUnit