
Answer-first summary for fast verification
Answer: Point gcloud datastore create-indexes to your configuration file
To deploy new indexes to Cloud Datastore, you should use the gcloud datastore indexes create command and point it to your configuration file. This command will read the YAML file and create the specified indexes in Cloud Datastore. Other options are incorrect because App Engine does not automatically detect and create indexes from uploaded configuration files in Cloud Storage, deleting current indexes in Datastore Admin is not necessary to upload new indexes, and there is no built-in Python module to send the index configuration file to your application.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
Your App Engine application is experiencing an error caused by missing Cloud Datastore indexes. To resolve this, you have created a YAML file containing the required indexes. What steps should you take to deploy these new indexes to Cloud Datastore?
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
No comments yet.