ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 104 - Professional Cloud Developer discussion

Report
Export

You are developing an application that will be launched on Compute Engine instances into multiple distinct projects, each corresponding to the environments in your software development process (development, QA, staging, and production). The instances in each project have the same application code but a different configuration. During deployment, each instance should receive the application's configuration based on the environment it serves. You want to minimize the number of steps to configure this flow.

What should you do?

A.
When creating your instances, configure a startup script using the gcloud command to determine the project name that indicates the correct environment.
Answers
A.
When creating your instances, configure a startup script using the gcloud command to determine the project name that indicates the correct environment.
B.
In each project, configure a metadata key ''environment'' whose value is the environment it serves. Use your deployment tool to query the instance metadata and configure the application based on the ''environment'' value.
Answers
B.
In each project, configure a metadata key ''environment'' whose value is the environment it serves. Use your deployment tool to query the instance metadata and configure the application based on the ''environment'' value.
C.
Deploy your chosen deployment tool on an instance in each project. Use a deployment job to retrieve the appropriate configuration file from your version control system, and apply the configuration when deploying the application on each instance.
Answers
C.
Deploy your chosen deployment tool on an instance in each project. Use a deployment job to retrieve the appropriate configuration file from your version control system, and apply the configuration when deploying the application on each instance.
D.
During each instance launch, configure an instance custom-metadata key named ''environment'' whose value is the environment the instance serves. Use your deployment tool to query the instance metadata, and configure the application based on the ''environment'' value.
Answers
D.
During each instance launch, configure an instance custom-metadata key named ''environment'' whose value is the environment the instance serves. Use your deployment tool to query the instance metadata, and configure the application based on the ''environment'' value.
Suggested answer: B
asked 18/09/2024
Andrew Chan
37 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first