AWS Certified Developer Associate DVA-C02 Practice Question
A development team is working on a web application hosted on AWS. The team uses AWS CodeCommit as their version control system and follows a standard naming convention for branches, where 'main' is used for production, 'develop' for staging, and feature branches are created off 'develop' for new features. They decide to work on a new feature and want to ensure it goes through proper testing in staging before being merged into 'main' for production. Which of the following branching strategies should the development team follow to best adhere to their workflow and ensure that the new feature is properly tested and reviewed before deploying to production?
Merge the new feature code directly into 'main' from the developer's local machine.
Branch off from 'main', work on the new feature, and then merge back into 'main' when testing is concluded.
Create a new feature branch from 'develop', commit changes to this branch, and upon completion, merge back into 'develop' for staging.
Create a feature branch off another existing feature branch to work on the new functionality.
The development team should create a new branch from 'develop', work on the feature, and then merge back into 'develop' once it passes all checks and tests. This strategy aligns with their existing workflow where 'develop' is used as the staging branch for pre-production readiness. Merging the feature directly into 'main' bypasses the staging environment, and creating a branch from 'main' is not conducive since 'main' represents the production-ready state. Branching off another feature branch deviates from the typical use of feature branches, which are meant to be short-lived and branch off from a common development or staging branch.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is AWS CodeCommit and how does it work?
Open an interactive chat with Bash
What are the benefits of creating feature branches?
Open an interactive chat with Bash
Can you explain the difference between 'develop' and 'main' branches?
Open an interactive chat with Bash
AWS Certified Developer Associate DVA-C02
Deployment
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access