A team provisions environments by clicking through a cloud console. Environments drift apart and nobody can explain why staging differs from production. Which benefit of Infrastructure as Code most directly addresses this problem?
- A.
The environment is defined in version-controlled code, so it can be reviewed and reproduced consistently.
- B.
IaC removes the need for any testing of infrastructure changes.
- C.
IaC guarantees that nobody can ever change resources outside the code.
- D.
IaC makes cloud providers charge less for resources.
Show answer and explanation
Answer: A
With IaC, the desired infrastructure lives in code that is versioned and reviewed, so each environment is created the same way and changes are traceable.
- IaC removes the need for any testing of infrastructure changes.: Changes still need review and testing; IaC makes that practical.
- IaC guarantees that nobody can ever change resources outside the code.: Manual changes remain possible; IaC helps you detect and correct them.
- IaC makes cloud providers charge less for resources.: IaC does not change provider pricing.