A company runs an AWS CodeBuild project on medium-sized Amazon EC2 instances. The company wants to cost optimize the project and reduce the provisioning time.
A.
Configure the project to run on a CodeBuild reserved capacity fleet.
B.
Select AWS Lambda as the compute mode for the CodeBuild project.
C.
Configure the project to run on a CodeBuild on-demand fleet.
D.
Set up Amazon S3 caching for the CodeBuild project.
Comprehensive and Detailed Step-by-Step Explanation:
Option D: Set up Amazon S3 Caching for CodeBuild:
CodeBuild supports S3 caching to store intermediate build artifacts and dependencies. This reduces the time required to download dependencies during subsequent builds, effectively lowering costs and improving build performance.
By using S3 caching, developers can optimize costs without changing the compute type or adding complexity.
Why Other Options Are Incorrect:
Option A:CodeBuild does not have a "reserved capacity fleet" option.
Option B:AWS Lambda cannot be used as the compute mode for CodeBuild projects. CodeBuild uses its own managed build environments.
Option C:CodeBuild already operates on an on-demand basis, so this does not address the need for optimization or reduced provisioning time.
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit