Summer Certification Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: force70

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

Viewing page 8 out of 11 pages
Viewing questions 71-80 out of questions
Questions # 71:

You need to create and manage service accounts for your workloads running on Google Cloud. You want to follow Google-recommended practices. What should you do?

Choose 2 answers

Options:

A.

Create as few service accounts as possible.


B.

Delete any unused service accounts immediately.


C.

Create single-purpose service accounts.


D.

Manage service accounts as resources.


E.

Use random names for the service accounts.


Expert Solution
Questions # 72:

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?

Options:

A.

Create a custom role with view-only project permissions. Add the user ' s account to the custom role.


B.

Create a custom role with view-only service permissions. Add the user ' s account to the custom role.


C.

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


D.

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


Expert Solution
Questions # 73:

You have an application that reads data from a Pub/Sub topic. During local development, you authenticated using your personal credentials to test the application. You now want to deploy the application to Vertex AI and have created a new service account to be used as the application ' s identity. You need to ensure that the deployed application can still access the Pub/Sub topic. What should you do?

Options:

A.

Extract your access token by using the gcloud auth print-access-token command, and store it with the application.


B.

Grant the relevant IAM roles to the service account used as your agent identity.


C.

Create a secret in Secret Manager to store your personal credentials, and configure the application ' s authentication code to use this secret.


D.

Generate a JSON private key for the service account, and upload the key as Vertex AI metadata.


Expert Solution
Questions # 74:

A team of data scientists infrequently needs to use a Google Kubernetes Engine (GKE) cluster that you manage. They require GPUs for some long-running, non-restartable jobs. You want to minimize cost. What should you do?

Options:

A.

Enable node auto-provisioning on the GKE cluster.


B.

Create a VerticalPodAutscaler for those workloads.


C.

Create a node pool with preemptible VMs and GPUs attached to those VMs.


D.

Create a node pool of instances with GPUs, and enable autoscaling on this node pool with a minimum size of 1.


Expert Solution
Questions # 75:

You are using the gcloud container clusters create app-cluster command to deploy a Google Kubernetes Engine (GKE) cluster in a new Google Cloud project. The command fails with the following error:

ERROR: (gcloud.container.clusters.create) ResponseError: code=403, message=Kubernetes Engine API has not been used in the project before or it is disabled.

You need to resolve the issue. What should you do?

Options:

A.

Run the gcloud services enable container.googleapis.com command, and then run the cluster creation command again.


B.

Disable the " Require enabling Workload Identity Federation for GKE " organization policy, and then run the cluster creation command again.


C.

Rerun the command with the --enable-autoprovisioning flag.


D.

Add the Kubernetes Engine Admin IAM role to your user account, and then run the cluster creation command again.


Expert Solution
Questions # 76:

Your coworker has helped you set up several configurations for gcloud. You ' ve noticed that you ' re running commands against the wrong project. Being new to the company, you haven ' t yet memorized any of the projects. With the fewest steps possible, what ' s the fastest way to switch to the correct configuration?

Options:

A.

Run gcloud configurations list followed by gcloud configurations activate .


B.

Run gcloud config list followed by gcloud config activate.


C.

Run gcloud config configurations list followed by gcloud config configurations activate.


D.

Re-authenticate with the gcloud auth login command and select the correct configurations on login.


Expert Solution
Questions # 77:

(Your company’s developers use an automation that you recently built to provision Linux VMs in Compute Engine within a Google Cloud project to perform various tasks. You need to manage the Linux account lifecycle and access for these users. You want to follow Google-recommended practices to simplify access management while minimizing operational costs. What should you do?)

Options:

A.

Enable OS Login for all VMs. Use IAM roles to grant user permissions.


B.

Enable OS Login for all VMs. Write custom startup scripts to update user permissions.


C.

Require your developers to create public SSH keys. Make the owner of the public key the root user.


D.

Require your developers to create public SSH keys. Write custom startup scripts to update user permissions.


Expert Solution
Questions # 78:

You have sensitive data stored in three Cloud Storage buckets and have enabled data access logging. You want to verify activities for a particular user for these buckets, using the fewest possible steps. You need to verify the addition of metadata labels and which files have been viewed from those buckets. What should you do?

Options:

A.

Using the GCP Console, filter the Activity log to view the information.


B.

Using the GCP Console, filter the Stackdriver log to view the information.


C.

View the bucket in the Storage section of the GCP Console.


D.

Create a trace in Stackdriver to view the information.


Expert Solution
Questions # 79:

You need to monitor resources that are distributed over different projects in Google Cloud Platform. You want to consolidate reporting under the same Stackdriver Monitoring dashboard. What should you do?

Options:

A.

Use Shared VPC to connect all projects, and link Stackdriver to one of the projects.


B.

For each project, create a Stackdriver account. In each project, create a service account for that project and grant it the role of Stackdriver Account Editor in all other projects.


C.

Configure a single Stackdriver account, and link all projects to the same account.


D.

Configure a single Stackdriver account for one of the projects. In Stackdriver, create a Group and add the other project names as criteria for that Group.


Expert Solution
Questions # 80:

You have a website hosted on App Engine standard environment. You want 1% of your users to see a new test version of the website. You want to minimize complexity. What should you do?

Options:

A.

Deploy the new version in the same application and use the --migrate option.


B.

Deploy the new version in the same application and use the --splits option to give a weight of 99 to the current version and a weight of 1 to the new version.


C.

Create a new App Engine application in the same project. Deploy the new version in that application. Use the App Engine library to proxy 1% of the requests to the new version.


D.

Create a new App Engine application in the same project. Deploy the new version in that application. Configure your network load balancer to send 1% of the traffic to that new application.


Expert Solution
Viewing page 8 out of 11 pages
Viewing questions 71-80 out of questions