Exams / DVA-C02 / Versions, aliases and stages / Question 3
DVA-C02 practice question: Versions, aliases and stages (3 of 3)
Deployment A free question from our original DVA-C02 practice exam. Try it, then open the answer to see why each option is right or wrong.
A front-end team hosts a web app with AWS Amplify Hosting connected to a Git repository. They want the main branch to serve production and the develop branch to be deployed automatically to a separate URL for beta testers. What should the developer do?
Choose one answer.
- AA. Create a second Amplify app with a copy of the repository for the develop branch.
- BB. Connect the develop branch to the existing Amplify app as an additional branch.
- CC. Deploy the develop branch to a folder in the production S3 bucket by hand.
- DD. Use an AWS CodeDeploy deployment group to send develop builds to a test fleet.
Show the answer and explanation
Answer: B
- A. Wrong: A second copy of the repository is unnecessary and would drift from the original.
- B. Right: Correct. Each connected branch gets its own build, deployment and URL on the app's domain.
- C. Wrong: This bypasses Amplify's managed builds and risks mixing beta content with production.
- D. Wrong: Amplify Hosting manages deployments itself. CodeDeploy deployment groups target EC2, on-premises, Lambda or ECS.
Explanation
Amplify Hosting supports feature branch workflows. Every Git branch you connect to an app gets its own continuous deployment and URL, so production and testing environments stay separate while sharing one app configuration.
Study
Keep practising
Answer questions with a score at the end, or practise just this topic with the explanation after each one. No sign-up needed.