exam questions

Exam AZ-303 All Questions

View all questions & answers for the AZ-303 exam

Exam AZ-303 topic 3 question 4 discussion

Actual exam question from Microsoft's AZ-303
Question #: 4
Topic #: 3
[All AZ-303 Questions]

HOTSPOT -
You have an Azure subscription that contains the resources shown in the following table.

You need to deploy a load-balancing solution for two Azure web apps named App1 and App2 to meet the following requirements:
✑ App1 must support command injection protection.
✑ App2 must be able to use a static public IP address.
✑ App1 must have a Service Level Agreement (SLA) of 99.99 percent.
Which resource should you use as the load-balancing solution for each app? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: AGW1 -
Azure Application Gateway offers a web application firewall (WAF) that provides centralized protection of your web applications from common exploits and vulnerabilities. Web applications are increasingly targeted by malicious attacks that exploit commonly known vulnerabilities. SQL injection and cross-site scripting are among the most common attacks.

Box 2: ELB1 -
Public IP addresses allow Internet resources to communicate inbound to Azure resources. Public IP addresses also enable Azure resources to communicate outbound to Internet and public-facing Azure services with an IP address assigned to the resource.
Note: In Azure Resource Manager, a public IP address is a resource that has its own properties. Some of the resources you can associate a public IP address resource with are:
✑ Virtual machine network interfaces
✑ Internet-facing load balancers
✑ VPN gateways
✑ Application gateways
Reference:
https://docs.microsoft.com/en-us/azure/application-gateway/waf-overview https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-ip-addresses-overview-arm

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
Stephan99
Highly Voted 4 years, 6 months ago
Answers are correct. Source IP affinity. This distribution mode is also known as session affinity or client IP affinity. To map traffic to the available servers, the mode uses a two-tuple hash (from the source IP address and destination IP address) or three-tuple hash (from the source IP address, destination IP address, and protocol type). The hash ensures that requests from a specific client are always sent to the same virtual machine behind the load balancer.
upvoted 32 times
JayBee65
3 years, 4 months ago
App2 requires an application gateway as its web traffic, (a LB is used for non-web traffic) - https://docs.microsoft.com/en-us/azure/architecture/guide/technology-choices/load-balancing-overview. A v2 App gateway supports a dynamic IPv4 address.
upvoted 1 times
...
KhabibcandefeatGSP
4 years, 1 month ago
Yes the first answer is right, the question however is wrong, specifically the SLA requirement 99.99%. The second answer is APGW2 because it supports static public IP address. Neither apps can be backend for Az load balancer because they are hosted in App service - Web Apps and not in Azure Virtual Machines.
upvoted 13 times
medi01
3 years, 10 months ago
Huh? When you create an IP address resource, it is "static" (doesn't change) until you delete it explicitly.
upvoted 1 times
...
thebarber87
3 years, 5 months ago
Incorrect - wish people would read the documentation before wasting other's time when given answer is correct. External load balancer https://docs.microsoft.com/en-us/azure/load-balancer/load-balancer-overview#securebydefault Gives a standard public IP which is static https://docs.microsoft.com/en-us/azure/virtual-network/ip-services/public-ip-addresses#at-a-glance
upvoted 4 times
JayBee65
3 years, 4 months ago
You should do the same and you would see you are wrong :) https://docs.microsoft.com/en-us/azure/architecture/guide/technology-choices/load-balancing-overview
upvoted 1 times
...
...
...
a_r_c
4 years, 2 months ago
I see currently none of the options fit the bill as AGW has max SLA of 99.95.Not sure if the question has a glitch!
upvoted 1 times
...
AzureGC
4 years, 2 months ago
Question is asking about the LB requirements only: App1: WAF for Injection Protection, coupled with VM's in availability zone will achieve 99.99, https://azure.microsoft.com/en-us/support/legal/sla/load-balancer/v1_0/ App2: ELB1 for static IP is only required, ELB is a synonym to is only "external public load balancer: https://docs.microsoft.com/en-us/azure/load-balancer/move-across-regions-external-load-balancer-portal"
upvoted 5 times
...
...
HDZ78
Highly Voted 4 years ago
So follow my train of thought for a moment: - Load balancers have a knockout criterium, they only support VM's and VMSS's: https://docs.microsoft.com/en-us/azure/load-balancer/backend-pool-management - AGW's have a max. SLA of 99.95%: https://azure.microsoft.com/en-in/support/legal/sla/application-gateway/v1_2/ - AFD also supports WAF + SLA 99.99%: https://azure.microsoft.com/en-in/support/legal/sla/frontdoor/v1_0/ - AGWv2 supports static public IP as of 2019: https://docs.microsoft.com/en-us/azure/application-gateway/application-gateway-autoscaling-zone-redundant For App2 the answer is AGW2 since it is the only one compatible. For App1 the answer should be AFD+WAF in a real world situation, but given the answers I would go for AGW1 since it specifically mentions having the WAF enabled.
upvoted 18 times
...
[Removed]
Most Recent 3 years, 6 months ago
Correct answer: - AppGW1 - WAF offers protection from SQL injection https://docs.microsoft.com/en-us/azure/application-gateway/features#web-application-firewall - AppGW2 - gateway Standard_v2 SKU supports static VIP type exclusively https://docs.microsoft.com/en-us/azure/application-gateway/features#static-vip LB is not option for WebApp- check flowchart: https://docs.microsoft.com/en-us/azure/architecture/guide/technology-choices/load-balancing-overview#decision-tree-for-load-balancing-in-azure
upvoted 4 times
...
plmmsg
3 years, 6 months ago
The second answer should be APGW2.
upvoted 3 times
...
jmay
3 years, 6 months ago
App1: needs injection prevention, so it needs a WAF. So AGW1 is adequate. App2: Needs static IP, which is supported by both standard_v2 Application Gateway and ELB. But it further specifies 99.99% availability, so it can only be ELB as standard_v2 AGW has only 99.95% availability. Given answers are correct.
upvoted 1 times
JayBee65
3 years, 4 months ago
Ahh, you are summing App1 must have a Service Level Agreement (SLA) of 99.99 percent. should instead read App2 must have a Service Level Agreement (SLA) of 99.99 percent.
upvoted 2 times
...
...
HarryZ
3 years, 6 months ago
Does Application Gateway support static IP? Yes, the Application Gateway v2 SKU supports static public IP addresses and static internal IPs. The v1 SKU supports static internal IPs. https://docs.microsoft.com/en-us/azure/application-gateway/application-gateway-faq so the 2nd question is application gateway standard-v2
upvoted 1 times
jmay
3 years, 6 months ago
standard_v2 has a 99.95% SLA. So AGW2 is not the correct answer.
upvoted 1 times
...
...
walkwolf3
3 years, 9 months ago
App1: AGW1 App2: AGW2 Only AGW or AFD could load balance Web(HTTP/HTTPs) type traffic https://docs.microsoft.com/en-us/azure/architecture/guide/technology-choices/images/load-balancing-decision-tree.png
upvoted 4 times
...
Thisismynickname001
3 years, 10 months ago
The question asks for a solution to two Azure web apps. Load Balancer does not support Azure web app.
upvoted 1 times
...
RGP4d33
3 years, 10 months ago
Guys: It's actually an easier justification. Answer 1 YES it's the WAF enabled one (no other one fits). BUT ... regarding second one, the ApplicationGatewy coud not have a public endpoint: it could be a OutBound Gateway ... thus, could not be the correct answer... In the other way, the ELB the only one with a waranty of having a public external IP address, thus provided answer (ELB) for second one is the best one.
upvoted 4 times
...
syu31svc
3 years, 10 months ago
Azure Web Application Firewall (WAF) on Azure Application Gateway provides centralized protection of your web applications from common exploits and vulnerabilities. Web applications are increasingly targeted by malicious attacks that exploit commonly known vulnerabilities. SQL injection and cross-site scripting are among the most common attacks. Protection against other common web attacks, such as command injection, HTTP request smuggling, HTTP response splitting, and remote file inclusion https://docs.microsoft.com/en-us/azure/web-application-firewall/ag/ag-overview Load Balanced Endpoint using Azure Standard Load Balancer, serving two or more Healthy Virtual Machine Instances, will be available 99.99% of the time. You can assign public IP address. https://azure.microsoft.com/en-us/support/legal/sla/load-balancer/v1_0/ https://docs.microsoft.com/en-us/azure/load-balancer/quickstart-load-balancer-standard-public-portal?tabs=option-1-create-load-balancer-standard Answer is correct
upvoted 3 times
...
tteesstt
3 years, 10 months ago
"You need to deploy a load-balancing solution for two ((((((((((((Azure web apps)))))))))))) named App1 and App2 to meet the following requirements:" You cannot use Azure Web App with Internal/External Load Balancer.
upvoted 4 times
...
Kronos
3 years, 11 months ago
Only the first answer is correct. The question asks "what should you use as the load balancing solution for EACH APP"? All the answers DO load balancing but to differentiate an Application Gateway vs Load Balancers---AG is a WEB traffic load balancer while LB distributes load across a group of resources or SERVERS. Therefore LBs are not the answer. Both ELB and AG can have public IP addresses AGW2 just fulfills the needed requirement for App2. So the correct answers are AGW1 for App1 and AGW2 for App2.
upvoted 2 times
...
gpalsule
3 years, 11 months ago
Tried in lab ... Box 1 -AGW1 and Box 2 - AGW2
upvoted 5 times
...
AZ_Apprentice
3 years, 11 months ago
Check the flow chart from the below link. The answer for App2 cannot be ELB. I believe it is AGW2, https://docs.microsoft.com/en-us/azure/architecture/guide/technology-choices/load-balancing-overview
upvoted 2 times
...
babyhu
4 years ago
this one explains when to use what, so for attack protection, use WAF, for Source IP Affinity, use Load balancer. a Public IP needs ELB. https://devblogs.microsoft.com/premier-developer/azure-load-balancing-solutions-a-guide-to-help-you-choose-the-correct-option/
upvoted 2 times
...
It did not say WAF v2 SKUs only Standard V2 SKU. So AGW2 has no WAF
upvoted 1 times
...
erickim007
4 years, 1 month ago
The answer should be both APGW2. For 1, because of SLA & also APGW2 comes with WAF configuration which we can enable to support injection protection. For 2, web app and likely we would not use LB. APGW2 provides static IP not V1.
upvoted 1 times
pentium75
3 years, 11 months ago
Why "we would not use LB"? App2 has no other requirements that "static public IP".
upvoted 1 times
pentium75
3 years, 11 months ago
Oh, but y, "Azure web app", LB does not support that.
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 ...