ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 130 - DVA-C02 discussion

Report
Export

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?

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.
Answers
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.
B.
From the main branch, create a branch of the code that is currently deployed in production. Apply an IAM policy that ensures no other other users can push or merge to the branch.
Answers
B.
From the main branch, create a branch of the code that is currently deployed in production. Apply an IAM policy that ensures no other other users can push or merge to the branch.
C.
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.
Answers
C.
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.
Suggested answer: A

Explanation:

A feature branch is a branch that is created from the main branch to work on a specific feature or task1.Feature branches allow developers to isolate their work from the main branch and avoid conflicts with other changes1.Feature branches can be merged back to the main branch when the feature or task is completed and tested1.

In this scenario, the developer needs to maintain two parallel streams of work: one for fixing and updating the current version of the application that is deployed in production, and another for developing the new version of the application. The developer can use feature branches to achieve this goal.

The developer can create a feature branch from the main branch for production bug fixes. This branch will contain the code that is currently deployed in production, and any fixes or updates that need to be applied to it. The developer can push this branch to the CodeCommit repository and use it to deploy changes to the production environment.

The developer can also create a second feature branch from the main branch for development of the new version of the application. This branch will contain the code that is under development for the new version, and any changes or enhancements that are part of it. The developer can push this branch to the CodeCommit repository and use it to test and deploy the new version of the application in a separate environment.

By using feature branches, the developer can keep the main branch stable and clean, and avoid mixing code from different versions of the application. The developer can also easily switch between branches and merge them when needed.

asked 16/09/2024
Wilson Sigcha
31 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first