0 votes
in AWS by

You are using AWS SAM templates to deploy a serverless application. Which of the following resource will embed nested applications from Amazon S3 buckets?

1 Answer

0 votes
by

Correct Answer - B.

AWS::Serverless::Application resource in AWS SAM template is used to embed application from Amazon S3 buckets.

Option A is incorrect as AWS::Serverless::API is used for creating API Gateway resources & methods that can be invoked through HTTPS endpoints.

Option C is incorrect as AWS::Serverless::LayerVersion resource type creates Lambda layered function.

Option D is incorrect as AWS::Serverless::Function resource describes the configuration for creating Lambda function.

For more information on using AWS SAM templates, refer to the following URLs-

https://aws.amazon.com/blogs/compute/announcing-nested-applications-for-aws-sam-and-the-aws-serverless-application-repository/ https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-template.html

The correct answer is B. AWS::Serverless::Application.

AWS SAM (Serverless Application Model) templates are used to define the AWS resources required for a serverless application. The AWS::Serverless::Application resource type in a SAM template is used to deploy a nested serverless application from an S3 bucket.

The AWS::Serverless::API resource type is used to create an Amazon API Gateway REST API that integrates with AWS Lambda functions. It does not embed nested applications from Amazon S3 buckets.

The AWS::Serverless::LayerVersion resource type is used to create a layer that contains code that can be reused across multiple functions. It does not embed nested applications from Amazon S3 buckets.

The AWS::Serverless::Function resource type is used to create an AWS Lambda function that runs code in response to an event. It does not embed nested applications from Amazon S3 buckets.

Therefore, the correct answer is B. AWS::Serverless::Application, as it is the resource type that is used to embed nested applications from Amazon S3 buckets.

...