Which gcloud command imports a BIND zone file into Cloud DNS?
Choose an answer
Tap an option to check your answer.
Correct answer: gcloud dns record-sets import ZONE_FILE --zone-file-format --zone MANAGED_ZONE.
Why this is the answer
The correct command is gcloud dns record-sets import ZONEFILE --zone-file-format --zone MANAGEDZONE because the --zone-file-format flag explicitly tells Cloud DNS that the input file is in the standard BIND zone file format. Without this flag, the command expects a YAML or JSON formatted file, leading to an import error. The ZONEFILE argument specifies the path to your BIND zone file, and --zone MANAGEDZONE identifies the Cloud DNS managed zone where the records will be imported. The other options are incorrect because --replace-origin-ns is not a valid flag for this command, and --delete-all-existing is not the correct flag to specify the input file format.
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