0
0
GCPcloud~20 mins

Deployment Manager as native IaC in GCP - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Deployment Manager Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Deployment Manager Templates

What is the primary purpose of a template in Google Cloud Deployment Manager?

ATo store user credentials for cloud access
BTo define reusable resource configurations for deployments
CTo monitor deployed resources in real-time
DTo automatically scale virtual machines based on load
Attempts:
2 left
💡 Hint

Think about what you reuse when creating multiple similar resources.

Configuration
intermediate
2:00remaining
YAML Configuration for a Compute Engine Instance

Given the following Deployment Manager YAML snippet, how many VM instances will be created?

resources:
- name: my-vm
  type: compute.v1.instance
  properties:
    zone: us-central1-a
    machineType: zones/us-central1-a/machineTypes/n1-standard-1
    disks:
    - deviceName: boot
      type: PERSISTENT
      boot: true
      autoDelete: true
      initializeParams:
        sourceImage: projects/debian-cloud/global/images/family/debian-10
    networkInterfaces:
    - network: global/networks/default
      accessConfigs:
      - name: External NAT
        type: ONE_TO_ONE_NAT
ADepends on the number of zones
B0
C1
D2
Attempts:
2 left
💡 Hint

Count the resource entries defined in the YAML.

Architecture
advanced
2:00remaining
Deployment Manager Resource Dependencies

In Deployment Manager, if you want to ensure a Cloud Storage bucket is created before a Compute Engine instance that uses it, which approach correctly enforces this order?

AUse the 'dependsOn' field in the instance resource to reference the bucket resource
BCreate the bucket and instance in separate deployments
CDeploy the instance first, then the bucket manually
DSpecify the bucket name as a property without dependencies
Attempts:
2 left
💡 Hint

Think about how to tell Deployment Manager about resource creation order.

security
advanced
2:00remaining
Managing Secrets in Deployment Manager

Which is the best practice to handle sensitive data like API keys in Deployment Manager templates?

ASend secrets via email to deployment team before deployment
BHardcode API keys directly in the YAML configuration
CInclude secrets in public Git repositories for easy access
DStore secrets in Google Secret Manager and reference them in templates
Attempts:
2 left
💡 Hint

Consider secure storage options provided by Google Cloud.

service_behavior
expert
2:00remaining
Deployment Manager Update Behavior

When you update a Deployment Manager configuration that changes the machine type of a Compute Engine instance, what is the expected behavior during deployment update?

ADeployment Manager deletes the existing instance and creates a new one with the new machine type
BDeployment Manager updates the machine type in place without downtime
CDeployment Manager ignores the change and keeps the old machine type
DDeployment Manager pauses the deployment and requires manual intervention
Attempts:
2 left
💡 Hint

Think about how immutable some resource properties are in GCP.