A retail company wants to release a new gift-card checkout in production but keep it hidden until a marketing launch.
On launch day it wants to enable the feature gradually, starting small, and roll back automatically if the application's error-rate alarm fires. All of this must happen without redeploying any application code.
What should the developer use?
Choose one answer.
AA. AWS CodeDeploy with a canary configuration that shifts a small share of traffic to a new application version first.
BB. An AWS AppConfig feature flag, deployed with a gradual deployment strategy that is linked to a CloudWatch alarm.
CC. A Lambda environment variable holding the flag, changed in stages through the function configuration.
DD. An AWS CloudFormation parameter for the flag, updated in steps by running stack updates.
Show the answer and explanation
Answer: B
A. Wrong: CodeDeploy shifts traffic between versions of the code, so each release step is a deployment of code. The company wants to switch the feature on and off without redeploying, which needs a configuration service.
B. Right: Correct. AppConfig manages feature flags separately from code and rolls out changes gradually. If a configured CloudWatch alarm fires during the rollout, AppConfig rolls the change back automatically. Learn more: What is AWS AppConfig? (opens in a new tab)
C. Wrong: Changing an environment variable creates a new function configuration, and each stage is a manual step. There is no gradual rollout or alarm-based rollback built in.
D. Wrong: Stack updates can change the flag, but each one is a deployment with no percentage-based rollout and no automatic rollback tied to an application alarm.
Explanation
AWS AppConfig holds feature flags outside the application code, deploys changes gradually, and can roll back automatically when a CloudWatch alarm fires. Code deployment tools and stack or function configuration updates change the release itself and do not offer a monitored, gradual flag rollout.
Want more on Packaging and application configuration? The 5 full-length practice sets have 15 more Packaging and application configuration questions, 390 in all, none of them in the free exam. One payment of $14.99, no subscription. See the practice sets →