All practice questions
1591 questions
An operations team needs to monitor custom error codes appearing in container log entries from a Google Kubernetes Engine (GKE) cluster. Whenever the rate of these specific error logs exceeds a critical threshold, the system must trigger an alert that sends notifications to an external incident management platform via an HTTP endpoint. Which TWO actions must the operations team take to configure this solution?
Select all that apply
A DevOps engineer is configuring Customer-Managed Encryption Keys (CMEK) in Google Cloud KMS for a Cloud Storage bucket that stores database backups. Corporate security policy mandates strict separation of duties: the Cloud Storage service agent must only be able to perform encryption and decryption operations with the key, while the security operations team must manage key lifecycle and IAM access policies without having permission to encrypt or decrypt data. Which TWO actions should be performed to satisfy these requirements?
Select all that apply
A DevOps team manages a fleet of Compute Engine Linux virtual machines running a custom application. They need to collect both guest operating system metrics (such as memory usage) and custom application log files located at `/var/log/app/*.log`, sending all telemetry to Google Cloud Observability. Which procedure is the Google-recommended approach to satisfy these operational requirements?
A security engineer needs to configure a dedicated user-managed service account for an application that publishes telemetry data to Google Cloud Pub/Sub. To satisfy security policies prohibiting long-lived JSON keys, the developer group (`[email protected]`) must be granted access to test the application by impersonating the service account. Place the operational steps in the correct sequence to complete this configuration.
Drag items to arrange them in the correct order
A security operations team requires access to analyze Google Cloud Audit Logs during incident response investigations. The analysts must be able to read both standard Admin Activity logs and sensitive Data Access audit logs across project resources. Which of the following IAM roles grant the necessary permissions to view Data Access audit logs in Cloud Logging? (Select TWO.)
Select all that apply
An organization requires an application service account residing in Project A to encrypt and decrypt sensitive application data using a Customer-Managed Encryption Key (CMEK) hosted in a central Cloud KMS project (Project B). The application service account must adhere to the principle of least privilege and must not possess permissions to create key versions, manage key ring permissions, or destroy keys. How should the cloud administrator configure IAM access for the service account in Project B?
A platform team lead needs to grant a Site Reliability Engineering (SRE) team member permission to view standard Admin Activity audit logs in Cloud Logging for a GCP project. The team member must not be allowed to view Data Access audit logs containing sensitive information, nor should they be able to create log sinks or modify logging configurations. Following Google Cloud's principle of least privilege, which IAM role should be assigned to the team member?
A deployment script needs to provision a dedicated user-managed service account named `data-processor-sa` in project `finance-analytics` and grant it read-only access to objects inside a specific Cloud Storage bucket `gs://finance-raw-data`. Following Google Cloud security best practices and the principle of least privilege, which sequence of `gcloud` commands should be executed to create the service account and assign the required access?
gcloud storage buckets add-iam-policy-binding gs://finance-raw-data --member="serviceAccount:[email protected]" --role="roles/storage.objectViewer"
gcloud iam service-accounts keys create key.json --iam-account="[email protected]"
gcloud projects add-iam-policy-binding finance-analytics --member="serviceAccount:[email protected]" --role="roles/editor"
gcloud projects add-iam-policy-binding finance-analytics --member="serviceAccount:[email protected]" --role="roles/viewer"
A security administration team needs to perform an immediate manual key rotation for a customer-managed key stored in Google Cloud KMS due to a updated corporate compliance policy. The team must ensure that new data is encrypted using the updated key version, existing data can still be decrypted, and least privilege IAM access is maintained without granting administrative control over the key ring. Which of the following actions should you perform to meet these requirements? (Select TWO)
Select all that apply
A cloud security engineer needs to stream all Identity and Access Management (IAM) policy change audit logs from a Google Cloud project to a BigQuery dataset for long-term compliance analysis. In what sequential order should the engineer perform the steps to configure the Cloud Logging sink and grant the minimum necessary permissions for log streaming?
Drag items to arrange them in the correct order
An operations team creates a Cloud Logging Log Router sink in a source Google Cloud project to export audit logs to a Pub/Sub topic located in a separate compliance project. After configuring the sink, they observe that log messages are not arriving in the destination Pub/Sub topic. What configuration step is required to enable log delivery?
A cloud engineer needs to configure a running Compute Engine VM instance to securely read objects from a Cloud Storage bucket using a dedicated user-managed service account following Google Cloud security best practices. In what order should the engineer execute the following steps to complete this configuration using `gcloud` CLI tools?
Drag items to arrange them in the correct order
A system administrator is configuring a automated backup utility running on an internal corporate server. The utility must periodically upload database backups to a specific Cloud Storage bucket named `prod-backups-bucket` residing in project `prod-data-repository`. Following Google Cloud security best practices for credential management and access control, which strategy should the administrator implement?
A security compliance team needs to aggregate and retain all admin activity audit logs from every Google Cloud project residing within a specific organizational Folder. The logs must be streamed into a central BigQuery dataset located in a dedicated security project for long-term analysis. You need to configure this aggregated log export while adhering to the principle of least privilege. Which TWO actions should you perform? (Select 2 answers.)
Select all that apply
A junior security administrator needs permission to view standard Admin Activity audit logs within a specific Google Cloud project to investigate resource deletion events. To comply with security requirements, the administrator must not be able to view sensitive Data Access audit logs or modify Cloud Logging configurations. Following Google Cloud best practices for least privilege, which IAM role should be assigned to the administrator?
A DevOps team manages a fleet of Compute Engine Linux virtual machines hosting a critical business application. The team needs to capture guest operating system memory utilization metrics and ingest custom application log files stored at `/var/log/app-service.log` into Google Cloud Observability. Which solution follows Google recommended practices to collect both the memory telemetry and log files?
A cloud compliance engineer needs to extract audit records for all deleted Compute Engine virtual machine instances within a project named `prod-infrastructure`. The engineer wants to run a `gcloud logging read` command that targets only standard Admin Activity audit logs containing the API calls for instance deletion. Which filter expression should be passed to the command?
A cloud operations team is configuring identity and access management for a microservice deployed on Google Cloud infrastructure. They need to create a dedicated user-managed service account and configure it according to Google Cloud security best practices. Which of the following steps should the team perform to fulfill this requirement? (Select TWO.)
Select all that apply
A cloud engineer needs to export application error logs from a Google Cloud project to an analytics team's BigQuery dataset located in a different project. The engineer configures a Cloud Logging Log Router sink with a BigQuery destination. What step must be completed to allow the sink to successfully write log entries to the destination dataset using least-privilege security practices?
A Security Operations analyst needs to enable tracking for sensitive bucket access and analyze the resulting Cloud Audit Logs for Google Cloud Storage within a specific GCP project. What is the correct sequence of steps to configure audit logging, assign necessary permissions, and retrieve the audit entries?
Drag items to arrange them in the correct order