Q4
Can you explain the difference between a resource block and a data source block?
💬Answer
- Resources (
resource): Infrastructure components that Terraform creates, manages, updates, and destroys (e.g., creating a new EC2 instance). - Data Sources (
data): Read-only queries used to fetch information from external APIs or pre-existing cloud resources (e.g., retrieving the latest AMI ID or querying an existing VPC ID).
Related Terraform Questions
View All TerraformQuestions →Q1
What is Infrastructure as Code (IaC), and what actual problems does it solve for an operations team?
Q2# Key Benefits:
Q3How do you choose between a provisioning tool like Terraform and a configuration management tool like Ansible?
Q4Walk me through the standard Terraform core workflow. What happens under the hood during each phase?

Created by
Apurv Gujjar
DevOps & Cloud Engineer
Specialized in:DevOpsAWSGCPKubernetesTerraformDocker
View Portfolio