
Ultimate access to all questions.
Answer-first summary for fast verification
Answer: Run AWS CodeBuild locally using CodeBuild Agent
Overall explanation Correct option: Run AWS CodeBuild locally using CodeBuild Agent AWS CodeBuild is a fully managed build service. There are no servers to provision and scale, or software to install, configure, and operate. With the Local Build support for AWS CodeBuild, you just specify the location of your source code, choose your build settings, and CodeBuild runs build scripts for compiling, testing, and packaging your code. You can use the AWS CodeBuild agent to test and debug builds on a local machine. By building an application on a local machine you can: Test the integrity and contents of a buildspec file locally. Test and build an application locally before committing. Identify and fix errors quickly from your local development environment. Incorrect options: SSH into the CodeBuild Docker container - It is not possible to SSH into the CodeBuild Docker container, that's why you should test and fix errors locally. Freeze the CodeBuild during its next execution - You cannot freeze the CodeBuild process but you can stop it. Please see more details on - https://docs.aws.amazon.com/codebuild/latest/userguide/stop-build.html Enable detailed monitoring - Detailed monitoring is available for EC2 instances. You do not enable detailed monitoring but you can specify output logs to be captured via CloudTrail. AWS CodeBuild is integrated with AWS CloudTrail, a service that provides a record of actions taken by a user, role, or an AWS service in CodeBuild. CloudTrail captures all API calls for CodeBuild as events, including calls from the CodeBuild console and from code calls to the CodeBuild APIs. If you create a trail, you can enable continuous delivery of CloudTrail events to an S3 bucket, including events for CodeBuild.
Author: LeetQuiz Editorial Team
No comments yet.
A developer within your organization has set up a build process utilizing AWS CodeBuild, but the build is failing. The developer needs an efficient way to diagnose the problem by identifying the specific commands or configurations in the BuildSpec file that are causing the failure.
What method would assist the developer in achieving this?
A
SSH into the CodeBuild Docker container
B
Run AWS CodeBuild locally using CodeBuild Agent
C
Freeze the CodeBuild during its next execution
D
Enable detailed monitoring