
Terraform KPMG Day 5
Authored by CloudThat Technologies
Computers
Professional Development
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In your Terraform configuration, you have two resources: an AWS S3 bucket and an AWS EC2 instance. You want to ensure that the EC2 instance is provisioned only after the S3 bucket is successfully created.
Which Terraform attribute should you use to establish this dependency?
requires
after
depends_on
connected_to
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Your team is collaborating on a Terraform project, and you're concerned about potential conflicts when multiple team members try to apply changes simultaneously. Which feature of Terraform helps prevent such conflicts?
State management
Locking
State commands
Terraform Cloud
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You want to inspect the details of resources managed by Terraform within your project. Which Terraform command should you use?
terraform plan
terraform apply
terraform show
terraform state list
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You want to list all resources tracked by Terraform within your project. Which Terraform command would provide you with this information?
terraform state list
terraform state show
terraform state pull
terraform state refresh
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In your Terraform project, you have accidentally deleted an EC2 resource outside of Terraform, and now you need to remove it from Terraform's state file to avoid conflicts. Which Terraform command should you use to remove the resource from the state file?
terraform state remove aws_instance.example
terraform state rm aws_instance.example
terraform state delete aws_instance.example
terraform state clean aws_instance.example
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Where in your Terraform configuration do you specify a state backend?
The terraform block
The resource block
The provider block
The datasource block
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
After making several changes to your infrastructure, you realize that the state file includes some outdated resources that no longer exist. Which command can remove these resources from the state file without affecting the actual infrastructure?
terraform destroy
terraform state rm
terraform state mv
terraform state pull
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?