Google ACE Deploying and Implementing a Cloud Solution Practice Question
An organization wants to use Cloud Storage to host a static website. The bucket name must match the domain name. They already own the domain 'example.com' and want to serve the site from 'www.example.com'. Which bucket name should they create?
⚠ Common exam trap
The trap here is assuming the bucket should be named after the apex domain ('example.com') rather than the exact hostname being served ('www.example.com') — candidates forget that GCS matches the Host header to the bucket name character-for-character.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
www.example.com
For Cloud Storage static website hosting, the bucket name must exactly match the domain used to serve the site. Since the site will be served from 'www.example.com', the bucket must be named 'www.example.com'. GCS requires globally unique bucket names, and the CNAME/A record for the domain must point to the bucket.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
example.com
Why it's wrong here
Using example.com as the bucket name would map the bucket to the apex domain, not the www subdomain required by the static site URL. Cloud Storage custom domain configuration demands an exact bucket-to-hostname match, so a bucket named example.com would only work if you intended to serve from the bare apex domain instead of www.example.com. Since the site is accessed via www, this bucket name is incorrect.
- ✗
www_example_com
Why it's wrong here
Bucket names for custom domains must comply with DNS hostname rules, which means lowercase letters, numbers, hyphens, and dots are allowed—but underscores are not. The name www_example_com contains underscores, which are invalid in DNS hostnames and would cause TLS certificate validation and domain mapping to fail. Thus it cannot be used as a Cloud Storage bucket name for a custom domain.
- ✗
example-com-bucket
Why it's wrong here
Bucket names like example-com-bucket do not match the exact hostname www.example.com because they substitute hyphens for the dot separator. Cloud Storage requires the bucket name to be identical to the domain (or subdomain) you want to serve; otherwise, the CNAME record pointing to c.storage.googleapis.com will not resolve to the correct bucket. Therefore, this arbitrary name will not work for hosting the static site on www.example.com.
- ✓
www.example.com
Why this is correct
The bucket must be named exactly www.example.com to serve content from that custom domain. When you create a bucket with this name, verify the domain in Cloud Console, and add a CNAME record from www.example.com to c.storage.googleapis.com, Cloud Storage automatically maps the bucket to the hostname. This exact match is required for HTTPS and proper static site hosting.
Go deeper
Related to this question
Learn chapter
GCP Organization Policies
Key term
Organization
An Organization is a top-level container in Google Cloud that represents your company or entities and serves as the root node for all your cloud resources, policies, and access control.
Key term
Cloud storage
Cloud storage is a service that lets you save data on remote servers accessed over the internet instead of on your computer's hard drive.
About these practice questions
This ACE question is part of Courseiva's 775-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official Google Cloud exam blueprint
This ACE practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the ACE exam.