0
0
GCPcloud~20 mins

Terraform vs Deployment Manager decision in GCP - Practice Questions

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Terraform vs Deployment Manager Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Choosing Infrastructure as Code Tool for Multi-Cloud

You want to manage infrastructure across Google Cloud and AWS with a single tool. Which option best supports this goal?

AUse Terraform because it supports multiple cloud providers including Google Cloud and AWS.
BUse Deployment Manager because it is native to Google Cloud and supports AWS as well.
CUse Deployment Manager because it has built-in multi-cloud orchestration features.
DUse Terraform only for AWS and Deployment Manager only for Google Cloud, managing them separately.
Attempts:
2 left
💡 Hint

Think about which tool supports multiple clouds natively.

Architecture
intermediate
2:00remaining
Infrastructure State Management in Terraform vs Deployment Manager

You want to keep track of your infrastructure changes and state securely. Which tool automatically manages state remotely by default?

ADeployment Manager, which stores state files automatically in Google Cloud Storage.
BTerraform, which supports remote state storage in Google Cloud Storage or other backends.
CTerraform, which stores state only locally and requires manual backup.
DDeployment Manager, which does not track state and requires manual state management.
Attempts:
2 left
💡 Hint

Consider how each tool handles the record of deployed resources.

security
advanced
2:30remaining
Managing Secrets in Terraform vs Deployment Manager

You need to securely manage sensitive data like API keys in your infrastructure code. Which option correctly describes the best practice?

AUse Deployment Manager with inline secrets encrypted by default.
BStore secrets in Terraform variables files checked into version control.
CUse Terraform with integration to Google Secret Manager to reference secrets without hardcoding them.
DEmbed secrets directly in Deployment Manager YAML files for simplicity.
Attempts:
2 left
💡 Hint

Think about how to avoid exposing secrets in code repositories.

Best Practice
advanced
2:30remaining
Modular Infrastructure Code in Terraform vs Deployment Manager

You want to reuse infrastructure code components across projects. Which tool provides better support for modular and reusable code?

ATerraform, which supports modules to package and reuse infrastructure code easily.
BDeployment Manager, which uses templates but lacks a strong module system.
CDeployment Manager, which encourages copy-pasting YAML files for reuse.
DTerraform, which requires duplicating code for each project without modules.
Attempts:
2 left
💡 Hint

Consider which tool has built-in features for code reuse and sharing.

service_behavior
expert
3:00remaining
Handling Drift Detection in Terraform vs Deployment Manager

You want to detect when infrastructure changes outside your code happen (drift). Which tool provides built-in drift detection and how does it behave?

ADeployment Manager automatically detects drift and reverts changes without user intervention.
BDeployment Manager requires manual scripts to detect drift as it has no built-in support.
CTerraform does not detect drift and blindly applies changes without comparison.
DTerraform detects drift during plan/apply by comparing real infrastructure state with the state file and shows differences.
Attempts:
2 left
💡 Hint

Think about how each tool compares actual resources to declared code.