Bird
0
0

You want to serve your website on both example.com and www.example.com using GCP App Engine with HTTPS. Which setup correctly achieves this with minimal manual DNS management?

hard📝 Best Practice Q15 of 15
GCP - Cloud Run
You want to serve your website on both example.com and www.example.com using GCP App Engine with HTTPS. Which setup correctly achieves this with minimal manual DNS management?
AMap both domains; create TXT records for SSL; manually upload certificates
BMap only example.com in App Engine; create A record for www pointing to example.com IP; manually manage SSL
CMap both domains separately in App Engine and create CNAME for www pointing to ghs.googlehosted.com; use automatic SSL
DMap www.example.com only; create CNAME for example.com pointing to www; disable SSL
Step-by-Step Solution
Solution:
  1. Step 1: Understand domain mapping for root and www

    Both example.com and www.example.com need mapping to serve content on both URLs.
  2. Step 2: Use recommended DNS and SSL setup

    Google recommends CNAME for www to ghs.googlehosted.com and automatic SSL management for ease and security.
  3. Final Answer:

    Map both domains separately in App Engine and create CNAME for www pointing to ghs.googlehosted.com; use automatic SSL -> Option C
  4. Quick Check:

    Separate mapping + CNAME + auto SSL = best practice [OK]
Quick Trick: Map both domains and use CNAME for www with auto SSL [OK]
Common Mistakes:
  • Using A record for www which is not recommended
  • Mapping only one domain and missing the other
  • Disabling SSL or managing certificates manually unnecessarily

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes