
Answer-first summary for fast verification
Answer: Use kubectl to delete the topic resource.
If a resource is managed by the Config Connector, the recommended approach is to use kubectl to delete or update it. This ensures that Kubernetes is aware of the state of the resource. You should not directly use gcloud CLI for deleting resources that are managed by Config Connector, because this bypasses Kubernetes and can lead to inconsistencies.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
To permanently delete a Pub/Sub topic managed by Config Connector in your Google Cloud project, what steps should you follow?
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.
No comments yet.