AWS - Developer Associate Study Guide

    3: Deployment

    This chapter walks through the artifact-preparation, environment-testing, and pipeline-promotion mechanics that the developer cert exercises. It covers Lambda packaging and aliases, Git workflows and CodeCommit, container images in Amazon ECR, configuration delivery through AWS AppConfig and AWS Secrets Manager, AWS SAM and AWS CDK authoring, and the AWS CI/CD service surface including AWS CodePipeline, AWS CodeBuild, AWS CodeDeploy, AWS CodeArtifact, AWS CloudFormation, AWS Elastic Beanstalk, AWS Amplify, and AWS Copilot.

    Learning Objectives

    By the end of this chapter, you will be able to:

    • Package and configure AWS Lambda functions for deployment, including layers, runtime settings, deployment strategies, and API mocking with Amazon API Gateway.
    • Apply Git-based version control with AWS CodeCommit and wire automated testing into a CI/CD pipeline that ships to AWS Elastic Beanstalk.
    • Build, tag, and push container images to Amazon Elastic Container Registry, share test reports with AWS CodeBuild, and roll Lambda updates through aliases.
    • Combine AWS AppConfig and AWS Secrets Manager with serverless deployments, exercise Lambda test events, and ship AWS SAM applications safely.
    • Author AWS SAM templates that deploy AWS Lambda, Amazon API Gateway, and Amazon DynamoDB; insert stage-level tests in AWS CodePipeline; and promote APIs through Amazon API Gateway stages.
    • Publish and consume artifacts through AWS CodeArtifact, exercise HTTP endpoints with cURL clients, and roll AWS CloudFormation stacks forward and backward safely.
    • Choose between AWS CloudFormation, AWS Amplify, AWS CDK, and AWS Copilot, and write the application files (AppSpec, SAM template) that drive each path.
    • Combine AWS SAM and AWS CDK to deploy applications for testing, and align Git branches with AWS CodePipeline source actions.

    Executive Summary

    • The deployment domain of the certification is about turning a working application into a repeatable, auditable, low-risk artifact-and-promotion pipeline on AWS, not about writing more application code.
    • Packaging answers (ZIP vs layer vs container image), pipeline answers (CodePipeline orchestrating CodeBuild and CodeDeploy), and configuration answers (AppConfig + Secrets Manager) are tested separately, and the exam expects clean separation of concerns across the three.
    • Deployment strategy choices (canary, linear, all-at-once for Lambda; blue/green for ECS, EKS, EC2 Auto Scaling Groups; rolling and immutable for Elastic Beanstalk; CloudFormation change sets and stack rollback for everything else) follow a small set of rules that map workload risk to traffic-shift cadence.
    • AWS SAM and AWS CDK each translate higher-level intent into CloudFormation; they are not separate runtimes, and recognizing that fact resolves many tricky distractors.

    Assumptions

    • Region and account: examples assume an account with administrative permissions in a single AWS Region; cross-account and cross-Region detail appears only where the syllabus item depends on it.
    • Naming: services keep their official names ("Amazon X" for managed data planes such as Amazon S3 and Amazon ECR, "AWS X" for management or developer-tools services such as AWS Lambda, AWS CodeBuild, and AWS CodeDeploy).
    • Terminology: terms defined in earlier chapters (idempotency, event source mapping, reserved concurrency, provisioned concurrency, KMS customer-managed key, IAM role, Lambda execution role, environment variables, AWS Lambda Powertools) are reused without re-definition.
    • Scope: this is a developer chapter, so operations such as patch baselines, AMI hardening, and runbook design fall outside the discussion; the focus is artifact-to-running-workload mechanics.

    Sections in this chapter

    1. Free
    2. Free with account
    3. Free with account
    4. Free with account
    5. Free with account
    6. Free with account
    7. Free with account
    8. Free with account
    9. Free with account