Pass the Google Google Cloud Certified Associate-Cloud-Engineer Questions and answers with CertsForce

Viewing page 5 out of 10 pages
Viewing questions 41-50 out of questions
Questions # 41:

You have developed a containerized web application that will serve Internal colleagues during business hours. You want to ensure that no costs are incurred outside of the hours the application is used. You have just created a new Google Cloud project and want to deploy the application. What should you do?

Options:

A.

Deploy the container on Cloud Run for Anthos, and set the minimum number of instances to zero


B.

Deploy the container on Cloud Run (fully managed), and set the minimum number of instances to zero.


C.

Deploy the container on App Engine flexible environment with autoscaling. and set the value min_instances to zero in the app yaml


D.

Deploy the container on App Engine flexible environment with manual scaling, and set the value instances to zero in the app yaml


Expert Solution
Questions # 42:

Your learn wants to deploy a specific content management system (CMS) solution lo Google Cloud. You need a quick and easy way to deploy and install the solution. What should you do?

Options:

A.

Search for the CMS solution in Google Cloud Marketplace. Use gcloud CLI to deploy the solution.


B.

Search for the CMS solution in Google Cloud Marketplace. Deploy the solution directly from Cloud Marketplace.


C.

Search for the CMS solution in Google Cloud Marketplace. Use Terraform and the Cloud Marketplace ID to deploy the solution with the appropriate parameters.


D.

Use the installation guide of the CMS provider. Perform the installation through your configuration management system.


Expert Solution
Questions # 43:

You are creating a Google Kubernetes Engine (GKE) cluster with a cluster autoscaler feature enabled. You need to make sure that each node of the cluster will run a monitoring pod that sends container metrics to a third-party monitoring solution. What should you do?

Options:

A.

Deploy the monitoring pod in a StatefulSet object.


B.

Deploy the monitoring pod in a DaemonSet object.


C.

Reference the monitoring pod in a Deployment object.


D.

Reference the monitoring pod in a cluster initializer at the GKE cluster creation time.


Expert Solution
Questions # 44:

You have a managed instance group comprised of preemptible VM's. All of the VM's keepdeleting and recreating themselves every minute. What is a possible cause of thisbehavior?

Options:

A.

Your zonal capacity is limited, causing all preemptible VM's to be shutdown torecover capacity. Try deploying your group to another zone.


B.

You have hit your instance quota for the region.


C.

Your managed instance group's VM's are toggled to only last 1 minute inpreemptible settings.


D.

Your managed instance group's health check is repeatedly failing, either to amisconfigured health check or misconfigured firewall rules not allowing the healthcheck to access the instance


Expert Solution
Questions # 45:

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?

Options:

A.

Enable Cloud CDN on the website frontend.


B.

Enable ‘Share publicly’ on the PDF file objects.


C.

Set Content-Type metadata to application/pdf on the PDF file objects.


D.

Add a label to the storage bucket with a key of Content-Type and value of application/pdf.


Expert Solution
Questions # 46:

Your web application is hosted on Cloud Run and needs to query a Cloud SOL database. Every morning during a traffic spike, you notice API quota errors in Cloud SOL logs. The project has already reached the maximum API quota. You want to make a configuration change to mitigate the issue. What should you do?

Options:

A.

Modify the minimum number of Cloud Run instances.


B.

Set a minimum concurrent requests environment variable for the application.


C.

Modify the maximum number of Cloud Run instances.


D.

Use traffic splitting.


Expert Solution
Questions # 47:

An external member of your team needs list access to compute images and disks in one of your projects. You want to follow Google-recommended practices when you grant the required permissions to this user. What should you do?

Options:

A.

Create a custom role, and add all the required compute.disks.list and compute, images.list permissions as includedPermissions. Grant the custom role to the user at the project level.


B.

Create a custom role based on the Compute Image User role Add the compute.disks, list to theincludedPermissions field Grant the custom role to the user at the project level


C.

Grant the Compute Storage Admin role at the project level.


D.

Create a custom role based on the Compute Storage Admin role. Exclude unnecessary permissions from the custom role. Grant the custom role to the user at the project level.


Expert Solution
Questions # 48:

You are running a data warehouse on BigQuery. A partner company is offering a recommendation engine based on the data in your data warehouse. The partner company is also running their application on Google Cloud. They manage the resources in their own project, but they need access to the BigQuery dataset in your project. You want to provide the partner company with access to the dataset What should you do?

Options:

A.

Create a Service Account in your own project, and grant this Service Account access to BigGuery in your project


B.

Create a Service Account in your own project, and ask the partner to grant this Service Account access to BigQuery in their project


C.

Ask the partner to create a Service Account in their project, and have them give the Service Account access to BigQuery in their project


D.

Ask the partner to create a Service Account in their project, and grant their Service Account access to the BigQuery dataset in your project


Expert Solution
Questions # 49:

You have a single binary application that you want to run on Google Cloud Platform. You decided to automatically scale the application based on underlying infrastructure CPU usage. Your organizational policies require you to use virtual machines directly. You need to ensure that the application scaling is operationally efficient and completed as quickly as possible. What should you do?

Options:

A.

Create a Google Kubernetes Engine cluster, and use horizontal pod autoscaling to scale the application.


B.

Create an instance template, and use the template in a managed instance group with autoscaling configured.


C.

Create an instance template, and use the template in a managed instance group that scales up and down based on the time of day.


D.

Use a set of third-party tools to build automation around scaling the application up and down, based on Stackdriver CPU usage monitoring.


Expert Solution
Questions # 50:

Your team is using Linux instances on Google Cloud. You need to ensure that your team logs in to these instances in the most secure and cost efficient way. What should you do?

Options:

A.

Attach a public IP to the instances and allow incoming connections from the internet on port 22 for SSH.


B.

Use a third party tool to provide remote access to the instances.


C.

Use the gcloud compute ssh command with the --tunnel-through-iap flag. Allow ingress traffic from the IP range 35.235.240.0/20 on port 22.


D.

Create a bastion host with public internet access. Create the SSH tunnel to the instance through the bastion host.


Expert Solution
Viewing page 5 out of 10 pages
Viewing questions 41-50 out of questions