A backend service must obtain access tokens from Amazon Cognito to call an API without a signed-in user. Which design supports API-specific permissions?
Show the answer
Correct answerD. A user pool using client credentials and custom scopes
AWhy not this: An identity pool supplies temporary AWS credentials rather than OAuth access tokens with API-specific scopes.
BWhy not this: The authorization code grant involves user authorization rather than service-only authentication.
CWhy not this: Developer-authenticated identities provide AWS credentials through an identity pool, not scoped OAuth access tokens.
DWhy this is right: Client credentials enables service-only authorization, and custom scopes represent permissions for the API.
The client credentials grant supports machine-to-machine authorization, with custom scopes representing API permissions. The authorization code grant involves user authorization and is not the appropriate grant for an unattended service.