A multimedia app will let guest users view sample content before they create accounts for full access. The company wants to identify users who already have accounts and also track how many guest users later register. Which combination of actions meets these needs? (Choose two.)
Choose an answer
Tap an option to check your answer.
Correct answer: Create an Amazon Cognito identity pool and enable unauthenticated identities. Exchange the unique identity for temporary credentials so users can assume a role., Create a role for authenticated users that grants access to all content, and create a role for unauthenticated users that grants access only to the sample content..
Why this is the answer
An Amazon Cognito identity pool allows you to grant temporary AWS credentials to both authenticated and unauthenticated users. Enabling unauthenticated identities provides a unique identity for guest users, allowing them to assume a role with limited permissions (e.g., access to sample content). When these guest users register, they become authenticated identities within the same identity pool, and their unique identity persists, enabling tracking and allowing them to assume a different role with broader permissions (e.g., full content access). Creating separate roles for authenticated and unauthenticated users ensures granular access control, with unauthenticated users accessing only sample content and authenticated users accessing all content. Incorrect options: Creating a Cognito user pool and configuring it to allow unauthenticated users is not the primary mechanism for managing unauthenticated access to AWS resources; identity pools are designed for this. User pools are for managing user directories. CloudFront is a content delivery network and does not directly manage user authentication or authorization for backend AWS services in this manner. Making sample content publicly accessible by default doesn't provide a mechanism to track guest users or seamlessly transition them to authenticated users with different permissions.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed