You need to permanently delete a Pub/Sub topic that is managed by Config Connector in your cluster. What should you do?
Choose an answer
Tap an option to check your answer.
Correct answer: Use kubectl delete to remove the topic resource..
Why this is the answer
To permanently delete a Pub/Sub topic managed by Config Connector, you should use kubectl delete to remove the corresponding Kubernetes resource. Config Connector observes the deletion of its managed resources in Kubernetes and translates that into a deletion of the actual Google Cloud resource. Using gcloud CLI to delete the Pub/Sub topic directly would result in Config Connector attempting to recreate the resource, as it would still exist in the Kubernetes configuration. Adding a deleted-by-cnrm label is not the standard or correct method for triggering deletion. Changing a managed-by-cnrm label to false would only tell Config Connector to stop managing the resource, but it would not delete the existing Google Cloud Pub/Sub topic.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed