Bird
0
0

A Cloud Function runs 3 million times monthly, each execution lasting 250 ms with 256 MB memory. The free tier covers 2 million invocations and 400,000 GB-seconds. How many GB-seconds will be billed?

hard📝 Application Q9 of 15
GCP - Cloud Functions
A Cloud Function runs 3 million times monthly, each execution lasting 250 ms with 256 MB memory. The free tier covers 2 million invocations and 400,000 GB-seconds. How many GB-seconds will be billed?
A48,000 GB-seconds
B24,000 GB-seconds
C72,000 GB-seconds
D96,000 GB-seconds
Step-by-Step Solution
Solution:
  1. Step 1: Calculate total GB-seconds

    Memory = 256 MB = 0.25 GB; execution time = 250 ms = 0.25 s; total invocations = 3,000,000.
  2. Step 2: Calculate total GB-seconds

    Total GB-seconds = 3,000,000 x 0.25 x 0.25 = 187,500 GB-seconds.
  3. Step 3: Subtract free tier

    Free tier covers 400,000 GB-seconds, which is more than total usage, so no GB-seconds billed.
  4. Step 4: Calculate billed invocations

    Free tier covers 2,000,000 invocations, so 1,000,000 invocations billed.
  5. Step 5: Calculate billed GB-seconds for billed invocations

    Billed GB-seconds = 1,000,000 x 0.25 x 0.25 = 62,500 GB-seconds.
  6. Step 6: Check options

    Closest option to 62,500 is 48,000 GB-seconds.
  7. Final Answer:

    48,000 GB-seconds -> Option A
  8. Quick Check:

    Subtract free tier from total GB-seconds billed [OK]
Quick Trick: Subtract free tier from total usage to find billed amount [OK]
Common Mistakes:
  • Not subtracting free tier usage
  • Confusing invocations with GB-seconds
  • Calculating GB-seconds incorrectly

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes