AWS CodeBuild Environment Images | Valid Options for Building Applications

AWS CodeBuild Environment Images

Prev Question Next Question

Question

The DevOps team is evaluating AWS CodeBuild to see if it is suitable for the new applications which are under development.

In order to build artifacts for these applications, different images or environments are required.

In AWS CodeBuild, environment image needs to be selected in which the build project will run.

Which environment image is a valid one for CodeBuild? (Select TWO.)

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D. E.

Correct Answer - C, E.

Check https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref.html.

for the build environments of CodeBuild.

There are two types of environments - CodeBuildmanaged images and Custom images:

Option A is incorrect: Because RedHat Linux image is not a supported one.

Option B is incorrect: Because custom image should be a docker image.

Option C is CORRECT: Because Window server image is a valid one according to the above link.

Option D is incorrect: Because a docker image should be used instead of an AMI.

Option E is CORRECT: According to.

https://aws.amazon.com/about-aws/whats-new/2019/01/aws-codebuild-now-supports-accessing-images-from-private-docker-registry/

any private registry is supported as the build environment in AWS CodeBuild.

© AWS CodesStar Project Checkout

AWS CodeStar Project Selection
Select the AWS CodeStar project you want to checkout from the remote host.

Select AWS account and region:

Selec Account Confau AWS account
Selec Resin:

Select AWS CodeStar project and repository:

Project Name ProjectID Project Description

| My First Project. my-first-projec ‘AWS CodeStar created project |
Select epostone [my fistprojee 5]
CComfigure Git credentials

You can manually copy and paste Git credentials for AWS CodeCommit below. Alternately, you
‘can import them from a downloaded .csv file. To learn how to generate Git credentials, see Create
Git Credentials for HTTPS Connections to AWS CodeCommit,

User name:

Password:

[show password

® Beck Finish

AWS CodeBuild is a fully managed continuous integration and continuous delivery service that enables developers to build, test, and deploy their applications with ease. In AWS CodeBuild, the environment image is required to be selected in which the build project will run. This environment image contains the operating system, runtime, and build tools necessary to build the project.

The valid environment images for AWS CodeBuild are:

A. A RedHat Linux image managed by AWS CodeBuild: This is a pre-configured Linux environment image managed by AWS that contains the necessary tools to build and test applications. It is regularly updated and maintained by AWS, so it ensures a secure and reliable build environment.

C. A Windows server image managed by AWS CodeBuild: This is a pre-configured Windows environment image managed by AWS that contains the necessary tools to build and test Windows-based applications. It is regularly updated and maintained by AWS, so it ensures a secure and reliable build environment.

E. A custom Docker image which is hosted in an external Docker registry: This option allows developers to use their own custom Docker image to build their applications. The custom Docker image must be hosted in an external Docker registry such as Docker Hub, Amazon ECR, or any other Docker registry that CodeBuild can access.

B. A Suse Linux image managed by the user: AWS CodeBuild does not provide pre-configured Suse Linux environment images. However, developers can create their own custom environment images using the AWS Management Console or the AWS Command Line Interface (CLI). The custom environment image can then be used in CodeBuild.

D. A Centos Linux image from an AMI created by the user: AWS CodeBuild does not provide pre-configured Centos Linux environment images. However, developers can create their own custom environment images using the AWS Management Console or the AWS Command Line Interface (CLI). The custom environment image can then be used in CodeBuild.

In summary, the valid environment images for AWS CodeBuild are the pre-configured Linux and Windows images managed by AWS, as well as custom Docker images hosted in an external Docker registry. Developers can also create their own custom environment images using the AWS Management Console or the AWS Command Line Interface (CLI) for use in CodeBuild.