exam questions

Exam Professional Cloud Developer All Questions

View all questions & answers for the Professional Cloud Developer exam

Exam Professional Cloud Developer topic 1 question 142 discussion

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

Your operations team has asked you to create a script that lists the Cloud Bigtable, Memorystore, and Cloud SQL databases running within a project. The script should allow users to submit a filter expression to limit the results presented. How should you retrieve the data?

  • A. Use the HBase API, Redis API, and MySQL connection to retrieve database lists. Combine the results, and then apply the filter to display the results
  • B. Use the HBase API, Redis API, and MySQL connection to retrieve database lists. Filter the results individually, and then combine them to display the results
  • C. Run gcloud bigtable instances list, gcloud redis instances list, and gcloud sql databases list. Use a filter within the application, and then display the results
  • D. Run gcloud bigtable instances list, gcloud redis instances list, and gcloud sql databases list. Use --filter flag with each command, and then display the results
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
__rajan__
7 months, 1 week ago
Selected Answer: D
D is correct
upvoted 1 times
...
purushi
8 months, 3 weeks ago
Selected Answer: D
Easy and simple. List all the different types of instances and apply '--filter' option in a command.
upvoted 1 times
...
omermahgoub
1 year, 3 months ago
Selected Answer: D
Option D is correct, running gcloud bigtable instances list, gcloud redis instances list, and gcloud sql databases list and using the --filter flag with each command can be used to filter the results before displaying them. This would allow users to submit a filter expression to limit the results presented as specified in the question. As per the google official documentation.
upvoted 1 times
...
TNT87
1 year, 4 months ago
https://cloud.google.com/sdk/gcloud/reference/topic/filters Answer D
upvoted 1 times
...
zellck
1 year, 4 months ago
Selected Answer: D
D is the answer. https://cloud.google.com/sdk/gcloud/reference/topic/filters Most gcloud commands return a list of resources on success. By default they are pretty-printed on the standard output. The --format=NAME[ATTRIBUTES](PROJECTION) and --filter=EXPRESSION flags along with projections can be used to format and change the default output to a more meaningful result. Use the --format flag to change the default output format of a command. For details run $ gcloud topic formats. Use the --filter flag to select resources to be listed. Resource filters are described in detail below.
upvoted 2 times
...
sharath25
1 year, 4 months ago
Selected Answer: D
option D
upvoted 1 times
...
test010101
1 year, 4 months ago
Selected Answer: D
vote D
upvoted 1 times
...
gardislan18
1 year, 4 months ago
IMHO can't see the purpose of using HBase Answer is D. use the --filter flag https://cloud.google.com/sdk/gcloud/reference/topic/filters
upvoted 2 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago