Free Professional Cloud Network Engineer Exam Braindumps (page: 16)

Page 15 of 55

You have configured a Compute Engine virtual machine instance as a NAT gateway. You execute the following command:

gcloud compute routes create no-ip-internet-route \
--network custom-network1 \
--destination-range 0.0.0.0/0 \
--next-hop instance nat-gateway \
--next-hop instance-zone us-central1-a \
--tags no-ip --priority 800

You want existing instances to use the new NAT gateway.
Which command should you execute?

  1. sudo sysctl -w net.ipv4.ip_forward=1
  2. gcloud compute instances add-tags [existing-instance] --tags no-ip
  3. gcloud builds submit --config=cloudbuild.waml --substitutions=TAG_NAME=no-ip
  4. gcloud compute instances create example-instance --network custom-network1 \ --subnet subnet-us-central \
    --no-address \
    --zone us-central1-a \
    --image-family debian-9 \
    --image-project debian-cloud \
    --tags no-ip

Answer(s): B

Explanation:

https://cloud.google.com/sdk/gcloud/reference/compute/routes/create In order to apply a route to an existing instance we should use a tag to bind the route to it.


Reference:

https://cloud.google.com/vpc/docs/special-configurations



You need to configure a static route to an on-premises resource behind a Cloud VPN gateway that is configured for policy-based routing using the gcloud command.

Which next hop should you choose?

  1. The default internet gateway
  2. The IP address of the Cloud VPN gateway
  3. The name and region of the Cloud VPN tunnel
  4. The IP address of the instance on the remote side of the VPN tunnel

Answer(s): C

Explanation:

When you create a route based tunnel using the Cloud Console, Classic VPN performs both of the following tasks: Sets the tunnel's local and remote traffic selectors to any IP address (0.0.0.0/0) For each range in Remote network IP ranges, Google Cloud creates a custom static route whose destination (prefix) is the range's CIDR, and whose next hop is the tunnel. https://cloud.google.com/network-connectivity/docs/vpn/how-to/creating-static-vpns


Reference:

https://cloud.google.com/vpn/docs/how-to/creating-static-vpns



You need to enable Cloud CDN for all the objects inside a storage bucket. You want to ensure that all the object in the storage bucket can be served by the CDN.

What should you do in the GCP Console?

  1. Create a new cloud storage bucket, and then enable Cloud CDN on it.
  2. Create a new TCP load balancer, select the storage bucket as a backend, and then enable Cloud CDN on the backend.
  3. Create a new SSL proxy load balancer, select the storage bucket as a backend, and then enable Cloud CDN on the backend.
  4. Create a new HTTP load balancer, select the storage bucket as a backend, enable Cloud CDN on the backend, and make sure each object inside the storage bucket is shared publicly.

Answer(s): D

Explanation:

https://cloud.google.com/load-balancing/docs/https/adding-backend-buckets-to-load- balancers#using_cloud_cdn_with_cloud_storage_buckets
Cloud CDN needs HTTP(S) Load Balancers and Cloud Storage bucket has to be shared publicly. https://cloud.google.com/cdn/docs/setting-up-cdn-with-bucket



Your company's Google Cloud-deployed, streaming application supports multiple languages. The application development team has asked you how they should support splitting audio and video traffic to different backend Google Cloud storage buckets. They want to use URL maps and minimize operational overhead. They are currently using the following directory structure:

/fr/video
/en/video

/es/video
/../video

/fr/audio
/en/audio
/es/audio
/../audio

Which solution should you recommend?

  1. Rearrange the directory structure, create a URL map and leverage a path rule such as /video/* and /audio/*.
  2. Rearrange the directory structure, create DNS hostname entries for video and audio and leverage a path rule such as /video/* and /audio/*.
  3. Leave the directory structure as-is, create a URL map and leverage a path rule such as \/[a- z]{2}\/video and
    \/[a-z]{2}\/audio.
  4. Leave the directory structure as-is, create a URL map and leverage a path rule such as /*/video and /*/ audio.

Answer(s): A

Explanation:

https://cloud.google.com/load-balancing/docs/url-map#configuring_url_maps

Path matcher constraints Path matchers and path rules have the following constraints: A path rule can only include a wildcard character (*) after a forward slash character (/). For example, /videos/* and /videos/hd/* are valid for path rules, but /videos* and /videos/hd* are not. Path rules do not use regular expression or substring matching. For example, path rules for either /videos/hd or /videos/hd/* do not apply to a URL with the path /video/hd-abcd. However, a path rule for /video/* does apply to that path. https://cloud.google.com/load-balancing/docs/url-map-concepts#pm- constraints






Post your Comments and Discuss Google Professional Cloud Network Engineer exam with other Community members:

Professional Cloud Network Engineer Discussions & Posts