🔥 40% Off Crucial Exams Memberships — Deal ends today!

1 hour, 57 minutes remaining!

GCP Professional Cloud Security Engineer Practice Question

Your organization exposes a machine-learning scoring service through Cloud Functions fronted by API Gateway. Partner companies call the endpoint with API keys that you create in the Google Cloud console. After one partner's key was leaked, the service was abused from hundreds of unknown IP addresses. Security leadership asks you to redesign the solution so that:

  • Each key can only be used from the partner's corporate network.
  • A stolen key must not grant access to other Google Cloud APIs.
  • The SOC must be alerted immediately if any request with an invalid source IP or an unauthorized API call is logged.

Which approach best satisfies these requirements while adding the least operational overhead?

  • Issue a dedicated API key for each partner, restrict the key to the API Gateway service and to the partner's public IP ranges, and create a log-based metric on Cloud Logging that triggers an alert when requests are rejected due to invalid source IP or unauthorized API usage.

  • Keep the existing key but place Cloud Armor in front of API Gateway, enable geo-blocking and adaptive rate limiting rules, and forward security findings to the SOC.

  • Enclose the project in a VPC Service Controls perimeter and add the partner projects as perimeter members; configure egress policies so only API Gateway can be reached from outside the perimeter.

  • Replace API keys with user-managed OAuth 2.0 tokens issued by Identity-Aware Proxy (IAP) and configure a Cloud Monitoring alert on failed iam.googleapis.com audit log entries.

GCP Professional Cloud Security Engineer
Securing communications and establishing boundary protection
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot