Courseiva
Question 778 of 724
SecurityhardMultiple ChoiceObjective-mapped

DVA-C02 Security Practice Question

An API Gateway HTTP API should allow access only to users authenticated by an external OIDC provider. Which authorizer type is most appropriate?

⚠ Common exam trap

Test-takers frequently confuse the JWT authorizer with the Lambda authorizer, thinking a custom Lambda is always required for OIDC, but the JWT authorizer natively supports OIDC without custom code when the provider issues standard JWTs.

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

JWT authorizer configured for the issuer and audience

An HTTP API Gateway with an external OIDC provider requires a JWT authorizer. The JWT authorizer validates the token's signature, issuer, and audience against the OIDC provider's configuration, ensuring only authenticated users gain access. This is the native AWS mechanism for integrating third-party OIDC identity providers like Auth0 or Okta.

Answer analysis

Option-by-option breakdown

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

  • IAM authorizer

    Why it's wrong here

    An IAM authorizer validates requests using AWS Identity and Access Management (IAM) permissions, typically for users or roles within an AWS account or federated via AWS SSO. While powerful for AWS-native access control, it's less direct for authenticating external users with identity tokens from third-party providers. It requires clients to sign requests with AWS credentials, which isn't the standard approach for many public-facing APIs relying on OpenID Connect or OAuth 2.0.

  • API key authorizer

    Why it's wrong here

    API key authorizers are designed for client identification and usage plan enforcement, primarily for throttling and metering API access. They do not provide user authentication or authorization based on identity claims, as API keys are static credentials shared among clients. Therefore, they cannot verify a user's identity or grant access based on specific user attributes, failing to meet the requirement of allowing access only to specific authenticated entities.

  • JWT authorizer configured for the issuer and audience

    Why this is correct

    A JWT authorizer for an HTTP API validates JSON Web Tokens (JWTs) presented by clients, ensuring they are signed by a trusted issuer and intended for the specific API. By configuring the issuer (iss) and audience (aud) claims, the authorizer cryptographically verifies the token's authenticity and its intended recipient. This mechanism precisely controls access by allowing only requests with valid, unexpired tokens from a recognized identity provider, making it ideal for OAuth 2.0 and OpenID Connect flows.

  • S3 bucket policy

    Why it's wrong here

    An S3 bucket policy defines access permissions for objects stored within an Amazon S3 bucket, controlling who can perform actions like read or write on those objects. This type of policy is entirely unrelated to securing an API Gateway HTTP API endpoint. It cannot be used to authenticate or authorize requests made to an API Gateway, as its scope is limited strictly to S3 resources and not API invocation.

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 11, 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.