Professional Cloud Security Engineer Practice Questions

Google Cloud Professional Cloud Security Engineer exam preparation

Professional Cloud Security Engineer practice questions in English: 180 questions with explanations. The mock exam has 60 questions and 120 minutes.

Professional Cloud Security Engineer free question 3 / 10 · Domain 2: Securing communications and establishing boundary protection

You use the HTTP_HEADER key in Cloud Armor rate limiting. How is the key treated for requests that do not have the specified header?

  1. Requests without the header are never counted against any rate limit threshold
  2. Requests without the header are counted together under the IP key of the sender
  3. Requests without the header are counted together under the ALL key as one client
  4. Each request without the header is given its own randomly generated key
Show the answer and explanation

Answer: C

Why this is correct
The Cloud Armor rate limiting documentation, in "Identifying clients for rate limiting", says that HTTP_HEADER creates a unique key for each value of the header you name (the value is truncated to the first 128 bytes), and that when the header is absent, or when you try to use it with an external proxy Network Load Balancer, the key type becomes ALL. All requests without the header are therefore counted in one ALL counter.

Why the other options are wrong
"Each request without the header is given its own randomly generated key" … Cloud Armor does not generate a random key for each request. A missing header maps to the ALL key.
"Requests without the header are never counted against any rate limit threshold" … A missing header does not mean the request is exempt from rate limiting. It is aggregated under ALL.
"Requests without the header are counted together under the IP key of the sender" … Falling back to the client IP is the behavior of a different key type, not what happens when the header is missing.

Key point
Consider whether clients can omit or change the header. Besides the normal values, test how requests are aggregated when the header is missing or very long.

Go to the Professional Cloud Security Engineer practice app (10 free questions; purchase unlocks all questions)

See the full practice set