Google Associate Cloud Engineer Practice Test 53

Question 520

A service reliability team wants to define a measurable availability target and burn-rate alerts. Which implementation matches this requirement?

  1. Create a Cloud Logging log-based metric
  2. Configure appropriate service-level indicators and objectives in Cloud Monitoring
  3. Create or configure a Cloud Logging bucket with appropriate retention settings
  4. Write a custom metric through the Cloud Monitoring API or supported instrumentation
  5. Build a Cloud Monitoring dashboard using appropriate metrics

Explanation

Correct Answer

B:

SLO tooling evaluates service behavior against target reliability over windows. A generic CPU alert cannot substitute for user-impact-based reliability measurements.

Incorrect Answers

A:

Administrators use it to derive a metric from matching logs, rather than to track error budget consumption. Applying it would change the wrong component of this deployment.

C:

The technical effect is to set Cloud Logging storage retention, not to track error budget consumption; That distinction matters here because the first operation serves retain security logs for compliance, rather than the scenario's required result.

D:

The result of this choice would be to ingest application-defined performance metrics. The requested outcome, to track error budget consumption, is handled at a different layer or through another operation.

E:

Select this when the goal is to visualize multiple time-series signals. Here the decisive requirement is to track error budget consumption, and that outcome is not achieved by this action.

Question 521

An operator needs only ERROR-level log entries from one Cloud Run service during the incident window. Which action is most appropriate?

  1. Filter or correlate Cloud Logging entries using the trace field
  2. Open the log entry details in Logs Explorer
  3. Use a Cloud Logging Logs Explorer query filtering resource, severity and timestamp
  4. Specify the correct log scope and resource filters in Logs Explorer

Explanation

Correct Answer

C:

Cloud Logging queries can narrow entries using structured fields and time ranges. The log records remain separate from metric time series.

Incorrect Answers

A:

This choice is useful to correlate log entries by trace ID. The stated task is to isolate Cloud Run errors, which requires a different mechanism or permission scope.

B:

This setting would inspect structured log entry details. That behavior does not establish the requested ability to isolate Cloud Run errors; it addresses an adjacent concern instead.

D:

Using this action would target log searches to intended resources, not isolate Cloud Run errors. Its function is different from the specific change described in the scenario.

Question 522

A production error includes a trace ID and an engineer wants matching log records. Which solution should be used?

  1. Create a Cloud Logging log-based metric
  2. Specify the correct log scope and resource filters in Logs Explorer
  3. Use a Cloud Logging Logs Explorer query filtering resource, severity and timestamp
  4. Filter or correlate Cloud Logging entries using the trace field
  5. Open the log entry details in Logs Explorer

Explanation

Correct Answer

D:

Structured trace fields can relate request activity across logs and traces. Searching only message text may omit records that share the trace identifier.

Incorrect Answers

A:

This alternative addresses custom metrics and slo observability by allowing a team to derive a metric from matching logs; The incident, however, requires the different action to follow one request's error records, so its central configuration remains unchanged.

B:

Its purpose is to target log searches to intended resources. That distinction matters: the scenario calls for an action to follow one request's error records, not this separate configuration task.

C:

Administrators use it to filter log records to one service and severity, rather than to follow one request's error records. Applying it would change the wrong component of this deployment.

E:

The result of this choice would be to inspect structured log entry details. The requested outcome, to follow one request's error records, is handled at a different layer or through another operation.

Question 523

A service owner needs to inspect the full JSON payload and labels of one specific log message. How should the team proceed?

  1. Specify the correct log scope and resource filters in Logs Explorer
  2. Open the log entry details in Logs Explorer
  3. Filter or correlate Cloud Logging entries using the trace field
  4. Create or configure a Cloud Logging bucket with appropriate retention settings
  5. Use a Cloud Logging Logs Explorer query filtering resource, severity and timestamp

Explanation

Correct Answer

B:

Individual log entries contain structured fields, metadata and payloads. Expanding an entry is more precise than inferring content from a dashboard chart.

Incorrect Answers

A:

It can target log searches to intended resources; however, it does not provide the specific operation to read a specific error payload. The two controls serve different purposes.

C:

