AWS Certified Developer Associate DVA-C02 Practice Question
A company hosts its application source code in an AWS CodeCommit repository. The CI/CD pipeline triggers automatically when the repository changes. The development team needs a mechanism that lets several engineers implement new features concurrently while a senior engineer prepares an emergency hotfix, all without overwriting each other's work. In this scenario, what is the primary purpose of creating branches in the repository?
Force every commit to wait until the previous CodeBuild job completes before entering the pipeline.
Provide isolated lines of development so multiple contributors can work independently and later merge their changes through pull requests.
Automatically promote an artifact from the development stage to production after unit tests pass.
Lock the main branch in read-only mode by duplicating it into a separate environment.
Creating a branch produces an isolated line of development that contains its own commit history. Each developer can work on a feature, bug fix, or experiment in a separate branch without affecting the main branch. When the work is ready, the branch is merged through a pull-request or merge-request process that includes code review and automated tests, ensuring controlled integration into the main codebase. Other options describe deployment orchestration or repository permissions, not the function of branches.
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 are branches crucial in CI/CD workflows?
Open an interactive chat with Bash
What is the difference between a feature branch and a main branch?
Open an interactive chat with Bash
How do pull requests facilitate branch integration?
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 .