Google Cloud Professional Cloud Network Engineer — Question 27
You are migrating to Cloud DNS and want to import your BIND zone file.
Which command should you use?
Answer options
- A. gcloud dns record-sets import ZONE_FILE --zone MANAGED_ZONE
- B. gcloud dns record-sets import ZONE_FILE --replace-origin-ns --zone MANAGED_ZONE
- C. gcloud dns record-sets import ZONE_FILE --zone-file-format --zone MANAGED_ZONE
- D. gcloud dns record-sets import ZONE_FILE --delete-all-existing --zone MANAGED ZONE
Correct answer: C
Explanation
The correct command is option C because it specifies the use of the zone-file-format, which is necessary for importing a BIND zone file into Cloud DNS. The other options either lack the required format specification or include unnecessary flags that don't apply to the import process.