About the Exam

Intended for individuals who perform a developer role on AWS. The exam validates proficiency in developing, testing, deploying, and debugging AWS cloud-based applications. It also covers developing and optimizing applications on AWS, packaging and deploying with CI/CD workflows, securing application code and data, and identifying and resolving application issues.

Exam Topics

  • Development with AWS Services32%
  • Security26%
  • Deployment24%
  • Troubleshooting and Optimization18%

How to Use This Practice Exam

  1. Browse — Read each question, select your answer, and reveal the explanation.
  2. Exam Mode — Simulate real exam conditions with a timed session and score report.
  3. Learn Mode — Spaced repetition schedules questions you struggle with for long-term retention.

Download the Full Exam PDF

Get every question and answer in a clean, printable PDF built for offline study. Purchase once, keep permanent access, and re-download the latest version anytime.

Last updated July 6, 2026 at 8:37 AM

Topic filter
Retired questions
Question sort

QuestionQ1

Deployment

A company is developing an ecommerce application that uses Amazon API Gateway APIs. The application uses AWS Lambda as a backend. The company needs to test the code in a dedicated, monitored test environment before the company releases the code to the production environment.

Which solution will meet these requirements?

  • A Use a single stage in API Gateway. Create a Lambda function for each environment. Configure API clients to send a query parameter that indicates the environment and the specific Lambda function.
  • B Use multiple stages in API Gateway. Create a single Lambda function for all environments. Add different code blocks for different environments in the Lambda function based on Lambda environment variables.
  • C Use multiple stages in API Gateway. Create a Lambda function for each environment. Configure API Gateway stage variables to route traffic to the Lambda function in different environments.
  • D Use a single stage in API Gateway. Configure API clients to send a query parameter that indicates the environment. Add different code blocks for different environments in the Lambda function to match the value of the query parameter.
Explanation

The best-practice approach is multiple API Gateway stages (test and production), a dedicated Lambda function for each environment, and API Gateway stage variables to route traffic to the appropriate Lambda. This provides true environment isolation, cleaner separation of concerns, and better auditability. Single-stage approaches (A, D) mix concerns; a single Lambda with environment variables (B) is less isolated and harder to troubleshoot independently.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!

QuestionQ2

Deployment

A developer is setting up the deployment of application stacks to new test environments by using the AWS Cloud Development Kit (AWS CDK). The application contains the code for several AWS Lambda functions that will be deployed as assets. Each Lambda function is defined by using the AWS CDK Lambda construct library.

The developer has already successfully deployed the application stacks to the alpha environment in the first account by using the AWS CDK CLI's cdk deploy command. The developer is preparing to deploy to the beta environment in a second account for the first time. The developer makes no significant changes to the CDK code between deployments, but the initial deployment in the second account is unsuccessful and returns a NoSuchBucket error.

Which command should the developer run before redeployment to resolve this error?

  • A cdk synth
  • B cdk bootstrap
  • C cdk init
  • D cdk destroy
Explanation

The NoSuchBucket error occurs because the CDK deployment bootstrap resources have not been created in the new AWS account. The cdk bootstrap command creates the necessary S3 bucket and other bootstrap infrastructure required for CDK asset deployment. cdk synth only generates the CloudFormation template, cdk init creates new projects, and cdk destroy removes resources.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!

QuestionQ3

Deployment

A developer has created a large AWS Lambda function. Deployment of the function is failing because of an InvalidParameterValueException error. The error message indicates that the unzipped size of the function exceeds the maximum supported value.

Which actions can the developer take to resolve this error?

Choose two
  • A Submit a quota increase request to AWS Support to increase the function to the required size.
  • B Use a compression algorithm that is more efficient than ZIP.
  • C Break up the function into multiple smaller functions.
  • D Zip the .zip file twice to compress the file more.
  • E Move common libraries, function dependencies, and custom runtimes into Lambda layers.
Explanation

Lambda has a hard 250 MB unzipped size limit; quota increases cannot override this architectural constraint (A is invalid). Breaking functions into modules (C) reduces individual package sizes and aligns with microservices patterns. Moving dependencies and runtimes to Lambda layers (E) keeps deployment packages lightweight while sharing common libraries across functions. Double-zipping (D) offers no benefit since decompression still yields the same unzipped size.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!

QuestionQ4

Deployment

A developer is creating an AWS CloudFormation stack. The stack contains IAM resources with custom names. When the developer tries to deploy the stack, they receive an InsufficientCapabilities error.

What should the developer do to resolve this issue?

  • A Specify the CAPABILITY_AUTO_EXPAND capability in the CloudFormation stack.
  • B Use an administrators role to deploy IAM resources with CloudFormation.
  • C Specify the CAPABILITY_IAM capability in the CloudFormation stack.
  • D Specify the CAPABILITY_NAMED_IAM capability in the CloudFormation stack.
Explanation

CAPABILITY_NAMED_IAM is required when deploying IAM resources with custom (user-defined) names in CloudFormation. CAPABILITY_IAM alone permits only unnamed IAM resources. Custom resource names require explicit acknowledgment that the user understands the implications of custom naming.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!

QuestionQ5

Troubleshooting and Optimization

A developer is testing an application that invokes an AWS Lambda function asynchronously. During the testing phase, the Lambda function fails to process after two retries.

How can the developer troubleshoot the failure?

  • A Configure AWS CloudTrail logging to investigate the invocation failures.
  • B Configure Dead Letter Queues by sending events to Amazon SQS for investigation.
  • C Configure Amazon Simple Workflow Service to process any direct unprocessed events.
  • D Configure AWS Config to process any direct unprocessed events.
Explanation

A Dead Letter Queue (DLQ) configured with SQS captures failed asynchronous Lambda invocations after retries, allowing developers to inspect error details and investigate failures. CloudTrail logs API calls but not Lambda invocation failures, Simple Workflow and Config are not designed for Lambda failure analysis, and this is the standard troubleshooting mechanism for async Lambda failures.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!
Know a question that should be here? Contribute to this exam
Back home