200-901 Question 148
Single answerA DevOps team is tasked with managing the deployment of network configurations across multiple environments (development, staging, and production). They want to ensure consistency, repeatability, and minimal manual intervention in the process. Which practice, aligned with the principles of Infrastructure as Code (IaC), should they adopt?
- A
Write configuration scripts that are version-controlled and automatically applied using CI/CD pipelines.
- B
Manually configure each environment to ensure unique settings for each deployment.
- C
Use graphical user interfaces (GUIs) for manual provisioning and management of infrastructure.
- D
Leverage infrastructure automation tools to define configurations in a declarative or imperative manner.
Show answer and explanation
Correct answer: A
Explanation
Infrastructure as Code (IaC) is a practice that involves managing and provisioning infrastructure through machine-readable configuration files, rather than manual processes. By version-controlling scripts and using CI/CD pipelines, teams can ensure consistent, repeatable deployments across environments, adhering to IaC principles.
- A. Correct.
This is correct because writing version-controlled configuration scripts and automating their deployment aligns with Infrastructure as Code principles, ensuring consistency and repeatability.
- B. Incorrect.
Manually configuring environments contradicts the principles of Infrastructure as Code, which emphasizes automation and repeatability to reduce human error.
- C. Incorrect.
Using GUIs for manual provisioning is not scalable and does not align with Infrastructure as Code, which focuses on defining infrastructure programmatically.
- D. Incorrect.
While using automation tools is part of IaC, the question specifically focuses on applying configurations consistently across environments, which requires version control and CI/CD pipelines.