Google Cloud Associate Cloud Engineer Exam MCQ With Answers GCP ACE 17

 

Associate Cloud Engineer

Google Cloud


Google Cloud Associate Cloud Engineer


Associate Cloud Engineers deploy applications, monitor operations, and manage enterprise solutions. They use Google Cloud Console and the command-line interface to perform common platform-based tasks to maintain one or more deployed solutions that leverage Google-managed or self-managed services on Google Cloud.


The Associate Cloud Engineer exam assesses your ability to:


  • Set up a cloud solution environment
  • Plan and configure a cloud solution
  • Deploy and implement a cloud solution
  • Ensure successful operation of a cloud solution
  • Configure access and security

About this certification exam


  • Length: 2 hours
  • Registration fee: $125 (plus tax where applicable)
  • Languages: English, Japanese, Spanish, Portuguese
  • Exam format: 50-60 multiple choice and multiple select questions

GOOGLE CLOUD ASSOCIATE CLOUD ENGINEER MCQ


1. You have designed a solution on Google Cloud that uses multiple Google Cloud products. Your company has asked you to estimate the costs of the solution. You need to provide estimates for the monthly total cost. What should you do?
  1. For each Google Cloud product in the solution, review the pricing details on the products pricing page. Use the pricing calculator to total the monthly costs for each Google Cloud product.
  2. For each Google Cloud product in the solution, review the pricing details on the products pricing page. Create a Google Sheet that summarizes the expected monthly costs for each product.
  3. Provision the solution on Google Cloud. Leave the solution provisioned for 1 week. Navigate to the Billing Report page in the Cloud Console. Multiply the 1 week cost to determine the monthly costs.
  4. Provision the solution on Google Cloud. Leave the solution provisioned for 1 week. Use Cloud Monitoring to determine the provisioned and used resource amounts. Multiply the 1 week cost to determine the monthly costs.

Answer: For each Google Cloud product in the solution, review the pricing details on the products pricing page. Use the pricing calculator to total the monthly costs for each Google Cloud product. 


2. You have an application that receives SSL-encrypted TCP traffic on port 443. Clients for this application are located all over the world. You want to minimize latency for the clients. Which load balancing option should you use?
  1. HTTPS Load Balancer
  2. Network Load Balancer
  3. SSL Proxy Load Balancer
  4. Internal TCP/UDP Load Balancer. Add a firewall rule allowing ingress traffic from 0.0.0.0/0 on the target instances.

Answer: SSL Proxy Load Balancer


3. You have an application on a general-purpose Compute Engine instance that is experiencing excessive disk read throttling on its Zonal SSD Persistent Disk. The application primarily reads large files from disk. The disk size is currently 350 GB. You want to provide the maximum amount of throughput while minimizing costs. What should you do?
  1. Increase the size of the disk to 1 TB.
  2. Increase the allocated CPU to the instance.
  3. Migrate to use a Local SSD on the instance.
  4. Migrate to use a Regional SSD on the instance.

Answer: Migrate to use a Local SSD on the instance.


4. Your Dataproc cluster runs in a single Virtual Private Cloud (VPC) network in a single subnet with range 172.16.20.128/25. There are no private IP addresses available in the VPC network. You want to add new VMs to communicate with your cluster using the minimum number of steps. What should you do?
  1. Modify the existing subnet range to 172.16.20.0/24.
  2. Create a new Secondary IP Range in the VPC and configure the VMs to use that range.
  3. Create a new VPC network for the VMs. Enable VPC Peering between the VMsג€ TMVPC network and the Dataproc cluster VPC network.
  4. Create a new VPC network for the VMs with a subnet of 172.32.0.0/16. Enable VPC network Peering between the Dataproc VPC network and the VMs VPC network. Configure a custom Route exchange.

Answer: Modify the existing subnet range to 172.16.20.0/24.
 
 
5. You manage an App Engine Service that aggregates and visualizes data from BigQuery. The application is deployed with the default App Engine Service account. The data that needs to be visualized resides in a different project managed by another team. You do not have access to this project, but you want your application to be able to read data from the BigQuery dataset. What should you do?

  1. Ask the other team to grant your default App Engine Service account the role of BigQuery Job User.
  2. Ask the other team to grant your default App Engine Service account the role of BigQuery Data Viewer.
  3. In Cloud IAM of your project, ensure that the default App Engine service account has the role of BigQuery Data Viewer.
  4. In Cloud IAM of your project, grant a newly created service account from the other team the role of BigQuery Job User in your project.

Answer: Ask the other team to grant your default App Engine Service account the role of BigQuery Data Viewer. 


6. You need to create a copy of a custom Compute Engine virtual machine (VM) to facilitate an expected increase in application traffic due to a business acquisition.What should you do?
  1. Create a Compute Engine snapshot of your base VM. Create your images from that snapshot.
  2. Create a Compute Engine snapshot of your base VM. Create your instances from that snapshot.
  3. Create a custom Compute Engine image from a snapshot. Create your images from that image.
  4. Create a custom Compute Engine image from a snapshot. Create your instances from that image.
 
Answer: Create a custom Compute Engine image from a snapshot. Create your instances from that image.
 

7. You have deployed an application on a single Compute Engine instance. The application writes logs to disk. Users start reporting errors with the application. You want to diagnose the problem. What should you do?
  1. Navigate to Cloud Logging and view the application logs.
  2. Connect to the instanceג€TMs serial console and read the application logs.
  3. Configure a Health Check on the instance and set a Low Healthy Threshold value.
  4. Install and configure the Cloud Logging Agent and view the logs from Cloud Logging.

Answer: Connect to the instanceג€TMs serial console and read the application logs.
 

8. An application generates daily reports in a Compute Engine virtual machine (VM). The VM is in the project corp-iot-insights. Your team operates only in the project corp-aggregate-reports and needs a copy of the daily exports in the bucket corp-aggregate-reports-storage. You want to configure access so that the daily reports from the VM are available in the bucket corp-aggregatereports-storage and use as few steps as possible while following Google-recommended practices. What should you do?
  1. Move both projects under the same folder.
  2. Grant the VM Service Account the role Storage Object Creator on corp-aggregatereports-storage.
  3. Create a Shared VPC network between both projects. Grant the VM Service Account the role Storage Object Creator on corp-iot-insights.
  4. Make corp-aggregate-reports-storage public and create a folder with a pseudorandomized suffix name. Share the folder with the IoT team.

Answer: Grant the VM Service Account the role Storage Object Creator on corp-aggregatereports-storage. 


9. You built an application on your development laptop that uses Google Cloud services. Your application uses Application Default Credentials for authentication and works fine on your development laptop. You want to migrate this application to a Compute Engine virtual machine (VM) and set up authentication using Google- recommended practices and minimal changes. What should you do?
  1. Assign appropriate access for Google services to the service account used by the Compute Engine VM.
  2. Create a service account with appropriate access for Google services, and configure the application to use this account.
  3. Store credentials for service accounts with appropriate access for Google services in a config file, and deploy this config file with your application.
  4. Store credentials for your user account with appropriate access for Google services in a config file, and deploy this config file with your application.

Answer: Create a service account with appropriate access for Google services, and configure the application to use this account. 


10. You need to create a Compute Engine instance in a new project that doesnג€TMt exist yet. What should you do?
  1. Using the Cloud SDK, create a new project, enable the Compute Engine API in that project, and then create the instance specifying your new project.
  2. Enable the Compute Engine API in the Cloud Console, use the Cloud SDK to create the instance, and then use the --project flag to specify a new project.
  3. Using the Cloud SDK, create the new instance, and use the --project flag to specify the new project. Answer yes when prompted by Cloud SDK to enable the Compute Engine API.
  4. Enable the Compute Engine API in the Cloud Console. Go to the Compute Engine section of the Console to create a new instance, and look for the Create In A New Project option in the creation form.

