Google Associate Cloud Engineer Practice Test 62

Question 610

An automated monitoring client needs to invoke one private Cloud Run endpoint, but must never deploy or update its service. What is the most direct solution?

  1. Grant Storage Object Creator on the bucket
  2. Grant appropriate BigQuery data read permission at dataset scope
  3. Grant Pub/Sub Publisher at the target topic
  4. Grant the Cloud Run Invoker role on the target service to the client principal

Explanation

Correct Answer

D:

Cloud Run Invoker authorizes service invocation without granting permissions to deploy revisions or change service configuration. The client still needs a valid authentication token for the protected endpoint.

Incorrect Answers

A:

Using this action would grant write-new-object access, not allow calling a service without deployment privileges. Its function is different from the specific change described in the scenario.

B:

This setting would grant access to one analytical dataset. That behavior does not establish the requested ability to allow calling a service without deployment privileges; it addresses an adjacent concern instead.

C:

This approach can permit publishing to a single Pub/Sub topic. The requirement is to allow calling a service without deployment privileges, so it controls a different part of the workflow and leaves that result unaddressed.

Question 611

A background worker only needs to publish Pub/Sub messages to one topic. Which implementation matches this requirement?

  1. Grant the Cloud Run Invoker role on the target service to the client principal
  2. Grant appropriate BigQuery data read permission at dataset scope
  3. Grant Pub/Sub Publisher at the target topic
  4. Grant Storage Object Creator on the bucket
  5. Grant Service Account User on the target service account for attachment

Explanation

Correct Answer

C:

Topic-scoped publish permission avoids granting subscription management or unrelated topic access. The application's runtime principal is the grantee.

Incorrect Answers

A:

While this can authorize runtime invocation of a private Cloud Run endpoint, the present task requires an action to grant a producer minimal messaging access. This operation does not supply the behavior described in the requirements.

B:

The result of this choice would be to grant access to one analytical dataset. The requested outcome, to grant a producer minimal messaging access, is handled at a different layer or through another operation.

D:

This mechanism is intended to grant write-new-object access. It does not implement the required action to grant a producer minimal messaging access, even though both are relevant to the same general service.

E:

The choice is aimed at a different purpose: to allow run-as without generic token minting; Even if it can permit attaching a service account to resources, that would not accomplish the stated requirement to grant a producer minimal messaging access.

Question 612

An application publishes its own custom Cloud Monitoring metrics but must not be able to modify alert policies or IAM bindings. Which role is the best starting point for its service account?

  1. Grant Cloud Logging Viewer and assume that includes metric creation
  2. Grant the basic Project Editor role
  3. Grant the Monitoring Metric Writer role at the appropriate resource scope
  4. Grant the Monitoring AlertPolicy Editor role

Explanation

Correct Answer

C:

Monitoring Metric Writer supports the metric-ingestion task without the broad monitoring or project administration privileges needed to edit alerting or IAM configuration.

Incorrect Answers

A:

Logging Viewer permits viewing appropriate logs, not writing Cloud Monitoring custom time series. Reading log entries is different from metric ingestion.

B:

Project Editor is broad and can allow changes to many unrelated resources. It fails the least-privilege requirement for a service account that only writes metric data.

D:

An alert-policy editing role can modify alert definitions but is not the scoped metric-writing permission requested. It gives authority over the wrong monitoring operation.

Question 613

A VM operator can start instances in one project but must not manage organization policy constraints. Which solution should be used?

  1. Grant an appropriate network security administration role
  2. Grant suitable Cloud Run deployment permissions at the project or service scope
  3. Grant an appropriate Logs Viewer capability and any necessary restricted-log permissions
  4. Use the suitable Compute Engine operational role rather than organization policy administration

Explanation

Correct Answer

D:

Compute Engine roles control VM management APIs. Organization policies are separate hierarchical restrictions with their own administration permissions.

Incorrect Answers

A:

This approach can delegate firewall rule management. The requirement is to separate VM operations from organization policy, so it controls a different part of the workflow and leaves that result unaddressed.

B:

While this can authorize serverless service deployment, the present task requires an action to separate VM operations from organization policy. This operation does not supply the behavior described in the requirements.

C:

Administrators use it to permit reading project logs, rather than to separate VM operations from organization policy. Applying it would change the wrong component of this deployment.

Question 614

A networking engineer must change VPC firewall rules but not create arbitrary IAM roles. How should the team proceed?

  1. Use the suitable Compute Engine operational role rather than organization policy administration
  2. Inspect effective organization-policy constraints on external IP use
  3. Grant an appropriate network security administration role
  4. Grant an appropriate Logs Viewer capability and any necessary restricted-log permissions
  5. Grant suitable Cloud Run deployment permissions at the project or service scope

Explanation

Correct Answer

C:

Compute network security permissions and IAM policy editing are separate authorities. Privilege should follow the operational function.

Incorrect Answers

A:

It can manage compute resources without governance changes; however, it does not provide the specific operation to avoid giving IAM policy write authority. The two controls serve different purposes.

B:

The choice is aimed at a different purpose: to differentiate IAM from organization policy; Even if it can explain policy denial despite project Editor, that would not accomplish the stated requirement to avoid giving IAM policy write authority.

D:

The tool can permit reading project logs, but it cannot be substituted for the capability needed to avoid giving IAM policy write authority. Its operational effect is not equivalent.

E:

This mechanism is intended to authorize serverless service deployment. It does not implement the required action to avoid giving IAM policy write authority, even though both are relevant to the same general service.

Question 615

A developer should deploy Cloud Run revisions but not change a company's billing-account settings. What is the most direct solution?

  1. Grant an appropriate network security administration role
  2. Use the suitable Compute Engine operational role rather than organization policy administration
  3. Grant suitable Cloud Run deployment permissions at the project or service scope
  4. Grant an appropriate Logs Viewer capability and any necessary restricted-log permissions
  5. Grant appropriate Project IAM Admin permissions on that project

Explanation

Correct Answer

C:

Cloud Run administration operates on serverless resources. Billing IAM roles govern different account resources and are not required for ordinary revision deployment.

Incorrect Answers

A:

This approach can delegate firewall rule management. The requirement is to separate app releases from billing control, so it controls a different part of the workflow and leaves that result unaddressed.

B:

Its purpose is to manage compute resources without governance changes. That distinction matters: the scenario calls for an action to separate app releases from billing control, not this separate configuration task.

D:

This setting would permit reading project logs. That behavior does not establish the requested ability to separate app releases from billing control; it addresses an adjacent concern instead.

E:

This alternative addresses role assignment administration by allowing a team to delegate project IAM management; The incident, however, requires the different action to separate app releases from billing control, so its central configuration remains unchanged.

Question 616

A read-only operator needs to view log entries in a selected project. Which implementation matches this requirement?

  1. Grant the Cloud Run Invoker role on the target service to the client principal
  2. Grant an appropriate Logs Viewer capability and any necessary restricted-log permissions
  3. Use the suitable Compute Engine operational role rather than organization policy administration
  4. Grant suitable Cloud Run deployment permissions at the project or service scope
  5. Grant an appropriate network security administration role

Explanation

Correct Answer

B:

Cloud Logging viewer roles govern access to stored log entries. Special log types may require additional permission beyond basic log visibility.

Incorrect Answers

A:

The technical effect is to authorize runtime invocation of a private Cloud Run endpoint, not to grant operational log review; That distinction matters here because the first operation serves allow calling a service without deployment privileges, rather than the scenario's required result.

C:

This mechanism is intended to manage compute resources without governance changes. It does not implement the required action to grant operational log review, even though both are relevant to the same general service.

D:

Select this when the goal is to authorize serverless service deployment. Here the decisive requirement is to grant operational log review, and that outcome is not achieved by this action.

E:

The result of this choice would be to delegate firewall rule management. The requested outcome, to grant operational log review, is handled at a different layer or through another operation.

Question 617

A VM application cannot reach an internal API even though its service account has the required IAM role. The VM also cannot open a TCP connection to the API's private address. Which TWO checks address the likely network layer? (Choose TWO.)

  1. Create a new Cloud Billing budget with a higher alert threshold
  2. Assign the basic Project Owner role to the workload identity as a replacement for routing
  3. Verify the VM's route and subnet connectivity to the destination private IP
  4. Inspect the effective VPC firewall evaluation for the relevant source, destination, protocol and port