The tool can correlate log entries by trace ID, but it cannot be substituted for the capability needed to read a specific error payload. Its operational effect is not equivalent.

D:

The technical effect is to set Cloud Logging storage retention, not to read a specific error payload; That distinction matters here because the first operation serves retain security logs for compliance, rather than the scenario's required result.

E:

Select this when the goal is to filter log records to one service and severity. Here the decisive requirement is to read a specific error payload, and that outcome is not achieved by this action.

Question 524

A developer has a query that returns unrelated logs from multiple projects. What is the most direct solution?

  1. Specify the correct log scope and resource filters in Logs Explorer
  2. Use a Cloud Logging Logs Explorer query filtering resource, severity and timestamp
  3. Filter or correlate Cloud Logging entries using the trace field
  4. Open the log entry details in Logs Explorer
  5. Enable the supported log analytics or Observability Analytics capability on the logging bucket

Explanation

Correct Answer

A:

Log views and queries are governed by resource scope and IAM. A broad search may include other services, while a narrow selector improves diagnosis.

Incorrect Answers

B:

This approach can filter log records to one service and severity. The requirement is to remove unrelated logging results, so it controls a different part of the workflow and leaves that result unaddressed.

C:

This setting would correlate log entries by trace ID. That behavior does not establish the requested ability to remove unrelated logging results; it addresses an adjacent concern instead.

D:

Its purpose is to inspect structured log entry details. That distinction matters: the scenario calls for an action to remove unrelated logging results, not this separate configuration task.

E:

Choosing this would run SQL-style queries over stored logs, an appropriate action for cloud logging buckets and retention operations; It cannot take the place of the separate step needed to remove unrelated logging results in this specific situation.

Question 525

A regulated application must retain logs for a specified period under a controlled project. What should be configured?

  1. Use appropriate log buckets, views and IAM access controls
  2. Enable the supported log analytics or Observability Analytics capability on the logging bucket
  3. Configure retention on the destination log bucket, not on a sink filter
  4. Create or configure a Cloud Logging bucket with appropriate retention settings

Explanation

Correct Answer

D:

Logging buckets store eligible log entries with configurable retention. Bucket retention differs from a BigQuery query expiration setting.

Incorrect Answers

A:

This mechanism is intended to control access to centralized log subsets. It does not implement the required action to retain security logs for compliance, even though both are relevant to the same general service.

B:

The tool can run SQL-style queries over stored logs, but it cannot be substituted for the capability needed to retain security logs for compliance. Its operational effect is not equivalent.

C:

The result of this choice would be to set retention on the log storage resource. The requested outcome, to retain security logs for compliance, is handled at a different layer or through another operation.

Question 526

An organization needs to query centralized logs while limiting which teams can see sensitive entries. Which action is most appropriate?

  1. Create or configure a Cloud Logging bucket with appropriate retention settings
  2. Use a Cloud Logging Logs Explorer query filtering resource, severity and timestamp
  3. Configure retention on the destination log bucket, not on a sink filter
  4. Use appropriate log buckets, views and IAM access controls
  5. Enable the supported log analytics or Observability Analytics capability on the logging bucket

Explanation

Correct Answer

D:

Log views can scope which entries a principal is able to query. Central storage does not imply that every project operator should see all logs.

Incorrect Answers

A:

Using this action would set Cloud Logging storage retention, not limit sensitive log visibility. Its function is different from the specific change described in the scenario.

B:

The technical effect is to filter log records to one service and severity, not to limit sensitive log visibility; That distinction matters here because the first operation serves isolate Cloud Run errors, rather than the scenario's required result.

C:

This choice is useful to set retention on the log storage resource. The stated task is to limit sensitive log visibility, which requires a different mechanism or permission scope.

E:

This setting would run SQL-style queries over stored logs. That behavior does not establish the requested ability to limit sensitive log visibility; it addresses an adjacent concern instead.

Question 527

A data analyst wants SQL-based analysis of eligible log records stored in Cloud Logging. Which solution should be used?

  1. Create or configure a Cloud Logging bucket with appropriate retention settings
  2. Enable the supported log analytics or Observability Analytics capability on the logging bucket
  3. Use appropriate log buckets, views and IAM access controls
  4. Configure retention on the destination log bucket, not on a sink filter
  5. Review the sink's inclusion and exclusion filters and destination permissions

