
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
Ultimate access to all questions.
No comments yet.
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