Terraform Associate Certification Q101-Q110

  1. Terraform Associate Certification Q1-Q10
  2. Terraform Associate Certification Q11-Q20
  3. Terraform Associate Certification Q21-Q30
  4. Terraform Associate Certification Q31-Q40
  5. Terraform Associate Certification Q41-Q50
  6. Terraform Associate Certification Q51-Q60
  7. Terraform Associate Certification Q61-Q70
  8. Terraform Associate Certification Q71-Q80
  9. Terraform Associate Certification Q81-Q90
  10. Terraform Associate Certification Q91-Q100
  11. Terraform Associate Certification Q101-Q110
  12. Terraform Associate Certification Q111-Q120
  13. Terraform Associate Certification Q121-Q130
  14. Terraform Associate Certification Q131-Q140
  15. Terraform Associate Certification Q141-Q151

Please Subscribe to Access the Premium Content

The remaining premium contents are locked. Please subscribe to the monthly newsletter to unlock the content for free.

Loading...

101. Multiple team members are collaborating on infrastructure using Terraform and want to format their Terraform code following standard Terraform-style convention. How could they automatically ensure the code satisfies conventions?

A. Run the terraform fmt command during the code linting phase of your CI/CD process
B. Manually apply two spaces indentation and align equal sign “=” characters in every Terraform file (*.tf)
C. Run the terraform validate command prior to executing terraform plan or terraform apply

Answer

A


102. When using a remote backend or Terraform Cloud integration, where does Terraform save resource state?

A. On the disk
B. In memory
C. In an environment variable
D. In the remote backend or Terraform Cloud

Answer

D


103. In Terraform HCL, an object type of object({ name=string, age=number }) would match this value:

A.


{ 
    name = "John"
    age = fifty two
} 

B.


{
    name = "John"
    age = 52
} 

C.


{
    name = John
    age = fifty two
} 

D.


{
    name = John
    age = 52
} 

Answer

B


104. You add a new resource to an existing Terraform configuration, but do not update the version constraint in the configuration. The existing and new resources use the same provider. The working directory contains a .terraform-lock.hcl file.

How will Terraform choose which version of the provider to use?

A. Terraform will use the latest version of the provider for the new resource and the version recorded in the lock file to manage existing resources
B. Terraform will use the version recorded in your lock file
C. Terraform will check your state file to determine the provider version to use
D. Terraform will use the latest version of the provider available at the time you provision your new resource

Answer

B


105. You must use different Terraform commands depending on the cloud provider you use.

A. True
B. False

Answer

B


106. Define the purpose of state in Terraform.

A. State stores variables and lets you quickly reuse existing code
B. State lets you enforce resource configurations that relate to compliance policies
C. State codifies the dependencies of related resources
D. State maps real world resources to your configuration and keeps track of metadata

Answer

D


107. Which of these actions will prevent two Terraform runs from changing the same state file at the same time?

A. Refresh the state after running Terraform
B. Delete the state before running Terraform
C. Configure state locking for your state backend
D. Run Terraform with parallelism set to 1

Answer

C


108. While attempting to deploy resources into your cloud provider using Terraform, you begin to see some odd behavior and experience slow responses. In order to troubleshoot you decide to turn on Terraform debugging. Which environment variables must be configured to make Terraform’s logging more verbose?

A. TF_LOG_PATH
B. TF_VAR_log_level
C. TF_LOG
D. TF_VAR_log_path

Answer

C


Leave a Comment

Your email address will not be published. Required fields are marked *


Scroll to Top