0
0
Azurecloud~20 mins

Application Gateway (Layer 7) in Azure - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Azure Application Gateway Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
service_behavior
intermediate
2:00remaining
How does Azure Application Gateway handle HTTP requests with path-based routing?

Consider an Azure Application Gateway configured with path-based routing rules. What happens when a client sends an HTTP request to a URL path that matches one of the defined routing rules?

AThe Application Gateway forwards the request to the backend pool associated with the matching path rule.
BThe Application Gateway rejects the request with a 403 Forbidden error.
CThe Application Gateway forwards the request to all backend pools simultaneously.
DThe Application Gateway redirects the request to the frontend IP address.
Attempts:
2 left
💡 Hint

Think about how path-based routing directs traffic to specific backend pools.

security
intermediate
2:00remaining
What happens if you enable Web Application Firewall (WAF) on Azure Application Gateway and a request contains a SQL injection attack?

Azure Application Gateway has Web Application Firewall (WAF) enabled. A client sends a request containing a SQL injection attack pattern. What is the expected behavior?

AThe Application Gateway forwards the request to the backend pool without inspection.
BThe Application Gateway redirects the request to a custom error page hosted on the backend.
CThe Application Gateway logs the attack but allows the request to pass through.
DThe WAF detects the attack and blocks the request before it reaches the backend pool.
Attempts:
2 left
💡 Hint

Consider the purpose of WAF in protecting web applications.

Architecture
advanced
2:00remaining
Which Azure Application Gateway configuration supports SSL termination and end-to-end SSL encryption simultaneously?

You want to configure Azure Application Gateway to decrypt incoming SSL traffic and then re-encrypt it before sending to backend servers. Which configuration achieves this?

AConfigure the Application Gateway to use TCP load balancing.
BEnable SSL passthrough on the Application Gateway without SSL certificates.
CEnable SSL termination on the Application Gateway and configure HTTPS listeners and backend HTTPS settings with certificates.
DDisable SSL termination and use HTTP listeners only.
Attempts:
2 left
💡 Hint

Think about how SSL termination and re-encryption work together.

Best Practice
advanced
2:00remaining
What is the recommended way to scale Azure Application Gateway to handle increased traffic?

Your web application is experiencing increased traffic. How should you scale Azure Application Gateway to maintain performance?

AIncrease the instance count of the Application Gateway and enable autoscaling.
BManually increase the size of backend VMs only.
CAdd more backend pools without changing the Application Gateway.
DSwitch to a Basic SKU Application Gateway for better performance.
Attempts:
2 left
💡 Hint

Consider how Application Gateway scales to handle more requests.

🧠 Conceptual
expert
2:00remaining
What is the effect of enabling the 'Cookie-based affinity' feature on Azure Application Gateway?

Azure Application Gateway supports 'Cookie-based affinity'. What does enabling this feature do?

AIt caches cookies at the Application Gateway to reduce backend load.
BIt ensures that all requests from a client session are routed to the same backend server by using a cookie.
CIt encrypts cookies to enhance security between client and backend.
DIt disables session persistence and distributes requests randomly.
Attempts:
2 left
💡 Hint

Think about how session persistence works in load balancing.