- (Exam Topic 4)
Which of the following is considered a Terraform plugin?
Correct Answer:
D
Terraform is built on a plugin-based architecture. All providers and provisioners that are used in Terraform configurations are plugins, even the core types such as AWS and Heroku. Users of Terraform are able to write new plugins in order to support new functionality in Terraform.
https://www.terraform.io/docs/plugins/basics.html
- (Exam Topic 3)
Which flag would be used within a Terraform configuration block to identify the specific version of a provider required?
Correct Answer:
C
For production use, you should constrain the acceptable provider versions via configuration file to ensure that new versions with breaking changes will not be automatically installed by terraform init in the future.
Example terraform {
required_providers { aws = ">= 2.7.0"
}
}
- (Exam Topic 4)
You have been working in a Cloud provider account that is shared with other team members. You previously used Terraform to create a load balancer that is listening on port 80. After some application changes, you updated the Terraform code to change the port to 443.
You run terraform plan and see that the execution plan shows the port changing from 80 to 443 like you intended, and step away to grab some coffee.
In the meantime, another team member manually changes the load balancer port to 443 through the Cloud provider console before you get back to your desk.
What will happen when you terraform apply upon returning to your desk?
Correct Answer:
A
- (Exam Topic 4)
What is the result of the following terraform function call?
Correct Answer:
B
https://www.terraform.io/docs/configuration/functions/lookup.html
- (Exam Topic 3)
Which of the below commands will rename a EC2 instance without destroying and recreating it?
Correct Answer:
A