AWS Certified Developer – Associate (DVA-C02) — Question 204
A developer is preparing to begin development of a new version of an application. The previous version of the application is deployed in a production environment. The developer needs to deploy fixes and updates to the current version during the development of the new version of the application. The code for the new version of the application is stored in AWS CodeCommit.
Which solution will meet these requirements?
Answer options
- A. From the main branch, create a feature branch for production bug fixes. Create a second feature branch from the main branch for development of the new version.
- B. Create a Git tag of the code that is currently deployed in production. Create a Git tag for the development of the new version. Push the two tags to the CodeCommit repository.
- C. From the main branch, create a branch of the code that is currently deployed in production. Apply an IAM policy that ensures no other users can push or merge to the branch.
- D. Create a new CodeCommit repository for development of the new version of the application. Create a Git tag for the development of the new version.
Correct answer: A
Explanation
The correct answer is A because creating a feature branch for production fixes allows the developer to address any urgent issues while simultaneously working on the new version in a separate branch. Options B and D suggest using Git tags or a new repository, which do not facilitate concurrent development and bug fixing as effectively as using separate branches. Option C restricts access to the production branch but does not allow for ongoing development in parallel.