Answer: Using the Cloud SDK, create a new project, enable the Compute Engine API in that project, and then create the instance specifying your new project.
 

11. Your company runs one batch process in an on-premises server that takes around 30 hours to complete. The task runs monthly, can be performed offline, and must be restarted if interrupted. You want to migrate this workload to the cloud while minimizing cost. What should you do?
  1. Migrate the workload to a Compute Engine Preemptible VM.
  2. Migrate the workload to a Google Kubernetes Engine cluster with Preemptible nodes.
  3. Migrate the workload to a Compute Engine VM. Start and stop the instance as needed.
  4. Create an Instance Template with Preemptible VMs On. Create a Managed Instance Group from the template and adjust Target CPU Utilization. Migrate the workload.

Answer: Migrate the workload to a Compute Engine VM. Start and stop the instance as needed.


12. You are developing a new application and are looking for a Jenkins installation to build and deploy your source code. You want to automate the installation as quickly and easily as possible. What should you do?
  1. Deploy Jenkins through the Google Cloud Marketplace.
  2. Create a new Compute Engine instance. Run the Jenkins executable.
  3. Create a new Kubernetes Engine cluster. Create a deployment for the Jenkins image.
  4. Create an instance template with the Jenkins executable. Create a managed instance group with this template.

Answer: Deploy Jenkins through the Google Cloud Marketplace.
 

13. ou have downloaded and installed the gcloud command line interface (CLI) and have authenticated with your Google Account. Most of your Compute Engine instances in your project run in the europe-west1-d zone. You want to avoid having to specify this zone with each CLI command when managing these instances.What should you do?
  1. Set the europe-west1-d zone as the default zone using the gcloud config subcommand.
  2. In the Settings page for Compute Engine under Default location, set the zone to europeג€"west1d.
  3. In the CLI installation directory, create a file called default.conf containing
  4. zone=europeג€"west1ג€"d.
  5. Create a Metadata entry on the Compute Engine page with key compute/zone and value europeג€"west1ג€"d

Answer: Set the europe-west1-d zone as the default zone using the gcloud config subcommand.
 

14. The core business of your company is to rent out construction equipment at large scale. All the equipment that is being rented out has been equipped with multiple sensors that send event information every few seconds. These signals can vary from engine status, distance traveled, fuel level, and more. Customers are billed based on the consumption monitored by these sensors. You expect high throughput ג€ "up to thousands of events per hour per device ג€ "and need to retrieve consistent data based on the time of the event. Storing and retrieving individual signals should be atomic. What should you do?
  1. Create a file in Cloud Storage per device and append new data to that file.
  2. Create a file in Cloud Filestore per device and append new data to that file.
  3. Ingest the data into Datastore. Store data in an entity group based on the device.
  4. Ingest the data into Cloud Bigtable. Create a row key based on the event timestamp.

Answer: Ingest the data into Cloud Bigtable. Create a row key based on the event timestamp.
 

15. You are asked to set up application performance monitoring on Google Cloud projects A, B, and C as a single pane of glass. You want to monitor CPU, memory, and disk. What should you do?
  1. Enable API and then share charts from project A, B, and C.
  2. Enable API and then give the metrics.reader role to projects A, B, and C.
  3. Enable API and then use default dashboards to view all projects in sequence.
  4. Enable API, create a workspace under project A, and then add projects B and C.

Answer: Enable API, create a workspace under project A, and then add projects B and C.
 

16. You created several resources in multiple Google Cloud projects. All projects are linked to different billing accounts. To better estimate future charges, you want to have a single visual representation of all costs incurred. You want to include new cost data as soon as possible. What should you do?
  1. Configure Billing Data Export to BigQuery and visualize the data in Data Studio.
  2. Visit the Cost Table page to get a CSV export and visualize it using Data Studio.
  3. Fill all resources in the Pricing Calculator to get an estimate of the monthly cost.
  4. Use the Reports view in the Cloud Billing Console to view the desired cost information.

Answer: Configure Billing Data Export to BigQuery and visualize the data in Data Studio.
 

17. Your company has workloads running on Compute Engine and on-premises. The Google Cloud Virtual Private Cloud (VPC) is connected to your WAN over a Virtual Private Network (VPN). You need to deploy a new Compute Engine instance and ensure that no public Internet traffic can be routed to it. What should you do?
  1. Create the instance without a public IP address.
  2. Create the instance with Private Google Access enabled.
  3. Create a deny-all egress firewall rule on the VPC network.
  4. Create a route on the VPC to route all traffic to the instance over the VPN tunnel.

Answer: Create the instance without a public IP address.
 

18. Your team maintains the infrastructure for your organization. The current infrastructure requires changes. You need to share your proposed changes with the rest of the team. You want to follow Googleג€TMs recommended best practices. What should you do?
  1. Use Deployment Manager templates to describe the proposed changes and store them in a Cloud Storage bucket.
  2. Use Deployment Manager templates to describe the proposed changes and store them in Cloud Source Repositories.
  3. Apply the changes in a development environment, run gcloud compute instances list, and then save the output in a shared Storage bucket.
  4. Apply the changes in a development environment, run gcloud compute instances list, and then save the output in Cloud Source Repositories.

Answer: Use Deployment Manager templates to describe the proposed changes and store them in Cloud Source Repositories.
 

19. You have a Compute Engine instance hosting an application used between 9 AM and 6 PM on weekdays. You want to back up this instance daily for disaster recovery purposes. You want to  keep the backups for 30 days. You want the Google-recommended solution with the least management overhead and the least number of services. What should you do?
  1. 1. Update your instancesג€ TMmetadata to add the following value: snapshotג€"schedule: 0 1 * * * 2. Update your instancesג€ TMmetadata to add the following value: snapshotג€"retention: 30
  2. 1. In the Cloud Console, go to the Compute Engine Disks page and select your instanceג€TMs disk. 2. In the Snapshot Schedule section, select Create Schedule and configure the following parameters: - Schedule frequency: Daily - Start time: 1:00 AM " € ג2:00 AM - Autodelete snapshots after: 30 days
  3. 1. Create a Cloud Function that creates a snapshot of your instanceג€TMs disk. 2. Create a Cloud Function that deletes snapshots that are older than 30 days. 3. Use Cloud Scheduler to trigger both Cloud Functions daily at 1:00 AM.
  4. 1. Create a bash script in the instance that copies the content of the disk to Cloud Storage. 2. Create a bash script in the instance that deletes data older than 30 days in the backup Cloud Storage bucket. 3. Configure the instanceג€TMs crontab to execute these scripts daily at 1:00AM.

Answer: 1. In the Cloud Console, go to the Compute Engine Disks page and select your instanceג€TMs disk. 2. In the Snapshot Schedule section, select Create Schedule and configure the following
parameters: - Schedule frequency: Daily - Start time: 1:00 AM " € ג 2:00 AM - Autodelete snapshots after: 30 days 


20. Your existing application running in Google Kubernetes Engine (GKE) consists of multiple pods running on four GKE n1ג€"standard2"€ג nodes. You need to deploy additional pods requiring n2ג€"highmem16"€ג nodes without any downtime. What should you do?
  1. Use gcloud container clusters upgrade. Deploy the new services.
  2. Create a new Node Pool and specify machine type n2 ג€"highmem16"€ג. Deploy the new pods.
  3. Create a new cluster with n2ג€"highmem16"€ג nodes. Redeploy the pods and delete the old cluster.
  4. Create a new cluster with both n1ג€"standard2"€ג and n2ג€"highmem16"€ג nodes. Redeploy the pods and delete the old cluster.

Answer: Create a new Node Pool and specify machine type n2 ג€"highmem16"€ג. Deploy the new pods. 


21. You have an application that uses Cloud Spanner as a database backend to keep current state information about users. Cloud Bigtable logs all events triggered by users. You export Cloud Spanner data to Cloud Storage during daily backups. One of your analysts asks you to join data from Cloud Spanner and Cloud Bigtable for specific users. You want to complete this ad  hoc request as efficiently as possible.What should you do? 
  1. Create a dataflow job that copies data from Cloud Bigtable and Cloud Storage for specific users.
  2. Create a dataflow job that copies data from Cloud Bigtable and Cloud Spanner for specific users.
  3. Create a Cloud Dataproc cluster that runs a Spark job to extract data from Cloud Bigtable and Cloud Storage for specific users.
  4. Create two separate BigQuery external tables on Cloud Storage and Cloud Bigtable. Use the BigQuery console to join these tables through user fields, and apply appropriate filters.

Answer: Create a dataflow job that copies data from Cloud Bigtable and Cloud Spanner for specific users.
 

22. You are hosting an application from Compute Engine virtual machines (VMs) in usג€"central1ג€"a. You want to adjust your design to support the failure of a single Compute Engine zone, eliminate downtime, and minimize cost. What should you do?
  1. ג€ "Create Compute Engine resources in usג€"central1ג€"b. ג€ "Balance the load across both usג€"central1ג€"a and usג€"central1ג€"b.
  2. ג€ "Create a Managed Instance Group and specify usג€"central1ג€"a as the zone. ג€ "Configure the Health Check with a short Health Interval.
  3. ג€ "Create an HTTP(S) Load Balancer. ג€ "Create one or more global forwarding rules to direct traffic to your VMs.
  4. ג€ "Perform regular backups of your application. ג€ "Create a Cloud Monitoring Alert and be notified if your application becomes unavailable. ג€ "Restore from backups when notified.

Answer: ג€ "Create Compute Engine resources in usג€"central1ג€"b. ג€ "Balance the load across both usג€"central1ג€"a and usג€"central1ג€"b.
 

23. A colleague handed over a Google Cloud Platform project for you to maintain. As part of a security checkup, you want to review who has been granted the Project Owner role. What should you do?
  1. In the console, validate which SSH keys have been stored as project-wide keys.
  2. Navigate to Identity-Aware Proxy and check the permissions for these resources.
  3. Enable Audit Logs on the IAM & admin page for all resources, and validate the results.
  4. Use the command gcloud projects getג€"iamג€"policy to view the current role assignment.

Answer: Use the command gcloud projects getג€"iamג€"policy to view the current role assignment.
 

24. You are running multiple VPC-native Google Kubernetes Engine clusters in the same subnet. The IPs available for the nodes are exhausted, and you want to ensure that the clusters can grow in nodes when needed. What should you do?
  1. Create a new subnet in the same region as the subnet being used.
  2. Add an alias IP range to the subnet used by the GKE clusters.
  3. Create a new VPC, and set up VPC peering with the existing VPC.
  4. Expand the CIDR range of the relevant subnet for the cluster.

Answer: Expand the CIDR range of the relevant subnet for the cluster.
 

25. You have a batch workload that runs every night and uses a large number of virtual machines (VMs). It is fault-tolerant and can tolerate some of the VMs being terminated. The current cost of VMs is too high. What should you do?
  1. Run a test using simulated maintenance events. If the test is successful, use preemptible N1 Standard VMs when running future jobs.
  2. Run a test using simulated maintenance events. If the test is successful, use N1 Standard VMs when running future jobs.
  3. Run a test using a managed instance group. If the test is successful, use N1 Standard VMs in the managed instance group when running future jobs.
  4. Run a test using N1 standard VMs instead of N2. If the test is successful, use N1 Standard VMs when running future jobs.

Answer: Run a test using simulated maintenance events. If the test is successful, use preemptible N1 Standard VMs when running future jobs.
 

Post a Comment