GOOGLE-PROFESSIONAL-CLOUD-DEVELOPER practice question 19 of 35
You are deploying a single website on App Engine that needs to be accessible via the URL http://www.altostrat.com/. What should you do?
Full set: 265 questionsTo map a custom domain like www.altostrat.com to a Google App Engine application, you must first prove to Google that you own the domain. This is accomplished through a verification process, historically managed via Webmaster Central (now Google Search Console). After verification, you must configure your domain's DNS records. For a subdomain such as www, the standard and correct method is to create a Canonical Name (CNAME) record that points to Google's hosting service endpoint, ghs.googlehosted.com. This allows Google to manage the underlying IP addresses and route requests to your application.
B. App Engine does not expose a single, static global IP address for applications. While A records are used for naked domains, they point to a specific set of Google-provided IPs, not a single one.
C. The dispatch.yaml file is used to route incoming requests to different services within an App Engine application based on hostname or path, not for the initial external DNS mapping.
D. This option is incorrect for two reasons: dispatch.yaml is not used for external DNS mapping, and an A record pointing to a single global IP is not the correct method for a www subdomain. ---
1. Google Cloud Documentation, "Mapping custom domains": This official guide outlines the required steps.
Step 1: Add and verify your domain. "Before you can map a custom domain to your app, you first need to add the domain name in the Google Cloud Console and verify your ownership." This supports the verification part of the answer.
Step 2: Update your DNS records. "To map a subdomain, like www.example.com... You will create a CNAME record that points to ghs.googlehosted.com." This directly supports creating a CNAME record pointing to ghs.googlehosted.com for a www subdomain.
Reference: Google Cloud. (n.d.). Mapping custom domains. Retrieved from https://cloud.google.com/appengine/docs/standard/python3/mapping-custom-domains#updatingyourdnsrecords
2. Google Cloud Documentation, dispatch.yaml Configuration File: This document explains the purpose of the dispatch file.
Overview: "The dispatch.yaml file lets you override routing rules. You can use the dispatch.yaml to send incoming requests to a specific service... based on the hostname or path in the URL." This confirms that dispatch.yaml is for internal routing after a request reaches App Engine, not for the initial DNS-level mapping.
Reference: Google Cloud. (n.d.). dispatch.yaml Configuration File. Retrieved from https://cloud.google.com/appengine/docs/standard/python/config/dispatchref
Keep practicing
Take the free GOOGLE-PROFESSIONAL-CLOUD-DEVELOPER practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other GOOGLE-PROFESSIONAL-CLOUD-DEVELOPER practice questions
- Question 1You have an application controlled by a managed instance group. When you deploy a new ver…
- Question 2Your service adds text to images that it reads from Cloud Storage. During busy times of t…
- Question 3You have been tasked with planning the migration of your company’s application from on-pr…
- Question 4You plan to make a simple HTML application available on the internet. This site keeps inf…
- Question 5HipLocal's APIs are showing occasional failures, but they cannot find a pattern. They wan…
- Question 6Your company has created an application that uploads a report to a Cloud Storage bucket. …
