🌐 Amazon API Gateway - DVA-C02 Practice Questions

Build and manage REST, HTTP, and WebSocket APIs. Study stages, deployment, throttling, caching, authorizers (Lambda, Cognito, IAM), request/response transformations, and usage plans.

14Questions Available
3Exam Domains

Practice API Gateway Questions Now

Start a timed practice session focusing on Amazon API Gateway topics from the DVA-C02 question bank.

Start DVA-C02 Practice Quiz →

DVA-C02 API Gateway Question Bank (14 Questions)

Browse all 14 practice questions covering Amazon API Gateway for the DVA-C02 certification exam. Answers are intentionally hidden on this page so you can self-test first before checking results in quiz mode.

  1. Question 1Security

    An API Gateway method requires API key validation. Where are API keys associated with usage plans?

    AAPI Gateway resource policy
    BAPI Gateway usage plan with associated API key
    CLambda authorizer
    DIAM user policy

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start DVA-C02 Quiz
  2. Question 2Security

    A developer needs to control access to an API Gateway endpoint based on the user's identity token from Amazon Cognito. Which API Gateway authorizer type should they use?

    ALambda authorizer
    BIAM authorization
    CCognito User Pool authorizer
    DResource policies

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start DVA-C02 Quiz
  3. Question 3Development with AWS Services

    An API Gateway REST API needs to authenticate requests using a custom authentication mechanism. Which feature allows this?

    AResource policy
    BLambda authorizer
    CIAM authorization
    DCognito User Pool authorizer

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start DVA-C02 Quiz
  4. Question 4Troubleshooting and Optimization

    An API Gateway REST API serves a mobile application. Users report intermittent 5-minute outages. How should the developer investigate?

    ACheck DynamoDB table metrics only
    BReview API Gateway CloudWatch metrics (5XXError, Latency) and Lambda error logs and X-Ray traces
    CReview S3 access logs
    DCheck Route 53 health checks

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start DVA-C02 Quiz
  5. Question 5Development with AWS Services

    A developer uses API Gateway WebSocket API. When a client disconnects, which route is invoked?

    A$connect
    B$disconnect
    C$default
    D$close

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start DVA-C02 Quiz
  6. Question 6Security

    A developer builds a REST API with API Gateway. Some endpoints require authentication; others are public. Which configuration supports this?

    AApply a Lambda authorizer to the entire API stage
    BConfigure authentication per method — apply the authorizer only to protected methods
    CUse two separate APIs — one public, one private
    DUse IAM authentication for all methods

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start DVA-C02 Quiz
  7. Question 7Security

    A developer wants to ensure that API keys passed to an API Gateway endpoint are valid. Which feature validates API keys without custom code?

    ALambda authorizer
    BAPI Gateway API key validation with usage plans
    CCognito User Pool authorizer
    DIAM resource policy

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start DVA-C02 Quiz
  8. Question 8Deployment

    A developer uses SAM to define a REST API and Lambda. They want to reuse the same API Gateway across multiple SAM applications. What is the approach?

    AUse AWS::Serverless::Api in each application
    BDefine the API in one stack, export its ID, and reference it in other SAM functions using RestApiId: !ImportValue
    CUse CloudFormation StackSets for the API
    DEmbed the API in each Lambda function

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start DVA-C02 Quiz
  9. Question 9Development with AWS Services

    A developer uses API Gateway REST API. The backend integration is a Lambda function. To avoid re-invoking Lambda for identical requests within 5 minutes, what should they configure?

    ALambda provisioned concurrency
    BAPI Gateway response caching with a 300-second TTL
    CCloudFront caching in front of API Gateway
    DLambda environment variable caching

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start DVA-C02 Quiz
  10. Question 10Development with AWS Services

    A developer builds a REST API with API Gateway backed by Lambda. Some operations are read-heavy. Which API Gateway feature reduces Lambda costs?

    AAPI Gateway usage plans
    BAPI Gateway caching at the stage level
    CLambda concurrency limits
    DAPI Gateway WAF integration

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start DVA-C02 Quiz
  11. Question 11Deployment

    A developer creates a SAM template with an API Gateway and Lambda. After deployment, they update only the Lambda function code. What is the FASTEST way to redeploy?

    Asam deploy
    Bsam sync --code (deploys only the code change, bypassing CloudFormation)
    Caws cloudformation update-stack
    DManually zip and upload to Lambda

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start DVA-C02 Quiz
  12. Question 12Troubleshooting and Optimization

    A developer uses API Gateway with throttling. Some requests return 429. They want to understand which clients are hitting the throttle. Where do they look?

    ACloudTrail
    BAPI Gateway access logs with requestId, sourceIp, and status code
    CLambda logs
    DVPC Flow Logs

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start DVA-C02 Quiz
  13. Question 13Deployment

    A developer builds a multi-stage Docker image for a Lambda function. Which base image should they use for production Lambda deployments?

    Aubuntu:latest
    BAn AWS-provided Lambda base image from ECR Public (public.ecr.aws/lambda/python:3.12)
    Calpine:latest
    Damazonlinux:2

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start DVA-C02 Quiz
  14. Question 14Deployment

    A developer uses CodePipeline with a CodeDeploy deploy stage. The deployment fails. Where should the developer look for the root cause?

    ACodePipeline console execution history
    BCodeDeploy deployment event log and EC2 instance CodeDeploy agent log (/var/log/aws/codedeploy-agent)
    CCloudTrail event history for CodePipeline
    DS3 artifact bucket access logs

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start DVA-C02 Quiz

