For IndividualsFor Educators
ExpertMinds LogoExpertMinds
ExpertMinds

Ace your certifications with Practice Exams and AI assistance.

  • Browse Exams
  • For Educators
  • Blog
  • Privacy Policy
  • Terms of Service
  • Cookie Policy
  • Support
  • AWS SAA Exam Prep
  • PMI PMP Exam Prep
  • CPA Exam Prep
  • GCP PCA Exam Prep

© 2026 TinyHive Labs. Company number 16262776.

    PracticeAWS Solutions Architect Professional (SAP-C02)AWS Solutions Architect Professional SAP-C02 Practice Exam 7Question 20
    Hard1 markMultiple Choice
    Domain 2.4: ReliabilityServerlessDynamoDBAPI Gateway

    AWS SAP-C02 · Question 20 · Domain 2.4: Reliability

    A company is designing a serverless application using Amazon API Gateway, AWS Lambda, and Amazon DynamoDB. The application must handle unpredictable spikes in traffic. During load testing, the API Gateway returns 504 Gateway Timeout errors, and DynamoDB returns ProvisionedThroughputExceededException errors. Which combination of actions will resolve these issues? (Select TWO)

    Answer options:

    A.

    Change the DynamoDB table to On-Demand capacity mode.

    B.

    Increase the API Gateway timeout limit to 60 seconds.

    C.

    Optimize the Lambda function code to execute faster or increase its memory allocation.

    D.

    Enable API Gateway caching to reduce the load on DynamoDB.

    E.

    Configure DynamoDB Auto Scaling with a target utilization of 90%.

    F.

    Switch from API Gateway to an Application Load Balancer.

    How to approach this question

    Address both the database throttling and the API timeout.

    Full Answer

    Change the DynamoDB table to On-Demand capacity mode., Optimize the Lambda function code to execute faster or increase its memory allocation.
    DynamoDB On-Demand mode is best for unpredictable spikes. API Gateway 504 errors occur when Lambda takes longer than 29 seconds, so Lambda must be optimized to execute faster.

    Common mistakes

    Trying to increase the API Gateway timeout beyond its hard limit.
    Question 19All questionsQuestion 21

    Practice the full AWS Solutions Architect Professional SAP-C02 Practice Exam 7

    75 questions · hints · full answers · grading

    Sign up freeTake the exam

    More questions from this exam

    Q01A global enterprise is designing a multi-region network architecture connecting 50 AWS accounts a...HardQ02A company is migrating its hybrid network to AWS. They have two 10 Gbps AWS Direct Connect connec...HardQ03An enterprise has 100 AWS accounts in AWS Organizations. The security team mandates that all Amaz...MediumQ04A financial company requires that all EBS volumes, S3 buckets, and RDS databases be encrypted usi...EasyQ05An enterprise is designing a disaster recovery strategy for a critical application running on Ama...Hard
    View all 75 questions →