Bird
0
0

You want to ensure your infrastructure deployments are consistent across multiple environments using IaC. What is the best practice?

hard📝 Best Practice Q8 of 15
AWS - CloudFormation
You want to ensure your infrastructure deployments are consistent across multiple environments using IaC. What is the best practice?
AManually configure each environment separately
BUse the same IaC templates with environment-specific parameters
CWrite different IaC templates for each environment
DDeploy resources manually to avoid template errors
Step-by-Step Solution
Solution:
  1. Step 1: Understand environment consistency

    Using the same templates with parameters allows consistent infrastructure with environment differences.
  2. Step 2: Evaluate options

    Manual or separate templates increase errors and inconsistency; manual deployment is error-prone.
  3. Final Answer:

    Use the same IaC templates with environment-specific parameters -> Option B
  4. Quick Check:

    Consistent deployment = Shared templates + parameters [OK]
Quick Trick: Parameterize templates for multiple environments [OK]
Common Mistakes:
  • Manual environment setup
  • Duplicating templates unnecessarily
  • Avoiding IaC for fear of errors

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes