MLA-C01 Question 307
Single answerYou are tasked with deploying a machine learning pipeline on AWS, and the architecture involves multiple services such as Amazon S3, Amazon SageMaker, and AWS Lambda. The team wants to adopt Infrastructure as Code (IaC) to ensure consistent resource provisioning, but they have limited programming expertise and need a declarative approach. Which IaC option is the most suitable for this use case?
- A
AWS CloudFormation
- B
AWS Cloud Development Kit (AWS CDK)
- C
AWS Elastic Beanstalk
- D
AWS OpsWorks
Show answer and explanation
Correct answer: A
Explanation
AWS CloudFormation is the best choice for this scenario because it provides a declarative approach to defining and provisioning AWS resources using templates. This aligns well with the team's requirement for a non-programmatic solution. Other options, such as AWS CDK, require programming expertise, while AWS Elastic Beanstalk and AWS OpsWorks are not ideal for IaC use cases involving complex architectures.
- A. Correct.
AWS CloudFormation is a declarative IaC tool that uses templates to define and provision AWS resources. It is suitable for teams with limited programming expertise as it does not require writing code in a programming language.
- B. Incorrect.
AWS Cloud Development Kit (AWS CDK) is an imperative IaC tool that uses programming languages like Python, Java, or TypeScript. It is better suited for teams with strong programming expertise.
- C. Incorrect.
AWS Elastic Beanstalk is a platform-as-a-service (PaaS) solution that abstracts away much of the infrastructure configuration but is not an IaC tool for defining complex multi-service architectures like a machine learning pipeline.
- D. Incorrect.
AWS OpsWorks is a configuration management service and is not primarily designed for Infrastructure as Code for provisioning AWS resources.