Google Associate Cloud Engineer Practice Test 49

Question 480

A Terraform CI pipeline must preview proposed resource changes for review, then perform an authorized deployment of the approved configuration. Choose TWO commands.

  1. Run terraform plan
  2. Run terraform apply
  3. Use Terraform modules
  4. Use Terraform for infrastructure provisioning
  5. Use Terraform outputs

Explanation

Correct Answers

A:

Terraform plan compares configuration and state with remote resource information to produce an execution plan; within the multi-part workflow of previewing Terraform changes before applying an approved plan, this provides reviewing a proposed infrastructure diff.

B:

Terraform apply performs authorized resource changes described by the configuration or saved plan; within the multi-part workflow of previewing Terraform changes before applying an approved plan, this provides executing declared infrastructure updates.

Incorrect Answers

C:

Terraform modules encapsulate resource definitions and input/output interfaces for reuse; the mechanism concerns packaging reusable resource configurations and does not directly supply previewing Terraform changes before applying an approved plan.

D:

Terraform uses provider-managed declarative resources and state to plan and apply infrastructure changes; the question is specifically about previewing Terraform changes before applying an approved plan, rather than managing reproducible cloud resources as code.

E:

Terraform outputs publish selected values from a configuration or module for downstream use, which supports passing provisioned resource identifiers to consumers; the needed outcome is previewing Terraform changes before applying an approved plan.

Question 481

An application cannot reach its backend; investigators need to identify matching network security rules for traffic. Which logging feature should be checked?

  1. Use external HTTP load balancer health checks
  2. Use firewall rules logging
  3. Use Network Intelligence Center routes analysis
  4. Use Cloud CDN

Explanation

Correct Answer

B:

Firewall logging produces Cloud Logging records for matching supported firewall rule traffic; this is the capability needed for examining firewall-matched connections.

Incorrect Answers

A:

Load balancer health checks determine backend eligibility based on configured protocol, port and response conditions; it is not the focused action for examining firewall-matched connections; its primary use is checking application health probe configuration.

C:

Network Intelligence Center and route diagnostics expose supported route and connectivity insights; the decision here is about examining firewall-matched connections, not investigating route configuration and reachability.

D:

For reducing repeated origin requests through CDN caching, this could be relevant; Cloud CDN caches eligible HTTP(S) content at Google's edge using configured cache behavior; the actual request concerns examining firewall-matched connections.

Question 482

An app has the expected project role but cannot invoke a specific API action; policy evaluation details are needed. Which IAM diagnostic helps?

  1. Use IAM Recommender
  2. Grant roles to a service account
  3. Use IAM policy version 3 for conditions
  4. Remove an IAM policy binding
  5. Use IAM policy troubleshooting

Explanation

Correct Answer

E:

What matters is investigating why a request is allowed or denied; Policy Troubleshooter evaluates supported permission checks against applicable policies and conditions.

Incorrect Answers

A:

IAM Recommender provides eligible role-grant recommendations based on observed access and permission usage; that supports reviewing evidence-based least-privilege suggestions; the problem to solve concerns investigating why a request is allowed or denied.

B:

Service accounts are IAM principals that represent applications or compute workloads and can receive roles; the decision here is about investigating why a request is allowed or denied, not authorizing nonhuman workload API access.

C:

IAM allow policy version 3 supports conditional role bindings and should be requested when managing conditions; Applying it would target retrieving condition-aware IAM policy data, leaving the separate need for investigating why a request is allowed or denied.

D:

Removing an IAM binding eliminates that grant path, although other inherited or indirect grants may remain; the scenario specifies investigating why a request is allowed or denied, which differs from revoking a principal's existing project role.

Question 483

A project administrator wants to simplify IAM by removing a service-agent role that appears unused. What security and operational risk should be considered?

  1. Use service account impersonation audit trail
  2. Protect service agent roles
  3. Use service account IAM on target bucket
  4. Audit service-account key inventory

Explanation

Correct Answer

B:

Service-agent roles often enable internal Google-managed operations and should not be casually reassigned or deleted; that behavior is precisely what preserving required service-managed permissions calls for.

Incorrect Answers

A:

