0
0
GCPcloud~10 mins

Cloud DNS for domain management in GCP - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to create a new managed zone in Cloud DNS.

GCP
gcloud dns managed-zones create [1] --dns-name="example.com." --description="My zone"
Drag options to blanks, or click blank then click option'
Aexample-zone
Bmy-zone
Czone1
Ddns-zone
Attempts:
3 left
💡 Hint
Common Mistakes
Using the domain name with dots instead of a simple zone name.
Leaving the zone name empty.
2fill in blank
medium

Complete the code to add an A record to the managed zone.

GCP
gcloud dns record-sets transaction start --zone=[1]
Drag options to blanks, or click blank then click option'
Amy-zone
Bexample-zone
Czone1
Ddns-zone
Attempts:
3 left
💡 Hint
Common Mistakes
Using the domain name instead of the zone name.
Using a zone name that does not exist.
3fill in blank
hard

Fix the error in the command to add an A record for www.example.com pointing to 1.2.3.4.

GCP
gcloud dns record-sets transaction add 1.2.3.4 --name=[1] --ttl=300 --type=A --zone=example-zone
Drag options to blanks, or click blank then click option'
Aexample.com
Bwww.example.com
Cexample.com.
Dwww.example.com.
Attempts:
3 left
💡 Hint
Common Mistakes
Omitting the trailing dot in the DNS name.
Using the domain name without 'www'.
4fill in blank
hard

Fill both blanks to complete the commands to describe the pending transaction and then execute it.

GCP
gcloud dns record-sets transaction [1] --zone=example-zone

gcloud dns record-sets transaction [2] --zone=example-zone
Drag options to blanks, or click blank then click option'
Aexecute
Bstart
Cdescribe
Dabort
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'start' or 'abort' instead of 'execute' to apply changes.
Confusing the order of commands.
5fill in blank
hard

Fill all three blanks to create a TXT record for domain verification.

GCP
gcloud dns record-sets transaction add "[1]" --name=[2] --ttl=[3] --type=TXT --zone=example-zone
Drag options to blanks, or click blank then click option'
Agoogle-site-verification=abc123
Bexample.com.
C300
Dwww.example.com.
Attempts:
3 left
💡 Hint
Common Mistakes
Forgetting quotes around the TXT value.
Omitting the trailing dot in the domain name.
Using an incorrect TTL value.