Google Cloud Associate Cloud Engineer — Question 205
You want to permanently delete a Pub/Sub topic managed by Config Connector in your Google Cloud project. What should you do?
Answer options
- A. Use kubectl to create the label deleted-by-cnrm and to change its value to true for the topic resource.
- B. Use kubectl to delete the topic resource.
- C. Use gcloud CLI to delete the topic.
- D. Use gcloud CLI to update the topic label managed-by-cnrm to false.
Correct answer: B
Explanation
The correct answer is B because using kubectl to delete the topic resource directly removes it. Option A is incorrect as creating a label does not delete the resource, and options C and D do not follow the specific method required for a Config Connector-managed topic.