DVA-C02 practice question 16 of 35
A developer is creating an application that includes an Amazon API Gateway REST API in the us-east- 2 Region. The developer wants to use Amazon CloudFront and a custom domain name for the API. The developer has acquired an SSL/TLS certificate for the domain from a third-party provider. How should the developer configure the custom domain for the application?
Full set: 598 questionsDomain Security
To use a custom domain name with an Amazon CloudFront distribution, the associated SSL/TLS certificate must be located in AWS Certificate Manager (ACM) in the US East (N. Virginia) us-east-1 Region. This is a specific requirement for CloudFront, regardless of the location of the origin service (in this case, API Gateway in us-east-2). After importing the certificate into ACM in us-east-1 and configuring the CloudFront distribution, you must create a DNS CNAME record. This record maps your custom domain to the CloudFront distribution's domain name (e.g., d111111abcdef8.cloudfront.net), directing user traffic through CloudFront to the API.
A. The certificate must be in the us-east-1 Region for CloudFront, not the same region as the API. An A record is also incorrect for pointing to a CloudFront domain name.
B. SSL/TLS certificates are not imported directly into CloudFront. They must be imported into AWS Certificate Manager (ACM) and then associated with the CloudFront distribution.
C. The certificate must be in the us-east-1 Region for CloudFront. Importing it into the same region as the API (us-east-2) is incorrect for this architecture.
1. AWS Certificate Manager User Guide: Under the section "Regions for AWS Certificate Manager," the documentation states, "To use an ACM certificate with Amazon CloudFront, you must request or import the certificate in the US East (N. Virginia) Region."
2. Amazon CloudFront Developer Guide: In the "Using HTTPS with CloudFront" section, under "Requirements for using SSL/TLS certificates with CloudFront," it specifies, "To use a certificate from a third-party CA with CloudFront, you must import the certificate into ACM in the US East (N. Virginia) Region."
3. Amazon API Gateway Developer Guide: In the section "Setting up a custom domain name for an edge-optimized API," the guide explains the process which involves creating a CloudFront distribution and then states, "After you create the custom domain name, you must set up a DNS record to map the custom domain name to the CloudFront distribution domain name." This mapping is typically done with a CNAME record.
Keep practicing
Take the free DVA-C02 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other DVA-C02 practice questions
- Question 1A company has a multi-node Windows legacy application that runs on premises. The applicat…
- Question 2A developer migrated a legacy application to an AWS Lambda function. The function uses a …
- Question 3A development learn has an Amazon API Gateway REST API that is backed by an AWS Lambda fu…
- Question 4A company is expanding the compatibility of its photo-snaring mobile app to hundreds of a…
- Question 5A company has an ecommerce application. To track product reviews, the company's developme…
- Question 6A social media company is designing a platform that allows users to upload data, which is…
