ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 588 - DVA-C01 discussion

Report
Export

A company uses the AWS SDK for JavaScript in the Browser to build a web application and then hosts the application on Amazon S3. The company wants the application to support 10,000 users concurrently. The company selects Amazon DynamoDB to store user preferences in a table. There is a requirement to uniquely identify users at any scale. Which solution will meet these requirements?

A.
Create a user cookie. Attach an 1AM role to the S3 bucket that hosts the application.
Answers
A.
Create a user cookie. Attach an 1AM role to the S3 bucket that hosts the application.
B.
Deploy an Amazon CloudFront distribution with an origin access identity (OAI) to access the S3 bucket.
Answers
B.
Deploy an Amazon CloudFront distribution with an origin access identity (OAI) to access the S3 bucket.
C.
Configure and use Amazon Cognito. Access DynamoDB with the authenticated users.
Answers
C.
Configure and use Amazon Cognito. Access DynamoDB with the authenticated users.
D.
Create an IAM user for each user. Use fine-grained access control on the DynamoDB table to control access.
Answers
D.
Create an IAM user for each user. Use fine-grained access control on the DynamoDB table to control access.
Suggested answer: C

Explanation:

This will allow the application to support 10,000 users concurrently and will provide a unique identifier for each user. By using Amazon Cognito, the company can authenticate users and then access DynamoDB with the authenticated users to store their preferences in a table. This approach will allow the company to control access to the DynamoDB table and to scale to any number of users. Creating a user cookie or deploying an Amazon CloudFront distribution with an OAI would not solve the problem because these solutions do not provide a way to uniquely identify users or control access to DynamoDB. Creating an IAM user for each user and using fine-grained access control on the DynamoDB table would not be practical or scalable because it would require the company to manage and maintain a large number of IAM users. When dealing with user profiles in serverless applications we often turn to Cognito for managing their credentials while the app itself will store user entities. https://www.sorenandersen.com/manage-user-profile-data-between-cognito-and-dynamodb/

asked 16/09/2024
Lionel CHOLEZ
33 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first