Limited-Time Summer Sale 25% Discount Offer - Apply Coupon Code: Save25
Certs Blitz
See all results for ""
Home Exams
CRISC ISACA CISSP ISC2 200-301 Cisco SY0-701 CompTIA AZ-104 Microsoft AI-900 Microsoft 1Z0-1067-26 Oracle View All Exams →
Sign in Create account
Terraform-Associate-004 EXAM PREPARATION

Prepare Smarter for the Terraform-Associate-004 Exam

Build your exam confidence with flexible preparation resources designed around the latest Terraform-Associate-004 exam objectives. Practice at your own pace using PDF questions, online exam simulations, or desktop practice software.

Download Exam View Entire Exam
Page: 2 / 2
Question #6 (Topic: Demo Questions)

Your team adopts AWS CloudFormation as the standardized method for provisioning public cloud resources.

Which scenario presents a challenge for your team?

A.

Building a reusable codebase that can deploy resources into any AWS region.


B.

Managing a new application stack built on AWS-native services.


C.

Deploying new infrastructure into Microsoft Azure.


D.

Automating a manual, web console-based provisioning process.

Correct Answer: C
Explanation:

Detailed Explanation:

Rationale for Correct Answer: AWS CloudFormation is a service specifically designed to provision and manage infrastructure within AWS only. It does not support multi-cloud environments such as Microsoft Azure. Therefore, attempting to deploy infrastructure into Azure using CloudFormation presents a clear limitation and challenge. This aligns with Terraform’s core value proposition: multi-cloud and provider-agnostic infrastructure management, which overcomes this limitation.

Analysis of Incorrect Options (Distractors):

A. Building a reusable codebase that can deploy resources into any AWS region. Incorrect because CloudFormation supports reusable templates and can deploy across AWS regions without issue.

B. Managing a new application stack built on AWS-native services. Incorrect because CloudFormation is purpose-built for AWS-native services and handles this scenario effectively.

D. Automating a manual, web console-based provisioning process. Incorrect because CloudFormation is specifically designed to automate infrastructure provisioning, replacing manual console operations.

Key Concept: Cloud-specific vs multi-cloud Infrastructure as Code tools — Terraform supports multiple providers, whereas CloudFormation is AWS-only.

[Reference: Terraform Objective Domain: Understand Terraform's Purpose and Use Cases, , , , , , ]
Question #7 (Topic: Demo Questions)

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
Correct Answer: B
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.

Question #8 (Topic: Demo Questions)

A resource block is shown in the Exhibit space of this page. How would you reference the name value of the second instance of this resource?

A.

aws_instance.web[2].name


B.

aws_instance.web.*.name


C.

aws_instance.web[l].name


D.

aws_instance.web[l]


E.

element(aws_instance.web, 2)

Correct Answer: C
Explanation:

Rationale for Correct Answer:When using count, Terraform creates resources indexed starting at 0.With count = 2, the instances are indexed as:

First instance → aws_instance.web[0]

Second instance → aws_instance.web[1]

To reference the name attribute of the second instance, the correct syntax is:

aws_instance.web[1].name

Analysis of Incorrect Options (Distractors):

A. [2]: Incorrect because indexing starts at 0 and only indices 0 and 1 exist.

B. *.name: Returns a list of all names, not a single instance value.

D. [1]: References the whole resource object, not the name attribute.

E. element(...): Incorrect syntax and wrong index; also unnecessary when direct indexing is available.

Key Concept:Understanding resource indexing with count and zero-based indexing in Terraform.

[Reference:Terraform Exam Objective – Read, Generate, and Modify Configurations, , , , , ]
Question #9 (Topic: Demo Questions)

Which of the following should you put into the required_providers block?

A.

version > = 3.1


B.

version = “ > = 3.1”

C.

version ~ > 3.1

Correct Answer: B
Explanation:

The required_providers block is used to specify the provider versions that the configuration can work with. The version argument accepts a version constraint string, which must be enclosed in double quotes. The version constraint string can use operators such as  > =, ~ > , =, etc. to specify the minimum, maximum, or exact version of the provider. For example, version = " > = 3.1 "  means that theconfiguration can work with any provider version that is 3.1 or higher. References = [Provider Requirements] and [Version Constraints]

Question #10 (Topic: Demo Questions)

You can configure Terraform to log to a file using the TF_LOG environment variable.

A. True
B. False
Correct Answer: A
Explanation:

You can configure Terraform to log to a file using the TF_LOG environment variable. This variable can be set to one of the log levels: TRACE, DEBUG, INFO, WARN or ERROR. You can also use the TF_LOG_PATH environment variable to specify a custom log file location. References = : Debugging Terraform

Download Exam
« Prev Page: 2 / 2
Next Page