1What does terraform init do?
2What does the version constraint ~> 5.0 allow?
3What is the purpose of Terraform state?
4What is the key difference between STOPPING and TERMINATING an EC2 instance?
5When does user_data run on an EC2 instance?
6Which statement about Security Groups vs Network ACLs (NACLs) is correct?
7You allow inbound HTTP on port 80 in a Security Group. Do you also need an egress rule to allow the response traffic back to the client?
8How does Terraform determine the order to create resources?
9What is the difference between terraform plan and terraform apply?
10Should .terraform.lock.hcl be committed to version control?
11Why is a remote backend (e.g., S3 + DynamoDB) recommended for Terraform state in a team environment?
12What does an Amazon Machine Image (AMI) contain?
13When would you use an Elastic IP (EIP) instead of the default public IP?
14How would you restrict SSH access in a Security Group to a single trusted IP?
15What are Terraform output values used for?