AWS Certified DevOps Engineer – Professional (DOP-C02) — Question 368
A company is developing a microservices-based application on AWS. The application consists of AWS Lambda functions and Amazon Elastic Container Service (Amazon ECS) services that need to be deployed frequently.
A DevOps engineer needs to implement a consistent deployment solution across all components of the application. The solution must automate the deployments, minimize downtime during updates, and manage configuration data for the application.
Which solution will meet these requirements with the LEAST development effort?
Answer options
- A. Use AWS CloudFormation to define and provision the Lambda functions and ECS services. Implement stack updates with resource replacement for all components. Use AWS Secrets Manager to manage the configuration data.
- B. Use AWS CodeDeploy to manage deployments for the Lambda functions and ECS services. Implement canary deployments for the Lambda functions. Implement blue/green deployments for the ECS services. Use AWS Systems Manager Parameter Store to manage the configuration data.
- C. Use AWS Step Functions to orchestrate deployments for the Lambda functions and ECS services. Use canary deployments for the Lambda functions and ECS services in a different AWS Region. Use AWS Systems Manager Parameter Store to manage the configuration data.
- D. Use AWS Systems Manager to manage deployments for the Lambda functions and ECS services. Implement all-at-once deployments for the Lambda functions. Implement rolling updates for the ECS services. Use AWS Secrets Manager to manage the configuration data.
Correct answer: B
Explanation
AWS CodeDeploy natively supports automated, zero-downtime deployment strategies like canary deployments for AWS Lambda and blue/green deployments for Amazon ECS, requiring minimal custom development. AWS Systems Manager Parameter Store is the ideal service for managing non-sensitive application configuration data. Other options either require significant custom development (such as AWS Step Functions) or introduce service downtime during updates (such as CloudFormation resource replacement or all-at-once deployments).