Bird
0
0

You want to serve your App Engine app on both example.com and www.example.com using custom domains. What is the best approach?

hard📝 Architecture Q8 of 15
GCP - Cloud Run
You want to serve your App Engine app on both example.com and www.example.com using custom domains. What is the best approach?
AAdd both example.com and www.example.com as separate domain mappings in GCP
BAdd only example.com and rely on automatic www redirection
CAdd only www.example.com and ignore example.com
DUse a wildcard DNS record to cover all subdomains
Step-by-Step Solution
Solution:
  1. Step 1: Understand domain mapping requirements

    Each domain or subdomain must be added as a separate mapping in GCP.
  2. Step 2: Evaluate options for www and root domain

    Adding both ensures users can access the app via both addresses.
  3. Final Answer:

    Add both example.com and www.example.com as separate domain mappings in GCP -> Option A
  4. Quick Check:

    Map each domain separately for full coverage [OK]
Quick Trick: Map root and www domains separately in GCP [OK]
Common Mistakes:
  • Assuming automatic www redirection
  • Ignoring root domain
  • Using wildcard DNS without mapping

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes