DOP-C02 Question 78
Select 2You are a DevOps Engineer tasked with automating the deployment of a custom application across multiple environments. The application requires a specific configuration baked into the operating system image to meet compliance requirements. What combination of AWS services should you use to automate the creation of the images and distribute the application code to the instances?
- A
AWS CodeDeploy and EC2 Image Builder
- B
AWS Elastic Beanstalk and Amazon ECS
- C
AWS CodePipeline and AWS CodeBuild
- D
EC2 Image Builder and Systems Manager Distributor
- E
AWS OpsWorks and AWS CodeDeploy
Show answer and explanation
Correct answers: A, D
Explanation
To address the requirements, you need a service to create a custom AMI with the required configurations (EC2 Image Builder) and a mechanism to deploy or distribute the application code to the instances. AWS CodeDeploy fulfills this role by automating deployments, or alternatively, Systems Manager Distributor can distribute the application. Both combinations provide a robust solution.
- A. Correct.
Correct: AWS CodeDeploy can be used to deploy the application code, while EC2 Image Builder automates the creation of custom AMIs with the required configurations baked in.
- B. Incorrect.
Incorrect: AWS Elastic Beanstalk and Amazon ECS are more suitable for containerized and managed application deployments rather than creating custom AMIs.
- C. Incorrect.
Incorrect: AWS CodePipeline and AWS CodeBuild are CI/CD tools but do not directly automate the creation of custom images or handle application deployment.
- D. Correct.
Correct: EC2 Image Builder automates the creation of custom images, and Systems Manager Distributor can distribute application packages to instances.
- E. Incorrect.
Incorrect: AWS OpsWorks is for configuration management and orchestration, which is not directly relevant to automating image creation or application code distribution.