nerdexam
Amazon

SAP-C02 · Question #138

A development team s Deploying new APIs as serverless applications within a company. The team is currently using the AWS Maragement Console to provision Amazon API Gateway. AWS Lambda, and Amazon…

The correct answer is B. Use the AWS Serverless Application Model to define the resources. To automate the future deployments of serverless APIs comprising Amazon API Gateway, AWS Lambda, and Amazon DynamoDB, the AWS Serverless Application Model (SAM) should be used, as it provides a simplified and specialized framework for defining and deploying serverless…

Submitted by amina.ke· Mar 6, 2026Design for New Solutions

Question

A development team s Deploying new APIs as serverless applications within a company. The team is currently using the AWS Maragement Console to provision Amazon API Gateway. AWS Lambda, and Amazon DynamoDB resources A solutions architect has been tasked with automating the future deployments of these serveriess APIs. How can this be accomplished?

Options

  • AUse AWS CloudFonTiation with a Lambda-backed custom resource to provision API Gateway.
  • BUse the AWS Serverless Application Model to define the resources.
  • CUse AWS CloudFormation to define the serverless application.
  • DCommit the application code to the AWS CodeCommit code repository.

How the community answered

(42 responses)
  • A
    2% (1)
  • B
    88% (37)
  • C
    7% (3)
  • D
    2% (1)

Why each option

To automate the future deployments of serverless APIs comprising Amazon API Gateway, AWS Lambda, and Amazon DynamoDB, the AWS Serverless Application Model (SAM) should be used, as it provides a simplified and specialized framework for defining and deploying serverless applications.

AUse AWS CloudFonTiation with a Lambda-backed custom resource to provision API Gateway.

While AWS CloudFormation can define resources, using Lambda-backed custom resources for standard serverless components like API Gateway, Lambda, and DynamoDB is unnecessarily complex, as SAM (which builds on CloudFormation) provides direct support.

BUse the AWS Serverless Application Model to define the resources.Correct

The AWS Serverless Application Model (SAM) is an open-source framework specifically designed to simplify the definition and deployment of serverless applications, including Amazon API Gateway, AWS Lambda functions, and Amazon DynamoDB tables, making it the most direct and efficient solution for automating their deployments.

CUse AWS CloudFormation to define the serverless application.

AWS CloudFormation can define serverless resources, but the AWS Serverless Application Model (SAM) offers a more concise, opinionated, and specialized syntax specifically for serverless applications, simplifying their definition and deployment compared to raw CloudFormation.

DCommit the application code to the AWS CodeCommit code repository.

AWS CodeCommit is a source control service for storing application code and infrastructure definitions, but it does not define how resources are provisioned or automate the deployment process itself.

Concept tested: Serverless application deployment, AWS SAM, Infrastructure as Code

Source: https://aws.amazon.com/serverless/sam/

Community Discussion

No community discussion yet for this question.

Full SAP-C02 Practice