Google Associate Cloud Engineer Practice Test 54

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.

Question 531

An incident workflow should receive log events through Pub/Sub for downstream processing. Which action is most appropriate?

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

Explanation

Correct Answer

D:

A Pub/Sub log sink streams matching log entries to subscribers. It is not the same as a Cloud Monitoring metric-based alert.

Incorrect Answers

A:

This approach can export matching log entries to BigQuery. The requirement is to stream selected logs to incident automation, so it controls a different part of the workflow and leaves that result unaddressed.

B:

Using this action would troubleshoot logging sink export gaps, not stream selected logs to incident automation. Its function is different from the specific change described in the scenario.

C:

This setting would collect descendant logs through hierarchy routing. That behavior does not establish the requested ability to stream selected logs to incident automation; it addresses an adjacent concern instead.

E:

This proposal can run SQL-style queries over stored logs, but the failure or goal described here calls for a way to stream selected logs to incident automation; It changes the wrong control or scope for the requested outcome.

Question 532

A team expects all logs to land in a sink destination but only a subset arrives. Which solution should be used?

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

Explanation

Correct Answer

B:

Sink filters determine matched log entries, and writer authorization controls delivery. Bucket retention alone does not make a sink export all records.

Incorrect Answers

A:

An operator would use this action to control access to centralized log subsets, chiefly when trying to limit sensitive log visibility; The current requirement is to fix missing routed log events, which remains unresolved by that operation.

C:

Administrators use it to collect descendant logs through hierarchy routing, rather than to fix missing routed log events. Applying it would change the wrong component of this deployment.

D:

The result of this choice would be to publish log entries to a message topic. The requested outcome, to fix missing routed log events, is handled at a different layer or through another operation.

E:

Select this when the goal is to export matching log entries to BigQuery. Here the decisive requirement is to fix missing routed log events, and that outcome is not achieved by this action.

Question 533

An auditor must investigate reads of sensitive objects in a Cloud Storage bucket. General Admin Activity entries are visible, but object read activity is not. Which TWO checks are appropriate? (Choose TWO.)

  1. Confirm the auditor has the log-viewing permissions required for the Data Access entries
  2. Disable bucket authorization checks to make object reads show up in logging
  3. Check whether the relevant Cloud Audit Logs Data Access audit logging is enabled or exempt for the service and scope
  4. Assume Admin Activity logs always contain every object read performed by every principal

Explanation

Correct Answers

A:

Data Access audit logs may have additional visibility requirements beyond ordinary log viewing. The investigator needs the appropriate IAM access to read those records.

C:

Object read operations are commonly represented by Data Access log records. Data Access audit-log settings and exclusions determine whether suitable access activity is available for investigation.

Incorrect Answers

B:

Authorization controls do not need to be removed to obtain audit visibility. Disabling protection creates exposure and does not correctly configure access auditing.

D:

Admin Activity logs are primarily administrative audit records. They are not a substitute for the Data Access records required to investigate individual object read operations.

Question 534

A security investigation needs evidence of supported data reads from Cloud Storage. Which configuration best meets the requirement?

  1. Enable VPC Flow Logs for the appropriate subnet and inspect exported entries
  2. Enable firewall rules logging where supported
  3. Enable and query appropriate Cloud Audit Logs Data Access logs
  4. Inspect the relevant Cloud Audit Logs Admin Activity entries

Explanation

Correct Answer

C:

Data Access logs can report eligible read and write API operations, subject to configuration and access restrictions. Admin Activity logs focus on resource administration.

Incorrect Answers

A:

The result of this choice would be to collect VPC traffic flow summaries. The requested outcome, to find who accessed stored objects, is handled at a different layer or through another operation.

B:

Administrators use it to log network firewall rule decisions, rather than to find who accessed stored objects. Applying it would change the wrong component of this deployment.

D:

While this can review administrative API changes, the present task requires an action to find who accessed stored objects. This operation does not supply the behavior described in the requirements.

Question 535

A networking team needs sampled flow metadata for traffic entering or leaving a subnet. What should be configured?

  1. Enable firewall rules logging where supported
  2. Create a Logging sink targeting an authorized Pub/Sub topic
  3. Enable VPC Flow Logs for the appropriate subnet and inspect exported entries
  4. Enable and query appropriate Cloud Audit Logs Data Access logs
  5. Inspect the relevant Cloud Audit Logs Admin Activity entries

Explanation

Correct Answer

C:

VPC Flow Logs record sampled network flow metadata rather than full packet payloads. They aid traffic analysis without replacing firewall enforcement.

Incorrect Answers

A:

The tool can log network firewall rule decisions, but it cannot be substituted for the capability needed to investigate subnet network flows. Its operational effect is not equivalent.

B:

An operator would use this action to publish log entries to a message topic, chiefly when trying to stream selected logs to incident automation; The current requirement is to investigate subnet network flows, which remains unresolved by that operation.

D:

It can audit storage data-plane reads; however, it does not provide the specific operation to investigate subnet network flows. The two controls serve different purposes.

E:

Select this when the goal is to review administrative API changes. Here the decisive requirement is to investigate subnet network flows, and that outcome is not achieved by this action.

Question 536

