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