Q8 — AWS SAA-C03 Ch.5

Question 8 of 65 | ← Chapter 5

Q308. A company is developing a microservices application that will provide a search catalog for customers. The company must use REST APIs to present the frontend of the application to users. The REST APIs must access the backend services that the company hosts in containers in private VPC subnets.Which solution will meet these requirements?

Correct Answer: B. Design a RESTAPI by using Amazon API Gateway. Host the application in Amazon Elastic Container Service(Amazon ECS)in a private subnet. Create a private VPC link for API Gateway to access Amazon ECS

Explanation

Option B: designing a REST API using Amazon API Gateway, hosting the application in Amazon Elastic Container Service (Amazon ECS) in a private subnet and creating a private VPC link for API Gateway to access Amazon ECS will meet the requirements. This allows the REST APIs to access backend services hosted in containers in private VPC subnets. The private VPC link provides secure communication between API Gateway and Amazon ECS without exposing the backend service to the internet.Option A: designing a WebSocket API using Amazon API Gateway is not necessary for presenting the frontend of the application to users as REST APIs are sufficient for this use case. While it is possible to use WebSockets for real-time bidirectional communication, it does not align with the provided requirements.Option C: designing a WebSocket API using Amazon API Gateway and creating a security group for API Gateway to access Amazon ECS does not provide a secure connection between the two services. It is recommended to use a VPC link instead of allowing public internet access between API Gateway and Amazon ECS.Option D: designing a REST API using Amazon API Gateway and creating a security group for API Gateway to access Amazon ECS does not provide a secure connection between the two services. It is recommended to use a VPC link instead of allowing public internet access between API Gateway and Amazon ECS.