CLF-C02 Question 137
Single answerYour organization is planning to deploy and manage a new application in AWS. The application will require frequent updates to infrastructure configurations and automated deployment pipelines. The team wants to minimize manual effort, ensure consistency across environments, and have a version-controlled record of changes. Which approach is most suitable for managing the infrastructure in this scenario?
- A
Using the AWS Management Console for creating and updating resources as needed
- B
Using the AWS Command Line Interface (CLI) to manually execute commands for resource management
- C
Using AWS Software Development Kits (SDKs) to write custom scripts for infrastructure management
- D
Using Infrastructure as Code (IaC) tools, such as AWS CloudFormation or Terraform, to define and manage infrastructure
Show answer and explanation
Correct answer: D
Explanation
In scenarios where frequent updates, automation, consistency, and version control are required, Infrastructure as Code (IaC) tools are the ideal choice. They allow teams to define infrastructure in a declarative manner, automate deployment pipelines, and maintain environment consistency. While other approaches like the AWS Management Console, CLI, or SDKs can manage resources, they are less efficient and lack features like version control and robust automation that are critical for the requirements described in this scenario.
- A. Incorrect.
The AWS Management Console allows for interactive, manual management of resources, but it is not efficient for frequent updates, lacks automation, and is not version-controlled.
- B. Incorrect.
While the AWS CLI provides programmatic access to AWS and can automate some tasks through scripting, it still requires significant manual effort and does not inherently offer version control or environmental consistency.
- C. Incorrect.
AWS SDKs enable developers to write custom scripts for managing resources programmatically, but they require development effort and may lack the consistency and version control provided by dedicated IaC tools.
- D. Correct.
Infrastructure as Code (IaC) tools like AWS CloudFormation or Terraform are specifically designed for automating infrastructure management, ensuring consistency, and maintaining version-controlled records of the infrastructure, making them the most suitable choice for this scenario.