SAP-C01 Exam QuestionsBrowse all questions from this exam

SAP-C01 Exam - Question 11


Your company has an on-premises multi-tier PHP web application, which recently experienced downtime due to a large burst in web traffic due to a company announcement Over the coming days, you are expecting similar announcements to drive similar unpredictable bursts, and are looking to find ways to quickly improve your infrastructures ability to handle unexpected increases in traffic.

The application currently consists of 2 tiers a web tier which consists of a load balancer and several Linux Apache web servers as well as a database tier which hosts a Linux server hosting a MySQL database.

Which scenario below will provide full site functionality, while helping to improve the ability of your application in the short timeframe required?

Show Answer
Correct Answer: B

Creating an Amazon Machine Image (AMI) of the web servers and using an Auto Scaling group to scale the web tier based on incoming traffic provides a scalable and flexible solution. Elastic Load Balancing (ELB) can balance traffic between the on-premises web servers and those hosted in AWS, accommodating the increased load during traffic bursts. This hybrid environment leverages AWS's elasticity and can be implemented relatively quickly without requiring a complete migration or a thorough understanding of the web application's static versus dynamic content.

Discussion

17 comments
Sign in to comment
AnNguyen
Oct 1, 2021

Answer is C A: This works if the website is static but we don’t know enough about it to determine if S3 can host it B: ELB can not be used with resources outside of AWS C: CloudFront works with custom origins, in this case the external PHP web app. CloudFront is a good choice for handling the traffic spike in a short time D: The scenario does not say the on-prem app is in a VM, this is not an option https://acloud.guru/forums/aws-certified-solutions-architect-professional/discussion/-KF5MzPkMfG_IyE2jkG1/load-balancing-to-balance-traffic-between-on-premises-web-servers-and-those-host

hhuo
Oct 5, 2021

I'm not saying B is correct. But, for ELB not being used outside of AWS, the following link shows AWS seems to have supported it. https://aws.amazon.com/about-aws/whats-new/2017/08/elastic-load-balancing-application-load-balancer-now-supports-load-balancing-to-ip-addresses-as-targets-for-aws-and-on-premises-resources/

iceman
Oct 7, 2021

If this is supported why B is not a valid answer then? C does look simpler though

William_Ye
Oct 10, 2021

After read your link, only ALB support on-premise;Correct answer still C.

CDV_fr
Oct 17, 2021

ELB = load balancing service. When you choose ELB, you still have to choose between ALB (layer 7), NLB (layer 4), or CLB (both, but is not integrated with new services). Previously, CLB was the only LB available and therefore was called ELB. https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/introduction.html

longns
Mar 1, 2023

The doc say on-premises locations reachable over AWS Direct Connect so implement AWS Direct Connect is not short time

Blah777
Oct 19, 2021

ELB is including ALB and CLB (Classic one). ALB can support on-premise resources and AWS resources via IP address. But you have to create connection between AWS and on-premise first (VPN or Direct Connect). So, i think that B is not correct.

PredaOvde
Oct 28, 2021

I don't think it's C. What if database is the bottleneck? Cloudfront would not help with that. I vote D.

loleny
May 13, 2024

The app is in production, you need "short time" and you would like to migrate the all app from on prem to Cloud ? Crazy idea

MurtazaarifOption: C
Jun 2, 2022

Cloudfront is right choice. because we are time bounded

SkyZeroZxOption: B
Jun 9, 2023

Option B (Hybrid environment) suggests creating an AMI (Amazon Machine Image) of the web servers and setting up an Auto Scaling group to scale the web tier based on incoming traffic. It also suggests using Elastic Load Balancing (ELB) to balance traffic between on-premises web servers and those hosted in AWS. This approach allows for quick scaling of the web tier to handle increased traffic, leveraging the elasticity and scalability of AWS. It provides a hybrid solution where both on-premises and AWS resources work together to handle the burst in traffic, ensuring full site functionality.

hilft
Jul 27, 2022

C. quick option

dino210
Aug 29, 2022

the key point is "announcement",it's static content. Answer is C

chamarz
Sep 4, 2022

Answer is C - Worth mentioning that CF supports dynamic + static content. The keyword here is "short timeframe".. all the other options will work if A - if the content was static B - If there was no short time frame requirement C - Correct because CF supports dynamic + static content D - Doesnt justify the "short time frame" requirement

Tarila79Option: B
May 24, 2023

Option B would be a better option to handle any amount of traffic with the ELB and autoscaling of the EC2 web instances.

Kubernetes
Mar 11, 2024

C is most fast

TigerInTheCloudOption: C
Dec 4, 2022

A. S3 web hosting only for static content. Two-tier, application/DB, most likely not static. If it is static, why not just migrate all but failover? B. Hybrid with auto-scaling EC2 group may work. What about DB? Could be the DB the bottleneck? How to handle on-premises server's performance metrics (quite complex) C: CloudFront can be set up quickly, and it supports both static and dynamic cache, which offloads the loads from applications and DB. D: This could be a good long-term solution but not for improving the ability of the application in the short timeframe required.

yyees
Apr 11, 2023

Even though chatGPT isn't always correct, this answer below is persuasive. B. Hybrid environment: Create an AMI, which can be used to launch web servers in EC2. Create an Auto Scaling group, which uses the AMI to scale the web tier based on incoming traffic. Leverage Elastic Load Balancing to balance traffic between on-premises web servers and those hosted in AWS. Option B would provide full site functionality while improving the ability of your application to handle unpredictable bursts in web traffic. This option involves creating an Amazon Machine Image (AMI) of the web servers and launching them in EC2 instances. An Auto Scaling group is created to scale the web tier based on incoming traffic, and Elastic Load Balancing is used to balance traffic between on-premises web servers and those hosted in AWS.

rtguru
May 9, 2023

I think B will work best since the application is fully hosted on premise , offloading it by creating a hybrid environment will handle the short time traffic burst

AimarLeoOption: C
Jan 22, 2024

In short notice either DX or VPN will take longer to establish connectivties.. besides to ELB was not specific if can scale to reach OnPrem there still custom config to create connection and scale the pool using IP Addresses which in the option not clear.. would go for C.. CloudFront for static and dynamic..

JPA210Option: C
Jan 31, 2024

C. is the only possible option B. Wrong, ELB is regional, cannot distribute between EC2 and on-prem D. is wrong since you cannot create RDS read replicas with on premises MYSQL server

2cool2touchOption: B
Mar 14, 2024

C with cloudfront does not necessarily address the unexpected burst. We dont know the nature of the app. PHP can be cached but depending on the site logic, it may still send a ton of requests back so there is no gurantee this will solve the problem. B will solve it. One thing not mentioned here is VPN or DX between on-prem and cloud. VPN can be setup quickly

devilman222Option: B
Apr 17, 2024

B and C are only real answers. Its a stupid question because obviously you would have some idea of where the bottle neck was. Would you really try to solve this problem without knowing if the problem was in the Database teir or the webtier. B is more complicated, but would solve the problem. Honestly what you would do in a very short term would be spin up more on prem resources and then work on migrated it to AWS which would take longer than a few days.

Chungies
Jul 17, 2024

I will go with B because You can use an Elastic Load Balancing (ELB) service like Application Load Balancer (ALB) or Network Load Balancer (NLB) to distribute traffic between AWS resources and on-premises servers. This allows you to seamlessly integrate your on-premises infrastructure with your AWS environment.