🔍

ACE — questions

Page 17 of 17 · 334 total questions.

Topic 1 · Question 321

You are deploying a large, multi-tiered application with more than 1,000 IP addresses in a Google Cloud project that needs to be securely isolated. The application includes the: 1. web tier with frontend servers for public traffic, 2. application tier with servers running core application logic that only need access from the web tier, and 3. database tier with database servers that only need access from the application tier. You want to minimize cost, complexity, and administrative overhead in the network architecture. What should you do?

  • ACreate a /24 Shared VPC with separate subnets for each tier. Use firewall rules that reference network tags to control traffic.
  • BCreate one custom mode /16 VPC with three subnets. Place each tier in its own subnet and use firewall rules that reference IP subnets to control traffic. (correct answer)
  • CDeploy each tier into a separate custom mode /16 VPUse VPC Network Peering to securely connect each custom mode VPManage firewall rules individually in each VPC.
  • DDeploy each tier in a /24 VPC by using network tags to identify instances. Implement firewall rules for fine-grained network segmentation.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Create one custom mode /16 VPC with three subnets. Place each tier in its own subnet and use firewall rules that reference IP subnets to control traffic.

Explanation

A VPC provides a global, software-defined private network for your Google Cloud resources. This option delivers the requirement at the lowest cost.

Topic 1 · Question 322

Your company is closely monitoring their cloud spend. You need to allow different teams to monitor their Google Cloud costs. You must ensure that team members receive notifications when their cloud spend reaches certain thresholds and give team members the ability to create dashboards for additional insights with detailed billing data. You want to follow Google-recommended practices and minimize engineering costs. What should you do?

  • ADeploy Grafana to Compute Engine. Create a dashboard for each team that uses the data from the Cloud Billing API. Ask each team to create their own alerts in Cloud Monitoring.
  • BSet up alerts for each team based on required thresholds. Create a shell script to read data from the Cloud Billing API, and push the results to BigQuery. Grant team members access to BigQuery.
  • CDeploy Grafana to Compute Engine. Create a dashboard for each team that uses the data from the Cloud Billing Budget API. Ask each team to create their own alerts in Grafana.
  • DSet up alerts for each team based on required thresholds. Set up billing exports to BigQuery. Grant team members access to BigQuery. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Set up alerts for each team based on required thresholds. Set up billing exports to BigQuery. Grant team members access to BigQuery.

Explanation

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

Topic 1 · Question 323

Your company plans to migrate its on-premises PostgreSQL database to Google Cloud. The workloads are demanding, requiring fast transactional and analytical performance. You need to select a fully managed database service on Google Cloud. Your solution must also be able to synchronously replicate and optimize the storage layer. What should you do?

  • AMigrate the database to Cloud SQL for PostgreSQL by using Database Migration Service.
  • BUse the psql client installed on a Compute Engine instance. Connect to the Cloud SQL instance to perform the database migration.
  • CMigrate the database to AlloyDB for PostgreSQL by using Database Migration Service. (correct answer)
  • DCreate a Compute Engine instance. Install and configure PostgreSQL on the instance, and migrate the database.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Migrate the database to AlloyDB for PostgreSQL by using Database Migration Service.

Explanation

AlloyDB is a managed PostgreSQL-compatible database for demanding transactional and analytical workloads. Database Migration Service migrates databases to Cloud SQL/AlloyDB with minimal downtime.

Topic 1 · Question 324

You are deploying a new frontend service for an online game. The service was built using a micro-frontend architecture and consists of multiple containers that interact using a service mesh. You need to control the number of compute instances that are running at a given time. What should you do?

  • ACreate a Compute Engine instance template using a container-optimized virtual machine (VM) instance, and create a startup script that installs Istio service mesh. Deploy the service, and create a managed instance group with a fixed number of instances to run the service.
  • BCreate a Cloud Run service specifying the minimum and maximum number of instances, and configure the service to use Cloud Service Mesh. Deploy all the containers to the service.
  • CCreate a Google Kubernetes Engine (GKE) Autopilot cluster, and enable Cloud Service Mesh. Deploy the service, and use vertical and horizontal Pod autoscaling to control the cluster size.
  • DCreate a Google Kubernetes Engine (GKE) Standard cluster with a node pool that has a fixed number of nodes. Enable the Cloud Service Mesh add-on, and deploy the service. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Create a Google Kubernetes Engine (GKE) Standard cluster with a node pool that has a fixed number of nodes. Enable the Cloud Service Mesh add-on, and deploy the service.

Explanation

Google Kubernetes Engine runs managed Kubernetes for containerized, portable workloads. Google Kubernetes Engine runs managed Kubernetes for containerized workloads.

Topic 1 · Question 325

