Skip to Content

DVA-C02: How to Deploy and Maintain Static Websites on AWS with Git Branches and HTTPS

Learn how to use AWS services to deploy and maintain static websites on AWS from various version control systems. Discover how to implement phased releases with Git branches and HTTPS for secure data exchange. Find out the best solution that requires minimal operational overhead.

Question

A company wants to deploy and maintain static websites on AWS. Each website’s source code is hosted in one of several version control systems, including AWS CodeCommit, Bitbucket, and GitHub.

The company wants to implement phased releases by using development, staging, user acceptance testing, and production environments in the AWS Cloud. Deployments to each environment must be started by code merges on the relevant Git branch. The company wants to use HTTPS for all data exchange. The company needs a solution that does not require servers to run continuously.

Which solution will meet these requirements with the LEAST operational overhead?

A. Host each website by using AWS Amplify with a serverless backend. Conned the repository branches that correspond to each of the desired environments. Start deployments by merging code changes to a desired branch.

B. Host each website in AWS Elastic Beanstalk with multiple environments. Use the EB CLI to link each repository branch. Integrate AWS CodePipeline to automate deployments from version control code merges.

C. Host each website in different Amazon S3 buckets for each environment. Configure AWS CodePipeline to pull source code from version control. Add an AWS CodeBuild stage to copy source code to Amazon S3.

D. Host each website on its own Amazon EC2 instance. Write a custom deployment script to bundle each website’s static assets. Copy the assets to Amazon EC2. Set up a workflow to run the script when code is merged.

Answer

A. Host each website by using AWS Amplify with a serverless backend. Conned the repository branches that correspond to each of the desired environments. Start deployments by merging code changes to a desired branch.

Explanation

The correct answer is A. Host each website by using AWS Amplify with a serverless backend. Connect the repository branches that correspond to each of the desired environments. Start deployments by merging code changes to a desired branch.

Here is a detailed explanation:

  • Option A is the most suitable solution because it meets all the requirements with the least operational overhead. AWS Amplify is a service that allows developers to build and deploy static websites with a serverless backend, without managing any servers or infrastructure. AWS Amplify can connect to various version control systems, including AWS CodeCommit, Bitbucket, and GitHub, and automatically deploy changes from different branches to different environments. AWS Amplify also supports HTTPS for all data exchange and provides features such as authentication, analytics, and hosting.
  • Option B is not suitable because it requires servers to run continuously, which increases the operational overhead and cost. AWS Elastic Beanstalk is a service that automates the deployment and scaling of web applications on AWS. However, it requires developers to provision and manage EC2 instances or other resources for hosting the applications. AWS Elastic Beanstalk also does not support phased releases by default and requires additional configuration to link each repository branch to each environment.
  • Option C is not suitable because it does not support HTTPS for all data exchange by default and requires additional configuration to enable it. Amazon S3 is a service that provides object storage for various use cases, including hosting static websites. However, Amazon S3 does not support HTTPS for custom domains without using another service such as Amazon CloudFront or AWS Certificate Manager. Amazon S3 also does not provide features such as authentication and analytics for static websites.
  • Option D is not suitable because it requires servers to run continuously and custom scripts to deploy the websites, which increases the operational overhead and complexity. Amazon EC2 is a service that provides virtual servers for running applications on AWS. However, it requires developers to manage and maintain the servers, including security, scaling, backup, and monitoring. Moreover, it requires developers to write custom scripts to bundle and copy the static assets to the EC2 instances and set up a workflow to run the script when code is merged.

Therefore, option A is the best solution that meets the requirements with the least operational overhead.

The latest AWS Certified Developer – Associate DVA-C02 certification actual real practice exam question and answer (Q&A) dumps are available free, which are helpful for you to pass the AWS Certified Developer – Associate DVA-C02 exam and earn AWS Certified Developer – Associate DVA-C02 certification.

AWS Certified Developer - Associate DVA-C02 Exam Questions and Answers

Alex Lim is a certified IT Technical Support Architect with over 15 years of experience in designing, implementing, and troubleshooting complex IT systems and networks. He has worked for leading IT companies, such as Microsoft, IBM, and Cisco, providing technical support and solutions to clients across various industries and sectors. Alex has a bachelor’s degree in computer science from the National University of Singapore and a master’s degree in information security from the Massachusetts Institute of Technology. He is also the author of several best-selling books on IT technical support, such as The IT Technical Support Handbook and Troubleshooting IT Systems and Networks. Alex lives in Bandar, Johore, Malaysia with his wife and two chilrdren. You can reach him at [email protected] or follow him on Website | Twitter | Facebook

    Ads Blocker Image Powered by Code Help Pro

    Your Support Matters...

    We run an independent site that is committed to delivering valuable content, but it comes with its challenges. Many of our readers use ad blockers, causing our advertising revenue to decline. Unlike some websites, we have not implemented paywalls to restrict access. Your support can make a significant difference. If you find this website useful and choose to support us, it would greatly secure our future. We appreciate your help. If you are currently using an ad blocker, please consider disabling it for our site. Thank you for your understanding and support.