Relevant audit logs for IAM Credentials operations can attribute supported credential issuance under appropriate logging configuration; that solves problems involving auditing service-account token minting, rather than the preserving required service-managed permissions requirement.

C:

Bucket-level role binding can grant object permissions to a workload without broad project-wide storage access; its purpose differs: restricting a workload principal to one data resource is separate from preserving required service-managed permissions.

D:

Service-account key listings expose user-managed key metadata, which can be audited and managed; the scenario specifies preserving required service-managed permissions, which differs from reviewing account keys for rotation or removal.

Question 484

An on-premises NAS requires movement of local file data to Cloud Storage over a managed transfer workflow. Which transfer component should be installed?

  1. Use a Cloud Storage retention policy
  2. Use Cloud Storage soft delete
  3. Use Cloud Storage requester pays
  4. Use Storage Transfer Service agents

Explanation

Correct Answer

D:

Storage Transfer Service agents can read supported on-premises file systems for transfer jobs; that matches the requirement for connecting file-system sources to managed transfers.

Incorrect Answers

A:

Bucket retention policies enforce minimum retention periods for supported objects and can be locked for stronger controls; that supports enforcing minimum retention for objects; the problem to solve concerns connecting file-system sources to managed transfers.

B:

Soft delete retains eligible deleted object data for a configurable period to allow restoration; the supported outcome is temporarily retaining deleted object data, while the requested result is connecting file-system sources to managed transfers.

C:

Requester Pays assigns specified access and network charges to the requester-supplied billing project; that mechanism handles charging eligible data access costs to requesters; it does not configure connecting file-system sources to managed transfers.

Question 485

A streaming pipeline can start but fails in execution with Pub/Sub permission errors. Which operational principal matters?

  1. Use authenticated Pub/Sub push
  2. Use service account for Dataflow workers
  3. Use a service account with Cloud Scheduler
  4. Use service account IAM on target bucket

Explanation

Correct Answer

B:

Dataflow workers run with a configured service account that must access pipeline sources and destinations; this is relevant because the outcome sought is assigning resource permissions to Dataflow worker identity.

Incorrect Answers

A:

Authenticated Pub/Sub push uses a configured service account to attach supported OIDC tokens to push requests; it would help with delivering Pub/Sub events with signed identity credentials, but it does not directly implement assigning resource permissions to Dataflow worker identity.

C:

Cloud Scheduler can use an attached service account for supported authenticated HTTP requests; that solves problems involving supplying scheduler-generated authorized request tokens, rather than the assigning resource permissions to Dataflow worker identity requirement.

D:

The alternative would address restricting a workload principal to one data resource; Bucket-level role binding can grant object permissions to a workload without broad project-wide storage access; the question instead requires assigning resource permissions to Dataflow worker identity.

Question 486

An image-heavy site needs edge caching in front of a compatible load-balanced backend. Which Google Cloud feature fits?

  1. Use firewall rules logging
  2. Use Cloud Armor
  3. Use Network Intelligence Center routes analysis
  4. Use Cloud CDN

Explanation

Correct Answer

D:

Cloud CDN caches eligible HTTP(S) content at Google's edge using configured cache behavior; for the stated workload, the practical result is reducing repeated origin requests through CDN caching.

Incorrect Answers

A:

Firewall logging produces Cloud Logging records for matching supported firewall rule traffic; this governs recording network firewall policy matches, whereas the stated objective is reducing repeated origin requests through CDN caching.

B:

Cloud Armor provides security policies and supported WAF capabilities for eligible load-balanced applications; that solves problems involving filtering hostile application-layer requests, rather than the reducing repeated origin requests through CDN caching requirement.

C:

Network Intelligence Center and route diagnostics expose supported route and connectivity insights; the decision here is about reducing repeated origin requests through CDN caching, not troubleshooting network route visibility.

Question 487

Finance wants lightweight key-value metadata to categorize resources for cost reporting. What should engineers attach?

  1. Use Cloud Asset Inventory feed
  2. Apply an organization policy constraint
  3. Use labels on supported resources
  4. Use Resource Manager tags

Explanation

Correct Answer

C:

