Question 294 of 499
DeploymenthardMultiple ChoiceObjective-mapped

Quick Answer

The correct combination is Terraform and Git. Git provides the version control and audit trail for Infrastructure as Code configuration files by tracking every change with a detailed commit history, while Terraform serves as the declarative IaC tool that provisions and manages cloud resources, with its state files also storable in Git for full change tracking. On the CompTIA Cloud+ CV0-004 exam, this pairing tests your understanding that version control is not about the IaC tool itself but about the repository system that records who changed what and when. A common trap is choosing a CI/CD tool like Jenkins instead of Git, but Jenkins automates deployment, not version history. Remember the mnemonic: “Terraform builds, Git records”—the IaC tool manages the infrastructure, while the version control tool manages the changes.

CV0-004 Deployment Practice Question

This CV0-004 practice question tests your understanding of deployment. This is a configuration task: choose the command set that satisfies every stated requirement. Small differences — like 'secret' vs 'password' or 'transport input ssh' vs 'all' — change whether the answer is correct. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

An organization is adopting Infrastructure as Code (IaC) for their cloud deployments. They need to ensure that the configuration files are version-controlled and changes are audited. Which combination of tools should they use?

Question 1hardmultiple choice
Read the full NAT/PAT explanation →

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 and Git

Option C is correct because Git provides version control and audit trails for Infrastructure as Code (IaC) configuration files, while Terraform is the IaC tool that manages cloud resources declaratively. Together, they satisfy the requirement for version-controlled, auditable configuration files, as Git tracks every change with commit history and Terraform's state files can be stored in Git for change tracking.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

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

  • Puppet and Jenkins

    Why it's wrong here

    Jenkins is a CI tool, not primarily for version control.

  • Terraform and Ansible

    Why it's wrong here

    Ansible does not provide version control for IaC files.

  • Terraform and Git

    Why this is correct

    Terraform for IaC, Git for version control and audit.

    Related concept

    Read the scenario before looking for a memorised answer.

  • CloudFormation and Chef

    Why it's wrong here

    Chef is configuration management, not version control.

Common exam traps

Common exam trap: answer the scenario, not the keyword

CompTIA often tests the distinction between Infrastructure as Code tools (like Terraform) and configuration management tools (like Ansible, Puppet, Chef), and the trap here is that candidates confuse configuration management with version control, assuming tools like Ansible or Puppet provide audit trails when they do not.

Detailed technical explanation

How to think about this question

Git uses a directed acyclic graph (DAG) of commits, each with a SHA-1 hash, enabling immutable history and cryptographic verification of changes. Terraform's state file (terraform.tfstate) can be stored in Git, but for production, remote backends like S3 with DynamoDB locking are recommended to prevent state corruption during concurrent runs. In real-world scenarios, teams use Git branches for feature isolation and pull requests to enforce code review, ensuring every change to infrastructure is audited before merge.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A small business has 20 workstations on the 192.168.1.0/24 network and one public IP from its ISP. The router uses PAT (NAT overload) so all 20 devices share one public address using different source ports. NAT questions test whether you understand the four address terms and which direction each translation applies.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related CV0-004 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free CV0-004 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this CV0-004 question test?

Deployment — This question tests Deployment — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Terraform and Git — Option C is correct because Git provides version control and audit trails for Infrastructure as Code (IaC) configuration files, while Terraform is the IaC tool that manages cloud resources declaratively. Together, they satisfy the requirement for version-controlled, auditable configuration files, as Git tracks every change with commit history and Terraform's state files can be stored in Git for change tracking.

What should I do if I get this CV0-004 question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Keep practising

More CV0-004 practice questions

Last reviewed: Jun 30, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

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.