Google Associate Cloud Engineer Associate Cloud Engineer Exam Questions in PDF

Free Google Associate Cloud Engineer Dumps Questions (page: 10)

You deployed an App Engine application using gcloud app deploy, but it did not deploy to the intended project. You want to find out why this happened and where the application deployed.
What should you do?

  1. Check the app.yaml file for your application and check project settings.
  2. Check the web-application.xml file for your application and check project settings.
  3. Go to Deployment Manager and review settings for deployment of applications.
  4. Go to Cloud Shell and run gcloud config list to review the Google Cloud configuration used for deployment.

Answer(s): D

Explanation:

C:\GCP\appeng>gcloud config list
[core]
account = xxx@gmail.com disable_usage_reporting = False project = my-first-demo-xxxx https://cloud.google.com/endpoints/docs/openapi/troubleshoot-gce-deployment



You want to configure 10 Compute Engine instances for availability when maintenance occurs. Your requirements state that these instances should attempt to automatically restart if they crash. Also, the instances should be highly available including during system maintenance.
What should you do?

  1. Create an instance template for the instances. Set the `Automatic Restart' to on. Set the `On-host maintenance' to Migrate VM instance. Add the instance template to an instance group.
  2. Create an instance template for the instances. Set `Automatic Restart' to off. Set `On-host maintenance' to Terminate VM instances. Add the instance template to an instance group.
  3. Create an instance group for the instances. Set the `Autohealing' health check to healthy (HTTP).
  4. Create an instance group for the instance. Verify that the `Advanced creation options' setting for `do not retry machine creation' is set to off.

Answer(s): A

Explanation:

Create an instance template for the instances so VMs have same specs. Set the "~Automatic Restart' to on to VM automatically restarts upon crash. Set the "~On-host maintenance' to Migrate VM instance. This will take care of VM during maintenance window. It will migrate VM instance making it highly available Add the instance template to an instance group so instances can be managed.


- onHostMaintenance: Determines the behavior when a maintenance event occurs that might cause your instance to reboot.

- [Default] MIGRATE, which causes Compute Engine to live migrate an instance when there is a maintenance event.

- TERMINATE, which stops an instance instead of migrating it.
- automaticRestart: Determines the behavior when an instance crashes or is stopped by the system.
- [Default] true, so Compute Engine restarts an instance if the instance crashes or is stopped.
- false, so Compute Engine does not restart an instance if the instance crashes or is stopped.

Enabling automatic restart ensures that compute engine instances are automatically restarted when they crash. And Enabling Migrate VM Instance enables live migrates i.e. compute instances are migrated during system maintenance and remain running during the migration. Automatic Restart If your instance is set to terminate when there is a maintenance event, or if your instance crashes because of an underlying hardware issue, you can set up Compute Engine to automatically restart the instance by setting the automaticRestart field to true. This setting does not apply if the instance is taken offline through a user action, such as calling sudo shutdown, or during a zone outage.
Ref: https://cloud.google.com/compute/docs/instances/setting-instance-scheduling- options#autorestart
Enabling the Migrate VM Instance option migrates your instance away from an infrastructure maintenance event, and your instance remains running during the migration. Your instance might experience a short period of decreased performance, although generally, most instances should not notice any difference. This is ideal for instances that require constant uptime and can tolerate a short period of decreased performance.
Ref: https://cloud.google.com/compute/docs/instances/setting-instance-scheduling- options#live_migrate



You host a static website on Cloud Storage. Recently, you began to include links to PDF files on this site. Currently, when users click on the links to these PDF files, their browsers prompt them to save the file onto their local system. Instead, you want the clicked PDF files to be displayed within the browser window directly, without prompting the user to save the file locally.
What should you do?

  1. Enable Cloud CDN on the website frontend.
  2. Enable `Share publicly' on the PDF file objects.
  3. Set Content-Type metadata to application/pdf on the PDF file objects.
  4. Add a label to the storage bucket with a key of Content-Type and value of application/pdf.

Answer(s): C

Explanation:

https://developer.mozilla.org/en-
US/docs/Web/HTTP/Basics_of_HTTP/MIME_Types#importance_of_setting_the_correct_mime_type



You have a virtual machine that is currently configured with 2 vCPUs and 4 GB of memory. It is running out of memory. You want to upgrade the virtual machine to have 8 GB of memory.
What should you do?

  1. Rely on live migration to move the workload to a machine with more memory.
  2. Use gcloud to add metadata to the VM. Set the key to required-memory-size and the value to 8 G
  3. Stop the VM, change the machine type to n1-standard-8, and start the VM.
  4. Stop the VM, increase the memory to 8 GB, and start the VM.

Answer(s): D

Explanation:

In Google compute engine, if predefined machine types don't meet your needs, you can create an instance with custom virtualized hardware settings. Specifically, you can create an instance with a custom number of vCPUs and custom memory, effectively using a custom machine type. Custom machine types are ideal for the following scenarios:
1. Workloads that aren't a good fit for the predefined machine types that are available to you.
2. Workloads that require more processing power or more memory but don't need all of the upgrades that are provided by the next machine type level. In our scenario, we only need a memory upgrade. Moving to a bigger instance would also bump up the CPU which we don't need so we have to use a custom machine type. It is not possible to change memory while the instance is running so you need to first stop the instance, change the memory and then start it again. See below a screenshot that shows how CPU/Memory can be customized for an instance that has been stopped.
Ref: https://cloud.google.com/compute/docs/instances/creating-instance-with-custom-machine- type



You have production and test workloads that you want to deploy on Compute Engine. Production VMs need to be in a different subnet than the test VMs. All the VMs must be able to reach each other over internal IP without creating additional routes. You need to set up VPC and the 2 subnets.
Which configuration meets these requirements?

  1. Create a single custom VPC with 2 subnets. Create each subnet in a different region and with a different CIDR range.
  2. Create a single custom VPC with 2 subnets. Create each subnet in the same region and with the same CIDR range.
  3. Create 2 custom VPCs, each with a single subnet. Create each subnet is a different region and with a different CIDR range.
  4. Create 2 custom VPCs, each with a single subnet. Create each subnet in the same region and with the same CIDR range.

Answer(s): A

Explanation:

When we create subnets in the same VPC with different CIDR ranges, they can communicate automatically within VPC. Resources within a VPC network can communicate with one another by using internal (private) IPv4 addresses, subject to applicable network firewall rules

Ref: https://cloud.google.com/vpc/docs/vpc



Share your comments for Google Associate Cloud Engineer exam with other users:

Q
Q44
7/30/2023 11:50:00 AM

ans is coldline i think

A
Anastasiia
12/28/2023 9:06:00 AM

totally not correct answers. 21. you have one gcp account running in your default region and zone and another account running in a non-default region and zone. you want to start a new compute engine instance in these two google cloud platform accounts using the command line interface. what should you do? correct: create two configurations using gcloud config configurations create [name]. run gcloud config configurations activate [name] to switch between accounts when running the commands to start the compute engine instances.

A
Asad Khan
11/1/2023 2:44:00 AM

answer 10 should be a because only a new project will be created & the organization is the same.

A
Asad Khan
11/1/2023 3:10:00 AM

answer 16 should be b your organizational policies require you to use virtual machines directly

T
Tar01
7/24/2023 7:07:00 PM

the explanation are really helpful

S
S Roychowdhury
6/26/2023 5:27:00 PM

what is the percentage of common questions in gcp exam compared to 197 dump questions? are they 100% matching with real gcp exam?

AI Tutor 👋 I’m here to help!