CLOUD-NETWORK practice question 30 of 30

Your company has just launched a new critical revenue-generating web application. You deployed the application for scalability using managed instance…

Full set: 233 questions
Your company has just launched a new critical revenue-generating web application. You deployed the application for scalability using managed instance groups, autoscaling, and a network load balancer as frontend. One day, you notice severe bursty traffic that the caused autoscaling to reach the maximum number of instances, and users of your application cannot complete transactions. After an investigation, you think it as a DDOS attack. You want to quickly restore user access to your application and allow successful transactions while minimizing cost. Which two steps should you take? (Choose two.)
Answer options
A: Use Cloud Armor to blacklist the attacker’s IP addresses. Correct answer
B: Increase the maximum autoscaling backend to accommodate the severe bursty traffic.
C: Create a global HTTP(s) load balancer and move your application backend to this load balancer. Correct answer
D: Shut down the entire application in GCP for a few hours. The attack will stop when the application is offline.
E: SSH into the backend compute engine instances, and view the auth logs and syslogs to further understand the nature of the attack.
Correct Answer:
A. Use Cloud Armor to blacklist the attacker’s IP addresses.; C. Create a global HTTP(s) load balancer and move your application backend to this load balancer.
Explanation

The most effective and rapid response to a suspected DDoS attack is to deploy Cloud Armor, which provides L7 filtering and DDoS mitigation. However, Cloud Armor can only be attached to an External HTTP(S) Load Balancer. The current architecture uses a Network Load Balancer, which is a pass-through L4 load balancer and does not support Cloud Armor. Therefore, the necessary steps are to first create an HTTP(S) Load Balancer and migrate the backends (C), and then apply Cloud Armor security policies to block the malicious traffic (A). This restores service for legitimate users while minimizing cost by handling the attack at the edge.

Why Incorrect

B. Increasing the autoscaling limit would absorb the attack traffic at great expense, rather than blocking it, failing the "minimize cost" requirement.
D. Shutting down the application would stop revenue generation and fail the primary goal of restoring user access for legitimate transactions.
E. Investigating logs is a forensic step for later analysis, not an immediate action to mitigate the attack and restore service.

References

1. Google Cloud Documentation, "Google Cloud Armor overview". It states, "You can configure Google Cloud Armor security policies to protect applications and services that are behind an external HTTP(S) load balancer."

2. Google Cloud Documentation, "Configure Google Cloud Armor security policies". The prerequisites section clearly states, "The backend service of the load balancer must be an instance group..." and it must be an External HTTP(S) Load Balancer.

3. Google Cloud Documentation, "Choosing a load balancer". This document differentiates between the pass-through nature of Network Load Balancers and the proxy-based nature of HTTP(S) Load Balancers, which enables features like Cloud Armor.

Scroll to Top