Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Professional Cloud Architect All Questions

View all questions & answers for the Professional Cloud Architect exam

Exam Professional Cloud Architect topic 1 question 51 discussion

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

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?

  • 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
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
jcmoranp
Highly Voted 5 years ago
Correct A, you have to recreate the indexes
upvoted 30 times
nitinz
3 years, 8 months ago
A, if index is missing then create it.
upvoted 4 times
...
tartar
4 years, 3 months ago
A is ok
upvoted 11 times
...
kumarp6
4 years ago
Yes, use this command in cloud sell to create indexes. gcloud datastore create indexes
upvoted 4 times
...
...
Eroc
Highly Voted 5 years ago
A is incorrect because the command is actually gcloud datastore indexes create. (https://cloud.google.com/sdk/gcloud/reference/datastore/indexes/create).
upvoted 17 times
bogd
3 years, 9 months ago
It might have changed recently - I was able to find documentation mentioning "datastore create-indexes": https://cloud.google.com/appengine/docs/standard/python/datastore/indexes
upvoted 15 times
...
...
sim7243
Most Recent 1 week, 5 days ago
Selected Answer: A
A, option
upvoted 1 times
...
james2033
5 months, 4 weeks ago
Selected Answer: A
To deploy new Cloud Datastore indexes using the YAML file you created, you should use the `gcloud` command-line tool. Specifically, the correct option is: **A. Point gcloud datastore create-indexes to your configuration file** Here’s how you can do it: 1. **Ensure you have the `gcloud` CLI installed**: You need the Google Cloud SDK installed and set up on your local machine. If you haven't done this yet, follow the [installation guide](https://cloud.google.com/sdk/docs/install). 2. **Navigate to the directory containing your `index.yaml` file**: This file contains the definitions of the indexes you want to deploy. 3. **Run the following command**: ```bash gcloud datastore indexes create index.yaml ``` This command will deploy the indexes defined in the `index.yaml` file to Cloud Datastore.
upvoted 1 times
...
thewalker
1 year ago
A is correct: https://cloud.google.com/sdk/gcloud/reference/datastore/indexes/create
upvoted 3 times
...
jlambdan
1 year, 8 months ago
A) https://cloud.google.com/datastore/docs/tools/indexconfig#Datastore_Updating_indexes
upvoted 2 times
...
MestreCholas
1 year, 8 months ago
Selected Answer: A
A. Point gcloud datastore create-indexes to your configuration file. To deploy new indexes to Cloud Datastore, you can use the gcloud datastore create-indexes command and point it to the YAML configuration file containing the required indexes. This command will create the new indexes in Cloud Datastore for your application. Option B is not correct because App Engine does not automatically detect and create indexes from uploaded configuration files in Cloud Storage. Option C is also not correct because deleting current indexes in Datastore Admin is not necessary to upload new indexes. Option D is not correct because there is no built-in Python module that can send the index configuration file to your application
upvoted 11 times
...
omermahgoub
1 year, 11 months ago
To deploy new indexes to Cloud Datastore, you should use the gcloud datastore create-indexes command and point it to your configuration file. The correct option is therefore A: Point gcloud datastore create-indexes to your configuration file. Here's the general format of the gcloud datastore create-indexes command: Copy code gcloud datastore create-indexes [FILE] Where [FILE] is the path to your configuration file. The configuration file should be in YAML format and contain a list of indexes that you want to create. For example: Copy code gcloud datastore create-indexes index.yaml This command will create the indexes specified in the index.yaml file in Cloud Datastore.
upvoted 6 times
...
megumin
2 years ago
Selected Answer: A
ok for A
upvoted 1 times
...
Mahmoud_E
2 years, 1 month ago
Selected Answer: A
A is correct answer
upvoted 1 times
...
AzureDP900
2 years, 1 month ago
A is correct
upvoted 1 times
...
minmin2020
2 years, 1 month ago
Selected Answer: A
gcloud app deploy index.yaml
upvoted 2 times
...
AMEJack
2 years, 1 month ago
Answer is A. Option C: no create index from configuration file in the firestore console.
upvoted 1 times
...
Najmuddoja
2 years, 1 month ago
Is A still the valid answer, many other website resources saying C is the right answer
upvoted 1 times
...
holerina
2 years, 2 months ago
A looks like more logical answer
upvoted 1 times
...
[Removed]
2 years, 7 months ago
A is incorrect. There is no correct answer, in fact. In 2022, the gcloud parameter "create-index" doesn't exist anymore. However, that was in 2017*. Today, the right CLI command** should be gcloud datastore "indexes create". Evidences: * https://stackoverflow.com/questions/43041126/how-to-create-datastore-composite-indexes-with-just-cloud-functions) ** https://cloud.google.com/sdk/gcloud/reference/datastore/indexes/create
upvoted 7 times
...
vincy2202
2 years, 11 months ago
Selected Answer: A
A is the correct answer
upvoted 1 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 ...