Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam AWS Certified Solutions Architect - Professional SAP-C02 All Questions

View all questions & answers for the AWS Certified Solutions Architect - Professional SAP-C02 exam

Exam AWS Certified Solutions Architect - Professional SAP-C02 topic 1 question 28 discussion

A company has registered 10 new domain names. The company uses the domains for online marketing. The company needs a solution that will redirect online visitors to a specific URL for each domain. All domains and target URLs are defined in a JSON document. All DNS records are managed by Amazon Route 53.
A solutions architect must implement a redirect service that accepts HTTP and HTTPS requests.
Which combination of steps should the solutions architect take to meet these requirements with the LEAST amount of operational effort? (Choose three.)

  • A. Create a dynamic webpage that runs on an Amazon EC2 instance. Configure the webpage to use the JSON document in combination with the event message to look up and respond with a redirect URL.
  • B. Create an Application Load Balancer that includes HTTP and HTTPS listeners.
  • C. Create an AWS Lambda function that uses the JSON document in combination with the event message to look up and respond with a redirect URL.
  • D. Use an Amazon API Gateway API with a custom domain to publish an AWS Lambda function.
  • E. Create an Amazon CloudFront distribution. Deploy a Lambda@Edge function.
  • F. Create an SSL certificate by using AWS Certificate Manager (ACM). Include the domains as Subject Alternative Names.
