From the course: Nail Your DevOps Interview

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Infrastructure as Code

Infrastructure as Code

- What are some of the benefits of using infrastructure as code? Give me an example. - Let's answer this question by defining infrastructure as code. With infrastructure as code, engineers use code to describe the servers, load balancers, firewalls, and other resources that create a system to run an application. Now we can go into the specifics of the benefits, version control, consistency, automation, and reuse. Since infrastructure as code is essentially a text document, it can be stored in a repository and version control can be applied to it. This allows engineers to track changes to the code, which in turn allows changes to the infrastructure to be tracked as well. Using code also lends itself to software development practices, like testing and code reviews. When engineers create something, they usually follow a specification or some blueprint that explains what they're going to be building. But if the build is…

Contents