Bird
0
0

If a Cloud Function uses 1 GB memory and runs for 100 milliseconds per invocation, how many GHz-seconds are billed for 1,000,000 invocations assuming 2 GHz CPU?

medium📝 Predict Output Q5 of 15
GCP - Cloud Functions
If a Cloud Function uses 1 GB memory and runs for 100 milliseconds per invocation, how many GHz-seconds are billed for 1,000,000 invocations assuming 2 GHz CPU?
A100,000 GHz-seconds
B200,000 GHz-seconds
C50,000 GHz-seconds
D20,000 GHz-seconds
Step-by-Step Solution
Solution:
  1. Step 1: Calculate total execution time in seconds

    100 milliseconds = 0.1 seconds. Total time = 1,000,000 * 0.1 = 100,000 seconds.
  2. Step 2: Calculate GHz-seconds

    CPU speed is 2 GHz. GHz-seconds = 100,000 * 2 = 200,000 GHz-seconds.
  3. Final Answer:

    200,000 GHz-seconds -> Option B
  4. Quick Check:

    GHz-seconds = total seconds x CPU GHz [OK]
Quick Trick: GHz-seconds = time x CPU speed x invocations [OK]
Common Mistakes:
  • Ignoring CPU speed in calculation
  • Not converting milliseconds to seconds
  • Multiplying memory instead of CPU speed

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes