nerdexam
CompTIA

XK0-005 · Question #1576

A systems administrator is adding a Linux-based server and removing a Windows-based server from a cloud-based environment. The changes need to be validated before they are applied to the cloud-based…

The correct answer is D. terraform plan. 'terraform plan' is specifically designed to preview infrastructure changes before applying them. It reads the Terraform configuration, compares it against the current state, and produces a detailed execution plan showing exactly what will be created, modified, or destroyed…

Scripting, Containers, and Automation

Question

A systems administrator is adding a Linux-based server and removing a Windows-based server from a cloud-based environment. The changes need to be validated before they are applied to the cloud-based environment. Which of the following tools should be used to meet this requirement?

Options

  • AAnsible
  • Bgit clone
  • Cgit pull
  • Dterraform plan

How the community answered

(18 responses)
  • A
    6% (1)
  • C
    11% (2)
  • D
    83% (15)

Explanation

'terraform plan' is specifically designed to preview infrastructure changes before applying them. It reads the Terraform configuration, compares it against the current state, and produces a detailed execution plan showing exactly what will be created, modified, or destroyed - without making any actual changes. This is exactly what is needed to validate adding a Linux server and removing a Windows server before committing. Ansible is a configuration management and automation tool, not an infrastructure provisioning tool with a built-in dry-run preview for cloud resources. 'git clone' and 'git pull' are version control operations that retrieve code from a repository but do not validate infrastructure changes.

Topics

#Infrastructure as Code#Terraform#Cloud Management#Change Validation

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice