πŸ”

ACE β€” questions

Page 6 of 17 Β· 334 total questions.

Topic 1 Β· Question 101

You need to host an application on a Compute Engine instance in a project shared with other teams. You want to prevent the other teams from accidentally causing downtime on that application. Which feature should you use?

  • AUse a Shielded VM.
  • BUse a Preemptible VM.
  • CUse a sole-tenant node.
  • DEnable deletion protection on the instance. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Enable deletion protection on the instance.

Topic 1 Β· Question 102

Your organization needs to grant users access to query datasets in BigQuery but prevent them from accidentally deleting the datasets. You want a solution that follows Google-recommended practices. What should you do?

  • AAdd users to roles/bigquery user role only, instead of roles/bigquery dataOwner. (correct answer)
  • BAdd users to roles/bigquery dataEditor role only, instead of roles/bigquery dataOwner.
  • CCreate a custom role by removing delete permissions, and add users to that role only.
  • DCreate a custom role by removing delete permissions. Add users to the group, and then add the group to the custom role.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Add users to roles/bigquery user role only, instead of roles/bigquery dataOwner.

Explanation

BigQuery is a serverless, petabyte-scale data warehouse for fast SQL analytics with no infrastructure to manage.

Topic 1 Β· Question 103

You have a developer laptop with the Cloud SDK installed on Ubuntu. The Cloud SDK was installed from the Google Cloud Ubuntu package repository. You want to test your application locally on your laptop with Cloud Datastore. What should you do?

  • AExport Cloud Datastore data using gcloud datastore export.
  • BCreate a Cloud Datastore index using gcloud datastore indexes create.
  • CInstall the google-cloud-sdk-datastore-emulator component using the apt get install command. (correct answer)
  • DInstall the cloud-datastore-emulator component using the gcloud components install command.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Install the google-cloud-sdk-datastore-emulator component using the apt get install command.

Explanation

Datastore (Firestore in Datastore mode) is a serverless NoSQL database for user profiles and app state.

Topic 1 Β· Question 104

Your company set up a complex organizational structure on Google Cloud. The structure includes hundreds of folders and projects. Only a few team members should be able to view the hierarchical structure. You need to assign minimum permissions to these team members, and you want to follow Google-recommended practices. What should you do?

  • AAdd the users to roles/browser role.
  • BAdd the users to roles/iam.roleViewer role.
  • CAdd the users to a group, and add this group to roles/browser. (correct answer)
  • DAdd the users to a group, and add this group to roles/iam.roleViewer role.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Add the users to a group, and add this group to roles/browser.

Topic 1 Β· Question 105

Your company has a single sign-on (SSO) identity provider that supports Security Assertion Markup Language (SAML) integration with service providers. Your company has users in Cloud Identity. You would like users to authenticate using your company's SSO provider. What should you do?

  • AIn Cloud Identity, set up SSO with Google as an identity provider to access custom SAML apps.
  • BIn Cloud Identity, set up SSO with a third-party identity provider with Google as a service provider. (correct answer)
  • CObtain OAuth 2.0 credentials, configure the user consent screen, and set up OAuth 2.0 for Mobile & Desktop Apps.
  • DObtain OAuth 2.0 credentials, configure the user consent screen, and set up OAuth 2.0 for Web Server Applications.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: In Cloud Identity, set up SSO with a third-party identity provider with Google as a service provider.

Explanation

Cloud Identity manages users, groups, and device policies as a managed identity platform.

Topic 1 Β· Question 106

Your organization has a dedicated person who creates and manages all service accounts for Google Cloud projects. You need to assign this person the minimum role for projects. What should you do?

  • AAdd the user to roles/iam.roleAdmin role.
  • BAdd the user to roles/iam.securityAdmin role.
  • CAdd the user to roles/iam.serviceAccountUser role.
  • DAdd the user to roles/iam.serviceAccountAdmin role. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Add the user to roles/iam.serviceAccountAdmin role.

Explanation

Cloud IAM grants fine-grained, least-privilege access to Google Cloud resources.

Topic 1 Β· Question 107

You are building an archival solution for your data warehouse and have selected Cloud Storage to archive your data. Your users need to be able to access this archived data once a quarter for some regulatory requirements. You want to select a cost-efficient option. Which storage option should you use?

  • ACold Storage (correct answer)
  • BNearline Storage
  • CRegional Storage
  • DMulti-Regional Storage
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Cold Storage.

Topic 1 Β· Question 108

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?

  • AEnable node auto-provisioning on the GKE cluster.
  • BCreate a VerticalPodAutscaler for those workloads.
  • CCreate a node pool with preemptible VMs and GPUs attached to those VMs.
  • DCreate a node pool of instances with GPUs, and enable autoscaling on this node pool with a minimum size of 1. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Create a node pool of instances with GPUs, and enable autoscaling on this node pool with a minimum size of 1. This option delivers the requirement at the lowest cost.

Topic 1 Β· Question 109

Your organization has user identities in Active Directory. Your organization wants to use Active Directory as their source of truth for identities. Your organization wants to have full control over the Google accounts used by employees for all Google services, including your Google Cloud Platform (GCP) organization. What should you do?

  • AUse Google Cloud Directory Sync (GCDS) to synchronize users into Cloud Identity. (correct answer)
  • BUse the cloud Identity APIs and write a script to synchronize users to Cloud Identity.
  • CExport users from Active Directory as a CSV and import them to Cloud Identity via the Admin Console.
  • DAsk each employee to create a Google account using self signup. Require that each employee use their company email address and password.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Use Google Cloud Directory Sync (GCDS) to synchronize users into Cloud Identity.

Explanation

Cloud Identity manages users, groups, and device policies as a managed identity platform.

Topic 1 Β· Question 110

You have successfully created a development environment in a project for an application. This application uses Compute Engine and Cloud SQL. Now you need to create a production environment for this application. The security team has forbidden the existence of network routes between these 2 environments and has asked you to follow Google-recommended practices. What should you do?

  • ACreate a new project, enable the Compute Engine and Cloud SQL APIs in that project, and replicate the setup you have created in the development environment. (correct answer)
  • BCreate a new production subnet in the existing VPC and a new production Cloud SQL instance in your existing project, and deploy your application using those resources.
  • CCreate a new project, modify your existing VPC to be a Shared VPC, share that VPC with your new project, and replicate the setup you have in the development environment in that new project in the Shared VPC.
  • DAsk the security team to grant you the Project Editor role in an existing production project used by another division of your company. Once they grant you that role, replicate the setup you have in the development environment in that project.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Create a new project, enable the Compute Engine and Cloud SQL APIs in that project, and replicate the setup you have created in the development environment.

Explanation

Compute Engine provides configurable virtual machines when you need full control of the OS. Cloud SQL is a managed relational database (MySQL/PostgreSQL/SQL Server) that handles patching, backups, and failover.

Topic 1 Β· Question 111

Your management has asked an external auditor to review all the resources in a specific project. The security team has enabled the Organization Policy called Domain Restricted Sharing on the organization node by specifying only your Cloud Identity domain. You want the auditor to only be able to view, but not modify, the resources in that project. What should you do?

  • AAsk the auditor for their Google account, and give them the Viewer role on the project.
  • BAsk the auditor for their Google account, and give them the Security Reviewer role on the project.
  • CCreate a temporary account for the auditor in Cloud Identity, and give that account the Viewer role on the project. (correct answer)
  • DCreate a temporary account for the auditor in Cloud Identity, and give that account the Security Reviewer role on the project.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Create a temporary account for the auditor in Cloud Identity, and give that account the Viewer role on the project.

Explanation

Cloud Identity manages users, groups, and device policies as a managed identity platform.