Show Suggested Answer Hide Answer
Suggested Answer: CEF 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
masetromain
Highly Voted 1 year, 9 months ago
Selected Answer: CEF
C: By creating an AWS Lambda function, the solution architect can use the JSON document to look up the target URLs for each domain and respond with the appropriate redirect URL. This way, the solution does not need to rely on a web server to handle the redirects, which reduces operational effort. E: By creating an Amazon CloudFront distribution, the solution architect can deploy a Lambda@Edge function that can look up the target URLs for each domain and respond with the appropriate redirect URL. This way, CloudFront can handle the redirection, which reduces operational effort. F: By creating an SSL certificate with ACM and including the domains as Subject Alternative Names, the solution architect can ensure that the redirect service can handle both HTTP and HTTPS requests, which is required by the company.
upvoted 35 times
Shahul75
1 year, 9 months ago
SAN cannot handle redirects. We need to do http - https
upvoted 1 times
...
masetromain
1 year, 9 months ago
A and B are not the right answer because they would require configuring and maintaining a web server to handle the redirects, which would increase operational effort. D is not the right answer because it would require creating an API Gateway API, which increases operational effort.
upvoted 6 times
Arnaud92
1 year, 7 months ago
Wrong for B, Lambda can be an ALB target, you do not need web server
upvoted 9 times
...
...
...
chathur
Highly Voted 1 year, 5 months ago
Selected Answer: BCF
If you go with a Cloudfront what is the origin? Lambda@edge is not origin. The function mentioned in C is Lambda and in E it says about Lambda@edge, which are two things. If you handle redirect from the Lambda@edge in CF there is no need of the Lambda you wrote in Answer C. MY Answer: Create an ALB with HTTP and HTTPS listeners (B), Use the TLS cert created in F for the HTTPS listener. As the backend for the ALB write a Lambda with endpoint mapping JSON (C) Is this full serverless? No, but you do not have to worry about scaling or operational overhead, AWS Handles everything for us.
upvoted 31 times
dubyaF
10 months, 2 weeks ago
This is the only answer that is completed by using all three options selected BCF. F is mandatory to resolve the marketing domains URLs that are HTTPS. So B and C then work together to redirect to those URLs as a full solution like https://aws.amazon.com/ko/blogs/networking-and-content-delivery/automating-http-s-redirects-and-certificate-management-at-scale/ E may have partial potential to do something, but you have no origin with it - and what would the origin be? With BCF you hit the ALB get a redirect as a result of the Marketing URL and your done-- its a complete redirect solution which is what the whole requirement is.
upvoted 6 times
...
...
NiceKing
Most Recent 1 month ago
Selected Answer: BCF
Setting lambda as an ALB target seems less effort than configuring CFN origins.
upvoted 1 times
...
amministrazione
2 months, 1 week ago
C. Create an AWS Lambda function that uses the JSON document in combination with the event message to look up and respond with a redirect URL. E. Create an Amazon CloudFront distribution. Deploy a Lambda@Edge function. F. Create an SSL certificate by using AWS Certificate Manager (ACM). Include the domains as Subject Alternative Names.
upvoted 1 times
...
ry1999
2 months, 2 weeks ago
Selected Answer: BCF
Initially, i thought E however, i realized that Lambda@Edge needs an origin to send traffic to. The purpose of Lambda on edge is to make adjustments to the request/response not to reroute like what we're trying to achieve. D is out because Amazon API Gateway does not support unencrypted (HTTP) endpoints. A is too much overhead BCF.
upvoted 1 times
...
Jason666888
3 months ago
Selected Answer: BCF
BCF (Application Load Balancer, AWS Lambda, ACM) is preferred for its simplicity, ease of setup, and cost predictability. It handles both HTTP and HTTPS traffic effectively with less operational complexity compared to the CloudFront and Lambda@Edge setup. CEF (AWS Lambda, CloudFront, ACM) is a powerful solution for global low-latency requirements but may introduce unnecessary complexity and higher costs for a simple redirection service.
upvoted 1 times
...
vip2
4 months, 1 week ago
Selected Answer: BEF
Correct answer is BEF Main discussion here is Lambda@Edge can redirect viewers request to based on information in the request based on domain and path
upvoted 2 times
Reval
3 months, 1 week ago
B is not correct. While an ALB could handle HTTP/HTTPS requests, it still requires managing target groups and does not directly integrate with a simple Lambda function for routing.
upvoted 1 times
...
...
Bereket
4 months, 2 weeks ago
Selected Answer: CDF
CDF is answer. Check it again
upvoted 1 times
...
Helpnosense
4 months, 3 weeks ago
Selected Answer: BCF
Vote BCF
upvoted 1 times
...
QasimAWS
6 months, 2 weeks ago
Guys the Answer has to be B,C, and E. period.
upvoted 1 times
...
Dgix
7 months, 2 weeks ago
Selected Answer: CEF
CEF is the correct combination.
upvoted 1 times
...
24Gel
7 months, 4 weeks ago
E is a bit blur, it seems like an unifished sentence to me
upvoted 1 times
...
atirado
10 months, 3 weeks ago
Selected Answer: BCF
Option A - This option could work but it increases operational overhead: Deploying an EC2 instance requires building a VPC with one public subnet. Moreover, the architect will need to write an application to process the event. Option B - This option could work and it reduces operational overhead: An ALB helps expose the solution and respond to HTTP/S requests; a VPC will needed. It can target EC2 instances and Lambda functions Option C - This option could work and minimizes operational overhead: The architect can focus on writing the code to process the event. A VPC is not necessarily needed to deploy a Lambda function Option D - This option might not work: AWS Gateway APIs only respond to HTTPS Option E - This option might not work: It can respond to HTTP/S requests and send events to API Gateway as an origin. However, this would remove the need to deploy a Lambda@Edge function Option F - This option will contribute to the solution: It enables HTTPS for the 10 domains
upvoted 4 times
...
jainparag1
11 months, 2 weeks ago
Selected Answer: BEF
Lambda@Edge allows you to execute custom business logic closer to the viewer. This capability enables intelligent/programmable processing of HTTP requests at locations that are closer (for the purpose of latency) to your viewer. In this case the Lambda@Edge function can be written so that it redirects viewers based on information in the request based on domain and path. To accept multiple custom domains on the CloudFront distribution a certificate can be created in ACM that includes multiple subject alternative names. These names can then be used in Route 53 records pointing to the distribution. The ALB may will need to be configured with both an HTTP and an HTTPS listener. The HTTPS listener will also require a certificate, and this could use the same certificate used in the CloudFront distribution or it could be a separate certificate.
upvoted 5 times
jainparag1
11 months, 2 weeks ago
INCORRECT: "Create a dynamic webpage and host it on an Amazon EC2 instance. Configure the webpage to use the JSON document in combination with the event message to look up and respond with a redirect URL" is incorrect. While designing such a solution, serverless should be utilized and hence EC2 isn’t an appropriate use case for this scenario. INCORRECT: "Create an AWS Lambda function that uses the event message and specified JSON document to look up and respond with a redirect URL" is incorrect. With this solution, Lambda would need a change every time config file changes and would increase effort, hence this is not an efficient option. INCORRECT: "Use an Amazon API Gateway API with a custom domain to publish an AWS Lambda function" is incorrect. With this option as well, for each domain addition or change, API gateway stages would have to be re deployed hence this is again an ineffective choice.
upvoted 3 times
jainparag1
11 months, 2 weeks ago
References: https://aws.amazon.com/premiumsupport/knowledge-center/elb-redirect-to-another-domain-with-alb/ https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-edge-how-it-works-tutorial.html Save time with our AWS cheat sheets: https://digitalcloud.training/amazon-cloudfront/
upvoted 3 times
...
...
...
severlight
12 months ago
Selected Answer: CEF
as they fit each other
upvoted 1 times
...
Jay_2pt0_1
12 months ago
B, E, F - Lambda@Edge will allow for processing before directing to ALB
upvoted 2 times
...
rlf
1 year, 1 month ago
BCF. We need to choose the solution with three steps and here is the blog with same situation with old possible scenario with limited scale ( S3, cloudfront without lambda@edge ) https://aws.amazon.com/ko/blogs/networking-and-content-delivery/automating-http-s-redirects-and-certificate-management-at-scale/
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...