Courseiva
SecurityhardMultiple SelectObjective-mapped

DVA-C02 Security Practice Question

A developer needs to securely distribute temporary AWS credentials to authenticated mobile users. Which two components are commonly involved?

⚠ Common exam trap

Test-takers frequently confuse Cognito user pools (which handle authentication and issue JWTs) with identity pools (which provide temporary AWS credentials), or mistakenly think root keys or open bucket policies are acceptable for mobile distribution.

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 identity pools

Amazon Cognito identity pools allow you to exchange identity tokens (from a user pool or external IdP) for temporary AWS credentials via the AWS Security Token Service (STS). These credentials are scoped to an IAM role with fine-grained permissions, enabling secure, least-privilege access to AWS resources from mobile apps without embedding long-term keys.

Answer analysis

Option-by-option breakdown

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

  • Amazon Cognito identity pools

    Why this is correct

    Amazon Cognito identity pools are specifically designed to provide temporary, limited-privilege AWS credentials to users authenticated through various identity providers, including Cognito User Pools, social logins, or SAML. Upon successful authentication, an identity pool exchanges the user's token for a set of temporary AWS credentials, allowing mobile or web applications to directly access specified AWS services with fine-grained permissions defined by an associated IAM role. This mechanism ensures secure, temporary access without embedding long-lived credentials in client applications.

  • AWS root access keys

    Why it's wrong here

    AWS root access keys are permanent, highly privileged credentials that grant unrestricted access to all resources within an AWS account. Distributing these keys to authenticated users is an extreme security anti-pattern, as it bypasses all granular access controls and provides no mechanism for temporary credentials or user-specific permissions. They are explicitly designed for account management and should be protected with the utmost care, never used for application access or distributed.

  • IAM roles with scoped permissions

    Why this is correct

    IAM roles are a fundamental AWS security primitive for granting temporary, scoped permissions to entities that need to make AWS API calls, including applications, services, or federated users. When an authenticated user, often via an identity provider like Cognito or SAML, assumes an IAM role, they are granted temporary security credentials (access key ID, secret access key, and session token) with permissions defined by the role's policies. This approach ensures least privilege and eliminates the need to distribute long-term static credentials.

  • An unrestricted S3 bucket policy

    Why it's wrong here

    An unrestricted S3 bucket policy controls access specifically to an S3 bucket and its objects, not the distribution of general AWS credentials for other services. Furthermore, an "unrestricted" policy would grant anonymous or broad public access, which directly contradicts the requirement for securely distributing temporary credentials to authenticated users. Such a policy is a severe security vulnerability and does not facilitate the secure authentication and authorization pattern needed for application users.

About these practice questions

This DVA-C02 question is part of Courseiva's 724-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

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.