AWS Certified Developer Associate · Free Practice Question Easy

Question 26

A company is building a serverless application on AWS. The application uses Amazon API Gateway and AWS Lambda. The company wants to deploy the application to its development, test, and production environments. Which solution will meet these requirements with the LEAST development effort?
  • A Duplicate the code for each environment. Deploy the code to a separate API Gateway stage.
  • B Use Amazon Elastic Container Service (Amazon ECS) to deploy the application to the environments.
  • C Use AWS Elastic Beanstalk to deploy the application to the environments.
  • D Use API Gateway stage variables and create Lambda aliases to reference environment-specific resources.
Reveal correct answer

Correct answer: B

Explanation

The correct solution to deploy a serverless application using Amazon API Gateway and AWS Lambda to development, test, and production environments with the least development effort is to use API Gateway stage variables and create Lambda aliases to reference environment-specific resources. This approach allows for efficient management and deployment across different environments without duplicating code or using additional services.

Discussion

Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.

You must be logged in to post a comment.

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need