Courseiva
easyMultiple Choice

CV0-004 Practice Question: Is tasked with automating the deployment of a new…

A cloud engineer is tasked with automating the deployment of a new web application. Which of the following tools is BEST suited for managing infrastructure as code in a hybrid cloud environment?

⚠ Common exam trap

The CompTIA Cloud+ exam often tests the distinction between IaC tools (Terraform, CloudFormation) and configuration management tools (Ansible, Puppet) or containerization tools (Docker), leading candidates to choose Ansible because it also supports multi-cloud, but missing that Terraform is purpose-built for declarative infrastructure provisioning in hybrid clouds.

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

✓

Terraform

Terraform is the best choice because it is a cloud-agnostic Infrastructure as Code (IaC) tool that uses a declarative configuration language (HCL) to manage resources across multiple providers, including AWS, Azure, and on-premises systems. This makes it ideal for hybrid cloud environments where consistent provisioning and state management are required across disparate platforms.

Answer analysis

Option-by-option breakdown

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

  • ✗

    AWS CloudFormation

    Why it's wrong here

    AWS CloudFormation templates provision only AWS resources, so it cannot manage infrastructure in on-premises or other-cloud environments. It tempts because it is a genuine infrastructure-as-code tool, and would be correct for a deployment confined entirely to AWS.

  • ✗

    Ansible

    Why it's wrong here

    Ansible is agentless configuration management, not declarative infrastructure-as-code state management; it configures existing hosts rather than provisioning hybrid infrastructure from templates. It tempts because it does automate deployments across on-premises and cloud hosts, which suits configuration drift remediation.

  • ✓

    Terraform

    Why this is correct

    Terraform's declarative HCL and provider plugins manage resources across on-premises and multiple public clouds from one state file, satisfying the hybrid constraint. Unlike cloud-native tools tied to a single vendor, it provisions both environments consistently, making it best suited for automating this deployment.

  • ✗

    Docker

    Why it's wrong here

    Docker packages applications into containers; it does not provision or manage underlying infrastructure as code across hybrid environments. It tempts because containerisation is a deployment automation technique, so it appears relevant when the stem mentions deploying a web application.

About these practice questions

Courseiva writes every CV0-004 question from scratch — 834 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. 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.