You are deploying a new internal web application behind an internal Application Load Balancer. The application must be accessible from both the VPC network and on-premises network using the domain name internal.altostrat.com. This name must not be resolvable from the public internet. Your on-premises network is connected to the VPC network by using Cloud VPN, and you have configured an inbound server policy. You need to resolve the domain name with the least administrative overhead. What should you do?

  • ACreate an A record on the on-premises DNS server that points to the load balancer’s IP address.
  • BCreate a Cloud DNS managed private zone, authorize the VPC network to use it, and add an A record that points to the load balancer’s IP address. (correct answer)
  • CCreate a Cloud DNS managed public zone, and add an A record that points to the load balancer’s IP address.
  • DOn each employee’s workstation, edit the local HOSTS file to map the domain name to the load balancer’s IP address.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Create a Cloud DNS managed private zone, authorize the VPC network to use it, and add an A record that points to the load balancer’s IP address.

Explanation

A load balancer distributes traffic across healthy backends in multiple zones for availability and scale. Cloud DNS provides scalable, authoritative DNS with health checks and routing policies. A VPC provides a global, software-defined private network for your Google Cloud resources.

Topic 1 · Question 326

Your organization has created hundreds of service accounts for different applications hosted on-premises and in other clouds that use Google Cloud APIs. You need to audit the service account keys that have been created and identify the keys that are older than 90 days. What should you do?

  • AExecute the gcloud asset search-all-resources--scope="organizations/[ORG_ID]"--query="createTime < [DATE_90_DAYS_AGO]"--asset-types="apikeys.googleapis.com/Key"--order-by="createTime" command.
  • BExecute the gcloud iam service-accounts list--filter="createTime < [DATE_90_DAYS_AGO]" command.
  • CExecute the gcloud tans keys list--filter="createTime < [DATE_90_DAYS_AGO]" command.
  • DExecute the gcloud asset search-all-resources--scope="organizations/[ORG_ID]"--query="createTime < [DATE_90_DAYS_AGO]"--asset-types="iam.googleapis.com/ServiceAccountKey"--order-by="createTime" command. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Execute the gcloud asset search-all-resources--scope="organizations/[ORG_ID]"--query="createTime < [DATE_90_DAYS_AGO]"--asset-types="iam.googleapis.com/ServiceAccountKey"--order-by="createTime" command.

Explanation

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

Topic 1 · Question 327

You are managing Google Cloud infrastructure with Terraform. The Terraform configuration files are stored in a Git repository. You need to implement a solution that enables multiple team members to work on the Terraform configurations concurrently without conflicts and ensures that sensitive values are not persisted to local machines. What should you do?

  • AConfigure a local backend in Terraform, and deploy all changes by using a shared account on a bastion server.
  • BConfigure a Cloud Storage backend in Terraform. (correct answer)
  • CConfigure a local backend in Terraform, and store the state file in a Git repository.
  • DConfigure a local backend in Terraform, and manually share the Terraform state file with team members after every change.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Configure a Cloud Storage backend in Terraform.

Explanation

Cloud Storage provides durable, scalable object storage that is fully managed. Terraform provisions Google Cloud infrastructure as code repeatably.

Topic 1 · Question 328

You work for a large company that recently acquired three smaller startups. All of the startups’ Google Cloud resources must be centrally managed under a single Google Cloud organization. However, each startup has its own budget and financial reporting structure. You need to ensure that each startup receives a separate monthly invoice for its Google Cloud consumption. What should you do?

  • ACreate a Google Cloud organization with a folder for each startup. Share a single Cloud Billing account, and use the detailed billing export to allocate costs.
  • BCreate a Google Cloud organization with a folder for each startup. Configure each startup to have its own Cloud Billing account. (correct answer)
  • CCreate a Google Cloud organization for each startup. Configure each startup to have its own Cloud Billing account.
  • DCreate a Google Cloud organization for each startup. Share a single Cloud Billing account, and use the detailed billing export to allocate costs.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Create a Google Cloud organization with a folder for each startup. Configure each startup to have its own Cloud Billing account.

Topic 1 · Question 329

You are troubleshooting a complex application failure. You found several cryptic error messages containing no personally identifiable information (PII) in Cloud Logging that you do not recognize. You need to understand the meaning of these logs and determine what actions to take as quickly as possible. What should you do first?

  • AManually copy the error messages, and search for them in public forums and documentation.
  • BUse Cloud Profiler to analyze the application’s performance during the time of the errors.
  • CUse the “Explain this log entry” feature in Logs Explorer, and start a conversation with Gemini. (correct answer)
  • DSearch the application source code to determine the cause of the errors.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Use the “Explain this log entry” feature in Logs Explorer, and start a conversation with Gemini.

Topic 1 · Question 330

