200-901 Question 149
Select 3A DevOps team is managing network infrastructure using Infrastructure as Code (IaC) principles. They want to ensure the infrastructure setup is consistent, version-controlled, and can be easily replicated across multiple environments. Which of the following practices align with the principles of Infrastructure as Code?
- A
Store configuration files in a version control system like Git
- B
Manually adjust configurations on individual devices for specific needs
- C
Use declarative templates to define infrastructure specifications
- D
Implement automated testing to validate infrastructure changes
- E
Apply configuration changes directly to production without testing
Show answer and explanation
Correct answers: A, C, D
Explanation
Infrastructure as Code (IaC) focuses on automating and standardizing infrastructure management. Practices such as version controlling configuration files, using declarative templates, and implementing automated testing align with IaC principles by ensuring consistency, predictability, and reliability. Manual configuration changes and untested deployments are against IaC principles as they risk inconsistency and errors.
- A. Correct.
Correct: Storing configuration files in a version control system ensures changes are tracked, audited, and can be rolled back if necessary. This is a core practice of IaC.
- B. Incorrect.
Incorrect: Manually adjusting configurations introduces inconsistency and is contrary to IaC principles, which emphasize automation and repeatability.
- C. Correct.
Correct: Using declarative templates allows infrastructure to be defined in a predictable and consistent manner, a fundamental concept of IaC.
- D. Correct.
Correct: Automated testing ensures that infrastructure changes do not introduce errors or disruptions, supporting reliability and consistency.
- E. Incorrect.
Incorrect: Applying changes directly to production without testing is risky and contradicts IaC principles, which advocate for testing in controlled environments before deployment.