Key API Gateway Concepts for DVA-C02

api gatewayrest apihttp apiwebsocketstagedeploymentthrottlingauthorizerusage planapi keycaching

DVA-C02 API Gateway Exam Tips

Amazon API Gateway questions in DVA-C02 are typically scenario-based. Focus on application development patterns, event-driven integration, and secure coding on AWS. Priority concepts: api gateway, rest api, http api, websocket, stage, deployment.

What DVA-C02 Expects

  • Anchor your answer in select developer-friendly managed services and patterns that minimize custom undifferentiated code.
  • API Gateway scenarios for DVA-C02 are frequently mapped to Domain 1 (32%), Domain 2 (26%), Domain 3 (24%), so read the objective carefully before picking controls or architecture.
  • Expect multi-topic scenarios where API Gateway interacts with IAM, networking, storage, or observability patterns rather than appearing as an isolated question.
  • When two options are both technically valid, prefer the choice that best aligns with the exam's operational scope (Associate) and vendor best practices.

High-Value API Gateway Concepts

  • Know the core API Gateway building blocks cold: api gateway, rest api, http api, websocket.
  • Review the edge-case features and limits for stage, deployment; these details are commonly used to differentiate answer choices.
  • Practice service-integration reasoning: how API Gateway pairs with Lambda, Cognito, IAM in real deployment patterns.
  • For DVA-C02, explain why the chosen API Gateway design meets reliability, security, and cost expectations better than the alternatives.

Common DVA-C02 Traps

  • Watch for using infrastructure-centric answers instead of application-centric ones.
  • Questions in Development with AWS Services often include distractors that look correct for API Gateway but violate least-privilege, durability, or availability requirements.
  • Avoid picking options purely by feature name; validate data path, failure handling, and governance impact before answering.
  • If the prompt hints at automation or repeatability, eliminate manual-only operational answers first.

Fast Review Checklist

  • Can you compare at least two API Gateway implementation paths and justify which one best fits the scenario?
  • Can you map the chosen answer back to Development with AWS Services (32%) outcomes for DVA-C02?
  • Can you explain security and access boundaries for API Gateway without relying on default-open assumptions?
  • Can you describe how API Gateway integrates with Lambda and Cognito during failure, scaling, and monitoring events?

Exam Domains Covering API Gateway

Related Resources

More DVA-C02 Study Resources