Free Google Associate Cloud Engineer Exam Braindumps (page: 12)

Page 11 of 74

You have 32 GB of data in a single file that you need to upload to a Nearline Storage bucket. The WAN connection you are using is rated at 1 Gbps, and you are the only one on the connection. You want to use as much of the rated 1 Gbps as possible to transfer the file rapidly. How should you upload the file?

  1. Use the GCP Console to transfer the file instead of gsutil.
  2. Enable parallel composite uploads using gsutil on the file transfer.
  3. Decrease the TCP window size on the machine initiating the transfer.
  4. Change the storage class of the bucket from Nearline to Multi-Regional.

Answer(s): B

Explanation:

https://cloud.google.com/storage/docs/parallel-composite-uploads https://cloud.google.com/storage/docs/uploads-downloads#parallel-composite-uploads



You've deployed a microservice called myapp1 to a Google Kubernetes Engine cluster using the YAML file specified below:



You need to refactor this configuration so that the database password is not stored in plain text. You want to follow Google-recommended practices.
What should you do?

  1. Store the database password inside the Docker image of the container, not in the YAML file.
  2. Store the database password inside a Secret object. Modify the YAML file to populate the DB_PASSWORD environment variable from the Secret.
  3. Store the database password inside a ConfigMap object. Modify the YAML file to populate the DB_PASSWORD environment variable from the ConfigMap.
  4. Store the database password in a file inside a Kubernetes persistent volume, and use a persistent volume claim to mount the volume to the container.

Answer(s): B

Explanation:

https://cloud.google.com/config-connector/docs/how-to/secrets#gcloud



You are running an application on multiple virtual machines within a managed instance group and have autoscaling enabled. The autoscaling policy is configured so that additional instances are added to the group if the CPU utilization of instances goes above 80%. VMs are added until the instance group reaches its maximum limit of five VMs or until CPU utilization of instances lowers to 80%. The initial delay for HTTP health checks against the instances is set to 30 seconds. The virtual machine instances take around three minutes to become available for users. You observe that when the instance group autoscales, it adds more instances then necessary to support the levels of end-user traffic. You want to properly maintain instance group sizes when autoscaling.
What should you do?

  1. Set the maximum number of instances to 1.
  2. Decrease the maximum number of instances to 3.
  3. Use a TCP health check instead of an HTTP health check.
  4. Increase the initial delay of the HTTP health check to 200 seconds.

Answer(s): D

Explanation:

The reason is that when you do health check, you want the VM to be working. Do the first check after initial setup time of 3 mins = 180 s < 200 s is reasonable.

The reason why our autoscaling is adding more instances than needed is that it checks 30 seconds after launching the instance and at this point, the instance isnt up and isnt ready to serve traffic. So our autoscaling policy starts another instance again checks this after 30 seconds and the cycle repeats until it gets to the maximum instances or the instances launched earlier are healthy and start processing traffic which happens after 180 seconds (3 minutes). This can be easily rectified by adjusting the initial delay to be higher than the time it takes for the instance to become available for processing traffic.
So setting this to 200 ensures that it waits until the instance is up (around 180-second mark) and then starts forwarding traffic to this instance. Even after a cool out period, if the CPU utilization is still high,

the autoscaler can again scale up but this scale-up is genuine and is based on the actual load.

Initial Delay Seconds This setting delays autohealing from potentially prematurely recreating the instance if the instance is in the process of starting up. The initial delay timer starts when the currentAction of the instance is VERIFYING.
Ref: https://cloud.google.com/compute/docs/instance-groups/autohealing-instances-in-migs



You need to select and configure compute resources for a set of batch processing jobs. These jobs take around 2 hours to complete and are run nightly. You want to minimize service costs.
What should you do?

  1. Select Google Kubernetes Engine. Use a single-node cluster with a small instance type.
  2. Select Google Kubernetes Engine. Use a three-node cluster with micro instance types.
  3. Select Compute Engine. Use preemptible VM instances of the appropriate standard machine type.
  4. Select Compute Engine. Use VM instance types that support micro bursting.

Answer(s): C

Explanation:

If your apps are fault-tolerant and can withstand possible instance preemptions, then preemptible instances can reduce your Compute Engine costs significantly. For example, batch processing jobs can run on preemptible instances. If some of those instances stop during processing, the job slows but does not completely stop. Preemptible instances complete your batch processing tasks without placing additional workload on your existing instances and without requiring you to pay full price for additional normal instances.
https://cloud.google.com/compute/docs/instances/preemptible






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

Google Associate Cloud Engineer Discussions & Posts