Google Cloud Deployment Manager is a tool that helps you create, configure, and manage Google Cloud resources using simple text files. It lets you define your infrastructure as code, so you can deploy and update resources automatically.
Click to reveal answer
beginner
How does Deployment Manager treat infrastructure?
Deployment Manager treats infrastructure as code, meaning you write configuration files that describe your resources. These files are then used to create and manage your cloud resources in a repeatable and consistent way.
Click to reveal answer
intermediate
What file formats can you use with Deployment Manager?
You can use YAML, JSON, or Jinja2 templates to define your resources in Deployment Manager. YAML and JSON are simple and readable, while Jinja2 lets you add logic and reuse parts of your configuration.
Click to reveal answer
beginner
What is a deployment in Deployment Manager?
A deployment is a collection of resources defined by your configuration files. When you create a deployment, Deployment Manager creates all the resources you described and keeps track of them for updates or deletion.
Click to reveal answer
beginner
Why use Deployment Manager instead of manual setup?
Using Deployment Manager saves time and reduces errors by automating resource creation. It also makes your infrastructure repeatable and easy to update, just like software code.
Click to reveal answer
What does Deployment Manager use to define cloud resources?
AText configuration files
BManual clicks in the console
CBinary executables
DEmail commands
✗ Incorrect
Deployment Manager uses text configuration files like YAML, JSON, or Jinja2 templates to define resources.
Which file format is NOT supported by Deployment Manager?
AXML
BJinja2
CJSON
DYAML
✗ Incorrect
Deployment Manager supports YAML, JSON, and Jinja2 templates, but XML is not supported.
What is the main benefit of using Deployment Manager?
AManual resource creation
BAutomated, repeatable infrastructure setup
CFaster internet speed
DBetter email management
✗ Incorrect
Deployment Manager automates and makes infrastructure setup repeatable and consistent.
What does a deployment represent in Deployment Manager?
AA single virtual machine
BA user account
CA network cable
DA collection of cloud resources
✗ Incorrect
A deployment is a group of resources defined and managed together.
Which statement about Deployment Manager is TRUE?
AIt requires manual updates for each resource.
BIt cannot manage networks.
CIt uses infrastructure as code to manage resources.
DIt only works with on-premises servers.
✗ Incorrect
Deployment Manager uses infrastructure as code to automate resource management.
Explain how Deployment Manager helps manage Google Cloud resources.
Think about how writing text files can replace manual setup.
You got /4 concepts.
Describe the role of templates in Deployment Manager.
Templates are like blueprints for your cloud setup.
You got /4 concepts.
Practice
(1/5)
1. What is the main purpose of Google Cloud Deployment Manager?
easy
A. To define and manage cloud resources using code
B. To manually create resources through the console
C. To monitor cloud resource usage in real-time
D. To provide a graphical interface for cloud billing
Solution
Step 1: Understand Deployment Manager's role
Deployment Manager lets you write code to define cloud resources instead of manual setup.
Step 2: Compare options
Only To define and manage cloud resources using code describes defining and managing resources using code, which matches Deployment Manager's purpose.
Final Answer:
To define and manage cloud resources using code -> Option A
Quick Check:
Deployment Manager = Infrastructure as Code [OK]
Hint: Deployment Manager = write code for cloud setup [OK]
Common Mistakes:
Confusing Deployment Manager with monitoring tools
Thinking it is a manual console tool
Mixing it with billing or cost tools
2. Which of the following is the correct way to start a Deployment Manager YAML configuration file?
easy
A. services:
B. resources:
C. instances:
D. deployments:
Solution
Step 1: Recall YAML structure for Deployment Manager
The root key to list cloud resources is resources:.
Step 2: Check other options
Options like deployments:, instances:, and services: are not valid root keys in Deployment Manager YAML.
Final Answer:
resources: -> Option B
Quick Check:
YAML starts with resources: [OK]
Hint: Deployment Manager YAML always starts with resources: [OK]
Common Mistakes:
Using wrong root keys like deployments or instances
machineType must include full path with zone prefix like zones/us-central1-a/machineTypes/n1-standard-1.
Step 2: Validate other fields
zone is valid, name is allowed, and type is current. Only machineType format is wrong.
Final Answer:
machineType property is missing zone prefix -> Option C
Quick Check:
machineType needs full path [OK]
Hint: machineType needs full zone path like zones/zone/machineTypes/type [OK]
Common Mistakes:
Using short machineType without zone prefix
Changing name to fix error
Assuming type is deprecated
5. You want to create two VM instances in Deployment Manager using one YAML file. Which approach is best?
hard
A. List two separate resource entries under resources with different names
B. Create one resource with two names separated by commas
C. Use a loop inside YAML to repeat the resource
D. Write two separate YAML files and deploy them separately
Solution
Step 1: Understand YAML resource listing
Deployment Manager YAML supports multiple resources by listing each with a unique name under resources:.
Step 2: Evaluate options
List two separate resource entries under resources with different names correctly lists two resources separately. Create one resource with two names separated by commas is invalid syntax. Use a loop inside YAML to repeat the resource is not supported natively in YAML. Write two separate YAML files and deploy them separately works but is less efficient and not best practice.
Final Answer:
List two separate resource entries under resources with different names -> Option A
Quick Check:
Multiple resources = multiple entries [OK]
Hint: Multiple resources = multiple entries under resources: [OK]
Common Mistakes:
Trying to name one resource with multiple names
Expecting loops inside YAML
Splitting into multiple files unnecessarily
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.