
Ultimate access to all questions.
Deep dive into the quiz with AI chat providers.
We prepare a focused prompt with your quiz and certificate details so each AI can offer a more tailored, in-depth explanation.
You significantly changed a complex Deployment Manager template and want to validate dependencies without applying changes. What should you do?
A
Manually review all resources
B
Deploy to a staging project
C
Run gcloud deployment-manager deployments update --preview
D
Export the template to YAML
Explanation:
Correct Answer: C) Run gcloud deployment-manager deployments update --preview
Preview mode: The --preview flag in Deployment Manager allows you to validate your template changes without actually applying them. This is specifically designed for testing and validation purposes.
Dependency validation: When you run a preview, Deployment Manager analyzes the template, validates all dependencies between resources, and shows you what changes would be made without actually making those changes.
Safety: This approach is safe because no resources are actually created, modified, or deleted during the preview.
A) Manually review all resources:
B) Deploy to a staging project:
D) Export the template to YAML:
Always use --preview flag when making significant changes to Deployment Manager templates. This allows you to:
Command example:
gcloud deployment-manager deployments update [DEPLOYMENT_NAME] --config [CONFIG_FILE] --preview
gcloud deployment-manager deployments update [DEPLOYMENT_NAME] --config [CONFIG_FILE] --preview