Challenge your understanding of Google Cloud Deployment Manager with scenario-based questions focused on its configuration, templates, deployment tools, and best practices. This quiz is designed for those seeking practical knowledge of automating and managing cloud infrastructure using declarative templates.
Which file format is primarily used by Deployment Manager to define resource configurations, such as virtual machines and networks, in a structured and readable manner?
Explanation: YAML files are the primary format for writing Deployment Manager configurations because they are structured, easy to read, and widely supported for configuration tasks. CSV and XML are common data formats but are not typically used for declarative infrastructure in this context. DOCX is a document format and is not supported at all for configuration purposes.
When creating reusable templates for consistent infrastructure deployment, which scripting languages are officially supported by Deployment Manager for writing templates?
Explanation: Deployment Manager officially supports Python and Jinja2 for creating templates, making it possible to add logic and reusability to your templates. Ruby, Go, Java, C++, PHP, and Perl are not supported languages for this specific purpose, although they may be used elsewhere in software development.
Suppose you need to update the properties of an existing cloud resource managed by Deployment Manager. Which approach allows you to safely apply the changes while preserving managed resources?
Explanation: The correct approach is to modify the configuration file and redeploy the deployment, which safely applies changes while managing dependencies and minimizing disruptions. Deleting and recreating deployments can cause loss of state, while direct changes in the console will not persist when redeploying from configuration. Simply editing the YAML file without redeploying will not produce any actual changes.
A team wants to deploy several similar environments with minor differences using a single Deployment Manager template. Which feature allows them to pass in different values at deployment time for resources such as machine type or region?
Explanation: Input properties allow users to parameterize templates, making it possible to specify different values such as machine types or regions at deployment time. Fixed variables and hardcoded literals lack flexibility for repeated deployments. Resource labels serve as metadata and do not affect core template parameterization.
Before finalizing a deployment, which Deployment Manager feature lets users see the proposed changes and resource creation plan without affecting real infrastructure?
Explanation: Preview mode allows users to review what changes would be made during a deployment, providing a chance to verify configurations before making actual changes to infrastructure. Quick deploy initiates deployment without previewing details. Live modification and instant update do not exist as features for reviewing proposed changes.