CompTIA Cloud+ (CV0-004) — All Questions
5 questions
In a CI/CD pipeline, what is the primary purpose of the continuous integration stage?
- a.To automatically build and test code changes as they are merged✓
- b.To provision the production database for the first time
- c.To manually approve every line of code by email
- d.To archive old log files from production servers
Continuous integration automatically builds and runs tests against changes as they are merged, catching defects early and keeping the mainline healthy. It is distinct from provisioning, manual approvals, or log archival.
A team deploys a new version alongside the current one and shifts a small percentage of live traffic to it to observe behavior before a full rollout. Which deployment strategy is this?
- a.Blue-green deployment
- b.Big-bang deployment
- c.Canary deployment✓
- d.Rollback-only deployment
A canary deployment routes a small slice of traffic to the new version to detect problems before exposing all users. Blue-green switches all traffic between two full environments at once, and a big-bang replaces everything simultaneously with higher risk.
Which technology packages an application with its dependencies into a lightweight, portable unit that shares the host operating system kernel?
- a.A traditional virtual machine
- b.A container✓
- c.A dedicated bare-metal server
- d.A SAN volume
Containers package an application and its dependencies into a portable unit that shares the host kernel, making them lighter and faster to start than full virtual machines. VMs virtualize entire operating systems, and bare-metal and SAN concepts are unrelated to this packaging model.
What is the main role of a container orchestration platform such as Kubernetes?
- a.To compile source code into machine binaries
- b.To act as a relational database engine
- c.To encrypt data at rest on object storage
- d.To automate deployment, scaling, and self-healing of containerized workloads✓
Orchestration platforms automate scheduling, scaling, health checks, and recovery of containers across a cluster. They are not compilers, databases, or encryption engines; those are separate concerns.
Why is storing infrastructure code and application code in a version control system considered a DevOps best practice?
- a.It permanently prevents any bugs from being written
- b.It provides history, collaboration, and the ability to roll back changes✓
- c.It eliminates the need for testing entirely
- d.It automatically doubles compute performance
Version control provides a change history, enables collaboration through review, and allows teams to roll back to a known-good state. It does not eliminate bugs or testing, nor does it affect raw compute performance.