
Answer-first summary for fast verification
Answer: Create a canary release deployment stage for API Gateway. Deploy the latest API version. Point an appropriate percentage of traffic to the canary stage. After API verification, promote the canary stage to the production stage.
## Explanation **Correct Answer: A** **Why Option A is correct:** 1. **Canary release deployment** allows gradual rollout of new API versions with minimal impact on customers 2. **Traffic splitting** enables routing only a percentage of traffic to the new version initially 3. **Verification before full rollout** allows testing the new API version with real traffic before promoting it to production 4. **Minimal data loss** - if issues are detected, traffic can be quickly redirected back to the stable version 5. **No DNS changes required** - the same custom domain and Route 53 configuration continue to work **Why other options are incorrect:** **Option B & C:** Using import-to-update operations (whether in merge or overwrite mode) directly modifies the production API. This approach: - Causes immediate changes affecting all customers - No gradual rollout capability - Higher risk of data loss if the new version has issues - No ability to test with partial traffic before full deployment **Option D:** Creating a completely new API Gateway endpoint with a new custom domain name: - Requires DNS changes (Route 53 alias record update) - Causes service interruption during DNS propagation - No gradual traffic migration capability - Higher complexity and potential for configuration errors **Key AWS Concepts:** - **API Gateway Canary Releases**: Allow gradual deployment of API changes by routing a percentage of traffic to a new deployment - **Traffic Shifting**: Controlled migration of traffic between different API versions or stages - **Blue-Green Deployment Pattern**: Similar concept where two identical environments run simultaneously with traffic gradually shifted This approach aligns with AWS best practices for zero-downtime deployments and minimizing customer impact during API updates.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
A retail company uses a regional Amazon API Gateway API for its public REST APIs. The API Gateway endpoint is a custom domain name that points to an Amazon Route 53 alias record. A solutions architect needs to create a solution that has minimal effects on customers and minimal data loss to release the new version of APIs.
Which solution will meet these requirements?
A
Create a canary release deployment stage for API Gateway. Deploy the latest API version. Point an appropriate percentage of traffic to the canary stage. After API verification, promote the canary stage to the production stage.
B
Create a new API Gateway endpoint with a new version of the API in OpenAPI YAML file format. Use the import-to-update operation in merge mode into the API in API Gateway. Deploy the new version of the API to the production stage.
C
Create a new API Gateway endpoint with a new version of the API in OpenAPI JSON file format. Use the import-to-update operation in overwrite mode into the API in API Gateway. Deploy the new version of the API to the production stage.
D
Create a new API Gateway endpoint with new versions of the API definitions. Create a custom domain name for the new API Gateway API. Point the Route 53 alias record to the new API Gateway API custom domain name.