A security operator wants to record which firewall rules allow or deny eligible connections. Which action is most appropriate?

  1. Enable and query appropriate Cloud Audit Logs Data Access logs
  2. Create or configure a Cloud Logging bucket with appropriate retention settings
  3. Enable firewall rules logging where supported
  4. Inspect the relevant Cloud Audit Logs Admin Activity entries
  5. Enable VPC Flow Logs for the appropriate subnet and inspect exported entries

Explanation

Correct Answer

C:

Firewall logging can record relevant allow or deny decisions for configured rules. It does not reveal full HTTP request payloads.

Incorrect Answers

A:

This setting would audit storage data-plane reads. That behavior does not establish the requested ability to audit permitted and blocked traffic; it addresses an adjacent concern instead.

B:

For the stated need to audit permitted and blocked traffic, this would instead set Cloud Logging storage retention; it supports the separate task to retain security logs for compliance, not the required configuration.

D:

This approach can review administrative API changes. The requirement is to audit permitted and blocked traffic, so it controls a different part of the workflow and leaves that result unaddressed.

E:

While this can collect VPC traffic flow summaries, the present task requires an action to audit permitted and blocked traffic. This operation does not supply the behavior described in the requirements.

Question 537

A distributed API has high latency and the team wants to see time spent across service calls. Which method addresses the task?

  1. Inspect Query Insights or the supported query diagnostic interface
  2. Use Cloud Profiler with supported runtime instrumentation
  3. Create a Cloud Monitoring metric-threshold alerting policy with an appropriate duration
  4. Use Cloud Trace with appropriate application instrumentation
  5. Evaluate the database index advisor's recommendations

Explanation

Correct Answer

D:

Tracing follows sampled or collected request spans across components. It helps locate slow operations beyond aggregate CPU usage.

Incorrect Answers

A:

Select this when the goal is to diagnose relational query latency. Here the decisive requirement is to find slow spans in distributed requests, and that outcome is not achieved by this action.

B:

It can profile code CPU hot spots; however, it does not provide the specific operation to find slow spans in distributed requests. The two controls serve different purposes.

C:

This mechanism is intended to alert on sustained metric threshold breach. It does not implement the required action to find slow spans in distributed requests, even though both are relevant to the same general service.

E:

The tool can assess query index recommendations, but it cannot be substituted for the capability needed to find slow spans in distributed requests. Its operational effect is not equivalent.

Question 538

A CPU-bound application needs profiling to identify functions consuming processor time. What is the best next step?

  1. Use Cloud Profiler with supported runtime instrumentation
  2. Inspect Query Insights or the supported query diagnostic interface
  3. Evaluate the database index advisor's recommendations
  4. Use Cloud Trace with appropriate application instrumentation

Explanation

Correct Answer

A:

Profiling collects statistical information about code execution hot spots. It addresses function-level resource consumption rather than infrastructure inventory.

Incorrect Answers

B:

This approach can diagnose relational query latency. The requirement is to find expensive application functions, so it controls a different part of the workflow and leaves that result unaddressed.

C:

Using this action would assess query index recommendations, not find expensive application functions. Its function is different from the specific change described in the scenario.

D:

This choice is useful to trace request latency across services. The stated task is to find expensive application functions, which requires a different mechanism or permission scope.

Question 539

A Cloud SQL database shows slow queries and engineers need database-level performance insights. Which configuration best meets the requirement?

  1. Use Cloud Profiler with supported runtime instrumentation
  2. Inspect Query Insights or the supported query diagnostic interface
  3. Filter or correlate Cloud Logging entries using the trace field
  4. Use Cloud Trace with appropriate application instrumentation
  5. Evaluate the database index advisor's recommendations

Explanation

Correct Answer

B:

Query Insights attributes database execution time to statements and relevant load characteristics. A generic uptime check cannot identify slow SQL.

Incorrect Answers

A:

This mechanism is intended to profile code CPU hot spots. It does not implement the required action to inspect slow database queries, even though both are relevant to the same general service.

C:

For the stated need to inspect slow database queries, this would instead correlate log entries by trace ID; it supports the separate task to follow one request's error records, not the required configuration.

D:

Administrators use it to trace request latency across services, rather than to inspect slow database queries. Applying it would change the wrong component of this deployment.

E:

The result of this choice would be to assess query index recommendations. The requested outcome, to inspect slow database queries, is handled at a different layer or through another operation.

Question 540

A relational query repeatedly scans too much data and an advisor suggests index improvements. What should be configured?

  1. Use Cloud Trace with appropriate application instrumentation
  2. Enable and query appropriate Cloud Audit Logs Data Access logs
  3. Use Cloud Profiler with supported runtime instrumentation
  4. Evaluate the database index advisor's recommendations
  5. Inspect Query Insights or the supported query diagnostic interface

Explanation

Correct Answer

D:

Index advisor features identify potentially useful indexes for supported engines. Recommendations need testing against write cost and workload constraints.

Incorrect Answers

A:

The tool can trace request latency across services, but it cannot be substituted for the capability needed to optimize slow relational access paths. Its operational effect is not equivalent.

B:

In a workflow for audit logs and network visibility, it can audit storage data-plane reads; This question instead asks how to optimize slow relational access paths; substituting the former action would leave that distinct technical requirement unmet.

C:

It can profile code CPU hot spots; however, it does not provide the specific operation to optimize slow relational access paths. The two controls serve different purposes.

E:

This choice is useful to diagnose relational query latency. The stated task is to optimize slow relational access paths, which requires a different mechanism or permission scope.

Associate Cloud Engineer Practice Tests