You are managing logging for your organization by aggregating logs into a centralized Google Cloud project. The aggregated logs come from two source projects: one for a frontend application and one for a backend application. You need to grant the frontend development team access to view all logs originating from the frontend project and only error-level logs from the backend project. The team must not be able to view any other logs. You want to follow the principle of least privilege and develop a cost-efficient solution. What should you do?

  • A• In the centralized logging project, craft a query that combines all logs from the frontend project and error-level logs from the backend project, and grant the logging.viewer IAM role.• Save and share this query with the frontend team for them to use in the Logs Explorer.• Request the frontend team not to use any other query.
  • B• Create two separate log sinks in the centralized project.• Configure one sink to route all frontend logs to a new, dedicated Cloud Storage bucket.• Configure a second sink to route only the error-level logs from the backend project to that same bucket.• Grant the frontend team read-only access to this bucket.
  • C• Grant the frontend team the logging.viewer IAM role on both the frontend project and the backend project.• Instruct the developers to use a specific filter in the Logs Explorer to find the logs they need.
  • D• In the centralized logging project, create a log view on the bucket that contains the aggregated logs.• Filter the view to include all logs from the frontend project and only logs with a severity level of ERROR from the backend project.• Grant the frontend team the logging.viewAccessor IAM role on this specific view. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: • In the centralized logging project, create a log view on the bucket that contains the aggregated logs.• Filter the view to include all logs from the frontend project and only logs with a severity level of ERROR from...

Explanation

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

Topic 1 · Question 331

You are managing resources in a Google Cloud project. A new service account needs the ability to invoke a Cloud Run service. You need to gain the permissions to modify IAM policies for service accounts while adhering to the principle of least privilege. What should you do?

  • ARequest the roles/iam.serviceAccountAdmin role for your user account. (correct answer)
  • BRequest the roles/run.invoker role for your user account.
  • CRequest the Editor role for your user account.
  • DRequest the Owner role for your user account.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Request the roles/iam.serviceAccountAdmin role for your user account.

Explanation

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

Topic 1 · Question 332

You manage IAM policies for your organization’s Google Cloud project. A new operations team needs the capability to start, stop, and reset existing Compute Engine VM instances within this project for basic troubleshooting. Due to strict security requirements, the operations team must be prevented from deleting any instances or modifying any networking or configuration settings. You need to grant the minimum necessary permissions to the team members. What should you do?

  • AGrant the operations team the roles/writer IAM role, and add the resource.type =='compute.googleapis.com/Instance' condition to the role.
  • BGrant the operations team the predefined roles/compute.instanceAdmin.v1 IAM role on the project. Apply an IAM condition to exclude the compute.instances.delete permission.
  • CCreate a custom IAM role that includes only the compute.instances.start, compute.instances.stop, and compute.instances.reset permissions. Assign this role to the operations team on the project. (correct answer)
  • DGrant the operations team the predefined roles/compute.viewer IAM role to allow them to view the instances. Instruct them to use the Google Cloud Console’s basic actions such as starting, stopping, and resetting.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Create a custom IAM role that includes only the compute.instances.start, compute.instances.stop, and compute.instances.reset permissions. Assign this role to the operations team on the project.

Explanation

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

Topic 1 · Question 333

You are responsible for Google Cloud governance at your company and recently implemented a new, automated process for provisioning Google Cloud projects. You have discovered several projects that were manually created before the implementation of this new process. You need to identify the creators of these projects to inform them of the new process. What should you do?

  • AReview the value of the creator label attached to the project to find the project’s creator.
  • BUse Resource Manager to identify the responsible department from the folder and project hierarchy.
  • CReview the Cloud Billing account linked to the project, and then contact the owner of that billing account.
  • DUse the IAM page in the Google Cloud console to identify the user with the Owner role. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Use the IAM page in the Google Cloud console to identify the user with the Owner role.

Explanation

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

Topic 1 · Question 334

You are managing your company's archival records that are stored in a Cloud Storage bucket using the Multi-Regional storage class. These objects are rarely accessed after 90 days but must be retained indefinitely to meet regulatory compliance requirements. You need to implement a cost-effective process that automatically transitions these objects to the lowest-cost storage class suitable for long-term retention immediately after the 90-day period. What should you do?

  • AEnable Object Versioning on the bucket, and create an Object Lifecycle Management rule that sets the daysSinceNoncurrentTime condition to 90 days, transitioning noncurrent versions to Archive storage.
  • BCreate an Object Lifecycle Management rule on the bucket that specifies an age condition of 90 days and uses the SetStorageClass action to transition the objects to Archive storage. (correct answer)
  • CCreate a nightly scheduled Cloud Run function that uses the Cloud Storage API to change the storage class of all objects older than 90 days to Archive storage.
  • DCreate an Object Lifecycle Management rule on the bucket that specifies the createdBefore condition set to 90 days ago and uses the Delete action to remove the objects.
Reveal answer & explanation
Correct answer: B

Create an Object Lifecycle Management rule with an age condition of 90 days and a SetStorageClass action that transitions the objects to Archive storage (B). Archive is the lowest-cost class for long-term retention, and the lifecycle rule runs automatically with no code. Deleting the objects (D) violates the indefinite-retention requirement, versioning (A) targets noncurrent versions, and a scheduled function (C) adds unnecessary cost and complexity.

Showing questions 321334 of 334 · Page 17 of 17