DOP-C02 Question 85
Select 3Your organization is adopting a new strategy to standardize the provisioning of infrastructure across multiple environments (e.g., development, staging, production). As part of this initiative, you are tasked with defining reusable cloud infrastructure components that can be managed throughout their lifecycle. Which of the following approaches would best meet these requirements?
- A
Use AWS CloudFormation to create modular templates with nested stacks for common infrastructure patterns.
- B
Adopt AWS Elastic Beanstalk to directly deploy code and manage infrastructure without creating reusable templates.
- C
Leverage AWS Service Catalog to create a curated portfolio of pre-approved infrastructure configurations for reuse.
- D
Use AWS CDK (Cloud Development Kit) to define infrastructure as code (IaC) in a programming language and package reusable constructs.
- E
Manually deploy infrastructure using the AWS Management Console and document the process for future reuse.
Show answer and explanation
Correct answers: A, C, D
Explanation
Defining reusable cloud infrastructure components requires leveraging Infrastructure as Code (IaC) tools and AWS services that support modularity, standardization, and governance. AWS CloudFormation (with nested stacks), AWS Service Catalog, and AWS CDK are all appropriate for these goals as they allow for reusable, maintainable, and lifecycle-managed infrastructure definitions. AWS Elastic Beanstalk and manual deployments do not meet the requirements for creating reusable and standardized infrastructure components.
- A. Correct.
Using AWS CloudFormation to create modular templates with nested stacks is a best practice for defining reusable infrastructure components. Nested stacks allow you to encapsulate common patterns and make them reusable.
- B. Incorrect.
While AWS Elastic Beanstalk simplifies application deployment, it does not inherently promote reusable infrastructure components or the standardization of infrastructure definitions.
- C. Correct.
AWS Service Catalog is designed to manage pre-approved infrastructure configurations, making it an excellent choice for creating reusable components that are also controlled and governed.
- D. Correct.
AWS CDK enables developers to define infrastructure as code and package reusable constructs, which aligns with the goal of creating reusable infrastructure components.
- E. Incorrect.
Manually deploying infrastructure via the AWS Management Console is not scalable or reusable, and it does not align with best practices for managing infrastructure throughout its lifecycle.