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

Exam AWS Certified Solutions Architect - Associate SAA-C02 topic 1 question 112 discussion

A company recently launched its website to serve content to its global user base. The company wants to store and accelerate the delivery of static content to its users by leveraging Amazon CloudFront with an Amazon EC2 instance attached as its origin.
How should a solutions architect optimize high availability for the application?

  • A. Use Lambda@Edge for CloudFront.
  • B. Use Amazon S3 Transfer Acceleration for CloudFront.
  • C. Configure another EC2 instance in a different Availability Zone as part of the origin group.
  • D. Configure another EC2 instance as part of the origin server cluster in the same Availability Zone.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Paitan
Highly Voted 2 years, 12 months ago
You can set up CloudFront with origin failover for scenarios that require high availability. To get started, you create an origin group with two origins: a primary and a secondary. If the primary origin is unavailable, or returns specific HTTP response status codes that indicate a failure, CloudFront automatically switches to the secondary origin. So the right answer is C.
upvoted 95 times
HMC_37
2 years, 11 months ago
When he uses the word "optimize", I understand that the HA structure is already created. He wants to optimize, improve the user experience. So the correct answer is "A".
upvoted 5 times
slackbot
1 year, 2 months ago
dude, what are you smoking :D where did you see there was already HA implemented: "leveraging Amazon CloudFront with an Amazon EC2 instance attached as its origin" AN instance - single instance
upvoted 1 times
...
...
aguy9
2 years, 11 months ago
I agree, Answer is C. Please see quote and link: “You can set up CloudFront with origin failover for scenarios that require high availability. To get started, you create an origin group with two origins: a primary and a secondary. If the primary origin is unavailable, or returns specific HTTP response status codes that indicate a failure, CloudFront automatically switches to the secondary origin.” https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/high_availability_origin_failover.html
upvoted 14 times
...
kuman
2 years, 11 months ago
Answer is C. Lambda@Edge reduces latency but does not help with availability
upvoted 16 times
noahsark
2 years, 10 months ago
HA was mentioned in AWS: Just upload your code to AWS Lambda, which takes care of everything required to run and scale your code with high availability at an AWS location closest to your end user. https://aws.amazon.com/lambda/edge/
upvoted 3 times
Majchel
2 years, 10 months ago
in the question text is: ..."'The company wants to store and accelerate the delivery of static content to its users by leveraging Amazon CloudFront with an Amazon EC2 instance attached as its origin." Lambda helps you with everything, but you need to use Ec2 not run code in lambda. Question is, how to secure the HA in solution with EC2. Then I vote for "C". Or maybe I understand that question wrong.
upvoted 8 times
Lucky_
2 years, 10 months ago
Its saying "optimize" which means you can rearrange or rewrite the solution. As an architect to OPTIMIZE the solution choosing Lamda Edge will take care of everything and you don't need to manually add other instances for failover. "A" is the correct answer.
upvoted 1 times
allanm
2 years, 1 month ago
You are thinking outside of the box here. The requirement is very clear here - "The firm wishes to store and speed the delivery of static material to its consumers via the usage of Amazon CloudFront and an Amazon EC2 instance as the origin." The firm wishes to use EC2, not lambda.
upvoted 2 times
...
...
...
...
robertomartinez
2 years, 10 months ago
yes here is the reference mentioning HA and failover in origin groups https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DownloadDistS3AndCustomOrigins.html#concept_origin_groups
upvoted 3 times
...
...
...
josebormo
Highly Voted 2 years, 12 months ago
I go with C https://docs.aws.amazon.com/es_es/AmazonCloudFront/latest/DeveloperGuide/high_availability_origin_failover.html
upvoted 22 times
...
Developer404
Most Recent 1 week, 5 days ago
Selected Answer: C
Lambda Edge cannot cover HA. We only have one EC2 instance. Question is twisted, focus only on what is asked - HA
upvoted 1 times
...
Bmarodi
1 year, 4 months ago
The answer is A, because as the floowing: Lambda@Edge is a feature of Amazon CloudFront that lets you run code closer to users of your application, which improves performance and reduces latency. With Lambda@Edge, you don't have to provision or manage infrastructure in multiple locations around the world. Hence A is correct.
upvoted 1 times
...
mackeda
1 year, 8 months ago
A, please refer https://aws.amazon.com/lambda/edge/
upvoted 1 times
...
17Master
1 year, 11 months ago
to implement "lambda Lambda@Edge for CloudFront" you must have one more EC2 instance. Check out this graph and analyze. https://docs.aws.amazon.com/es_es/AmazonCloudFront/latest/DeveloperGuide/high_availability_origin_failover.html#concept_origin_groups.creating -----> at the end you find the design to use source failover with Lambda@Edge functions
upvoted 2 times
...
bora4motion
2 years, 2 months ago
Selected Answer: C
This is about HA. If you lose the only origin, you're offline. C
upvoted 3 times
...
esinan
2 years, 4 months ago
Selected Answer: C
EC2 environment mentioned in the question.
upvoted 2 times
...
osel
2 years, 8 months ago
Can Lambda that has a max 15min execution time for each invocation be used to host a full website? I still believe Lambda@Edge is to address latency by performing some content filtering and not hosting the entire website. I opt for answer C for HA.
upvoted 2 times
...
FF11
2 years, 8 months ago
Selected Answer: C
C seems correct.
upvoted 3 times
...
tin2022
2 years, 8 months ago
Asking for HA, so answer is C
upvoted 1 times
...
Sharan_25_v
2 years, 9 months ago
Selected Answer: C
High availability always constitutes with Availability Zone and Lambda@edge improves latency but not high availability
upvoted 3 times
...
Subhankar89
2 years, 9 months ago
Answer is A. https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-and-origin-failover.html
upvoted 2 times
...
Gomer
2 years, 9 months ago
Answer is C. The decision to host on EC2 has been already been made (probably by someone in management). However, if you want to have HA (which is the only thing being requested), you need another EC2 instance in another AZ. Yes, you could do this other ways, and probably better, but the solution they are asking for is very specific enhancement to what is already in place.
upvoted 1 times
...
Mashuaws
2 years, 9 months ago
The answer should be A
upvoted 1 times
...
plaws02
2 years, 9 months ago
Selected Answer: A
Answer is A . Lambda@Edge --> scale your code with high availability https://aws.amazon.com/lambda/faqs/ if we replace Ec2 with Lambda@Edge . Then HA comes from Lambda@Edge wishes to store -> Lambda@Edge // speed the delivery -> CloudFront
upvoted 1 times
plaws02
2 years, 9 months ago
https://aws.amazon.com/lambda/edge/
upvoted 1 times
...
...
mrkid3085
2 years, 10 months ago
The company wants to store and accelerate the delivery of static content to its users by leveraging Amazon CloudFront with an Amazon EC2 instance attached as its origin. --> not be A. the answer is C.
upvoted 2 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 ...