nerdexam
Amazon

SAP-C02 · Question #236

A new startup is running a serverless application using AWS Lambda as the primary source of compute. New versions of the application must be made available to a subset of users before deploying…

The correct answer is C. A canary deployment. For a serverless application, deploying new versions to a subset of users with easy rollback capabilities is best achieved using an AWS CodeDeploy canary deployment.

Submitted by kim_seoul· Mar 6, 2026Continuous Improvement for Existing Solutions

Question

A new startup is running a serverless application using AWS Lambda as the primary source of compute. New versions of the application must be made available to a subset of users before deploying changes to all users. Developers should also have the ability to stop the deployment and have access to an easy rollback mechanism. A solutions architect decides to use AWS CodeDeploy to deploy changes when a new version is available. Which CodeDeploy configuration should the solutions architect use?

Options

  • AA blue/green deployment
  • BA linear deployment
  • CA canary deployment
  • DAn all-at-once deployment

How the community answered

(56 responses)
  • A
    16% (9)
  • B
    7% (4)
  • C
    73% (41)
  • D
    4% (2)

Why each option

For a serverless application, deploying new versions to a subset of users with easy rollback capabilities is best achieved using an AWS CodeDeploy canary deployment.

AA blue/green deployment

Blue/green deployments typically involve spinning up a completely new environment and then switching traffic, which, while offering rollback, is less granular for 'subset of users' testing in a phased manner compared to canary deployments for Lambda.

BA linear deployment

A linear deployment gradually shifts traffic over a defined period, which is a phased rollout but doesn't emphasize the initial small subset testing for early issue detection as effectively as a canary deployment.

CA canary deploymentCorrect

A canary deployment strategy allows a new application version to be released to a small, controlled percentage of users first, enabling early detection of issues before a full rollout and providing an immediate rollback mechanism by shifting traffic back to the previous stable version.

DAn all-at-once deployment

An all-at-once deployment immediately exposes all users to the new version, offering no gradual rollout or easy rollback mechanism in case of issues.

Concept tested: AWS CodeDeploy deployment types for Lambda

Source: https://docs.aws.amazon.com/codedeploy/latest/userguide/deployment-details-options.html

Community Discussion

No community discussion yet for this question.

Full SAP-C02 Practice