Practice Test 1 | Google Cloud Certified Associate Cloud Engineer | Dumps | Mock Test
You want your application hosted on a VM to fetch metadata of that instance. Which command will help you to fetch it?
A. curl metadata.google.internal/compute-metadata/v1/
B. curl <instance-private-ip>/metadata/v1/
C. curl metadata.google.internal/computeMetadata/v1/
D. curl internal.googleapi.com/computeMetadata/v1/
Explanation:
Correct Answer – C
The right command to fetch metadata is curl metadata.google.internal/computeMetadata/v1/. Hence, C is the correct answer.
Options A, B, and D are incorrect since these are not the valid gcloud commands.
Reference:
https://cloud.google.com/compute/docs/storing-retrieving-metadata#querying
Comments are closed, but trackbacks and pingbacks are open.