Consider you need to create multiple similar virtual machines with the same configuration in Terraform. Why is using a module pattern the best approach?
Think about how repeating the same code multiple times can cause mistakes and make updates harder.
Modules let you package and reuse infrastructure code. This avoids duplication, reduces errors, and makes maintenance easier.
In cloud infrastructure, why is assigning IAM roles to resources a better security pattern than using long-lived access keys?
Think about how temporary credentials help reduce risks compared to permanent keys.
IAM roles provide temporary, automatically rotated credentials. This limits exposure if credentials leak and simplifies permission control.
When using the immutable infrastructure pattern, what is the expected behavior during updates?
Think about how immutable infrastructure avoids configuration drift.
Immutable infrastructure means replacing resources rather than modifying them. This avoids unexpected side effects and ensures consistency.
What is the main benefit of managing cloud infrastructure using Infrastructure as Code (IaC) patterns like Terraform?
Consider how code helps teams work together and avoid mistakes.
IaC treats infrastructure like software code, enabling automation, versioning, and collaboration, which improves reliability and speed.
In cloud infrastructure, what does the blue-green deployment pattern primarily help to achieve?
Think about how to update applications without interrupting users.
Blue-green deployment uses two identical environments. Traffic switches from old to new, enabling updates without downtime.