CompTIA Cloud+ (CV0-004)DeploymentMedium
A cloud architect is designing a solution for deploying a complex, multi-tier application that consists of several virtual machines, databases, and network configurations. The architect wants to ensure that the entire infrastructure for the application can be deployed consistently and repeatedly across different environments (development, staging, production) with minimal manual intervention. Which approach is MOST suitable for achieving this goal?
- AInfrastructure as Code (IaC) with orchestration templates
- BContainerization with Docker only
- CScripted deployment using ad-hoc shell scripts
- DManual deployment via web console
Show answer & explanationAnswer & explanation
Correct answer: A. Infrastructure as Code (IaC) with orchestration templates
Infrastructure as Code (IaC) with orchestration templates allows defining and provisioning infrastructure resources through machine-readable definition files. This ensures consistent, repeatable, and automated deployments across various environments, minimizing manual errors and configuration drift, which is exactly what the architect aims for.
Why the other options are wrong
- B. Containerization (Docker) focuses on packaging applications, but typically needs an orchestration layer (like Kubernetes) and/or IaC tools to manage the underlying infrastructure it runs on.
- C. Ad-hoc shell scripts can automate some tasks but often lack the declarative nature, state management, and comprehensive orchestration capabilities of IaC templates, leading to inconsistencies.
- D. Manual deployment is prone to human error, inconsistency, and is not scalable for complex multi-tier applications.
Infrastructure as Code (IaC)
The management of infrastructure (networks, virtual machines, load balancers, etc.) in a descriptive model, using the same versioning as source code.
- Automates infrastructure provisioning and management.
- Ensures consistency and repeatability.
- Uses declarative configuration files (e.g., YAML, JSON).
Memory trick: IaC builds infrastructure like code, Scripts automate tasks, Manual is slow, Containers package apps.