exam questions

Exam AWS Certified Solutions Architect - Professional All Questions

View all questions & answers for the AWS Certified Solutions Architect - Professional exam

Exam AWS Certified Solutions Architect - Professional topic 1 question 892 discussion

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.)

  • 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.
Show Suggested Answer Hide Answer
Suggested Answer: ACF 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
cale
Highly Voted 2 years, 3 months ago
Selected Answer: ACF
Here is a good reference material: https://aws.amazon.com/blogs/mt/create-immutable-servers-using-ec2-image-builder-aws-codepipeline/. My answer is A, C, F because AMIs should be same (immutable) across environments and use Image Builder into CloudFormation.
upvoted 9 times
blitzzzz
2 years, 1 month ago
but why. Is it better for production to use a stable and fixed version?
upvoted 1 times
MikelH93
1 year, 6 months ago
you have a stable AMI for prod but for testing and dev AMIs are not the same. Prefer ABF --> AMI ofr each env and release
upvoted 1 times
...
...
crerem
2 years, 1 month ago
why not doing a diffrent AMI for production, devel an testing ?
upvoted 1 times
...
...
dev112233xx
Most Recent 1 year, 7 months ago
Selected Answer: ABF
ABF makes more sense.. you need to create AMI for each ENV+Release
upvoted 2 times
...
hobokabobo
1 year, 8 months ago
Selected Answer: ACF
Using the same image in different environments only works with some additional customization after deployment. Having to specific images per environment does only work for simple cases in a simple way. Most cases you end up creating an EC2 configure customizations and create an Ami from it. Also you want to have something to fix small issues. You do not want to go for prod and risk a downtime when something goes south. So you always want to have something to quickly workaround an issue. Its always quick response to issues via workaround in combination with thorough work in developement. You do not want to keep workarounds, you just want(and need) to buy developement time to do it thorough. A and C we do thorough work. And now F with Cloudformation we can do some final customizations - only what is necesary . So What you would do is put everything that is common on the AMI.
upvoted 1 times
...
TajSidKazi
1 year, 9 months ago
ABE A. Mirroring the application code to an AWS CodeCommit Git repository provides a centralized location to manage the code and ensure consistency across environments. Building EC2 AMIs from the CodeCommit repository ensures that the same codebase is used for all deployments. B. Producing multiple EC2 AMIs, one for each environment, for each release ensures that each environment has its own dedicated AMI that is customized for its specific requirements. This reduces the likelihood of issues occurring due to differences in environment configurations. E. Replacing the custom scripts and tools with AWS CodeBuild and using EC2 Image Builder for infrastructure deployment provides a consistent and reliable process for building and deploying AMIs. This reduces the likelihood of errors occurring during the deployment process.
upvoted 2 times
...
Relaxeasy
2 years ago
Selected Answer: ACF
ACF ok
upvoted 1 times
...
janvandermerwer
2 years ago
Selected Answer: ACF
B - Not best practice and introduces potential issues. D - Seems overly complex, rather than using native AWS services "CodeCommit" E -- ? On the fence, part 2 update infrastructure deployment to use ec2 image builder seems to be inaccurate.
upvoted 1 times
...
Ni_yot
2 years, 2 months ago
Agree ACF
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...