
Terraform KPMG Day 3
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
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You are provisioning a set of virtual machines using Terraform, each with its own set of tags(key-value pairs) for classification and organization. Which collection type in Terraform would be most suitable for representing the set of tags for each virtual machine?
list
set
object
map
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Terraform apply creates an EC2 instance (name: example)
We want Terraform to display the private_ip of the EC2 after creation automatically. How can we do this?
output "privateip"
{
value = aws_instance.example.private_ip
}
input "privateip"
{
value = aws_instance.example.private_ip
}
data "privateip"
{
value = aws_instance.example.private_ip
}
output "privateip"
{
value = example.private_ip
}
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You are a DevOps engineer preparing to make updates to your company's cloud infrastructure using Terraform. Before applying the changes directly, you want to ensure everything is correct and have a way to review the planned modifications. To do this, you decide to generate a plan file.
What is the primary purpose of using the terraform plan -out update_plan command in this scenario?
To execute the planned changes immediately.
To save the execution plan to a file for review and future application.
To destroy the existing infrastructure.
To display the current state of the infrastructure.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the context of Terraform, what does "Desired State Management" refer to?
The current configuration of the infrastructure
The configuration that should be applied to the infrastructure
The historical state of the infrastructure
The default settings of the infrastructure
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the "terraform.tfvars" file?
To define variables that are specific to a particular environment
To define variables that are automatically loaded by Terraform
To manage state
To define providers
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Your Terraform configuration deployed a web application, including an AWS EC2 instance. Now, you require the public IP address of the instance.
Execute terraform show and search for the public IP address in the output.
Use the AWS Management Console to locate the public IP address.
Check the terraform.tfstate file for the public IP address.
Run terraform output and specify the name of the output variable containing the public IP address.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main purpose of using locals in Terraform?
To define resources that are only available within the local network and not accessible from the internet.
To define reusable values or expressions that can be referenced within the Terraform configuration.
To create remote connections to other Terraform configurations or infrastructure deployments.
To manage the state of Terraform resources and track changes over time.
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?