SAP-C02 Continuous Improvement for Existing Solutions Practice Question
A company has a stateful web application running on Amazon EC2 instances. They want to implement blue/green deployments to reduce downtime. Which TWO actions should the company take? (Choose TWO.)
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Migrate session state to Amazon ElastiCache or DynamoDB.
For blue/green deployments with stateful applications, migrating session state to a durable store like ElastiCache or DynamoDB (Option A) ensures continuity across environments. Using Route 53 weighted routing (Option C) allows gradual traffic shifting to the green environment, minimizing downtime. Option B is incorrect because ELB itself does not manage blue/green deployments natively; it is used within the architecture but not the primary action. Option D is incorrect because a high TTL on DNS records would delay traffic switching. Option E is incorrect because deregistering instances immediately would cause disruption; proper testing should occur first.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Migrate session state to Amazon ElastiCache or DynamoDB.
Why this is correct
Decoupling session state from instances enables seamless blue/green.
- ✗
Use an Elastic Load Balancer (ELB) to manage the blue and green environments.
Why it's wrong here
ELB itself doesn't manage blue/green; you need separate target groups and switch traffic.
- ✓
Use Amazon Route 53 weighted routing policies to shift traffic gradually.
Why this is correct
Weighted routing allows gradual traffic shift from blue to green.
- ✗
Set a high TTL on the DNS record to prevent caching issues.
Why it's wrong here
High TTL slows traffic transition; low TTL is preferred.
- ✗
Immediately deregister the blue instances from the load balancer after deployment.
Why it's wrong here
Should be done after verifying green, not immediately.
Visual reference
Go deeper
Related to this question
About these practice questions
One of 1,660 original SAP-C02 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This SAP-C02 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SAP-C02 exam.