Discount Offer
Available in 1, 3, 6 and 12 Months Free Updates Plans
PDF: $15 $60

Test Engine: $20 $80

PDF + Engine: $25 $99



Pass exam with Dumps4free or we will provide you with three additional months of access for FREE.

Terraform-Associate-003 Practice Test


Page 2 out of 39 Pages

What is one disadvantage of using dynamic blocks in Terraform?


A. Dynamic blocks can construct repeatable nested blocks


B. Terraform will run more slowly


C. They cannot be used to loop through a list of values


D. They make configuration harder to read and understand





D.
  They make configuration harder to read and understand

Explanation: This is one disadvantage of using dynamic blocks in Terraform, as they can introduce complexity and reduce readability of the configuration. The other options are either advantages or incorrect statements.

What is the provider for the resource shown in the Exhibit?
resource "aws_vpc" "main" {
name = "test"
}


A. VPC


B. test


C. main


D. aws





D.
  aws

Explanation: The provider for the aws_vpc resource is aws, as the resource type begins with aws_, which denotes that it is managed by the AWS provider.

Running terraform fmt without any flags in a directory with Terraform configuration files check the formatting of those files without changing their contents.


A. True


B. False





B.
  False

Explanation: Running terraform fmt without any flags in a directory with Terraform configuration files will not check the formatting of those files without changing their contents, but will actually rewrite them to a canonical format and style. If you want to check the formatting without making changes, you need to use the -check flag.

What value does the Terraform Cloud private registry provide over the public Terraform Module Registry?


A. The ability to share modules publicly with any user of Terraform


B. The ability to restrict modules to members of Terraform Cloud or Enterprise organizations


C. The ability to tag modules by version or release


D. The ability to share modules with public Terraform users and members of Terraform Cloud Organizations





B.
  The ability to restrict modules to members of Terraform Cloud or Enterprise organizations

Explanation: The Terraform Cloud private registry provides the ability to restrict modules to members of Terraform Cloud or Enterprise organizations. This allows you to share modules within your organization without exposing them to the public. The private registry also supports importing modules from your private VCS repositories. The public Terraform Module Registry, on the other hand, publishes modules from public Git repositories and makes them available to any user of Terraform.

Which configuration consistency errors does terraform validate report?


A. Terraform module isn't the latest version


B. Differences between local and remote state


C. Declaring a resource identifier more than once


D. A mix of spaces and tabs in configuration files





C.
  Declaring a resource identifier more than once

Explanation: Terraform validate reports configuration consistency errors, such as declaring a resource identifier more than once. This means that the same resource type and name combination is used for multiple resource blocks, which is not allowed in Terraform. For example, resource "aws_instance" "example" {...} cannot be used more than once in the same configuration. Terraform validate does not report errors related to module versions, state differences, or formatting issues, as these are not relevant for checking the configuration syntax and structure.


Page 2 out of 39 Pages
Previous