Topic 1 Β· Question 112

You have a workload running on Compute Engine that is critical to your business. You want to ensure that the data on the boot disk of this workload is backed up regularly. You need to be able to restore a backup as quickly as possible in case of disaster. You also want older backups to be cleaned automatically to save on cost. You want to follow Google-recommended practices. What should you do?

  • ACreate a Cloud Function to create an instance template.
  • BCreate a snapshot schedule for the disk using the desired interval. (correct answer)
  • CCreate a cron job to create a new disk from the disk using gcloud.
  • DCreate a Cloud Task to create an image and export it to Cloud Storage.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Create a snapshot schedule for the disk using the desired interval.

Topic 1 Β· Question 113

You need to assign a Cloud Identity and Access Management (Cloud IAM) role to an external auditor. The auditor needs to have permissions to review your Google Cloud Platform (GCP) Audit Logs and also to review your Data Access logs. What should you do?

  • AAssign the auditor the IAM role roles/logging.privateLogViewer. Perform the export of logs to Cloud Storage.
  • BAssign the auditor the IAM role roles/logging.privateLogViewer. Direct the auditor to also review the logs for changes to Cloud IAM policy. (correct answer)
  • CAssign the auditor's IAM user to a custom role that has logging.privateLogEntries.list permission. Perform the export of logs to Cloud Storage.
  • DAssign the auditor's IAM user to a custom role that has logging.privateLogEntries.list permission. Direct the auditor to also review the logs for changes to Cloud IAM policy.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Assign the auditor the IAM role roles/logging.privateLogViewer. Direct the auditor to also review the logs for changes to Cloud IAM policy.

Explanation

Cloud IAM grants fine-grained, least-privilege access to Google Cloud resources.

Topic 1 Β· Question 114

You are managing several Google Cloud Platform (GCP) projects and need access to all logs for the past 60 days. You want to be able to explore and quickly analyze the log contents. You want to follow Google-recommended practices to obtain the combined logs for all projects. What should you do?

  • ANavigate to Stackdriver Logging and select resource.labels.project_id="*"
  • BCreate a Stackdriver Logging Export with a Sink destination to a BigQuery dataset. Configure the table expiration to 60 days. (correct answer)
  • CCreate a Stackdriver Logging Export with a Sink destination to Cloud Storage. Create a lifecycle rule to delete objects after 60 days.
  • DConfigure a Cloud Scheduler job to read from Stackdriver and store the logs in BigQuery. Configure the table expiration to 60 days.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Create a Stackdriver Logging Export with a Sink destination to a BigQuery dataset. Configure the table expiration to 60 days.

Explanation

BigQuery is a serverless, petabyte-scale data warehouse for fast SQL analytics with no infrastructure to manage. Cloud Operations (formerly Stackdriver) provides monitoring, logging, and tracing for reliability.

Topic 1 Β· Question 115

You need to reduce GCP service costs for a division of your company using the fewest possible steps. You need to turn off all configured services in an existing GCP project. What should you do?

  • A1. Verify that you are assigned the Project Owners IAM role for this project. 2. Locate the project in the GCP console, click Shut down and then enter the project ID. (correct answer)
  • B1. Verify that you are assigned the Project Owners IAM role for this project. 2. Switch to the project in the GCP console, locate the resources and delete them.
  • C1. Verify that you are assigned the Organizational Administrator IAM role for this project. 2. Locate the project in the GCP console, enter the project ID and then click Shut down.
  • D1. Verify that you are assigned the Organizational Administrators IAM role for this project. 2. Switch to the project in the GCP console, locate the resources and delete them.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: 1. Verify that you are assigned the Project Owners IAM role for this project. 2. Locate the project in the GCP console, click Shut down and then enter the project ID.

Explanation

Cloud IAM grants fine-grained, least-privilege access to Google Cloud resources.

Topic 1 Β· Question 116

