AWS CodeDeploy Prerequisites for Configuring On-Premises Instances

Prerequisites for AWS CodeDeploy on On-Premises Instances

Prev Question Next Question

Question

A large financial company runs a Cloud Hybrid environment.

Previously, separate deployment tools are used for on-premises and AWS servers.

There is an increasing need to manage the deployment with the same tool for all the instances.

You proposed to use AWS CodeDeploy for this requirement.

Given that all existing on-premise machines are running on Ubuntu 16.04 LTS operating system, which prerequisites must be met to configure on-premises instances with AWS CodeDeploy? (Select TWO.)

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D. E.

Correct Answer - A, D.

AWS CodeDeploy can help manage the deployment of both on-premise and EC2 instances.

However, some prerequisites need to be met for on-premise servers.

Refer to.

https://docs.aws.amazon.com/codedeploy/latest/userguide/instances-on-premises-prerequisites.html

for the details.

Option A is CORRECT: Because administrative control is required for CodeDeploy service.

Otherwise, the deployment will not be successful.

Option B is incorrect: Because outbound port 80 is unnecessary.

Instead, the CodeDeploy agent needs HTTPs port 443 to communicate with AWS.

Option C is incorrect: Because this is not a requirement for CodeDeploy agent.

The agent itself is a Ruby package.

Option D is CORRECT: Because this is required to register the instance to AWS CodeDeploy service.

Option E is incorrect: Because the internet connection can meet the need.

VPN/Direct Connect is not mandatory.

To configure on-premises instances with AWS CodeDeploy, you need to meet certain prerequisites. The correct prerequisites are:

A. The local account used to configure the on-premises instance must be able to run either as sudo or root. D. The IAM identity to register the on-premises instance in CodeDeploy service must be granted proper permissions.

Explanation:

A. The local account used to configure the on-premises instance must be able to run either as sudo or root: The CodeDeploy agent needs elevated privileges to install and run on-premises instances. Therefore, the user account used to configure the on-premises instance must be able to run either as sudo or root. The agent uses the elevated privileges to access and modify system files and directories during the installation and configuration process.

D. The IAM identity to register the on-premises instance in CodeDeploy service must be granted proper permissions: The IAM identity used to register the on-premises instance with CodeDeploy service must have the required permissions to access the AWS resources. The IAM policy must include the necessary permissions to register instances with CodeDeploy, attach instances to CodeDeploy deployment groups, and access the necessary AWS resources such as Amazon S3 buckets and EC2 instances.

Explanation of incorrect options:

B. The on-premises instance must open port 80 for the outbound traffic to connect to public AWS service endpoints. This option is incorrect because the CodeDeploy agent uses HTTPS to communicate with the CodeDeploy service. There is no requirement to open port 80 for outbound traffic.

C. Java 8 should be installed in order for CodeDeploy agent to work properly. This option is incorrect because the CodeDeploy agent can be installed on an Ubuntu 16.04 LTS instance without Java 8. However, if you plan to use the advanced features of the agent, such as deployment hooks, then you need to install Java 8.

E. A VPN connection or a Direct Connect should be established between on-premises environment and AWS VP. This option is incorrect because a VPN connection or a Direct Connect is not required to configure on-premises instances with CodeDeploy. However, if you plan to use CodeDeploy to deploy updates to on-premises instances over the internet, then you need to ensure that the instances can communicate with the CodeDeploy service endpoints.