Courseiva
Question 1,366 of 724
SecurityeasyMultiple ChoiceObjective-mapped

DVA-C02 Security Practice Question

A developer is designing a web application that will run on EC2 instances behind an Application Load Balancer. The application needs to authenticate users. Which service should the developer use to manage user identities and provide single sign-on?

⚠ Common exam trap

Many candidates confuse AWS IAM (for AWS resource access) with a customer-facing identity service, leading candidates to choose IAM for user authentication instead of Cognito.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Amazon Cognito

Amazon Cognito is the correct choice because it is a fully managed identity service designed for web and mobile applications. It provides user sign-up, sign-in, and access control, and supports single sign-on (SSO) through federation with social identity providers (e.g., Google, Facebook) and enterprise identity providers via SAML 2.0 or OIDC. This makes it ideal for authenticating users in an application running behind an Application Load Balancer.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • AWS IAM

    Why it's wrong here

    AWS Identity and Access Management (IAM) is primarily used for securely controlling access to AWS services and resources by AWS users, groups, and roles. It defines permissions for who can perform what actions on which AWS resources, making it unsuitable for managing the identities and authentication of external end-users for a custom web application. IAM is foundational for AWS account security, not for customer-facing application user authentication.

  • Amazon Cognito

    Why this is correct

    Amazon Cognito is the ideal service for managing user identities and authentication for web and mobile applications, offering highly scalable user directories through its User Pools feature. It handles user registration, sign-in, and account recovery, and can integrate with social identity providers or enterprise directories. Cognito provides robust authentication flows and token management, specifically designed for application end-users.

  • AWS Directory Service

    Why it's wrong here

    AWS Directory Service provides managed directory services, such as Microsoft Active Directory or Simple AD, primarily for integrating AWS workloads with existing on-premises directories or for managing users and groups within an AWS-hosted directory environment. It is designed for enterprise IT environments and machine authentication, not for the public-facing user authentication requirements of a typical web application. Its purpose is distinct from managing customer identities.

  • AWS Security Token Service (STS)

    Why it's wrong here

    AWS Security Token Service (STS) allows you to request temporary, limited-privilege credentials for AWS IAM users or for users authenticated by an identity provider. While STS is crucial for granting temporary access to AWS resources, it does not manage user identities or perform the initial authentication of end-users for a web application itself. It acts as a broker for temporary AWS access, not an identity provider for application users.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 24, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This DVA-C02 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the DVA-C02 exam.