SkillSprout
Chapter 7 · Lesson 2
Beginner
5 min read

Developer Tools and DevOps Services

Overview

Software teams need a way to store code, build it, test it and deploy it safely. AWS offers developer tools that cover each step, often described as a CI/CD pipeline (continuous integration and continuous delivery).

Think of a car factory line. Source code is the raw material (CodeCommit or GitHub), CodeBuild is the assembly station, CodeArtifact is the parts warehouse, CodeDeploy delivers the finished car to the showroom, and CodePipeline is the conveyor belt linking all stations. X-Ray is the inspector tracing a defect back to the station that caused it.

The exam only asks you to recognise each tool and match it to its job.

Key Concepts

  • AWS CodeCommit is a managed Git repository service; note that AWS closed it to new customers in 2024, though it remains in the exam guide.
  • AWS CodeBuild compiles source code, runs tests and produces deployable artifacts with no build servers to manage.
  • AWS CodeDeploy automates deployments to EC2, on-premises servers, Lambda and ECS.
  • AWS CodePipeline orchestrates the stages (source, build, test, deploy) of a release process.
  • AWS CodeArtifact is a managed artifact repository for packages such as npm, PyPI, Maven and NuGet.
  • AWS X-Ray traces requests across distributed applications to find bottlenecks and errors.
  • AWS AppConfig (part of Systems Manager) deploys application configuration and feature flags safely.
  • AWS Cloud9 (cloud IDE, closed to new customers in 2024) and AWS CloudShell (browser-based shell) provide development environments; AWS CodeStar (project dashboard) was discontinued in 2024.

Detailed Notes

The CI/CD pipeline

StagePurposeAWS service
SourceStore and version codeCodeCommit (or GitHub, Bitbucket via CodeConnections)
Build and testCompile, run unit tests, packageCodeBuild
ArtifactsStore libraries and dependenciesCodeArtifact
DeployRelease to servers, containers, functionsCodeDeploy
OrchestrateLink and automate all stagesCodePipeline
ObserveTrace and debug running applicationsX-Ray, CloudWatch

Tool by tool

ToolKey points
CodeBuildPay per build minute; runs in containers; reads a buildspec.yml file
CodeDeploySupports in-place and blue/green deployments; uses appspec files; can roll back automatically
CodePipelineTriggers on code change; integrates with approvals and third-party tools
CodeArtifactProxies public repositories and keeps private packages secure
X-RayGenerates a service map and traces of individual requests
AppConfigGradual config rollout with validators and automatic rollback
CloudShellBrowser shell already authenticated with your console credentials
yaml
# buildspec.yml for CodeBuild
version: 0.2
phases:
  install:
    commands:
      - npm ci
  build:
    commands:
      - npm test
      - npm run build
artifacts:
  files:
    - "dist/**/*"

Deployment strategies

StrategyDescriptionRisk
In-placeUpdate existing instancesDowntime or partial failure
Blue/greenDeploy to a parallel environment then switch trafficLow; instant rollback
Canary/linearShift traffic graduallyLow; limits blast radius

Observability with X-Ray

When a customer request passes through API Gateway, Lambda and DynamoDB, X-Ray records a trace with timing at each hop. Engineers can see that 80% of latency is in one downstream call and fix it, instead of guessing.

Legacy and changed services

Because the exam guide still lists some services AWS has since retired for new customers, know their purpose even though you should plan alternatives in real projects.

ServiceStatus (2025)Alternative
CodeCommitClosed to new customers (July 2024)GitHub, GitLab or Bitbucket with CodePipeline
Cloud9Closed to new customers (2024)CloudShell, local IDE, VS Code remote
CodeStarDiscontinued (July 2024)CodeCatalyst or direct CodePipeline setup

Access methods summary

Developers reach AWS through the console, CLI, SDKs (Python Boto3, JavaScript, Java and more) and CloudShell. All sign requests with IAM credentials, so permissions are controlled in one place.

Real World Example

A web agency pushes code to a Git repository. CodePipeline detects the commit, runs CodeBuild to execute tests, pulls private libraries from CodeArtifact, and calls CodeDeploy to roll out the new version using blue/green to an Auto Scaling group.

After release, customers report slow checkouts. The team opens AWS X-Ray, spots a slow third-party call in the trace and fixes it. New feature switches are changed with AppConfig without redeploying the code.

Architecture Diagram

A CI/CD pipeline on AWS
Architecture
AWS Cloud
Developergit push
Source repo
CodeBuildbuild + test
CodeDeploy
Production
  1. 1A developer pushes code to the source repository.
  2. 2CodePipeline starts and calls CodeBuild to compile and test.
  3. 3Packages are fetched from CodeArtifact during the build.
  4. 4CodeDeploy releases the build, for example using blue/green.
  5. 5X-Ray and CloudWatch monitor the live application.

Best Practices

  • ✓Automate build, test and deploy in a pipeline so every release is repeatable.
  • ✓Use blue/green or canary deployments with automatic rollback.
  • ✓Store private packages in CodeArtifact and avoid pulling untrusted public packages directly.
  • ✓Enable X-Ray tracing on microservices to find latency early.
  • ✓Roll out configuration changes with AppConfig instead of redeploying.

Common Interview Questions

Exam Tips

CLF-C02 focus

  • "Managed Git repository" = CodeCommit; "build and test" = CodeBuild; "deploy" = CodeDeploy; "pipeline" = CodePipeline.
  • "Trace requests across microservices" = AWS X-Ray.
  • "Private package repository" = CodeArtifact.
  • "Browser-based shell" = CloudShell; "cloud IDE" = Cloud9; "feature flags and config" = AppConfig.

Finished this lesson?

0 of 43 lessons done · 0% of the course