Preparing Practice Exam…
Please wait a moment while the system generates the exam questions, answers, and study session.
Please wait a moment while the system generates the exam questions, answers, and study session.
Google Cloud Certified Professional Cloud Developer · Google Cloud
Select one answer.
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
D. When creating the Compute Engine instance, create a metadata item with a key of "DATABASE" and a value for the appropriate database connection string. In your application, query the metadata server for the "DATABASE" value, and use the value to connect to the appropriate database. This approach allows you to create a single golden image that is agnostic to the environment it is running in, while still allowing the appropriate database connection to be set at runtime. The metadata item is stored with the instance, so it can be read by your application at any time. This method allows you to avoid creating different images for different environments, and to use the same image for all environments. You can create metadata item by using the gcloud command line tool or the API to set metadata for a Compute Engine instance. Once set, the metadata can be easily accessed by your application via the instance metadata server.
D is correct
It should be D!