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 (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
masetromain
Highly Voted 2 years, 2 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 37 times
Shahul75
2 years, 1 month ago
SAN cannot handle redirects. We need to do http - https
upvoted 1 times
...
masetromain
2 years, 2 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 7 times
Arnaud92
2 years ago
Wrong for B, Lambda can be an ALB target, you do not need web server
upvoted 9 times
...
...
...
chathur
Highly Voted 1 year, 10 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 33 times
dubyaF
1 year, 3 months 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
...
...
codeScalable
Most Recent 1 week, 6 days ago
Selected Answer: BCF
BCF. You already have a lambda function that does the processing. You don't need Lambda@Edge anymore
upvoted 1 times
...
3a05e15
1 month, 2 weeks ago
Selected Answer: CDF
Option E involves CloudFront with Lambda@Edge, which is more complex to manage than API Gateway for this use case.
upvoted 1 times
...
altonh
2 months, 3 weeks ago
Selected Answer: BCF
CEF - an overkill CDF - D says that you should create a custom domain. You need to perform several steps just for this custom domain so it is a more complicated setup.
upvoted 1 times
altonh
2 months, 3 weeks ago
Also, API Gateway only exposes HTTPS endpoints.
upvoted 1 times
...
...
thanhpolimi
3 months ago
Selected Answer: CDF
CDF is the best combination.
upvoted 1 times
...
pk0619
3 months, 2 weeks ago
Selected Answer: CDF
Lambda@Edge can perform redirection at CloudFront's edge locations, but this is more complex and costly for a simple redirect service. CloudFront is overkill for this use case as it primarily serves content delivery purposes.
upvoted 1 times
...
wem
3 months, 3 weeks ago
Selected Answer: CDF
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. Why: AWS Lambda provides a serverless solution to handle the redirect logic. It can read the domain and use the JSON document to determine the appropriate target URL. This reduces the operational overhead of managing infrastructure like EC2 instances. D. Use an Amazon API Gateway API with a custom domain to publish an AWS Lambda function. Why: API Gateway provides a fully managed way to route HTTP(S) requests to the Lambda function.It supports custom domains, allowing you to set up a single entry point for the redirect service, with SSL/TLS support. F. Create an SSL certificate by using AWS Certificate Manager (ACM). Include the domains as Subject Alternative Names. Why: ACM allows you to issue free SSL/TLS certificates for all 10 domains. This ensures HTTPS support for the redirect service without manual certificate management, aligning with the requirement to handle both HTTP and HTTPS.
upvoted 3 times
...
karlgrosz
3 months, 4 weeks ago
Selected Answer: CDF
E: Lambda@Edge is more suitable for content delivery network (CDN)-focused use cases, not for redirect services. It also requires additional setup and complexity compared to the API Gateway approach.
upvoted 1 times
...
manngupta007
3 months, 4 weeks ago
Selected Answer: CDE
Deploy Lambda function that looks up and returns the appropriate URL from the JSON document. Publish Lambda using API Gateway with a custom domain name for your 10 registered domains. Use CloudFront with Lambda@Edge to ensure fast and scalable global redirection. This approach is serverless, scalable, and minimizes operational overhead.
upvoted 2 times
...
sergza
4 months ago
Selected Answer: CEF
I think it is CEF according to this https://aws.amazon.com/blogs/networking-and-content-delivery/handling-redirectsedge-part1/
upvoted 1 times
...
Tiger4Code
4 months ago
Selected Answer: CDF
The correct steps to implement the redirect service with the LEAST operational effort are: 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. Lambda allows serverless, scalable handling of requests, and is ideal for processing requests based on a JSON document. D. Use an Amazon API Gateway API with a custom domain to publish an AWS Lambda function. API Gateway provides a scalable interface to expose the Lambda function via HTTP/HTTPS and supports custom domains. F. Create an SSL certificate by using AWS Certificate Manager (ACM). Include the domains as Subject Alternative Names. ACM simplifies the management of SSL certificates, ensuring HTTPS support for the custom domain.
upvoted 1 times
...
henrikhmkhitaryan59
4 months ago
Selected Answer: BCF
B. Create an Application Load Balancer that includes HTTP and HTTPS listeners. (for secure and easy traffic management) 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. (for low-cost, serverless compute) F. Create an SSL certificate by using AWS Certificate Manager (ACM). Include the domains as Subject Alternative Names. (for easy SSL management)
upvoted 1 times
...
julianocaldeira
4 months, 1 week ago
The most efficient solution for setting up a redirect service that accepts HTTP and HTTPS requests while leveraging AWS services would involve using a serverless architecture to reduce operational overhead. Here are the steps to achieve this: Correct Steps: 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. Use a Lambda function to handle incoming requests, parse the domain from the request, and determine the appropriate redirect URL using the JSON document. D. Use an Amazon API Gateway API with a custom domain to publish an AWS Lambda function. API Gateway can serve as the entry point for HTTP and HTTPS requests. It can integrate with the Lambda function and provide the custom domain support needed to handle redirects. F. Create an SSL certificate by using AWS Certificate Manager (ACM). Include the domains as Subject Alternative Names. ACM provides SSL certificates that are integrated with AWS services like API Gateway and CloudFront. This ensures HTTPS support for all domains with minimal operational effort.
upvoted 1 times
...
NiceKing
5 months, 4 weeks ago
Selected Answer: BCF
Setting lambda as an ALB target seems less effort than configuring CFN origins.
upvoted 1 times
...
amministrazione
7 months 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
7 months, 1 week 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
...
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago