CLF-C02 ยท Integration, developer, end-user and management services
Developer tools: CodeBuild, CodePipeline and X-Ray
AWS CodeBuild, AWS CodePipeline for CI/CD and AWS X-Ray for tracing and troubleshooting distributed applications.
Key points
- AWS CodeBuild: managed build service; compiles code, runs tests, produces artifacts, no build servers to run.
- AWS CodePipeline: automates releases (CI/CD), chaining source, build, test and deploy stages on every code change.
- AWS X-Ray: traces requests through a distributed application and draws a trace map showing which service causes latency or errors.
Source: https://docs.aws.amazon.com/xray/latest/devguide/aws-xray.html
Practice questions
Which AWS service compiles source code and runs unit tests without you managing build servers?
- AWS CodePipeline
- AWS X-Ray
- AWS CodeBuild
- AWS Systems Manager
Show answer
Answer: C. AWS CodeBuild
AWS CodeBuild is the managed build and test service. CodePipeline orchestrates the release stages and typically calls CodeBuild for the build stage, but it does not compile code itself.
Which statements about AWS CodePipeline are correct?
- It can start a run automatically when new code is committed
- It traces live user requests across microservices
- It organises a release into stages such as source, build and deploy
- It writes unit tests for your code automatically
- It can use AWS CodeBuild for its build stage
Show answer
Answer: A. It can start a run automatically when new code is committed, C. It organises a release into stages such as source, build and deploy, E. It can use AWS CodeBuild for its build stage
CodePipeline models a release as ordered stages and starts automatically when the source changes, and it can hand the build stage to CodeBuild. It does not trace live requests (X-Ray) and it does not replace the need to write tests.
AWS X-Ray is a CI/CD service that deploys new application versions to production.
Show answer
Answer: False
False. X-Ray analyses and debugs running applications by tracing requests. Moving code from commit to production is the job of AWS CodePipeline, with CodeBuild for builds.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
