Bird
0
0

Given this scenario: You have a containerized app that needs to handle HTTP requests with custom runtime and environment variables. Which service will work correctly?

medium📝 service behavior Q13 of 15
GCP - Cloud Run
Given this scenario: You have a containerized app that needs to handle HTTP requests with custom runtime and environment variables. Which service will work correctly?
1. Deploy container to Cloud Run
2. Set environment variables in deployment
3. App handles HTTP requests
ACloud Functions only
BCloud Run only
CBoth Cloud Run and Cloud Functions
DNeither Cloud Run nor Cloud Functions
Step-by-Step Solution
Solution:
  1. Step 1: Check container support and environment variables

    Cloud Run supports containerized apps and environment variables; Cloud Functions has limited container support and environment variable use.
  2. Step 2: Match HTTP handling with service capabilities

    Cloud Run is designed for HTTP container apps with custom runtimes; Cloud Functions is for simpler functions.
  3. Final Answer:

    Cloud Run only -> Option B
  4. Quick Check:

    Container + env vars + HTTP = Cloud Run [OK]
Quick Trick: Containerized HTTP app? Use Cloud Run [OK]
Common Mistakes:
  • Assuming Cloud Functions supports full container apps
  • Ignoring environment variable support differences
  • Thinking both services handle custom runtimes equally

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes