AWS Certified Solutions Architect – Professional — Question 1000
A company is running an application on Amazon EC2 instances in three environments: development, testing, and production. The company uses AMIs to deploy the EC2 instances. The company builds the AMIs by using custom deployment scripts and infrastructure orchestration tools for each release in each environment.
The company is receiving errors in its deployment process. Errors appear during operating system package downloads and during application code installation from a third-party Git hosting service. The company needs deployments to become more reliable across all environments.
Which combination of steps will meet these requirements? (Choose three.)
Answer options
- A. Mirror the application code to an AWS CodeCommit Git repository. Use the repository to build EC2 AMIs.
- B. Produce multiple EC2 AMIs, one for each environment, for each release.
- C. Produce one EC2 AMI for each release for use across all environments.
- D. Mirror the application code to a third-party Git repository that uses Amazon S3 storage. Use the repository for deployment.
- E. Replace the custom scripts and tools with AWS CodeBuild. Update the infrastructure deployment process to use EC2 Image Builder.
- F. Replace the custom scripts and tools with EC2 Image Builder. Update the deployment process to use AWS CloudFormation.
Correct answer: A, C, F
Explanation
Mirroring application code to AWS CodeCommit (Option A) removes dependencies on third-party Git hosts, resolving external integration errors. Generating a single AMI per release (Option C) ensures that the exact same build is tested and promoted across all environments, eliminating environment-specific compilation variances. Finally, replacing unreliable custom scripts with EC2 Image Builder and managing the deployments with AWS CloudFormation (Option F) provides a robust, standardized, and repeatable infrastructure pipeline.