AWS Certified Developer - Associate

AWS Certified Developer - Associate

Get started today

Ultimate access to all questions.


On AWS, an API application utilizing Amazon CloudFront, API Gateway, and Lambda receives a minimum of four POST requests per second, with frequent duplicate queries. What is the optimal solution for caching these POST requests?




Explanation:

The optimal solution for caching POST requests is to use API Gateway’s built-in caching capabilities. API Gateway allows for the caching of responses to POST requests by configuring caching at the stage level. This leverages the native functionality of API Gateway to manage caching efficiently without requiring significant changes to the application logic. Options A, C, and D are not suitable because CloudFront does not cache POST requests, and using Lambda's /tmp directory or AWS Systems Manager Parameter Store for caching responses is not as efficient or direct a solution as using API Gateway’s caching features.