
Terraform Day 6 Knowledge Check
Authored by CloudThat Technologies
Other
Professional Development
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
In your Terraform configuration, you have two resources: an Azure Storage Account and an Azure VM instance. You want to ensure the VM instance is provisioned only after the Storage account is successfully created.
Which Terraform attribute should you use to establish this dependency?
requires
after
depends_on
connected_to
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is an example of a provisioner in Terraform?
remote-exec
state-management
config-sync
cloud-run
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
When should the local-exec provisioner be used?
To execute a command on a remote machine
To execute a command on the machine running Terraform
To manage Terraform state files
To deploy resources to a cloud provider
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which scenario would require the use of the provider meta-argument?
Deploying resources in multiple Azure regions with a single configuration.
Writing a custom provider plugin.
Importing existing resources into Terraform state.
Running terraform plan to preview changes.
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is a primary use case of a null resource in Terraform?
Creating dummy resources to meet provider requirements.
Managing resources that are no longer required.
Using provisioners or triggers without creating actual infrastructure.
Debugging Terraform plans.
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
In a null resource, what role do triggers play?
They define dependencies between resources.
They force re-creation of the null resource when their values change.
They determine which provider to use for the resource.
They are used to run provisioners conditionally.
Answer explanation
The triggers argument in a null resource is used to define dependencies. If any value in triggers changes, the null resource is destroyed and recreated.
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is correct about the terraform import command?
It creates a new resource in Terraform's state and in the cloud provider.
It imports an existing resource into Terraform's state file.
It imports an existing resource into the Terraform configuration file automatically.
It creates a backup of the resource before importing.
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?