CompTIA Cloud+ (CV0-004)DeploymentMedium

A cloud administrator is tasked with deploying a complex, multi-tier application environment that includes multiple virtual machines, databases, load balancers, and network configurations. The deployment needs to be repeatable, consistent, and version-controlled. Which approach allows defining all these resources in a declarative format that can be automatically provisioned?

  1. AScripted deployment using ad-hoc shell scripts
  2. BInfrastructure as Code (IaC) templates
  3. CVirtual Machine images with pre-installed software
  4. DManual configuration via cloud provider console
Show answer & explanation

Correct answer: B. Infrastructure as Code (IaC) templates

Infrastructure as Code (IaC) templates allow defining all cloud resources (VMs, networks, databases, etc.) in a declarative configuration file. This enables automated, repeatable, and consistent deployments, and these templates can be version-controlled like application code.

Why the other options are wrong

  • A. Ad-hoc shell scripts can automate some tasks but lack the declarative nature, consistency, and state management of IaC.
  • C. VM images only cover the OS and installed software, not the entire infrastructure environment like networks or load balancers.
  • D. Manual configuration is error-prone, not repeatable, and not version-controlled.

Infrastructure as Code (IaC)

Managing and provisioning infrastructure through code instead of manual processes, using declarative definition files.

  • Enables automation, consistency, and repeatability.
  • Allows version control and collaboration.
  • Reduces configuration drift and human error.

Memory trick: IaC: Code the cloud, don't click the cloud.

More Deployment questions