exam questions

Exam AWS Certified Solutions Architect - Professional All Questions

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

Exam AWS Certified Solutions Architect - Professional topic 1 question 810 discussion

A media company is hosting a high-traffic news website on AWS. The website's front end is based solely on HTML and JavaScript. The company loads all dynamic content by using dynamic asynchronous JavaScript requests to a dedicated backend infrastructure.
The front end runs on four Amazon EC2 instances as web servers. The dynamic backend runs in containers on an Amazon Elastic Container Service (Amazon
ECS) cluster that uses an Auto Scaling group of EC2 instances. The ECS tasks are behind an Application Load Balancer (ALB).
Which solutions should a solutions architect recommend to optimize costs? (Choose two.)

  • A. Migrate the front end of the website to an Amazon S3 bucket Deploy an Amazon CloudFront distribution. Set the S3 bucket as the distribution's origin.
  • B. Deploy an Amazon CloudFront distribution. Configure the distribution to use the ALB endpoint as the origin.
  • C. Migrate the front-end services to the ECS cluster. Increase the minimum number of nodes in the Auto Scaling group.
  • D. Turn on Auto Scaling for the front-end EC2 instances. Configure a new listener rule on the ALB to serve the front end.
  • E. Migrate the backend of the website to an Amazon S3 bucket. Deploy an Amazon CloudFront distribution. Set the S3 bucket as the distribution's origin.
Show Suggested Answer Hide Answer
Suggested Answer: AB 🗳️

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
pititcu667
Highly Voted 2 years, 10 months ago
Selected Answer: AB
AB since the frontend is entirely static content hence the ideal use case for s3 web site hosting
upvoted 8 times
...
SkyZeroZx
Most Recent 1 year, 5 months ago
Selected Answer: AB
A) if frontend is only HTML with JS , S3 + Cloudfront sounds good is usually use case B ) In reference of ALB of ECS of Backend use CloudFront reduce cost and add caching strategy C) migration frontend HTML + JS to ECS , more overhead and cost D ) autoscaling frontend HTML +JS ? Why ? not is correct and more cost E ) Backend to S3 ? not seems AB
upvoted 1 times
...
bloless1s
2 years, 1 month ago
Selected Answer: BD
it should be B&D. If the answer requires only one option then only A would be perfect. But the question requires two combine steps, then the combination of B&D makes most sense. It is typical Cloudfront + ALB + Auto Scaling solution. The combine of A & B can be redundant for B. Cloudfront for service API seems does not appear anywhere on AWS solution.
upvoted 1 times
...
softarts
2 years, 1 month ago
AB => javascript is js file which will be executed on client browser, so it is static file.
upvoted 2 times
...
sb333
2 years, 1 month ago
Selected Answer: AB
A: The front end servers are static and can be migrated to S3. Then create a CloudFront deployment and use S3 and an origin. B: The backend is dynamic content, which is behind and ALB. You set this ALB as an origin in the distribution. AWS exam questions are like this sometimes, asking you to do something similar in two different answers, like create a CloudFront distribution. But you have to put them into context, that AWS wants you to know that a CloudFront distribution is needed in both answers and that you need one or more origins. If they just said in answer B that you needed to create a second origin, then it's easier to know that answer A is right since it asked you to create the deployment with an origin. Anyways, AB is correct and the cheapest option to go with.
upvoted 4 times
sb333
2 years, 1 month ago
Sorry, typed "deployment" a couple times when I meant to type "distribution". Can't edit posts once you submit. :)
upvoted 1 times
...
...
AwsBRFan
2 years, 1 month ago
Selected Answer: BD
https://aws.amazon.com/pt/blogs/networking-and-content-delivery/deliver-your-apps-dynamic-content-using-amazon-cloudfront-getting-started-template/ "CloudFront to deliver both static and dynamic content using a single distribution, for dynamic and static websites and web applications." AB = 2 distribution and supposed to be 2 origins.
upvoted 1 times
...
SureNot
2 years, 2 months ago
Only HTML and JavaScript -> no static for S3 -> answer BD
upvoted 1 times
...
joanneli77
2 years, 2 months ago
If both A and B, don't you have TWO CloudFront distributions? That's not reference... normally one with a static+dynamic origin would be correct. (?)
upvoted 2 times
...
nyshaa
2 years, 3 months ago
Selected Answer: BD
BD for me
upvoted 2 times
...
asfsdfsdf
2 years, 3 months ago
Selected Answer: AB
AB E - eliminated since backend is is dynamic - cant use s3 website. Since S3 is cheaper than running instances on ASG: C and D are eliminated for the static front-end content. So the other answer is B - It will not save a lot of money since its a dynamic content but its the only valid answer.
upvoted 3 times
...
TechX
2 years, 5 months ago
Selected Answer: AB
AB for me
upvoted 3 times
...
Xianzai
2 years, 8 months ago
Selected Answer: AB
AB. Obviously
upvoted 1 times
...
kapsel
2 years, 8 months ago
Selected Answer: AD
Cost optimiztion. A migration to s3. D autoscaling for Costa reduction
upvoted 2 times
rajje
2 years, 8 months ago
If you migrate the front end to S3, why do you need the front-end EC2 instances?
upvoted 5 times
...
...
jj22222
2 years, 8 months ago
Selected Answer: AB
A and B look better looking at the thread
upvoted 1 times
...
jj22222
2 years, 8 months ago
Selected Answer: BD
B and D look right
upvoted 3 times
...
pal40sg
2 years, 9 months ago
Selected Answer: BD
All dynamic material ** A - S3 is wrong answer
upvoted 1 times
...
johnsnow81
2 years, 9 months ago
I dont understand answers here. How B can be correct? cloudfront is for frontend content not for backend content
upvoted 2 times
cale
2 years, 2 months ago
If you combine A and B as a solution, it will make sense because the front end will be migrated to S3 and CloudFront will be used and then B comes in. I hope that helps. I had initial thinking as well at first.
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 ...