AWS Certified Developer Associate DVA-C01 – Question367

A developer has built an application using Amazon Cognito for authentication and authorization. After a user is successfully logged in to the application, the application creates a user record in an Amazon DynamoDB table.
What is the correct flow to authenticate the user and create a record in the DynamoDB table?

A.
Authenticate and get a token from an Amazon Cognito user pool. Use the token to access DynamoDB.
B. Authenticate and get a token from an Amazon Cognito identity pool. Use the token to access DynamoDB.
C. Authenticate and get a token from an Amazon Cognito user pool. Exchange the token for AWS credentials with an Amazon Cognito identity pool. Use the credentials to access DynamoDB.
D. Authenticate and get a token from an Amazon Cognito identity pool. Exchange the token for AWS credentials with an Amazon Cognito user pool. Use the credentials to access DynamoDB.

Correct Answer: D