AWS Certified Developer – Associate — Question 112

A company is developing an application that will be accessed through the Amazon API Gateway REST API. Registered users should be the only ones who can access certain resources of this API. The token being used should expire automatically and needs to be refreshed periodically.

How can a developer meet these requirements?

Answer options

Correct answer: C

Explanation

The correct answer is C because using an Amazon Cognito user pool allows for user registration and token management, including automatic expiration and refresh. Option A uses identity pools, which are not suitable for user management in this context. Option B involves managing tokens manually, which adds unnecessary complexity, and Option D is not ideal as IAM users are not designed for access control in this manner.