Secure Location for Storing BuildSpec Files | AWS Certified Developer Exam

Secure Location for Storing BuildSpec Files

Prev Question Next Question

Question

For security reasons, the Development Team is looking for an alternate secure location for saving BuildSpec files for a New Build Project in the US-west region.

Which of the following options can be used for storing BuildSpec file?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

Correct Answer - B.

By Default, the Buildspec file is stored in the root of the source directory.

Alternatively, this file can be saved in an Amazon S3 bucket in the same region as that of the Build Project.

Option A is incorrect as the Buildspec file can be saved in other locations apart from the source directory's default root.

Option C is incorrect as the Buildspec file needs to be saved only in the Amazon S3 bucket in the same region as that of the Build Project.

Option D is incorrect as Buildspec Folder is not required for the Buildspec file to be saved.

For more information on the Buildspec file, refer to the following URL-

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

The BuildSpec file is a YAML-formatted file that is used by AWS CodeBuild to run a build project. It is typically stored in the root of the source directory, but it can also be stored in the Buildspec folder of the source directory.

If the Development Team wants to store the BuildSpec file in a secure location outside of the root of the source directory, then option B or C would be the best choice.

Option B suggests storing the BuildSpec file in an Amazon S3 bucket in the same region as the Build Project. This option is a good choice for a secure location as Amazon S3 is designed to provide high durability, availability, and scalability of data.

Option C suggests storing the BuildSpec file in an Amazon S3 bucket in any other region from the Build Project. While this option can be used, it may introduce additional latency and network costs when accessing the BuildSpec file during the build process.

Option A is incorrect, as the BuildSpec file can be stored in the Buildspec folder of the source directory.

Therefore, the correct answer would be either option B or C, depending on the specific needs and requirements of the Development Team.