exam questions

Exam Professional Cloud Developer All Questions

View all questions & answers for the Professional Cloud Developer exam

Exam Professional Cloud Developer topic 1 question 60 discussion

Actual exam question from Google's Professional Cloud Developer
Question #: 60
Topic #: 1
[All Professional Cloud Developer Questions]

Your application is built as a custom machine image. You have multiple unique deployments of the machine image. Each deployment is a separate managed instance group with its own template. Each deployment requires a unique set of configuration values. You want to provide these unique values to each deployment but use the same custom machine image in all deployments. You want to use out-of-the-box features of Compute Engine.
What should you do?

  • A. Place the unique configuration values in the persistent disk.
  • B. Place the unique configuration values in a Cloud Bigtable table.
  • C. Place the unique configuration values in the instance template startup script.
  • D. Place the unique configuration values in the instance template instance metadata.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
syu31svc
Highly Voted 3 years, 3 months ago
A and B are wrong for sure https://cloud.google.com/compute/docs/instances/startup-scripts: "A startup script is a file that contains commands that run when a virtual machine (VM) instance boots: Answer is D
upvoted 7 times
...
saurabh1805
Highly Voted 3 years, 11 months ago
C would be correct answer here.
upvoted 6 times
...
santoshchauhan
Most Recent 7 months, 3 weeks ago
Selected Answer: D
D. Place the unique configuration values in the instance template instance metadata. The instance metadata is a good place to store configuration values that are unique to each managed instance group while using the same machine image across all deployments. This allows you to use the same base image but customize the behavior of each instance group based on the metadata passed to them. Metadata can be accessed by the instances at startup, and scripts can be written to configure the instance based on these values.
upvoted 1 times
...
__rajan__
1 year, 1 month ago
Selected Answer: D
D is correct.
upvoted 1 times
...
omermahgoub
1 year, 9 months ago
Option D is the correct answer. Instance metadata is metadata that is associated with a Compute Engine instance and can be used to pass configuration values to the instance at startup. It can be accessed from within the instance itself, allowing you to use the same custom machine image in all deployments and still provide unique configuration values to each deployment. Option A is not a good solution because the persistent disk is not automatically attached to the instance at startup and is not intended for storing configuration values. Option B is not a good solution because Cloud Bigtable is a NoSQL database, which is not well-suited for storing configuration values. Option C is not a good solution because the startup script is executed after the instance has started, so it cannot be used to pass configuration values to the instance at startup.
upvoted 2 times
...
brunoguzzo18
2 years, 2 months ago
Selected Answer: D
Configuration values should be metadata
upvoted 2 times
...
tomato123
2 years, 2 months ago
Selected Answer: D
D is correct
upvoted 3 times
...
szl0144
2 years, 5 months ago
the answer should be D
upvoted 1 times
...
ParagSanyashiv
2 years, 9 months ago
Selected Answer: D
Correct answer is D
upvoted 2 times
...
Valant
2 years, 12 months ago
No - In this case it is a stateful MIG - per this link the answer is indeed A: https://cloud.google.com/compute/docs/instance-groups/stateful-migs#per_instance_configs
upvoted 1 times
...
woriheck93
3 years, 1 month ago
Each deployment is a separate managed instance group with its own template. Each deployment requires a unique set of configuration values. Either be C or D Configuration values should be metadata Which leads the answer to be D
upvoted 3 times
...
kernel1973
3 years, 4 months ago
Option could be D.
upvoted 4 times
...
dwbi_shrikant
3 years, 7 months ago
Option D: at the time of deployment, configuration values in the instance template instance metadata.
upvoted 4 times
ktktoh
3 years, 6 months ago
Agree with Option D based on this ref: https://cloud.google.com/compute/docs/storing-retrieving-metadata#custom
upvoted 5 times
yuchun
3 years, 4 months ago
agree with option D
upvoted 4 times
...
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago