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


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 are building a new version of an application hosted in an App Engine environment You  want to test the new version with 1% of users before you completely switch your application over to the new version. What should you do?
  1. Deploy a new version of your application in Google Kubernetes Engine instead of App Engine and then use GCP Console to split traffic.
  2. Deploy a new version of your application in a Compute Engine instance instead of App Engine and then use GCP Console to split traffic.
  3. Deploy a new version as a separate app in App Engine. Then configure App Engine using GCP Console to split traffic between the two apps.
  4. Deploy a new version of your application in App Engine. Then go to App Engine settings in GCP Console and split traffic between the current version and newly deployed versions accordingly.

Answer: Deploy a new version of your application in App Engine. Then go to App Engine settings in GCP Console and split traffic between the current version and newly deployed versions accordingly.

 
2. You need to provide a cost estimate for a Kubernetes cluster using the GCP pricing calculator for Kubernetes. Your workload requires high IOPs, and you will also be using disk snapshots. You start by entering the number of nodes, average hours, and average days. What should you do next?
  1. Fill in local SSD. Fill in persistent disk storage and snapshot storage.
  2. Fill in local SSD. Add estimated cost for cluster management.
  3. Select Add GPUs. Fill in persistent disk storage and snapshot storage.
  4. Select Add GPUs. Add estimated cost for cluster management.

Answer: Fill in local SSD. Fill in persistent disk storage and snapshot storage.

 
3. You are using Google Kubernetes Engine with autoscaling enabled to host a new application. You want to expose this new application to the public, using HTTPS on a public IP address. What should you do?
  1. Create a Kubernetes Service of type NodePort for your application, and a Kubernetes Ingress to expose this Service via a Cloud Load Balancer.
  2. Create a Kubernetes Service of type ClusterIP for your application. Configure the public DNS name of your application using the IP of this Service.
  3. Create a Kubernetes Service of type NodePort to expose the application on port 443 of each node of the Kubernetes cluster. Configure the public DNS name of your application with the IP of every node of the cluster to achieve load-balancing.
  4. Create a HAProxy pod in the cluster to load-balance the traffic to all the pods of the application. Forward the public traffic to HAProxy with an iptable rule. Configure the DNS name of your application using the public IP of the node HAProxy is running on.

