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
- A. Point gcloud datastore create-indexes to your configuration file
- B. Upload the configuration file to App Engine's default Cloud Storage bucket, and have App Engine detect the new indexes
- C. In the GCP Console, use Datastore Admin to delete the current indexes and upload the new configuration file
- D. Create an HTTP request to the built-in python module to send the index configuration file to your application
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.