Infrastructure as Code (IaC) is a key practice in cloud computing. What is the main benefit it provides?
Think about how code can help with infrastructure tasks.
Infrastructure as Code means writing code to define and manage infrastructure automatically, making setups repeatable and less error-prone.
In Terraform, which file typically contains the code that describes the infrastructure you want to create?
Look for the file where resources are declared.
The main.tf file usually contains the resource definitions that describe the infrastructure to be created.
You have updated your Terraform code to add a new server. What does terraform apply do?
Think about how Terraform syncs real infrastructure with code.
Terraform applies the changes by creating, updating, or deleting resources to match the code you wrote.
When managing infrastructure with code, which practice helps keep secrets safe?
Think about how to keep passwords and keys safe.
Secrets should never be hardcoded in code files. Using environment variables or secret managers keeps them secure.
Why should you store your Infrastructure as Code files in a version control system like Git?
Think about teamwork and history of changes.
Version control helps teams work together, see who changed what, and undo mistakes by keeping history.