(https://cloud.google.com/kubernetes-engine/docs/how-to/exposing-apps#kubectl-apply)


Answer: Create a Kubernetes Service of type NodePort for your application, and a Kubernetes  Ingress to expose this Service via a Cloud Load Balancer.

 
4. You need to enable traffic between multiple groups of Compute Engine instances that are currently running two different GCP projects. Each group of Compute Engine instances is running in its own VPC. What should you do?
  1. Verify that both projects are in a GCP Organization. Create a new VPC and add all instances.
  2. Verify that both projects are in a GCP Organization. Share the VPC from one project and request that the Compute Engine instances in the other project use this shared VPC.
  3. Verify that you are the Project Administrator of both projects. Create two new VPCs and add all instances.
  4. Verify that you are the Project Administrator of both projects. Create a new VPC and add all instances.

Answer: Verify that both projects are in a GCP Organization. Share the VPC from one project and request that the Compute Engine instances in the other project use this shared VPC.

 
5. You want to add a new auditor to a Google Cloud Platform project. The auditor should be allowed to read, but not modify, all project items.How should you configure the auditor's permissions?
  1. Create a custom role with view-only project permissions. Add the user's account to the custom role.
  2. Create a custom role with view-only service permissions. Add the user's account to the custom role.
  3. Select the built-in IAM project Viewer role. Add the user's account to this role.
  4. Select the built-in IAM service Viewer role. Add the user's account to this role.

Answer: Select the built-in IAM project Viewer role. Add the user's account to this role.


6. You are operating a Google Kubernetes Engine (GKE) cluster for your company where different teams can run non-production workloads. Your Machine Learning (ML) team needs access to Nvidia Tesla P100 GPUs to train their models. You want to minimize effort and cost. What should you do?
  1. Ask your ML team to add the ג€accelerator: gpuג€ annotation to their pod specification.
  2. Recreate all the nodes of the GKE cluster to enable GPUs on all of them.
  3. Create your own Kubernetes cluster on top of Compute Engine with nodes that have GPUs. Dedicate this cluster to your ML team.
  4. Add a new, GPU-enabled, node pool to the GKE cluster. Ask your ML team to add the cloud.google.com/gke -accelerator: nvidia-tesla-p100 nodeSelector to their pod specification.

Answer: Add a new, GPU-enabled, node pool to the GKE cluster. Ask your ML team to add the cloud.google.com/gke -accelerator: nvidia-tesla-p100 nodeSelector to their pod
 specification.


7. Your VMs are running in a subnet that has a subnet mask of 255.255.255.240. The current subnet has no more free IP addresses and you require an additional 10 IP addresses for new VMs. The existing and new VMs should all be able to reach each other without additional routes. What should you do?
  1. Use gcloud to expand the IP range of the current subnet.
  2. Delete the subnet, and recreate it using a wider range of IP addresses.
  3. Create a new project. Use Shared VPC to share the current network with the new project.
  4. Create a new subnet with the same starting IP but a wider range to overwrite the current subnet.

Answer: Use gcloud to expand the IP range of the current subnet. 


8. Your organization uses G Suite for communication and collaboration. All users in your organization have a G Suite account. You want to grant some G Suite users access to your Cloud Platform project. What should you do?
  1. Enable Cloud Identity in the GCP Console for your domain.
  2. Grant them the required IAM roles using their G Suite email address.
  3. Create a CSV sheet with all usersג€ TMemail addresses. Use the gcloud command line tool to convert them into Google Cloud Platform accounts.
  4. In the G Suite console, add the users to a special group called cloud-consoleusers@yourdomain.com. Rely on the default behavior of the Cloud Platform to grant users access if they are members of this group.

Answer: Grant them the required IAM roles using their G Suite email address.


9. You have a Google Cloud Platform account with access to both production and development projects. You need to create an automated process to list all compute instances in development and production projects on a daily basis. What should you do?
  1. Create two configurations using gcloud config. Write a script that sets configurations as active, individually. For each configuration, use gcloud compute instances list to get a list of compute resources.
  2. Create two configurations using gsutil config. Write a script that sets configurations as active, individually. For each configuration, use gsutil compute instances list to get a list of compute resources.
  3. Go to Cloud Shell and export this information to Cloud Storage on a daily basis.
  4. Go to GCP Console and export this information to Cloud SQL on a daily basis.

Answer: Create two configurations using gcloud config. Write a script that sets configurations as active, individually. For each configuration, use gcloud compute instances list to get a list of compute resources.

 
10. You have a large 5-TB AVRO file stored in a Cloud Storage bucket. Your analysts are proficient only in SQL and need access to the data stored in this file. You want to find a cost-effective way to complete their request as soon as possible. What should you do?

  1. Load data in Cloud Datastore and run a SQL query against it.
  2. Create a BigQuery table and load data in BigQuery. Run a SQL query on this table and drop this table after you complete your request.
  3. Create external tables in BigQuery that point to Cloud Storage buckets and run a SQL query on these external tables to complete your request.
  4. Create a Hadoop cluster and copy the AVRO file to NDFS by compressing it. Load the file in a hive table and provide access to your analysts so that they can run SQL queries.

Answer: Create external tables in BigQuery that point to Cloud Storage buckets and run a SQL  query on these external tables to complete your request.


11. You need to verify that a Google Cloud Platform service account was created at a particular time. What should you do?
  1. Filter the Activity log to view the Configuration category. Filter the Resource type to Service Account.
  2. Filter the Activity log to view the Configuration category. Filter the Resource type to Google Project.
  3. Filter the Activity log to view the Data Access category. Filter the Resource type to Service Account.
  4. Filter the Activity log to view the Data Access category. Filter the Resource type to Google Project.

Answer: Filter the Activity log to view the Configuration category. Filter the Resource type to Service Account.

 
12. You deployed an LDAP server on Compute Engine that is reachable via TLS through port 636 using UDP. You want to make sure it is reachable by clients over that port. What should you do?
  1. Add the network tag allow-udp-636 to the VM instance running the LDAP server.
  2. Create a route called allow-udp-636 and set the next hop to be the VM instance running the LDAP server.
  3. Add a network tag of your choice to the instance. Create a firewall rule to allow ingress on UDP port 636 for that network tag.
  4. Add a network tag of your choice to the instance running the LDAP server. Create a firewall rule to allow egress on UDP port 636 for that network tag.

Answer: Add a network tag of your choice to the instance. Create a firewall rule to allow ingress on UDP port 636 for that network tag.

 
13. You need to set a budget alert for use of Compute Engineer services on one of the three Google Cloud Platform projects that you manage. All three projects are linked to a single billing account. What should you do?
  1. Verify that you are the project billing administrator. Select the associated billing account and create a budget and alert for the appropriate project.
  2. Verify that you are the project billing administrator. Select the associated billing account and create a budget and a custom alert.
  3. Verify that you are the project administrator. Select the associated billing account and create a budget for the appropriate project.
  4. Verify that you are project administrator. Select the associated billing account and create a budget and a custom alert

Answer: Verify that you are the project billing administrator. Select the associated billing  account and create a budget and alert for the appropriate project.

 
14. You are migrating a production-critical on-premises application that requires 96 vCPUs to perform its task. You want to make sure the application runs in a similar environment on GCP. What should you do?
  1. When creating the VM, use machine type n1-standard-96.
  2. When creating the VM, use Intel Skylake as the CPU platform.
  3. Create the VM using Compute Engine default settings. Use gcloud to modify the running instance to have 96 vCPUs.
  4. Start the VM using Compute Engine default settings, and adjust as you go based on Rightsizing Recommendations.

Answer: When creating the VM, use machine type n1-standard-96.


15. You want to configure a solution for archiving data in a Cloud Storage bucket. The solution must be cost-effective. Data with multiple versions should be archived after 30 days. Previous versions are accessed once a month for reporting. This archive data is also occasionally updated at month-end. What should you do?
  1. Add a bucket lifecycle rule that archives data with newer versions after 30 days to Coldline Storage.
  2. Add a bucket lifecycle rule that archives data with newer versions after 30 days to Nearline Storage.
  3. Add a bucket lifecycle rule that archives data from regional storage after 30 days to Coldline Storage.
  4. Add a bucket lifecycle rule that archives data from regional storage after 30 days to Nearline Storage.

Answer: Add a bucket lifecycle rule that archives data with newer versions after 30 days to Nearline Storage.

 
16. Your companyג€TMs infrastructure is on-premises, but all machines are running at maximum capacity. You want to burst to Google Cloud. The workloads on GoogleCloud must be able to directly communicate to the workloads on-premises using a private IP range. What should you do?
  1. In Google Cloud, configure the VPC as a host for Shared VPC.
  2. In Google Cloud, configure the VPC for VPC Network Peering.
  3. Create bastion hosts both in your on-premises environment and on Google Cloud. Configure both as proxy servers using their public IP addresses.
  4. Set up Cloud VPN between the infrastructure on-premises and Google Cloud.

Answer: Set up Cloud VPN between the infrastructure on-premises and Google Cloud.

 
17. You want to select and configure a solution for storing and archiving data on Google Cloud Platform. You need to support compliance objectives for data from one geographic location. This data is archived after 30 days and needs to be accessed annually. What should you do?
  1. Select Multi-Regional Storage. Add a bucket lifecycle rule that archives data after 30 days to Coldline Storage.
  2. Select Multi-Regional Storage. Add a bucket lifecycle rule that archives data after 30 days to Nearline Storage.
  3. Select Regional Storage. Add a bucket lifecycle rule that archives data after 30 days to Nearline Storage.
  4. Select Regional Storage. Add a bucket lifecycle rule that archives data after 30 days to Coldline Storage.

Answer: Select Regional Storage. Add a bucket lifecycle rule that archives data after 30 
days to Coldline Storage.

 
18. Your company uses BigQuery for data warehousing. Over time, many different business units in your company have created 1000+ datasets across hundreds of projects. Your CIO wants you to examine all datasets to find tables that contain an employee_ssn column. You want to minimize effort in performing this task. What should you do?
  1. Go to Data Catalog and search for employee_ssn in the search box.
  2. Write a shell script that uses the bq command line tool to loop through all the projects in your organization.
  3. Write a script that loops through all the projects in your organization and runs a query on INFORMATION_SCHEMA.COLUMNS view to find the employee_ssn column.
  4. Write a Cloud Dataflow job that loops through all the projects in your organization and runs a query on INFORMATION_SCHEMA.COLUMNS view to find employee_ssn column.

Answer: Go to Data Catalog and search for employee_ssn in the search box.

 
19. You create a Deployment with 2 replicas in a Google Kubernetes Engine cluster that has a single preemptible node pool. After a few minutes, you use kubectl to examine the status of your Pod and observe that one of them is still in Pending status: What is the most likely cause?

Question no.94
  What is the most likely cause?
  1. The pending Pod's resource requests are too large to fit on a single node of the cluster.
  2. Too many Pods are already running in the cluster, and there are not enough resources left to schedule the pending Pod.
  3. The node pool is configured with a service account that does not have permission to pull the container image used by the pending Pod.
  4. The pending Pod was originally scheduled on a node that has been preempted between the creation of the Deployment and your verification of the Podsג€ TMstatus. It is currently being rescheduled on a new node.
( https://kubernetes.io/docs/tasks/debug-application-cluster/debug-application/


Answer: Too many Pods are already running in the cluster, and there are not enough resources 
left to schedule the pending Pod.

 
20. You want to find out when users were added to Cloud Spanner Identity Access Management (IAM) roles on your Google Cloud Platform (GCP) project. What should you do in 
the GCP Console?
  1. Open the Cloud Spanner console to review configurations.
  2. Open the IAM & admin console to review IAM policies for Cloud Spanner roles.
  3. Go to the Stackdriver Monitoring console and review information for Cloud Spanner.
  4. Go to the Stackdriver Logging console, review admin activity logs, and filter them for Cloud Spanner IAM roles.

Answer: Go to the Stackdriver Logging console, review admin activity logs, and filter them for 
Cloud Spanner IAM roles.

 
21. Your company implemented BigQuery as an enterprise data warehouse. Users from multiple business units run queries on this data warehouse. However, you notice that query costs for  BigQuery are very high, and you need to control costs. Which two methods should you use? 
(Choose two.)
  1. Split the users from business units to multiple projects.
  2. Apply a user- or project-level custom query quota for BigQuery data warehouse.
  3. Create separate copies of your BigQuery data warehouse for each business unit.
  4. Split your BigQuery data warehouse into multiple data warehouses for each business unit.
  5. Change your BigQuery query model from on-demand to flat rate. Apply the appropriate number of slots to each Project.

Answer:
2. Apply a user- or project-level custom query quota for BigQuery data warehouse.
4. Change your BigQuery query model from on-demand to flat rate. Apply the appropriate number of slots to each Project.

 
22. You are building a product on top of Google Kubernetes Engine (GKE). You have a single GKE cluster. For each of your customers, a Pod is running in that cluster, and your customers can run arbitrary code inside their Pod. You want to maximize the isolation between your customersג€TMPods. What should you do?
  1. Use Binary Authorization and whitelist only the container images used by your customersג€ TMPods.
  2. Use the Container Analysis API to detect vulnerabilities in the containers used by your customersג€ TMPods.
  3. Create a GKE node pool with a sandbox type configured to gvisor. Add the parameter runtimeClassName: gvisor to the specification of your customersג€ TMPods.
  4. Use the cos_containerd image for your GKE nodes. Add a nodeSelector with the value cloud.google.com/gke-os-distribution: cos_containerd to the specification of your customersג€ TMPods.

Answer: reate a GKE node pool with a sandbox type configured to gvisor. Add the parameter runtime ClassName: gvisor to the specification of your customersג€ TMPods.

 
23. Your customer has implemented a solution that uses Cloud Spanner and notices some read latency-related performance issues on one table. This table is accessed only by their users using a primary key. The table schema is shown below. You want to resolve the issue. What should you do?
Question no.98

You want to resolve the issue. What should you do?
  1. Remove the profile_picture field from the table.
  2. Add a secondary index on the person_id column.
  3. Change the primary key to not have monotonically increasing values.
  4. Create a secondary index using the following Data Definition Language DDL:
Question no.98

Answer: Change the primary key to not have monotonically increasing values. 


24. Your finance team wants to view the billing report for your projects. You want to make sure that the finance team does not get additional permissions to the project. What should you do?
  1. Add the group for the finance team to roles/billing user role.
  2. Add the group for the finance team to roles/billing admin role.
  3. Add the group for the finance team to roles/billing viewer role.
  4. Add the group for the finance team to roles/billing project/Manager role.

Answer: Add the group for the finance team to roles/billing viewer role.

 
25. Your organization has strict requirements to control access to Google Cloud projects. You need to enable your Site Reliability Engineers (SREs) to approve requests from the Google Cloud support team when an SRE opens a support case. You want to follow Google-recommended practices. What should you do?
  1. Add your SREs to roles/iam.roleAdmin role.
  2. Add your SREs to roles/accessapproval.approver role.
  3. Add your SREs to a group and then add this group to roles/iam.roleAdmin.role.
  4. Add your SREs to a group and then add this group to roles/accessapproval.approver role.

Answer: Add your SREs to a group and then add this group to roles/accessapproval.approver role.

 

Post a Comment