Recall & Review
beginner
What is a resource in Terraform?
A resource in Terraform is a block that describes one piece of infrastructure, like a server, database, or network. It tells Terraform what to create or manage.
Click to reveal answer
beginner
Why are resources considered the core of Terraform?
Resources are the core because they define the actual infrastructure components Terraform manages. Without resources, Terraform has nothing to create or change.
Click to reveal answer
intermediate
How does Terraform use resources to manage infrastructure?
Terraform reads resource blocks to understand what infrastructure to build or update. It compares the current state with the desired state defined by resources and makes changes accordingly.
Click to reveal answer
beginner
Can Terraform work without resources? Why or why not?
No, Terraform cannot work without resources because resources are what describe the infrastructure to manage. They are the instructions Terraform follows to create or update infrastructure.
Click to reveal answer
beginner
Give an example of a Terraform resource block.
Example:
resource "aws_instance" "web" {
ami = "ami-123456"
instance_type = "t2.micro"
} This creates a virtual server on AWS.Click to reveal answer
What does a Terraform resource block describe?
✗ Incorrect
Resources describe infrastructure components like servers or databases that Terraform manages.
Why are resources essential in Terraform?
✗ Incorrect
Resources tell Terraform what infrastructure to create or update, making them essential.
What happens if you remove all resource blocks from a Terraform configuration?
✗ Incorrect
Without resources, Terraform has no instructions to create or manage infrastructure.
Which of these is a valid Terraform resource type?
✗ Incorrect
aws_instance is a common resource type representing a virtual server in AWS.
How does Terraform know what changes to make to infrastructure?
✗ Incorrect
Terraform compares the desired state from resources with the current state to decide changes.
Explain why resources are the core of Terraform and how they relate to infrastructure management.
Think about what Terraform needs to know to create or update infrastructure.
You got /3 concepts.
Describe what happens during a Terraform apply when resource blocks are present.
Focus on the process Terraform follows to manage resources.
You got /3 concepts.