CLO-002 practice question 30 of 30
For which of the following reasons is the infrastructure as code technique used?
Full set: 218 questionsInfrastructure as Code (IaC) is the practice of managing and provisioning infrastructure through machine-readable definition files, rather than physical hardware configuration or interactive configuration tools. A primary reason for its adoption is to combat "configuration drift," which occurs when manual, ad-hoc changes cause a production environment to deviate from its original, intended state. By defining the desired state in code and storing it in a version control system, organizations create a single source of truth. This allows them to track every change, enforce consistency across all environments (development, testing, production), and automatically re-apply the correct configuration to remediate any unauthorized or undocumented modifications.
A. While some IaC tools are cloud-agnostic and can help with portability, provider-specific tools (e.g., AWS CloudFormation, Azure Resource Manager) can increase vendor lock-in.
B. This statement describes what Infrastructure as Code is—a machine-readable definition of infrastructure—but not the primary reason or benefit for using the technique.
D. This describes a potential organizational shift associated with DevOps, which IaC enables, but it is not the fundamental purpose of the IaC technique itself. ---
1. Microsoft Azure Documentation. "What is infrastructure as code (IaC)?" This official vendor documentation states, "IaC helps to avoid undocumented, ad-hoc configuration changes." This directly addresses the problem of configuration drift, which is the core concept in the correct answer. (Source: Microsoft Azure, "DevOps solutions," Infrastructure as code section).
2. AWS Whitepaper. "Overview of DevOps on AWS," July 2020. On page 10, under the "Infrastructure as Code" section, the document states, "This practice also helps to prevent problems like configuration drift or the need to maintain separate configuration for environments that are supposed to be the same." This explicitly identifies the remediation of configuration drift as a key benefit.
3. National Institute of Standards and Technology (NIST). Special Publication (SP) 800-190, "Application Container Security Guide," November 2017. In Section 3.1.2, "Orchestrators," it discusses IaC, stating, "This helps ensure that environments are created in a consistent, repeatable manner, which reduces the risk of errors and security issues from manual configuration processes." This supports the principle of using code to enforce a consistent state and prevent drift.
Keep practicing
Take the free CLO-002 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other CLO-002 practice questions
- Question 1A company has decided to replicate cloud resources in several different geographic locati…
- Question 2A cloud systems administrator needs to log in to a remote Linux server that is hosted in …
- Question 3After performing an initial assessment of a cloud-hosted architecture, a department wants…
- Question 4Which of the following types of risk is MOST likely to be associated with moving all data…
- Question 5Which of the following metrics defines how much data loss a company can tolerate?
- Question 6Which of the following storage types will BEST allow data to be backed up and retained fo…
