exam questions

Exam AWS Certified Developer Associate All Questions

View all questions & answers for the AWS Certified Developer Associate exam

Exam AWS Certified Developer Associate topic 1 question 285 discussion

Exam question from Amazon's AWS Certified Developer Associate
Question #: 285
Topic #: 1
[All AWS Certified Developer Associate Questions]

A development team uses AWS CodeBuild for build and test activities in a PHP application. The build process requires the team to download and install three PHP packages from the internet. The install section of the buildspec.yml file includes commands to download and install these three packages. The team wants to reduce build time.

Which solution will reduce build time the MOST?

  • A. Download the package files from the internet. Upload the package files into an Amazon S3 bucket. Change the buildspec's install section to use the S3 bucket as the download location.
  • B. Define a VPC endpoint for CodeBuild. Install the package files on an Amazon EC2 instance in the VPC. Change the buildspec's install section to use the EC2 instance as the download location.
  • C. Run the build on Jenkins by using the Jenkins plugin for CodeBuild. Pre-install the packages on the Jenkins server once. Remove the install commands from the buildspec.
  • D. Create a custom CodeBuild image with the package files already downloaded and installed. Alter the CodeBuild project to use the custom image. Remove the install commands from the buildspec.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
nhaastrup
3 months, 3 weeks ago
D is the answer. I am doing the practice exam on the aws skill builder site. it has this same question, and the reasoning behind D is - A custom CodeBuild image is a Docker image that you create with everything you need to build and test a project. When a developer builds the application, CodeBuild will retrieve the Docker image from the container registry that the project configuration specifies. CodeBuild will use the environment to compile source code, run tests, and package an application. There is no need to download the packages from anywhere upon each build. This solution greatly reduces the build time.
upvoted 1 times
...
Cr4zyd34thg0d
1 year ago
Selected Answer: A
to accomplish this task using D. would require a Docker File as the link from k1kavi1 says. I believe its A due to Security best practices in relation to S3 being used as a place for file usage in a build.
upvoted 1 times
...
kyoharo
1 year, 5 months ago
Selected Answer: D
D. Create a custom CodeBuild image with the package files already downloaded and installed. Alter the CodeBuild project to use the custom image. Remove the install commands from the buildspec.
upvoted 1 times
...
rcaliandro
1 year, 10 months ago
Selected Answer: A
I will go with A. It is a good idea to download the packages, upload them to S3 and configure the codebuild to refer to S3 rather than download each time the dependencies. I don't think there is the possibility to create a "CodeBuild Image"
upvoted 3 times
...
Ankit1010
2 years, 2 months ago
D Creating a custom CodeBuild image with the required packages pre-installed will reduce build time the most because the package installation step will not need to be performed during the build. This can significantly decrease the build time, as downloading and installing packages can be a time-consuming process. Additionally, removing the install commands from the buildspec will prevent the build from waiting for the package installation step to complete, further reducing the build time.
upvoted 2 times
...
fe2
2 years, 3 months ago
Selected Answer: D
I would say D. Since it says "reduce build time the MOST". Option A, you need to download the packages from S3, but in option D, all the dependencies are already present inside the custom build image.
upvoted 2 times
...
BelloMio
2 years, 4 months ago
Selected Answer: D
D https://aws.amazon.com/blogs/devops/extending-aws-codebuild-with-custom-build-environments/ The doc mentions "To begin, we’ll clone codebuild-images from GitHub."
upvoted 1 times
...
michaldavid
2 years, 5 months ago
Selected Answer: A
I believe A is correct. There's no such think as CodeBuild image. It would have to be a docker image
upvoted 3 times
...
k1kavi1
2 years, 5 months ago
Selected Answer: D
https://aws.amazon.com/blogs/devops/extending-aws-codebuild-with-custom-build-environments/
upvoted 4 times
Cr4zyd34thg0d
1 year ago
I believe you linked why A is correct. This says to use a codebuild with custom it would be a Docker file, not a CodeBuild Image (which doesn't seem to exist)
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago