AWS Certified Cloud Practitioner Exam: Automating Application Updates with AWS

Automating Application Updates with AWS

Question

A developer would like to automate the installation by updating a set of applications on a series of EC2 instances and on-premises servers.

Which is the most appropriate service to use to achieve this requirement?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

Correct Answer - C.

AWS CodeDeploy is a deployment service that allows developers to automate the installation of applications to hosts, Amazon EC2 instances, Amazon ECS instances, serverless Lambda functions, or even on-premises servers.

AWS CodeDeploy can enable the update of those applications.

https://docs.aws.amazon.com/codedeploy/latest/userguide/welcome.html

Option A is INCORRECT.

AWS CodeBuild is a fully managed service that primarily compiles source code and runs unit tests with the output being artifacts ready for deployment.

https://docs.aws.amazon.com/codebuild/latest/userguide/welcome.html

Option B is INCORRECT.

AWS CodeCommit service primarily serves to control software build versions and private storage for software development assets such as binary files, source code and related documentation.

https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html

Option D is INCORRECT.

AWS CloudFormation will not be able to run deployments of applications onto on-premises infrastructure.

Furthermore, AWS CloudFormation automates the deployment of AWS resources but not applications and code onto hosts.

The most appropriate service to automate the installation of applications on EC2 instances and on-premises servers is AWS CodeDeploy (option C).

AWS CodeDeploy is a fully managed deployment service that automates software deployments to a variety of compute services, including Amazon EC2 instances and on-premises servers. CodeDeploy makes it easier to rapidly release new features, helps avoid downtime during deployment, and handles the complexity of updating applications.

AWS CodeBuild (option A) is a fully managed build service that compiles source code, runs tests, and produces software packages that are ready to deploy. CodeBuild does not deploy the code, but rather is a part of the software development pipeline that occurs before deployment.

AWS CodeCommit (option B) is a fully managed source control service that makes it easy for companies to host secure and highly scalable private Git repositories. CodeCommit does not directly assist with the deployment of code but can be used as a part of a code pipeline.

AWS CloudFormation (option D) is a service that provides a common language for describing and provisioning infrastructure resources in the cloud. It is typically used for creating and managing AWS resources, rather than deploying applications to EC2 instances and on-premises servers.

Therefore, the most appropriate service for automating the installation of applications on EC2 instances and on-premises servers is AWS CodeDeploy.