ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 121 - Professional Cloud Developer discussion

Report
Export

You want to create ''fully baked'' or ''golden'' Compute Engine images for your application. You need to bootstrap your application to connect to the appropriate database according to the environment the application is running on (test, staging, production). What should you do?

A.
Embed the appropriate database connection string in the image. Create a different image for each environment.
Answers
A.
Embed the appropriate database connection string in the image. Create a different image for each environment.
B.
When creating the Compute Engine instance, add a tag with the name of the database to be connected. In your application, query the Compute Engine API to pull the tags for the current instance, and use the tag to construct the appropriate database connection string.
Answers
B.
When creating the Compute Engine instance, add a tag with the name of the database to be connected. In your application, query the Compute Engine API to pull the tags for the current instance, and use the tag to construct the appropriate database connection string.
C.
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, read the ''DATABASE'' environment variable, and use the value to connect to the appropriate database.
Answers
C.
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, read the ''DATABASE'' environment variable, and use the value to connect to the appropriate database.
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.
Answers
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.
Suggested answer: D
asked 18/09/2024
Bill Rustom Cruz
33 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first