Given the requirements, which combination of IaC option and container service is MOST SUITABLE for this scenario, and why?
You are a DevOps engineer at a tech company that is building a scalable microservices-based application. The application is composed of several containerized services, each responsible for different parts of the application, such as user authentication, data processing, and recommendation systems. The company wants to standardize and automate the deployment and management of its infrastructure using Infrastructure as Code (IaC). You need to choose between AWS CloudFormation and AWS Cloud Development Kit (CDK) for defining the infrastructure. Additionally, you must decide on the appropriate AWS container service to manage and deploy these microservices efficiently.
Given the requirements, which combination of IaC option and container service is MOST SUITABLE for this scenario, and why?
A . Use AWS CloudFormation with YAML templates for infrastructure automation and deploy the containerized microservices using Amazon Lightsail Containers to simplify management and reduce costs
B . Use AWS CloudFormation to define and deploy the infrastructure as code, and Amazon ECR (Elastic Container Registry) with Fargate for running the containerized microservices without needing to manage the underlying servers
C . Use AWS CDK for infrastructure as code, allowing you to define the infrastructure in a high-level programming language, and deploy the containerized microservices using Amazon EKS (Elastic Kubernetes Service) for advanced orchestration and scalability
D . Use AWS CDK with Amazon ECS on EC2 instances to combine the flexibility of programming languages with direct control over the underlying server infrastructure for the microservices
Answer: C
Explanation:
Correct option:
Use AWS CDK for infrastructure as code, allowing you to define the infrastructure in a high-level programming language, and deploy the containerized microservices using Amazon EKS (Elastic Kubernetes Service) for advanced orchestration and scalability
AWS CDK offers the flexibility of using high-level programming languages (e.g., Python, JavaScript) to define infrastructure, making it easier to manage complex infrastructure setups programmatically. via – https://docs.aws.amazon.com/cdk/v2/guide/home.html
Amazon EKS is designed for running containerized microservices with Kubernetes, providing advanced orchestration, scalability, and integration with CI/CD pipelines. This combination is ideal for a microservices-based application with complex deployment and scaling needs.
via – https://docs.aws.amazon.com/eks/latest/userguide/what-is-eks.html
Incorrect options:
Use AWS CloudFormation to define and deploy the infrastructure as code, and Amazon ECR (Elastic Container Registry) with Fargate for running the containerized microservices without needing to manage the underlying servers – AWS CloudFormation is powerful for defining infrastructure using JSON or YAML. However, Amazon ECR is an AWS managed container image registry service and it cannot be used to manage and run containers.
Use AWS CloudFormation with YAML templates for infrastructure automation and deploy the containerized microservices using Amazon Lightsail Containers to simplify management and reduce costs – AWS CloudFormation with YAML templates is suitable for traditional IaC, but Amazon Lightsail Containers is better for simple, low-cost container deployments. It may lack the scalability and orchestration features required for a complex microservices architecture.
Use AWS CDK with Amazon ECS on EC2 instances to combine the flexibility of programming languages with direct control over the underlying server infrastructure for the microservices – AWS CDK combined with Amazon ECS on EC2 gives more control over the underlying infrastructure but adds complexity in managing the servers. For a microservices-based application, this might introduce unnecessary overhead compared to using managed services like Fargate or EKS.
References:
https://docs.aws.amazon.com/cdk/v2/guide/home.html https://docs.aws.amazon.com/eks/latest/userguide/what-is-eks.html
Latest MLA-C01 Dumps Valid Version with 125 Q&As
Latest And Valid Q&A | Instant Download | Once Fail, Full Refund