AZ-303 Exam QuestionsBrowse all questions from this exam

AZ-303 Exam - Question 132


HOTSPOT -

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

Exam AZ-303 Question 132

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:

Exam AZ-303 Question 132
Show Answer
Correct Answer:
Exam AZ-303 Question 132

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

Discussion

33 comments
Sign in to comment
Stephan99
Jan 2, 2021

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.

a_r_c
Apr 30, 2021

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!

AzureGC
May 2, 2021

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"

KhabibcandefeatGSP
May 16, 2021

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.

medi01
Aug 16, 2021

Huh? When you create an IP address resource, it is "static" (doesn't change) until you delete it explicitly.

thebarber87
Jan 13, 2022

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

JayBee65
Feb 11, 2022

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

JayBee65
Feb 11, 2022

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

medi01
Aug 16, 2021

Huh? When you create an IP address resource, it is "static" (doesn't change) until you delete it explicitly.

thebarber87
Jan 13, 2022

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

JayBee65
Feb 11, 2022

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

JayBee65
Feb 11, 2022

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

JayBee65
Feb 11, 2022

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.

HDZ78
Jun 13, 2021

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.

HenryNguyen
May 16, 2021

App1 -> AGW1 has WAF support injection App2 -> AGW2 v2 support static IP ( ILB work in layer 4 and does not support webapp )

gpalsule
Aug 6, 2021

Tried in lab ... Box 1 -AGW1 and Box 2 - AGW2

azurecert2021
Jan 7, 2021

question has typo App1 must have a Service Level Agreement (SLA) of 99.95 percent not 99.99

a_r_c
Apr 30, 2021

this is the only hope on this question :-)

tteesstt
Aug 18, 2021

"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.

RGP4d33
Aug 29, 2021

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.

walkwolf3
Oct 3, 2021

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

[Removed]
Jan 4, 2022

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

Blimpy
Jan 21, 2021

im going to throw a curveball here: the answer is AGW2 for both apps.. it fits all the requirements AND multiple apps can be behind an 1 Application Gateway the reason is it asking for 99.99% is because it expects to be zone redundant - AGW2 is v2 to support Availability Zones AGW2 (v2 sku) also supports static IP Address and WAF is built in

Anonymous
Jan 23, 2021

Not too sure about your justification. i.e. MS literature states AGWv2 has a 99.95 SLA. https://azure.microsoft.com/en-us/updates/azure-application-gateway-standardv2-wafv2-skus-generally-available/ "Azure Application Gateway Standard v2 and WAF v2 SKUs are now generally available and fully supported with a 99.95 SLA"

Granwizzard
Jan 24, 2021

AGW V1 and V2 both have WAF, but you need to enable it after you will have access to the firewall and owasp rules. One of the big differences in my opinion is that with V2 you can use WAF policies and with V1 you can't. In the question, the WAF v2 is in standard mode. This question is so ambiguous because with AGW V1 the IP is not static, if you reboot it the IP will be lost but the DNS name doesn't change. The V2 you can set the IP as static and will not change during restarts. For the LBs basic or standard both IPs are static and only if you delete the resource will lose the IP. Both solutions can act as an LB. So I'm only sure about the App1 since they want to prevent SQL injection. For App2 no idea of what they are expecting here.

arunpaul
Feb 12, 2021

AGW2 (v2 sku) is zone redundant eligible for 99.99% SLA. So the solution that meets both SQL injection protection and high availability for App1 is AGW2. Both AGW_v2 and LB offers static Ip; but LB works at OSI layer 4 which is a faster solution than AGWs that works at OSi layer 7; Obviously the for App2 LB is the preferred choice

venkynalla
Apr 16, 2021

For AGW1, I could not find SLA of 99.99%. The MAX is 99.95 with 2 or more medium or large instances. Load Balancer does not support Azure Web App. So answer to second question is AGW2, which support Azure Web App and can have a static VIP.

QiangQiang
May 1, 2021

I believe there is a typo in the question. It should be like this: ✑ App1 must support command injection protection. ✑ App2 must be able to use a static IP address. ✑ App2 must have a Service Level Agreement (SLA) of 99.99 percent. Then all makes sense. App1-AGW1, App2-AGW_V2

a_r_c
May 14, 2021

Your question makes sense but answer should be App1 - AGW1 & App2 - ELB1. AGW doesn't come with 99.99% SLA.

syu31svc
Aug 28, 2021

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

plmmsg
Dec 30, 2021

The second answer should be APGW2.

Stephan99
Jan 2, 2021

Answers are correct. Box2: 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. https://docs.microsoft.com/en-us/learn/modules/improve-app-scalability-resiliency-with-load-balancer/3-public-load-balancer

MichaelCWWong
Jan 11, 2021

There's no Azure product named "External Load Balancer" but "Public Load Balancer"

awsazurelearner
Feb 27, 2021

Microsoft calls the Public LB and External LB at times. https://docs.microsoft.com/en-us/azure/load-balancer/move-across-regions-external-load-balancer-portal

dandirindan
Jan 27, 2021

https://docs.microsoft.com/en-us/azure/application-gateway/application-gateway-autoscaling-zone-redundant, v2 have static ip and app2 should be agw2, but im not sure about app1 since agw1 supports waf and injection support i think the answers should be app1-agw01, app2-agw02

medi01
Aug 16, 2021

But don't ELBs also have static IPs?

nooranikhan
Mar 3, 2021

The point here is Azure web apps! Not a normal web application

demonite
Apr 5, 2021

App1 AGW2 App2 can be AGW2 or LB1 no specifics on costs so.

rsaintt
Apr 26, 2021

App1 SLA 99,99 : https://azure.microsoft.com/en-us/support/legal/sla/load-balancer/v1_0/ App2 standart_v2: supports VIP Address: https://docs.microsoft.com/en-us/azure/application-gateway/application-gateway-autoscaling-zone-redundant#differences-from-v1-sku

erickim007
May 27, 2021

Both should be APGW2 APGW2 support WAF with 99.99% SLA APGW2 support static VIP. Static IP address not supported in V1. ILB, and Public LB out because they are web app.

pentium75
Jul 12, 2021

"Static IP address" is only required for App2. App1 does not need static IP thus can use APGW1. AGPW2 may "support WAF" but the answer is clearly without WAF enabled. Since App2 has no other requirement than static public IP, seems ELB1.

pentium75
Jul 12, 2021

Sorry, "Azure web app" y, not supported by LB.

pentium75
Jul 12, 2021

Sorry, "Azure web app" y, not supported by LB.

babyhu
Jun 16, 2021

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/

AZ_Apprentice
Jul 26, 2021

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

Kronos
Aug 8, 2021

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.

AmitRoy
Jan 11, 2021

This is ambiguous. 1. Command injection can be protected by App GW. 2. Static IP can be provided by LB and APP GW v2. 3. LB with Avaibility Zone ensures 99.99% SLA. App GW ensures 99.95% SLA. So for App2, none of the options fit. Any other idea?

AmitRoy
Jan 11, 2021

So it should be for App1 none of the options fit.

Cloud_Genie
Jan 13, 2021

If command injection protection is needed, why are you guys not choosing AGW1? AGW1 has WAF enabled while AGW2 doesn't. So shouldn't we choose AGW1? Thanks!!

xaccan
Jan 14, 2021

nobody said use AGW2, The given answers are correct.

nooranikhan
Mar 3, 2021

How do you allow Azure webapps to be loadbalanced? There is no other option except for APP GATEWAY

jank
Mar 7, 2021

Agree, to be precise: - App2 must be AGW2, because: -- Only App GW v2 supports static VIP -- Only Agg GW allow App Services (Web App) as backend pool ---- Note: App GW can use IP/FQDN, VM, VMSS or App Services as backend pools -- Azure LB support static IP, but can only use VMs and VMSSs as backend pool, but here a Azure Web App is required to be used

AnonymousJhb
Apr 11, 2021

The other point is app2 only has 1 vm. So what's the point of lb to 1 back end target?an appgw adds more value to a publicly accessible webapp.

AnonymousJhb
Apr 11, 2021

The other point is app2 only has 1 vm. So what's the point of lb to 1 back end target?an appgw adds more value to a publicly accessible webapp.

erickim007
Jun 1, 2021

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.

pentium75
Jul 12, 2021

Why "we would not use LB"? App2 has no other requirements that "static public IP".

pentium75
Jul 12, 2021

Oh, but y, "Azure web app", LB does not support that.

pentium75
Jul 12, 2021

Oh, but y, "Azure web app", LB does not support that.

JustinWilliamAndrew
Jun 5, 2021

It did not say WAF v2 SKUs only Standard V2 SKU. So AGW2 has no WAF

Thisismynickname001
Aug 30, 2021

The question asks for a solution to two Azure web apps. Load Balancer does not support Azure web app.

HarryZ
Dec 17, 2021

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

jmay
Dec 27, 2021

standard_v2 has a 99.95% SLA. So AGW2 is not the correct answer.

jmay
Dec 27, 2021

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.

JayBee65
Feb 11, 2022

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.