Bird
0
0

Given this deployment command:

medium📝 service behavior Q13 of 15
GCP - Cloud Functions
Given this deployment command:
gcloud functions deploy greetUser --runtime nodejs18 --trigger-http --allow-unauthenticated

What is the effect of the --allow-unauthenticated flag?
AOnly authenticated users can call the function
BAnyone can call the function without signing in
CThe function will not be deployed
DThe function will require a password to run
Step-by-Step Solution
Solution:
  1. Step 1: Understand the flag meaning

    The flag '--allow-unauthenticated' means the function can be called by anyone without login.
  2. Step 2: Match options

    Anyone can call the function without signing in correctly states that anyone can call the function without signing in.
  3. Final Answer:

    Anyone can call the function without signing in -> Option B
  4. Quick Check:

    Allow unauthenticated = open access [OK]
Quick Trick: Allow unauthenticated means open access [OK]
Common Mistakes:
  • Thinking it restricts access
  • Confusing with authentication required
  • Assuming it blocks deployment

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes