Question 40

An administrator attempts to include an unsupported permission in a new custom role. What must be investigated?

  1. Use IAM policy version 3 for conditions
  2. Use IAM Recommender
  3. Use custom role permissions support check
  4. Review IAM role permissions

Explanation

Correct Answer

C:

Not all IAM permissions can be placed in custom roles, and support levels vary by permission; this corresponds to checking custom-role eligibility for IAM permissions, not a separate lifecycle action.

Incorrect Answers

A:

IAM allow policy version 3 supports conditional role bindings and should be requested when managing conditions; the decision here is about checking custom-role eligibility for IAM permissions, not representing conditional policy bindings.

B:

IAM Recommender provides eligible role-grant recommendations based on observed access and permission usage; that mechanism handles reviewing evidence-based least-privilege suggestions; it does not configure checking custom-role eligibility for IAM permissions.

D:

Role definitions enumerate included permissions; role names alone do not guarantee a specific API action; that applies to confirming included permissions in an IAM role; the requested task is checking custom-role eligibility for IAM permissions.

Question 41

A CI job needs API authorization that expires rather than permanent credentials stored in environment variables. What token style is preferred?

  1. Use workload identity pool provider
  2. Use Workload Identity Federation
  3. Use short-lived access tokens
  4. Use signed identity tokens for authenticated endpoints

Explanation

Correct Answer

C:

The requirement is limiting credential validity through expiration; Short-lived OAuth access tokens restrict credential lifetime and can be generated using supported identity mechanisms.

Incorrect Answers

A:

Workload identity pool providers define trust and attribute mapping for supported external issuers; it is appropriate for trusting a configured external workload issuer; here, the deciding requirement is limiting credential validity through expiration.

B:

Workload Identity Federation exchanges eligible external workload identities for short-lived Google Cloud credentials; this is a distinct control for accessing cloud APIs from external CI without key files, rather than limiting credential validity through expiration.

D:

Authenticated Cloud Run HTTP invocation uses supported OIDC identity tokens with an appropriate audience and invoker permission; this governs using audience-targeted OIDC identity tokens, whereas the stated objective is limiting credential validity through expiration.

Question 42

A company wants a governance root spanning all of its Google Cloud folders and projects. What resource supplies that root?

  1. Use organization-level Cloud Asset Inventory search
  2. Set an organization policy at the folder
  3. Apply an organization policy constraint
  4. Use the organization resource

Explanation

Correct Answer

D:

The organization node is the top governance resource associated with the company's identity domain; Applied in this case, it delivers establishing an organization-wide resource ancestor.

Incorrect Answers

A:

Cloud Asset Inventory searches can target supported ancestor scopes including organizations and folders; the decision here is about establishing an organization-wide resource ancestor, not searching assets across a hierarchy ancestor.

B:

A policy attached at a folder is inherited by descendants according to constraint rules without affecting unrelated sibling branches; Applying it would target scoping an inherited constraint to a selected folder, leaving the separate need for establishing an organization-wide resource ancestor.

C:

Organization Policy Service evaluates supported constraints along the resource hierarchy independently of ordinary IAM grants; it concerns enforcing an organization-level resource restriction, and its normal effect does not provide establishing an organization-wide resource ancestor.

Question 43

A VPC subnet has exhausted its primary IPv4 address range but cannot be replaced without disruption. What supported network operation should be considered?

  1. Expand an existing subnet's CIDR
  2. Configure Cloud NAT egress for a subnet
  3. Use Connectivity Tests
  4. Create a custom static route
  5. Use Network Intelligence Center routes analysis
  6. Add a subnet to a custom VPC

Explanation

Correct Answer

A:

A subnet's primary IPv4 range can be expanded to a larger supported CIDR under applicable restrictions; this is the specific mechanism used for enlarging a subnet's available address space.

Incorrect Answers

B:

Cloud NAT provides managed outbound NAT through a Cloud Router configuration for eligible VPC resources; it is not the focused action for enlarging a subnet's available address space; its primary use is enabling source NAT for private subnet traffic.

C:

Network Intelligence Center Connectivity Tests analyzes supported connectivity paths and identifies potential configuration blocks; its operational role is analyzing possible network paths and blockers; the needed capability is enlarging a subnet's available address space.

D:

Custom static routes define destination CIDRs and supported next hops in a VPC; its operational role is adding explicit destination-based network routing; the needed capability is enlarging a subnet's available address space.

E:

Network Intelligence Center and route diagnostics expose supported route and connectivity insights; that mechanism handles investigating route configuration and reachability; it does not configure enlarging a subnet's available address space.

F:

Subnets are regional resources associated with a VPC and have nonoverlapping ranges as required; its operational role is creating a new regional subnet in an existing network; the needed capability is enlarging a subnet's available address space.

Question 44

An organization needs a payer entity to collect its projects' eligible Google Cloud charges. Which account type should be created?

  1. Link a project to a billing account
  2. Use a separate billing account for payer isolation
  3. Use project billing permissions to link the payer
  4. Create a Cloud Billing account

Explanation

Correct Answer

D:

Cloud Billing accounts represent payment and invoicing relationships and can pay for multiple linked projects; this is relevant because the outcome sought is establishing a billing payer.

Incorrect Answers

A:

A project must be linked to an active billing account to consume many chargeable services; it concerns associating the project with an active payer, and its normal effect does not provide establishing a billing payer.

B:

Separate Cloud Billing accounts can maintain distinct payment and invoice relationships across groups of projects; it would help with establishing a separate billed legal or operational entity, but it does not directly implement establishing a billing payer.

C:

Managing project billing associations requires the appropriate project and billing account permissions; that applies to authorizing a project-to-billing relationship; the requested task is establishing a billing payer.

Question 45

Service latency is high but aggregate CPU charts reveal no bottleneck. Which tool can expose expensive spans in a request path?

  1. Use Cloud Profiler
  2. Use Cloud Trace
  3. Use a Logs Router sink
  4. Use Cloud Error Reporting

Explanation

Correct Answer

B:

Cloud Trace collects and visualizes distributed request traces and span timings; for the stated workload, the practical result is locating slow segments in distributed calls.

Incorrect Answers

A:

Cloud Profiler analyzes sampled application profiles to reveal resource-heavy functions and code paths; it concerns identifying application code hotspots from profiles, and its normal effect does not provide locating slow segments in distributed calls.

C:

Log sinks use inclusion filters and destination permissions to route supported log entries from a configured scope; the decision here is about locating slow segments in distributed calls, not exporting filtered log streams to a destination.

D:

Error Reporting groups recognized application errors and summarizes their frequency and impact; the supported outcome is grouping recurring application exceptions, while the requested result is locating slow segments in distributed calls.

Question 46

Traffic is going to an unexpected next hop despite several configured routes. What network information should operators review?

  1. Use Network Topology
  2. Inspect effective VPC routes
  3. Use packet mirroring
  4. Use Connectivity Tests

Explanation

Correct Answer

B:

The requested administrative outcome is checking route precedence and applicability; Effective route information shows applicable VPC paths and helps diagnose destination selection.

Incorrect Answers

A:

Network Topology presents a graphical network representation from supported topology and telemetry data; its operational role is mapping network relationships visually; the needed capability is checking route precedence and applicability.

C:

Packet Mirroring duplicates eligible VM packet traffic to configured collector backends; that solves problems involving forwarding captured VM traffic to analysis appliances, rather than the checking route precedence and applicability requirement.

D:

Network Intelligence Center Connectivity Tests analyzes supported connectivity paths and identifies potential configuration blocks; the scenario specifies checking route precedence and applicability, which differs from analyzing possible network paths and blockers.

Question 47

A platform repository must create VPCs, service accounts and VM groups through repeatable configuration. What IaC tool fits?

  1. Use Helm charts
  2. Use Cloud Foundation Toolkit
  3. Use Fabric FAST
  4. Use Terraform for infrastructure provisioning

Explanation

Correct Answer

D:

What matters is provisioning Google Cloud resources declaratively; Terraform uses provider-managed declarative resources and state to plan and apply infrastructure changes.

Incorrect Answers

A:

Helm packages and releases parametrized Kubernetes manifests as charts; that solves problems involving managing templated Kubernetes application releases, rather than the provisioning Google Cloud resources declaratively requirement.

B:

Cloud Foundation Toolkit provides modules and examples for automated Google Cloud foundation deployments; that applies to deploying tested cloud foundation patterns; the requested task is provisioning Google Cloud resources declaratively.

C:

Fabric FAST supplies a structured foundation automation approach based on infrastructure-as-code modules; it is not the focused action for provisioning Google Cloud resources declaratively; its primary use is implementing opinionated cloud foundation automation.

Question 48

A public HTTPS service should be tested periodically from external probe locations to detect availability failures. Which Monitoring feature applies?

  1. Use uptime checks
  2. Enable log-based metrics
  3. Use an alerting notification channel
  4. Use Cloud Trace
  5. Use Cloud Audit Logs

Explanation

Correct Answer

A:

Uptime checks periodically attempt supported protocol requests from distributed checkers and record availability results; this is the specific mechanism used for probing endpoint reachability automatically.

Incorrect Answers

B:

Log-based metrics derive metric values from matching log entries and can support dashboards or alerts; it concerns measuring a filtered log event pattern, and its normal effect does not provide probing endpoint reachability automatically.

C:

Notification channels specify supported endpoints to which alerting policies send incident notifications; it is not the focused action for probing endpoint reachability automatically; its primary use is routing alert notifications to responders.

D:

The alternative would address locating slow segments in distributed calls; Cloud Trace collects and visualizes distributed request traces and span timings; the question instead requires probing endpoint reachability automatically.

E:

Cloud Audit Logs records supported administrative and access activity with audit-log type distinctions; it would help with attributing administrative resource changes, but it does not directly implement probing endpoint reachability automatically.

Question 49

A project needs logs kept with separate retention and access controls from the default bucket. What resource should be created?

  1. Use Cloud Audit Logs Data Access
  2. Create a dedicated log bucket
  3. Create a log-based alert
  4. Create a log sink to Cloud Storage

Explanation

Correct Answer

B:

Cloud Logging log buckets store ingested logs with configurable retention and access controls; Applied in this case, it delivers isolating log retention and access settings.

Incorrect Answers

A:

Data Access audit logs capture supported data reads and writes and may require explicit enablement depending on service and category; this governs auditing supported data-plane access events, whereas the stated objective is isolating log retention and access settings.

C:

Log-based alerting policies trigger incidents from log entries matching configured filters; this governs generating incidents from matching log events, whereas the stated objective is isolating log retention and access settings.

D:

For shipping selected log streams to storage, this could be relevant; Cloud Logging sinks can route supported records to Cloud Storage buckets for external retention workflows; the actual request concerns isolating log retention and access settings.

Question 50

A team has a Knative serving application on a Kubernetes cluster and wants it on fully managed Cloud Run. Which approach addresses the API and configuration differences?

  1. Use Cloud Run ingress settings
  2. Use a Cloud Run service account
  3. Migrate a Knative serving service to Cloud Run
  4. Use Cloud Run jobs

Explanation

Correct Answer

C:

The migration path requires adapting the Knative serving YAML for Cloud Run APIs and replacing unsupported Kubernetes-specific features before deployment; that matches the requirement for exporting and adapting a Knative service manifest for managed Cloud Run.

Incorrect Answers

A:

Cloud Run ingress settings control eligible network sources and front ends allowed to reach a service; that supports constraining Cloud Run network ingress; the problem to solve concerns exporting and adapting a Knative service manifest for managed Cloud Run.

B:

Cloud Run services can run as a configured service account with IAM-granted permissions; the supported outcome is separating runtime permissions from deployer access, while the requested result is exporting and adapting a Knative service manifest for managed Cloud Run.

D:

Cloud Run jobs run tasks to completion without exposing a request-serving service endpoint; that applies to running task-oriented serverless containers; the requested task is exporting and adapting a Knative service manifest for managed Cloud Run.

Associate Cloud Engineer Practice Tests