39.2k views
3 votes
What goal is achieved by using Infrastructure as Code?

a. no dependency on version control
b. a diverse environment
c. diverse deployments
d. a consistent environment

1 Answer

6 votes

Final answer:

Infrastructure as Code (IaC) achieves a consistent environment and allows for diverse deployments.

Step-by-step explanation:

Infrastructure as Code (IaC) is a practice that involves writing code to define and manage the infrastructure needed for software applications.

One goal achieved by using IaC is a consistent environment.

By defining infrastructure configurations in code, you can ensure that the same environment is created every time the code is executed, reducing inconsistencies and improving reliability.

For example, if you are deploying a web application to multiple servers, using IaC allows you to create the same server configuration on each machine, ensuring consistency across the environment.

IaC can also enable diverse deployments.

With a well-defined codebase, you can easily replicate and deploy the same infrastructure setup in different environments, such as development, testing, and production.

User AOGSTA
by
7.4k points