Explanation

Correct Answer

B:

Analytics-enabled log buckets support SQL-style analysis for eligible log data. Ordinary Logs Explorer filtering uses a different query experience.

Incorrect Answers

A:

While this can set Cloud Logging storage retention, the present task requires an action to analyze operational log data. This operation does not supply the behavior described in the requirements.

C:

Administrators use it to control access to centralized log subsets, rather than to analyze operational log data. Applying it would change the wrong component of this deployment.

D:

The result of this choice would be to set retention on the log storage resource. The requested outcome, to analyze operational log data, is handled at a different layer or through another operation.

E:

Choosing this would troubleshoot logging sink export gaps, an appropriate action for log router and sinks operations; It cannot take the place of the separate step needed to analyze operational log data in this specific situation.

Question 528

A project is changing log storage configuration and must distinguish retention from routing. How should the team proceed?

  1. Use appropriate log buckets, views and IAM access controls
  2. Enable the supported log analytics or Observability Analytics capability on the logging bucket
  3. Configure retention on the destination log bucket, not on a sink filter
  4. Create or configure a Cloud Logging bucket with appropriate retention settings
  5. Create a Cloud Monitoring metric-threshold alerting policy with an appropriate duration

Explanation

Correct Answer

C:

Buckets store and retain entries, while routers and sinks select where entries go. Editing a sink cannot by itself lengthen existing bucket retention.

Incorrect Answers

A:

The tool can control access to centralized log subsets, but it cannot be substituted for the capability needed to separate log retention from routing. Its operational effect is not equivalent.

B:

It can run SQL-style queries over stored logs; however, it does not provide the specific operation to separate log retention from routing. The two controls serve different purposes.

D:

Using this action would set Cloud Logging storage retention, not separate log retention from routing. Its function is different from the specific change described in the scenario.

E:

This setting would alert on sustained metric threshold breach. That behavior does not establish the requested ability to separate log retention from routing; it addresses an adjacent concern instead.

Question 529

A security team needs selected audit entries copied into a BigQuery destination for scheduled SQL analysis. Which configuration best meets the requirement?

  1. Review the sink's inclusion and exclusion filters and destination permissions
  2. Configure a Cloud Logging sink to the BigQuery dataset with the required writer access
  3. Create a Logging sink targeting an authorized Pub/Sub topic
  4. Configure a suitable aggregated log sink at the organization or folder

Explanation

Correct Answer

B:

Log sinks route matching entries to supported destinations. The sink's service identity needs permission at the destination.

Incorrect Answers

A:

Its purpose is to troubleshoot logging sink export gaps. That distinction matters: the scenario calls for an action to feed a security analytics dataset, not this separate configuration task.

C:

This approach can publish log entries to a message topic. The requirement is to feed a security analytics dataset, so it controls a different part of the workflow and leaves that result unaddressed.

D:

While this can collect descendant logs through hierarchy routing, the present task requires an action to feed a security analytics dataset. This operation does not supply the behavior described in the requirements.

Question 530

A Cloud Logging sink sends selected application logs into a Cloud Storage bucket, but the sink exists and matching entries are still not written. The destination bucket is in a different project. What should the operator verify?

  1. Enable Object Versioning and assume it grants the sink write access
  2. Grant Cloud Run Invoker to every application user
  3. Grant the sink's writer identity the required permissions on the destination bucket
  4. Increase the source VM's CPU allocation to override destination IAM

Explanation

Correct Answer

C:

Log routing uses a sink writer identity to deliver selected entries to its destination. A valid sink configuration alone is insufficient if that identity cannot write to the cross-project bucket.

Incorrect Answers

A:

Versioning keeps versions of object changes, but it does not authorize any caller. IAM permissions for the sink writer still govern destination delivery.

B:

Cloud Run Invoker grants permission to call an authenticated service. It does not give the Logging sink's writer identity access to a Cloud Storage destination.

D:

Source VM compute capacity is not an IAM control for a Logging sink. A destination authorization failure must be resolved on the sink writer and bucket.

Associate Cloud Engineer Practice Tests