exam questions

Exam AWS Certified Solutions Architect - Professional SAP-C02 All Questions

View all questions & answers for the AWS Certified Solutions Architect - Professional SAP-C02 exam

Exam AWS Certified Solutions Architect - Professional SAP-C02 topic 1 question 107 discussion

A company has an asynchronous HTTP application that is hosted as an AWS Lambda function. A public Amazon API Gateway endpoint invokes the Lambda function. The Lambda function and the API Gateway endpoint reside in the us-east-1 Region. A solutions architect needs to redesign the application to support failover to another AWS Region.

Which solution will meet these requirements?

  • A. Create an API Gateway endpoint in the us-west-2 Region to direct traffic to the Lambda function in us-east-1. Configure Amazon Route 53 to use a failover routing policy to route traffic for the two API Gateway endpoints.
  • B. Create an Amazon Simple Queue Service (Amazon SQS) queue. Configure API Gateway to direct traffic to the SQS queue instead of to the Lambda function. Configure the Lambda function to pull messages from the queue for processing.
  • C. Deploy the Lambda function to the us-west-2 Region. Create an API Gateway endpoint in us-west-2 10 direct traffic to the Lambda function in us-west-2. Configure AWS Global Accelerator and an Application Load Balancer to manage traffic across the two API Gateway endpoints.
  • D. Deploy the Lambda function and an API Gateway endpoint to the us-west-2 Region. Configure Amazon Route 53 to use a failover routing policy to route traffic for the two API Gateway endpoints.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
masetromain
Highly Voted 2 years ago
Selected Answer: D
The correct answer is D. Deploy the Lambda function and an API Gateway endpoint to the us-west-2 Region. Configure Amazon Route 53 to use a failover routing policy to route traffic for the two API Gateway endpoints. This solution meets the requirement of having a failover to another region by having a copy of the Lambda function and API Gateway endpoint in a different region, and using Route 53's failover routing policy to route traffic between the two regions. Option A is not correct because it only creates an additional API Gateway endpoint in us-west-2 and relies on Route 53's failover routing policy to direct traffic to the correct endpoint. But it does not deploy the Lambda function to the new region and this makes the failover incomplete.
upvoted 23 times
testingaws123
1 year, 11 months ago
You always use ChatGPT to paste answers. Most of the time ChatGPT gives wrong answers do you know this?
upvoted 12 times
juanife
23 hours, 8 minutes ago
If the answer explanation of why it's one option and why the other ones are not ok truly represents the correct answer then I would not say anything. I think chat gpt is very useful if you (with knowledge on mind) are able to judge what this ai machine says and validate that.
upvoted 1 times
...
...
masetromain
2 years ago
Option B is not correct because it uses a SQS queue as a buffer between the API Gateway and the Lambda function, but this does not provide failover to another region. In addition, it would also increase the latency of the system as the SQS will act as an additional layer. Option C is not correct because it deploys the Lambda function to the us-west-2 Region and creates an API Gateway endpoint in the same region. But it uses AWS Global Accelerator and an Application Load Balancer to manage traffic across the two API Gateway endpoints. However, this is not a failover solution as both regions will be active and serving traffic at the same time.
upvoted 3 times
...
...
amministrazione
Most Recent 5 months, 2 weeks ago
D. Deploy the Lambda function and an API Gateway endpoint to the us-west-2 Region. Configure Amazon Route 53 to use a failover routing policy to route traffic for the two API Gateway endpoints.
upvoted 1 times
...
gofavad926
11 months ago
Selected Answer: D
D, deploy everything in the second region and configure the failover routing policy
upvoted 1 times
...
career360guru
1 year, 1 month ago
Selected Answer: D
Option D
upvoted 1 times
...
venvig
1 year, 5 months ago
Selected Answer: D
Refer https://aws.amazon.com/blogs/architecture/implementing-multi-region-disaster-recovery-using-event-driven-architecture/
upvoted 1 times
...
NikkyDicky
1 year, 7 months ago
Selected Answer: D
clearly D
upvoted 1 times
...
mfsec
1 year, 10 months ago
Selected Answer: D
Deploy the Lambda function and an API Gateway endpoint to the us-west-2 Region
upvoted 1 times
...
zejou1
1 year, 11 months ago
Selected Answer: D
Currently, the default API endpoint type in API Gateway is the edge-optimized API endpoint, which enables clients to access an API through an Amazon CloudFront distribution. This typically improves connection time for geographically diverse clients. By default, a custom domain name is globally unique and the edge-optimized API endpoint would invoke a Lambda function in a single region in the case of Lambda integration. You can’t use this type of endpoint with a Route 53 active-active setup and fail-over. The new regional API endpoint in API Gateway moves the API endpoint into the region and the custom domain name is unique per region. This makes it possible to run a full copy of an API in each region and then use Route 53 to use an active-active setup and failover. https://aws.amazon.com/blogs/compute/building-a-multi-region-serverless-application-with-amazon-api-gateway-and-aws-lambda/
upvoted 2 times
...
God_Is_Love
1 year, 11 months ago
Selected Answer: D
B is wrong, cannot direct traffic to SQS Queue ? it does not even mention posting messages to queue.
upvoted 1 times
...
zozza2023
2 years ago
Selected Answer: D
The correct answer is D
upvoted 2 times
...
zhangyu20000
2 years ago
D is correct A is not because the Lambda is in us-ease-1 but api gateway is in us-west-2. cannot cross regions
upvoted 4 times
...
masetromain
2 years ago
Selected Answer: A
The correct answer is A. In this solution, an API Gateway endpoint is created in the us-west-2 Region. This new endpoint is configured to direct traffic to the Lambda function in us-east-1. If a failure occurs in the us-east-1 Region, Amazon Route 53's failover routing policy automatically routes traffic to the us-west-2 Region. This ensures that traffic is directed to a healthy endpoint, providing failover support for the application. B, C and D does not meet the requirement of having failover routing policy. In B, SQS is not a failover mechanism, it is a messaging service and it does not provide failover routing. In C, Global Accelerator and Application Load Balancer does not provide failover routing. In D, While creating a second endpoint in the us-west-2 Region and using Amazon Route 53 to route traffic to it, it still does not provide failover routing.
upvoted 2 times
CProgrammer
1 year, 4 months ago
D CLEARLY States: Configure Amazon Route 53 to use a failover routing policy to route traffic for the two API Gateway endpoints. You claimed it did not , and the moderator ALLOWED IT ?!? !?
upvoted 1 times
...
CProgrammer
1 year, 4 months ago
Gateway VPC endpoints provide reliable connectivity to Amazon S3 and DynamoDB without requiring an internet gateway or a NAT device for your VPC. https://docs.aws.amazon.com/vpc/latest/privatelink/gateway-endpoints.html ==> IN CONTRAST These are the ENDPOINTS for API Gateway: https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-api-endpoint-types.html Gateway endpoint DOES NOT DIRECT TRAFFIC PERIOD
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago