
Answer-first summary for fast verification
Answer: Utilize the `startup-script` metadata key in the instance template to bootstrap the application during creation.
The correct approach is option A, which involves using the `startup-script` metadata key in the instance template to automatically install or download the binary artifact. This method is supported by Google Cloud Platform's documentation and is ideal for automating the setup of virtual machine instances, especially in large-scale deployments. Option B is incorrect because `initialize-script` is not a valid metadata key. Option C, while feasible, unnecessarily complicates the process by introducing Ansible. Option D is not recommended for autoscaled managed instance groups due to its manual and cumbersome nature.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
When deploying an application to an autoscaled, managed instance group on Compute Engine using Deployment Manager, what is the most efficient method to transfer the application binary to the instance without adding unnecessary complexity?
A
Utilize the startup-script metadata key in the instance template to bootstrap the application during creation.
B
Employ the initialize-script metadata key in the instance template for bootstrapping the application, though this is not a valid option.
C
Incorporate Ansible installation via the startup script metadata key in the instance template, then execute a playbook at startup for application installation, adding complexity.
D
Manually install the application by connecting to the instance via SSH after it starts, which is impractical for autoscaled groups.
No comments yet.