Google Cloud Professional Cloud Developer — Question 333

You are designing a microservices application on GKE that will expose a public API to users. Users will interact with the application by using OAuth 2.0, and illegitimate requests should receive a 403 response code. You need the API to be resilient against distributed denial of service (DDoS) attacks and critical security risks such as SQL injection (SQL) and cross-site scripting (XSS).

You want to design the application's architecture while following Google-recommended practices. What should you do?

Answer options

Correct answer: D

Explanation

Option D is correct because it utilizes an external Application Load Balancer with Cloud Armor, which provides robust security features against DDoS attacks and integrates with Apigee for API request validation. Option A, while using Service Mesh, does not specifically address APIs and DDoS protection as effectively. Option B's approach with Apache does not provide the same level of security and scalability. Option C, although it uses Cloud Armor, lacks the API validation step that Apigee offers, making it less comprehensive in securing the API.