0
0
GCPcloud~20 mins

Backend services and backend buckets in GCP - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Backend Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
service_behavior
intermediate
2:00remaining
How does a backend bucket serve content in GCP?

In Google Cloud Platform, a backend bucket is used with a load balancer to serve static content. What happens when a user requests a file that does not exist in the backend bucket?

AThe load balancer returns a 404 Not Found error to the user.
BThe load balancer redirects the user to the homepage of the backend bucket.
CThe load balancer automatically creates the missing file with default content.
DThe load balancer retries the request to other backend buckets automatically.
Attempts:
2 left
💡 Hint

Think about what happens when a file is missing in a static content server.

Architecture
intermediate
2:00remaining
Choosing backend services vs backend buckets for a web app

You are designing a web application on GCP that serves both dynamic content from Compute Engine instances and static content like images and CSS files. Which architecture best uses backend services and backend buckets?

AUse separate load balancers for backend services and backend buckets without combining them.
BUse a backend service for Compute Engine instances to serve dynamic content and a backend bucket for static content, both behind the same HTTP(S) load balancer.
CUse backend services for static content and backend buckets for dynamic content.
DUse only backend buckets for all content because they are simpler to manage.
Attempts:
2 left
💡 Hint

Think about which backend type is optimized for dynamic vs static content.

security
advanced
2:00remaining
Securing access to backend buckets

You want to restrict access to a backend bucket so only requests coming through your load balancer are allowed. Which method achieves this?

ADisable authentication on the load balancer to allow direct access to the bucket.
BSet the backend bucket to public so anyone can access it without restrictions.
CConfigure signed URLs or signed cookies on the backend bucket and require the load balancer to use them.
DUse firewall rules on the backend bucket to block all IP addresses except the load balancer.
Attempts:
2 left
💡 Hint

Think about how Cloud Storage controls access to objects.

Configuration
advanced
2:00remaining
Configuring a backend service with health checks

You have a backend service with multiple Compute Engine instances. You want to ensure traffic is only sent to healthy instances. Which configuration is required?

ASet the backend service to use a static IP address for all instances.
BDisable health checks and rely on instance auto-healing only.
CConfigure the backend service to ignore instance health and send traffic to all instances equally.
DAttach a health check to the backend service that periodically probes each instance's health endpoint.
Attempts:
2 left
💡 Hint

Think about how load balancers detect unhealthy instances.

Best Practice
expert
3:00remaining
Optimizing cache behavior for backend buckets in GCP

You want to optimize performance and reduce costs by caching static content served from a backend bucket behind a global HTTP(S) load balancer. Which approach follows best practices?

ASet Cache-Control headers on objects in the Cloud Storage bucket and enable Cloud CDN on the backend bucket.
BDisable caching on the backend bucket to always serve fresh content.
CConfigure the load balancer to bypass Cloud CDN and fetch directly from the backend bucket every time.
DUse backend services instead of backend buckets to enable caching automatically.
Attempts:
2 left
💡 Hint

Consider how HTTP caching works with Cloud CDN and backend buckets.