DVA-C02 · Question #593
A developer needs to set up an API to provide access to an application and its resources. The developer has a TLS certificate. The developer must have the ability to change the default base URL of the
The correct answer is C. Create an Amazon API Gateway REST API. Use the edge-optimized endpoint type. Import the. Edge-Optimized API Gateway: This endpoint type automatically leverages the Amazon CloudFront global distribution network, minimizing latency for API users distributed globally. Custom Domain Name: API Gateway supports custom domain names for APIs. Importing the TLS certificate in
Question
A developer needs to set up an API to provide access to an application and its resources. The developer has a TLS certificate. The developer must have the ability to change the default base URL of the API to a custom domain name. The API users are distributed globally. The solution must minimize API latency. Which solution will meet these requirements?
Options
- ACreate an Amazon CloudFront distribution that uses an AWS Lambda@Edge function to process
- BCreate an Amazon API Gateway REST API. Use the private endpoint type. Import the TLS
- CCreate an Amazon API Gateway REST API. Use the edge-optimized endpoint type. Import the
- DCreate an Amazon CloudFront distribution that uses CloudFront Functions to process API
How the community answered
(51 responses)- A2% (1)
- B10% (5)
- C84% (43)
- D4% (2)
Explanation
Edge-Optimized API Gateway: This endpoint type automatically leverages the Amazon CloudFront global distribution network, minimizing latency for API users distributed globally. Custom Domain Name: API Gateway supports custom domain names for APIs. Importing the TLS certificate into AWS Certificate Manager (ACM) and associating it with the custom domain name ensures secure connections. Disabling the Default Endpoint: Prevents direct access via the default API Gateway URL, enforcing the use of the custom domain name.
Community Discussion
No community discussion yet for this question.