
Answer-first summary for fast verification
Answer: gcloud dns record-sets import ZONE_FILE --zone-file-format --zone MANAGED_ZONE
To import a BIND zone file into Cloud DNS, the correct command must specify the `--zone-file-format` flag to indicate the file is in BIND zone format. This is crucial for the command to correctly interpret the file. Option C is the correct choice as it includes this necessary flag. The other options either lack this flag or include unnecessary flags that are not required for a simple import of a BIND zone file.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
Which gcloud command should you use to import a BIND zone file when migrating to Cloud DNS?
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
No comments yet.