Bitzu

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

Single choice

Which AWS service compiles source code and runs unit tests without you managing build servers?

  1. AWS CodePipeline
  2. AWS X-Ray
  3. AWS CodeBuild
  4. 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.

Select all that apply

Which statements about AWS CodePipeline are correct?

  1. It can start a run automatically when new code is committed
  2. It traces live user requests across microservices
  3. It organises a release into stages such as source, build and deploy
  4. It writes unit tests for your code automatically
  5. 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.

True or false

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.

Download on the App StoreGet it on Google Play

More CLF-C02 topics in this module