Google Cloud Professional Cloud Architect — Question 62

You have found an error in your App Engine application caused by missing Cloud Datastore indexes. You have created a YAML file with the required indexes and want to deploy these new indexes to Cloud Datastore. What should you do?

Answer options

Correct answer: A

Explanation

The correct answer is A because using 'gcloud datastore create-indexes' directly applies the index configurations specified in your YAML file to Cloud Datastore. Options B and C do not correctly deploy the indexes, as they involve unnecessary steps or incorrect methods, and option D incorrectly suggests using an HTTP request which is not required for this operation.