DVA-C02 · Question #140
DVA-C02 Question #140: Real Exam Question with Answer & Explanation
The correct answer is B: Lambda@Edge functions can be created only in the us-east-1 Region.. It must be deployed to a region where Lambda@Edge is supported, such as us-east-1.
Question
A developer is creating an AWS Serverless Application Model (AWS SAM) template. The AWS SAM template contains the definition of multiple AWS Lambda functions, an Amazon S3 bucket, and an Amazon CloudFront distribution. One of the Lambda functions runs on Lambda@Edge in the CloudFront distribution. The S3 bucket is configured as an origin for the CloudFront distribution. When the developer deploys the AWS SAM template in the eu-west-1 Region, the creation of the stack fails. Which of the following could be the reason for this issue?
Options
- ACloudFront distributions can be created only in the us-east-1 Region.
- BLambda@Edge functions can be created only in the us-east-1 Region.
- CA single AWS SAM template cannot contain multiple Lambda functions.
- DThe CloudFront distribution and the S3 bucket cannot be created in the same Region.
Explanation
It must be deployed to a region where Lambda@Edge is supported, such as us-east-1.
Community Discussion
No community discussion yet for this question.