Google Associate Cloud Engineer Exam Practice Questions (P. 5)
- Full Access (326 questions)
- Six months of Premium Access
- Access to one million comments
- Seamless ChatGPT Integration
- Ability to download PDF files
- Anki Flashcard files for revision
- No Captcha & No AdSense
- Advanced Exam Configuration
Question #41
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?
- AUse the GCP Console to transfer the file instead of gsutil.
- BEnable parallel composite uploads using gsutil on the file transfer.Most Voted
- CDecrease the TCP window size on the machine initiating the transfer.
- DChange the storage class of the bucket from Nearline to Multi-Regional.
Correct Answer:
B
B
send
light_mode
delete
Question #42
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?

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?
- AStore the database password inside the Docker image of the container, not in the YAML file.
- BStore the database password inside a Secret object. Modify the YAML file to populate the DB_PASSWORD environment variable from the Secret.Most Voted
- CStore the database password inside a ConfigMap object. Modify the YAML file to populate the DB_PASSWORD environment variable from the ConfigMap.
- DStore the database password in a file inside a Kubernetes persistent volume, and use a persistent volume claim to mount the volume to the container.
Correct Answer:
B
B
send
light_mode
delete
Question #43
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?
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?
- ASet the maximum number of instances to 1.
- BDecrease the maximum number of instances to 3.
- CUse a TCP health check instead of an HTTP health check.
- DIncrease the initial delay of the HTTP health check to 200 seconds.Most Voted
Correct Answer:
D
D
send
light_mode
delete
Question #44
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?
- ASelect Google Kubernetes Engine. Use a single-node cluster with a small instance type.
- BSelect Google Kubernetes Engine. Use a three-node cluster with micro instance types.
- CSelect Compute Engine. Use preemptible VM instances of the appropriate standard machine type.Most Voted
- DSelect Compute Engine. Use VM instance types that support micro bursting.
Correct Answer:
C
C
send
light_mode
delete
Question #45
You recently deployed a new version of an application to App Engine and then discovered a bug in the release. You need to immediately revert to the prior version of the application. What should you do?
- ARun gcloud app restore.
- BOn the App Engine page of the GCP Console, select the application that needs to be reverted and click Revert.
- COn the App Engine Versions page of the GCP Console, route 100% of the traffic to the previous version.Most Voted
- DDeploy the original version as a separate application. Then go to App Engine settings and split traffic between applications so that the original version serves 100% of the requests.
Correct Answer:
C
Reference:
https://medium.com/google-cloud/app-engine-project-cleanup-9647296e796a
C
Reference:
https://medium.com/google-cloud/app-engine-project-cleanup-9647296e796a
send
light_mode
delete
Question #46
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?
- ACheck the app.yaml file for your application and check project settings.
- BCheck the web-application.xml file for your application and check project settings.
- CGo to Deployment Manager and review settings for deployment of applications.
- DGo to Cloud Shell and run gcloud config list to review the Google Cloud configuration used for deployment.Most Voted
Correct Answer:
D
Reference:
https://cloud.google.com/endpoints/docs/openapi/troubleshoot-aeflex-deployment
D
Reference:
https://cloud.google.com/endpoints/docs/openapi/troubleshoot-aeflex-deployment
send
light_mode
delete
Question #47
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?
- ACreate 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.Most Voted
- BCreate 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.
- CCreate an instance group for the instances. Set the 'Autohealing' health check to healthy (HTTP).
- DCreate an instance group for the instance. Verify that the 'Advanced creation options' setting for 'do not retry machine creation' is set to off.
Correct Answer:
A
A
send
light_mode
delete
Question #48
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?
- AEnable Cloud CDN on the website frontend.
- BEnable 'Share publicly' on the PDF file objects.
- CSet Content-Type metadata to application/pdf on the PDF file objects.Most Voted
- DAdd a label to the storage bucket with a key of Content-Type and value of application/pdf.
Correct Answer:
C
C
send
light_mode
delete
Question #49
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?
- ARely on live migration to move the workload to a machine with more memory.
- BUse gcloud to add metadata to the VM. Set the key to required-memory-size and the value to 8 GB.
- CStop the VM, change the machine type to n1-standard-8, and start the VM.
- DStop the VM, increase the memory to 8 GB, and start the VM.Most Voted
Correct Answer:
D
D
send
light_mode
delete
Question #50
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?
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?
- ACreate a single custom VPC with 2 subnets. Create each subnet in a different region and with a different CIDR range.Most Voted
- BCreate a single custom VPC with 2 subnets. Create each subnet in the same region and with the same CIDR range.
- CCreate 2 custom VPCs, each with a single subnet. Create each subnet in a different region and with a different CIDR range.
- DCreate 2 custom VPCs, each with a single subnet. Create each subnet in the same region and with the same CIDR range.
Correct Answer:
A
A
send
light_mode
delete
All Pages