You are configuring service accounts for an application that spans multiple projects. Virtual machines (VMs) running in the web-applications project need access to BigQuery datasets in crm-databases-proj. You want to follow Google-recommended practices to give access to the service account in the web-applications project. What should you do?

  • AGive "project owner" for web-applications appropriate roles to crm-databases-proj.
  • BGive "project owner" role to crm-databases-proj and the web-applications project.
  • CGive "project owner" role to crm-databases-proj and bigquery.dataViewer role to web-applications.
  • DGive bigquery.dataViewer role to crm-databases-proj and appropriate roles to web-applications. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Give bigquery.dataViewer role to crm-databases-proj and appropriate roles to web-applications.

Explanation

BigQuery is a serverless, petabyte-scale data warehouse for fast SQL analytics with no infrastructure to manage.

Topic 1 Β· Question 117

An employee was terminated, but their access to Google Cloud was not removed until 2 weeks later. You need to find out if this employee accessed any sensitive customer information after their termination. What should you do?

  • AView System Event Logs in Cloud Logging. Search for the user's email as the principal.
  • BView System Event Logs in Cloud Logging. Search for the service account associated with the user.
  • CView Data Access audit logs in Cloud Logging. Search for the user's email as the principal. (correct answer)
  • DView the Admin Activity log in Cloud Logging. Search for the service account associated with the user.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: View Data Access audit logs in Cloud Logging. Search for the user's email as the principal.

Explanation

Cloud Logging centralizes, stores, and analyzes logs across services.

Topic 1 Β· Question 118

You need to create a custom IAM role for use with a GCP service. All permissions in the role must be suitable for production use. You also want to clearly share with your organization the status of the custom role. This will be the first version of the custom role. What should you do?

  • AUse permissions in your role that use the 'supported' support level for role permissions. Set the role stage to ALPHA while testing the role permissions. (correct answer)
  • BUse permissions in your role that use the 'supported' support level for role permissions. Set the role stage to BETA while testing the role permissions.
  • CUse permissions in your role that use the 'testing' support level for role permissions. Set the role stage to ALPHA while testing the role permissions.
  • DUse permissions in your role that use the 'testing' support level for role permissions. Set the role stage to BETA while testing the role permissions.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Use permissions in your role that use the 'supported' support level for role permissions. Set the role stage to ALPHA while testing the role permissions.

Topic 1 Β· Question 119

Your company has a large quantity of unstructured data in different file formats. You want to perform ETL transformations on the data. You need to make the data accessible on Google Cloud so it can be processed by a Dataflow job. What should you do?

  • AUpload the data to BigQuery using the bq command line tool.
  • BUpload the data to Cloud Storage using the gsutil command line tool. (correct answer)
  • CUpload the data into Cloud SQL using the import function in the console.
  • DUpload the data into Cloud Spanner using the import function in the console.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Upload the data to Cloud Storage using the gsutil command line tool.

Explanation

Cloud Storage provides durable, scalable object storage that is fully managed.

Topic 1 Β· Question 120

You need to manage multiple Google Cloud projects in the fewest steps possible. You want to configure the Google Cloud SDK command line interface (CLI) so that you can easily manage multiple projects. What should you do?

  • A1. Create a configuration for each project you need to manage. 2. Activate the appropriate configuration when you work with each of your assigned Google Cloud projects. (correct answer)
  • B1. Create a configuration for each project you need to manage. 2. Use gcloud init to update the configuration values when you need to work with a non-default project
  • C1. Use the default configuration for one project you need to manage. 2. Activate the appropriate configuration when you work with each of your assigned Google Cloud projects.
  • D1. Use the default configuration for one project you need to manage. 2. Use gcloud init to update the configuration values when you need to work with a non-default project.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: 1. Create a configuration for each project you need to manage. 2. Activate the appropriate configuration when you work with each of your assigned Google Cloud projects.

Showing questions 101–120 of 334 Β· Page 6 of 17