Courseiva
DeploymenteasyMultiple ChoiceObjective-mapped

CV0-004 Deployment Practice Question

A cloud engineer is writing Terraform code to provision AWS resources. They need to define the cloud provider and authentication details. Which block should they use in their HCL configuration?

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

provider block

In Terraform, the provider block is used to configure the cloud provider (e.g., AWS, Azure, GCP) and specify authentication settings such as region and credentials.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • resource block

    Why it's wrong here

    A resource block defines a specific infrastructure resource, not the provider configuration.

  • provider block

    Why this is correct

    The provider block configures the cloud provider and authentication.

  • variable block

    Why it's wrong here

    A variable block defines input variables, not provider settings.

  • module block

    Why it's wrong here

    A module block calls a reusable module, not configure the provider.

About these practice questions

One of 977 original CV0-004 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This CV0-004 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CV0-004 exam.