0
0
GCPcloud~20 mins

Resource definitions for GCP - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
GCP Resource Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
Architecture
intermediate
2: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?
Acompute.instance.v1
Bcompute.v1.instance
Cgcp.compute.instance
DcomputeEngine.instance
Attempts:
2 left
💡 Hint
GCP resource types follow the pattern: service.apiVersion.resource
Configuration
intermediate
2: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: STANDARD
Astorage.v1.buckets
Bgcp.storage.bucket
Cstorage.v1.bucket
Dstorage.bucket.v1
Attempts:
2 left
💡 Hint
Check the official GCP resource type naming for Cloud Storage buckets.
security
advanced
2: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?
Acloudresourcemanager.v1.projectIamMember
Bcloudresourcemanager.v1.projectIamBinding
Ccloudresourcemanager.v1.projectIamPolicy
Dcloudresourcemanager.v1.projectIamRole
Attempts:
2 left
💡 Hint
IAM bindings assign a role to a member, so look for 'IamMember'.
service_behavior
advanced
2: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?
ADeployment succeeds and creates a default topic
BDeployment succeeds but the topic is not created
CDeployment partially succeeds with warnings
DDeployment fails with a resource type not found error
Attempts:
2 left
💡 Hint
GCP resource types must match exactly to be recognized.
Best Practice
expert
3: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?
AUse the 'dependencies' property to explicitly declare dependencies between resources
BList resources in the order they should be created; GCP will deploy sequentially
CDeploy resources separately in different deployment files to control order
DRely on GCP to automatically detect dependencies based on resource names
Attempts:
2 left
💡 Hint
Explicit dependency declarations help deployment tools understand order.