Labels are user-defined key-value metadata for organization and billing analysis and are not hierarchical IAM boundaries; for the stated workload, the practical result is tagging resource metadata for cost allocation.

Incorrect Answers

A:

Asset feeds publish supported resource changes to Pub/Sub destinations based on a configured scope and content type; it would help with streaming changes to cloud asset metadata, but it does not directly implement tagging resource metadata for cost allocation.

B:

Organization Policy Service evaluates supported constraints along the resource hierarchy independently of ordinary IAM grants; the decision here is about tagging resource metadata for cost allocation, not preventing disallowed resource settings through policy.

D:

Resource Manager tags are centrally defined key-value bindings with policy integrations distinct from ordinary labels; it is appropriate for attaching policy-aware governed metadata to resources; here, the deciding requirement is tagging resource metadata for cost allocation.

Question 488

An employee appears to have access via group and ancestors; auditors need to analyze the paths. Which capability applies?

  1. Use IAM deny policies
  2. Use access change audit logs
  3. Use Policy Analyzer
  4. Use IAM policy version 3 for conditions

Explanation

Correct Answer

C:

What matters is tracing effective role bindings and membership paths; Policy Analyzer can analyze IAM allow relationships using Cloud Asset Inventory data.

Incorrect Answers

A:

IAM deny policies can block eligible permissions for matching principals despite otherwise applicable allow grants; its operational role is overriding applicable allows with a deny; the needed capability is tracing effective role bindings and membership paths.

B:

Cloud Audit Logs Admin Activity records supported administrative IAM policy changes; the supported outcome is auditing role-binding modifications, while the requested result is tracing effective role bindings and membership paths.

D:

IAM allow policy version 3 supports conditional role bindings and should be requested when managing conditions; its purpose differs: representing conditional policy bindings is separate from tracing effective role bindings and membership paths.

Question 489

A company owns a domain and needs authoritative Internet DNS records for its application. Which service configuration fits?

  1. Use Cloud DNS public managed zones
  2. Use Cloud Router
  3. Use Cloud DNS private zones
  4. Use Cloud Interconnect

Explanation

Correct Answer

A:

Public managed zones publish authoritative DNS records reachable through the public DNS hierarchy; its effect directly addresses publishing globally resolvable DNS records.

Incorrect Answers

B:

This alternative focuses on learning and advertising prefixes through BGP; Cloud Router manages dynamic route exchange using BGP for supported hybrid connectivity; the stem instead asks for publishing globally resolvable DNS records.

C:

Private Cloud DNS zones are authorized for specific networks and resolve within those networks; the scenario specifies publishing globally resolvable DNS records, which differs from resolving private hostnames inside authorized networks.

D:

The alternative would address establishing dedicated or partner private connectivity; Cloud Interconnect provides supported private connectivity between on-premises networks and Google Cloud through dedicated or partner arrangements; the question instead requires publishing globally resolvable DNS records.

Question 490

A Kubernetes application exposes Prometheus metrics and the team wants a managed collection and query system. What Google Cloud capability fits?

  1. Use Gemini Cloud Assist in Monitoring
  2. Use Cloud Monitoring dashboards
  3. Use Cloud Monitoring Managed Service for Prometheus
  4. Configure Cloud Monitoring custom metrics

Explanation

Correct Answer

C:

Managed Service for Prometheus integrates Prometheus-compatible metric collection with Cloud Monitoring storage and querying; the decisive property here is collecting Prometheus-compatible workload metrics.

Incorrect Answers

A:

Gemini Cloud Assist offers supported contextual assistance for Google Cloud operations including observability workflows; the scenario specifies collecting Prometheus-compatible workload metrics, which differs from using AI guidance to explore monitoring issues.

B:

Monitoring dashboards arrange charts and widgets to visualize supported time-series data; this governs displaying related metrics in a dashboard, whereas the stated objective is collecting Prometheus-compatible workload metrics.

D:

Custom Cloud Monitoring metrics let applications write supported time-series values representing domain-specific behavior; its operational role is recording metrics generated by the application; the needed capability is collecting Prometheus-compatible workload metrics.

Associate Cloud Engineer Practice Tests