How do you ensure consistency across environments (dev, test, prod) using IaC?
This question explores DevOps practices and tools, considering how one maintains the same infrastructure and application configurations across environments, such as development, testing, and production. A good answer would consider Infrastructure as Code tools, including Terraform or AWS CloudFormation, and how it allows one to define and manage their infrastructure configurations as versions, which can then be repeated in all environments. Besides, it will reflect an excellent grasp of the best practices that include modularization, parameterization, and validation while mentioning them.