CompTIA Cloud Essentials+ (CLO-002) — Question 50
For which of the following reasons is the infrastructure as code technique used?
Answer options
- A. To improve the ability to migrate applications to different cloud providers to avoid vendor lock-in.
- B. To specify the hardware configuration and system installation procedures in machine-readable formats.
- C. To capture the system configurations to track changes and remediate configuration drift.
- D. To assign server administration responsibilities to software developers for application deployments.
Correct answer: B
Explanation
The correct answer is B because infrastructure as code is primarily utilized to define hardware configurations and installation processes in a format that is readable by machines, allowing for automated deployments. Options A, C, and D, while related to cloud and system management, do not accurately represent the primary purpose of infrastructure as code.