DVA-C02 exam dumps

DVA-C02 practice question 302 of 399

AWS Certified Developer - Associate. Associate level, Amazon Web Services. Free question with the correct answer and a full explanation.

DVA-C02 Question 302

Single answer

A developer is tasked with deploying a serverless application on AWS. The application consists of a Lambda function, an API Gateway endpoint, and an Amazon DynamoDB table. The developer wants to automate the deployment process and manage infrastructure as code. Which AWS service or tool should the developer use to achieve this efficiently?

  1. A

    AWS CloudFormation

  2. B

    AWS Cloud Development Kit (AWS CDK)

  3. C

    AWS Serverless Application Model (AWS SAM)

  4. D

    AWS Amplify

Show answer and explanation

Correct answer: C

Explanation

AWS SAM (Serverless Application Model) is the best choice for this scenario because it is specifically designed to simplify the definition and deployment of serverless applications. It provides a higher-level abstraction for common serverless services like AWS Lambda, Amazon API Gateway, and Amazon DynamoDB, and integrates seamlessly with AWS CloudFormation for managing infrastructure as code. While other tools like AWS CloudFormation and AWS CDK can also achieve similar results, AWS SAM is purpose-built for serverless application use cases, making it the most efficient option in this scenario.

  • A. Incorrect.

    AWS CloudFormation can be used to define infrastructure as code, but it is not specifically optimized for serverless applications. Using AWS SAM would be more efficient for this use case.

  • B. Incorrect.

    AWS CDK is a powerful tool for defining cloud infrastructure using programming languages, but it is not purpose-built for serverless applications like AWS SAM.

  • C. Correct.

    AWS SAM is specifically designed for serverless application development and deployment. It simplifies the process of defining, deploying, and managing serverless resources like Lambda, API Gateway, and DynamoDB.

  • D. Incorrect.

    AWS Amplify is a development framework that simplifies front-end and mobile application development. It is not the best choice for managing serverless back-end infrastructure.

Timed practice exam

Take a DVA-C02 practice test under exam conditions

65 questions in 130 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam