ANS-C01 Question 322
Single answerYour organization is looking to implement Infrastructure as Code (IaC) to manage and deploy network infrastructure in AWS. They want to ensure that the solution enables reusable and maintainable code, integrates easily with programming languages, and supports automated deployment pipelines. Which tool would best meet these requirements?
- A
AWS CloudFormation
- B
AWS Cloud Development Kit (AWS CDK)
- C
AWS Management Console
- D
AWS CLI
Show answer and explanation
Correct answer: B
Explanation
AWS Cloud Development Kit (AWS CDK) stands out as the best tool for implementing Infrastructure as Code (IaC) in this scenario due to its ability to define infrastructure using programming languages, support for reusable constructs, and compatibility with CI/CD pipelines. While other tools like AWS CloudFormation and AWS CLI have their own use cases, they do not provide the same level of developer-friendly features and flexibility as AWS CDK for this use case.
- A. Incorrect.
AWS CloudFormation is a powerful IaC tool, but it uses YAML/JSON templates and lacks native programming language support. While reusable templates can be created, it's not as flexible or developer-friendly as AWS CDK for this scenario.
- B. Correct.
AWS Cloud Development Kit (AWS CDK) is the best option for this scenario. It allows developers to define infrastructure using familiar programming languages (e.g., Python, TypeScript), supports reusable constructs, and integrates seamlessly with CI/CD pipelines.
- C. Incorrect.
The AWS Management Console is a graphical user interface for managing AWS resources manually. It is not an IaC tool and does not support reusable or automated infrastructure definitions.
- D. Incorrect.
The AWS CLI is a command-line interface for managing AWS resources and can be scripted, but it is not designed for structured IaC workflows or reusable infrastructure definitions.