This lab is currently in Beta, content may be updated as we refine the material
LABADVANCED

Capstone: Secure Serverless DevOps Workflow

Integrate all six DOP-C02 domains in one end-to-end drill: least-privilege IAM, encrypted S3 artifacts, CodePipeline with manual approval, Lambda alias deployment, CloudWatch alarms with EventBridge auto-remediation, and a full IAM policy simulation audit.

90 minutes
aws/devops
Capstone: Secure Serverless DevOps Workflow - Platform Engineering Hands-On Lab Icon
Share this Lab

Lab Overview

This is the DOP-C02 capstone lab that ties together SDLC automation, Infrastructure as Code, monitoring and observability, incident response, security and compliance, and resilient architectures into a single end-to-end workflow.

You will act as a senior DevOps engineer tasked with delivering a secure, observable serverless application. Every decision you make here mirrors a real exam scenario and production pattern.

You will:

  • Design least-privilege IAM roles for Lambda execution and CodePipeline service, with scoped permissions and resource tagging
  • Create a KMS-encrypted S3 artifact bucket and a versioned source bucket
  • Build a four-stage CodePipeline (Source, Build, Manual Approval, Deploy) with a CodeBuild buildspec that packages a Python Lambda
  • Deploy a Lambda function with immutable versions and a weighted PROD alias, then alarm on Lambda errors via CloudWatch + SNS
  • Wire an EventBridge rule to trigger on CloudWatch Alarm state changes and invoke an auto-remediation Lambda that logs the incident and can roll back the alias
  • Run `aws iam simulate-principal-policy` to validate least-privilege posture and generate a capstone audit report documenting all resources and security decisions

Region: `us-east-1`. Instance type: `t2.small` workstation. All resources are tagged `lab=true,Course=dop-c02` so the cleanup script can sweep them on lab stop. This lab intentionally combines CLI-based operations, IAM policy authoring, pipeline orchestration, alarm engineering, and EventBridge event-driven remediation in a single 90-minute session.

What You'll Learn

Design and attach least-privilege IAM roles for Lambda execution and CodePipeline service operation

Create a KMS-encrypted S3 artifact bucket and a versioned S3 source bucket with resource tagging

Build a CodePipeline with S3 source, CodeBuild build, manual approval, and Lambda deploy stages

Author a buildspec.yml that packages a Python Lambda function and publishes a new immutable version

Deploy a Lambda function with a weighted PROD alias pointing to a specific version

Configure a CloudWatch alarm on Lambda error metrics with an SNS notification target

Create an EventBridge rule that matches CloudWatch Alarm state changes and triggers an auto-remediation Lambda

Run IAM policy simulation to validate least-privilege posture and produce a security audit report

Demonstrate end-to-end CI/CD flow: push source, build, approve, deploy, monitor, and remediate

Prerequisites

completed-end-to-end-codepipeline-delivery-lab

completed-cdk-serverless-delivery-lab

completed-iam-least-privilege-boundary-lab

completed-cloudwatch-logs-metric-filters-alarms-lab

aws-devops-associate-level-knowledge

Technologies Covered

awscodepipelinecodebuildlambdacloudwatcheventbridgesnsiamkmss3cicdserverlesscapstonedop-c02

Part of a Course

This lab is part of the AWS Certified DevOps Engineer - Professional (DOP-C02) course

View All Courses

Choose your plan

Simple, Transparent Pricing

Unlock full access to TeKanAid courses, labs, and bootcamps

Buying for a team? Private corporate training is available for up to 15 learners.View team training
MonthlyQuarterly
Try Premium free for 7 days →

Just exploring? Start free below. Want the full experience? Try Premium free for 7 days (card required, $0 today).

Pro

All courses, with lab scripts to run on your own machine

$59/month

Renews automatically. Cancel anytime.

Final price verified at checkout.

  • Full access to all courses
  • Lab scripts to download and run on your own machine (hosted labs not included)
  • Progress tracking
  • Certificate of completion
  • Community access
  • Self-paced bootcamps
  • Premium puzzle library not included (5 free puzzles available)
  • New content access
Recommended

Premium

Full access, including unlimited hosted labs

$99/month

Renews automatically. Cancel anytime.

Final price verified at checkout.

  • Everything in Pro
  • Unlimited hands-on labs, fully hosted on TeKanAid Academy (nothing to set up)
  • Full access to the puzzle library
  • Lab AI Assistant
  • Priority support

Prefer a single course?

Purchase individual courses for a one-time fee of $79. Full access to course content, quizzes, certificates, and community features, lab access is not included.

Browse Courses

Just exploring? Start free, no account needed

Three free ways to start. All bridge into the paid Premium catalog when you're ready.

Not ready to commit? The crash course is email-only. No academy account required.

Ready to Get Started?

Start this hands-on lab and build real-world Platform Engineering skills

Get Access Now