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?
Create a feature branch off another existing feature branch to work on the new functionality.
Branch off from 'main', work on the new feature, and then merge back into 'main' when testing is concluded.
Merge the new feature code directly into 'main' from the developer's local machine.
Create a new feature branch from 'develop', commit changes to this branch, and upon completion, merge back into 'develop' for staging.
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.
Why is 'develop' used as the staging branch in the workflow?
Open an interactive chat with Bash
What are the benefits of feature branches in version control systems like AWS CodeCommit?
Open an interactive chat with Bash
What happens if feature code is merged directly into 'main' without using staging?
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...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .