Challenge - 5 Problems
GCP Resource Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ Architecture
intermediate2:00remaining
Identify the correct resource type for a GCP Compute Engine VM instance
Which of the following resource types correctly defines a Compute Engine virtual machine instance in a GCP deployment configuration?
Attempts:
2 left
💡 Hint
GCP resource types follow the pattern: service.apiVersion.resource
✗ Incorrect
The correct resource type for a Compute Engine VM instance is 'compute.v1.instance'. This follows the GCP naming convention where 'compute' is the service, 'v1' is the API version, and 'instance' is the resource.
❓ Configuration
intermediate2:00remaining
Determine the correct YAML snippet for defining a GCP Cloud Storage bucket
Given the following YAML snippet, which option correctly defines a Cloud Storage bucket resource in a GCP deployment?
GCP
resources:
- name: my-storage-bucket
type: ???
properties:
location: US
storageClass: STANDARDAttempts:
2 left
💡 Hint
Check the official GCP resource type naming for Cloud Storage buckets.
✗ Incorrect
The correct resource type for a Cloud Storage bucket is 'storage.v1.bucket'. This matches the service 'storage', API version 'v1', and resource 'bucket'.
❓ security
advanced2:00remaining
Identify the resource type to define a GCP IAM policy binding
Which resource type is used to define an IAM policy binding for a GCP project in a deployment configuration?
Attempts:
2 left
💡 Hint
IAM bindings assign a role to a member, so look for 'IamMember'.
✗ Incorrect
The resource type 'cloudresourcemanager.v1.projectIamMember' is used to assign a specific IAM role to a member on a project. Other types manage policies or bindings but this one is for individual member bindings.
❓ service_behavior
advanced2:00remaining
Predict the behavior when deploying a GCP Pub/Sub topic with an incorrect resource type
If you deploy a configuration with the resource type 'pubsub.topic.v1' instead of the correct 'pubsub.v1.topic', what will happen?
Attempts:
2 left
💡 Hint
GCP resource types must match exactly to be recognized.
✗ Incorrect
Using an incorrect resource type like 'pubsub.topic.v1' causes the deployment to fail because GCP does not recognize this resource type. The error will indicate the resource type is invalid or not found.
✅ Best Practice
expert3:00remaining
Choose the best practice for defining multiple GCP resources with dependencies
When defining multiple GCP resources in a deployment configuration where one resource depends on another (e.g., a VM depends on a network), what is the best practice to ensure correct deployment order?
Attempts:
2 left
💡 Hint
Explicit dependency declarations help deployment tools understand order.
✗ Incorrect
Using the 'dependencies' property explicitly tells the deployment manager which resources must be created first. This ensures correct order and avoids deployment errors due to missing dependencies.