Explanation

Correct Answers

C:

A valid IAM role does not create IP reachability. Missing routes, incompatible subnets, or connectivity controls can prevent a TCP handshake before API permissions are evaluated.

D:

Network policy can deny the TCP flow independently of a service account's IAM authorization. The effective firewall rule path needs to permit the specific packet direction and endpoint.

Incorrect Answers

A:

A budget notification threshold concerns cost monitoring. It does not permit blocked TCP traffic or supply a route to a private service.

B:

Owner is excessive and cannot substitute for an IP route or an allowed firewall path. Authorization and basic network connectivity are different requirements.

Question 618

A firewall rule denies database traffic even though the caller has the correct database IAM role. Which solution should be used?

  1. Inspect effective organization-policy constraints on external IP use
  2. Add an IAM allow-policy binding for the team group on the target project
  3. Verify product regional availability and capacity instead of adding another role
  4. Enable the corresponding API with suitable service-usage privileges
  5. Troubleshoot VPC connectivity and firewall evaluation separately from IAM

Explanation

Correct Answer

E:

IAM authorization to a resource does not establish network reachability. Data-plane traffic filtering can prevent the connection first.

Incorrect Answers

A:

Administrators use it to explain policy denial despite project Editor, rather than to diagnose an IAM-granted but unreachable service. Applying it would change the wrong component of this deployment.

B:

The result of this choice would be to bind a role to a principal on a resource. The requested outcome, to diagnose an IAM-granted but unreachable service, is handled at a different layer or through another operation.

C:

Its purpose is to distinguish authorization from location support. That distinction matters: the scenario calls for an action to diagnose an IAM-granted but unreachable service, not this separate configuration task.

D:

This mechanism is intended to meet service enablement prerequisites. It does not implement the required action to diagnose an IAM-granted but unreachable service, even though both are relevant to the same general service.

Question 619

A user has permission to create an instance but the region is not supported for the desired accelerator. How should the team proceed?

  1. Verify product regional availability and capacity instead of adding another role
  2. Inspect effective organization-policy constraints on external IP use
  3. Enable the corresponding API with suitable service-usage privileges
  4. Troubleshoot VPC connectivity and firewall evaluation separately from IAM

Explanation

Correct Answer

A:

IAM authorization cannot make a hardware SKU appear in an unsupported location. Region and capacity requirements are independent.

Incorrect Answers

B:

This choice is useful to explain policy denial despite project Editor. The stated task is to resolve an accelerator placement failure, which requires a different mechanism or permission scope.

C:

It can meet service enablement prerequisites; however, it does not provide the specific operation to resolve an accelerator placement failure. The two controls serve different purposes.

D:

The tool can separate network policy from API authorization, but it cannot be substituted for the capability needed to resolve an accelerator placement failure. Its operational effect is not equivalent.

Question 620

A project already permits an API call but the API is disabled. What is the most direct solution?

  1. Enable the corresponding API with suitable service-usage privileges
  2. Inspect effective organization-policy constraints on external IP use
  3. Verify product regional availability and capacity instead of adding another role
  4. Grant an appropriate network security administration role
  5. Troubleshoot VPC connectivity and firewall evaluation separately from IAM

Explanation

Correct Answer

A:

Role assignment and API activation are separate prerequisites. An IAM grant alone does not turn on a project service.

Incorrect Answers

B:

Its purpose is to explain policy denial despite project Editor. That distinction matters: the scenario calls for an action to fix disabled-API calls, not this separate configuration task.

C:

This approach can distinguish authorization from location support. The requirement is to fix disabled-API calls, so it controls a different part of the workflow and leaves that result unaddressed.

D:

Choosing this would delegate firewall rule management, an appropriate action for resource-specific iam grants operations; It cannot take the place of the separate step needed to fix disabled-API calls in this specific situation.

E:

This setting would separate network policy from API authorization. That behavior does not establish the requested ability to fix disabled-API calls; it addresses an adjacent concern instead.

Associate Cloud Engineer Practice Tests