Tüm alıştırma soruları
1591 soru
A DevOps engineer is managing network security for a custom Virtual Private Cloud (VPC) network named `vpc-prod`. An existing ingress firewall rule named `allow-internal-web` with priority 1000 permits TCP traffic on port 8080 from the `10.0.0.0/8` IP range to VM instances tagged `web-frontend`. To address a security compliance finding, the engineer must explicitly block incoming TCP traffic on port 8080 originating from the `10.2.0.0/24` subnet while preserving access for all other subnets within `10.0.0.0/8`. Which `gcloud` command should the engineer execute?
A Cloud Engineer needs to perform a manual blue-green node pool replacement in a Google Kubernetes Engine (GKE) cluster to move workloads from an old pool (pool-v1) to a newly configured pool (pool-v2) with zero application downtime. Arrange the operational steps below in the correct execution sequence.
Öğeleri doğru sıraya koymak için sürükleyin
A DevOps engineer needs to run a database schema migration script from their local workstation using the identity of a dedicated production service account named `[email protected]`. The organization's security policy strictly forbids generating and downloading long-lived service account JSON keys. Which IAM configuration allows the engineer to execute commands on behalf of the service account using gcloud impersonation?
A developer needs to deploy an event-driven Node.js microservice to Google Cloud Functions (2nd gen) that executes whenever a new image file is created in a Cloud Storage bucket named `user-uploads-bucket`. The code entry point is `processImage`. Which `gcloud` command should be executed to successfully deploy this serverless application?
A DevOps engineer manages a high-traffic production web application running on an existing regional Managed Instance Group (MIG) in Google Compute Engine. A new application release has been packaged into a updated instance template named `web-template-v2`. The engineer must update all running instances in the MIG to use this new template while maintaining continuous service availability without causing downtime. Which command or operational workflow should the engineer execute to meet these requirements?
A DevOps team is deploying a multi-region network infrastructure using the Google Cloud CLI (`gcloud`). They need to configure a custom-mode Virtual Private Cloud (VPC) named `corp-vpc` with a new primary subnet in `us-central1` (). Additionally, security policies require allowing incoming HTTPS (TCP port 443) traffic exclusively to instances tagged with `frontend`, while ensuring this rule takes precedence over lower-priority default rules. Which TWO actions must be executed to successfully complete this deployment?
Geçerli olan tümünü seçin
An organization is migrating an existing Google Cloud Storage bucket from fine-grained Access Control Lists (ACLs) to Uniform Bucket-Level Access (UBLA) to meet security compliance standards. What is the correct sequence of steps to execute this migration safely without revoking required access?
Öğeleri doğru sıraya koymak için sürükleyin
A Cloud Engineer is configuring IAM permissions for a dedicated service account used by a Cloud Function. The function must pull messages from a specific Cloud Pub/Sub subscription and upload processed results into a specific Cloud Storage bucket. Following the principle of least privilege, which two IAM role assignments should be granted to the service account?
Geçerli olan tümünü seçin
An operations team manages a Cloud SQL for PostgreSQL database instance used for live transaction processing. Business analysts frequently execute heavy reporting queries directly against this primary instance, causing CPU utilization spikes that slow down transactional write operations. You need to mitigate the performance impact on transaction processing with minimal operational overhead. Which action should you take?
An enterprise operations team uses a centralized continuous integration runner authenticated as `[email protected]` in the project `shared-tools`. The runner needs to deploy infrastructure into project `prod-app-env` by assuming the identity of a target service account `[email protected]` without relying on exported credentials. Which TWO configuration steps are required to establish secure service account impersonation for this workflow? (Select TWO.)
Geçerli olan tümünü seçin
A site reliability engineer needs read-only access to inspect the configuration, state, and metadata of Compute Engine Virtual Machine (VM) instances in a specific project named `proj-prod-analytics`. The engineer must not be granted permissions to modify VM configurations, start or stop instances, or access instance serial console logs. Following Google Cloud recommended security practices, which IAM role binding should you apply?
A security operations team wants to ensure that no virtual machines created within a development Folder can be assigned public IP addresses. This rule must automatically apply to all current and future projects inside that folder. Which configuration should be used to enforce this restriction?
A cloud administrator is configuring access controls for a Google Cloud Storage bucket and needs to enforce Uniform Bucket-Level Access (UBLA) to meet security compliance standards. Which TWO statements accurately describe the behavior and enforcement when Uniform Bucket-Level Access is enabled on a Cloud Storage bucket?
Geçerli olan tümünü seçin
An engineer needs to set up secure, keyless access for an application running on a Google Compute Engine virtual machine to read data from BigQuery. Arrange the procedural steps in the correct chronological order to achieve this setup following Google Cloud best practices.
Öğeleri doğru sıraya koymak için sürükleyin
A company requires a team of data analysts to execute analytical queries against a BigQuery dataset in the analytics-prod project from their local workstations. To strictly align with GCP security best practices, long-lived service account keys must not be created or downloaded. The analysts must perform operations using the identity of a dedicated service account, [email protected], which already possesses the necessary BigQuery permissions. Which configuration properly enables the analysts to impersonate this service account while following the principle of least privilege?
A DevOps engineer needs to package a Python web application from local source code into a container image and deploy it to Google Cloud Run using the gcloud CLI. Place the following operational steps in the correct sequential order from first to last.
Öğeleri doğru sıraya koymak için sürükleyin
An organization is setting up continuous deployment pipelines for a containerized application that interacts with a Cloud Spanner database in a single target project named `prod-app-services`. The automated service account used by the deployment pipeline needs permission to deploy updated Cloud Run services and execute database schema modifications in Cloud Spanner. The security architecture policy strictly mandates applying the Principle of Least Privilege and restricting role scope to only the necessary project. Which TWO IAM role bindings should be granted to the service account? (Select TWO.)
Geçerli olan tümünü seçin
A security auditor requires your team to standardize security controls on an active production Cloud Storage bucket currently configured with fine-grained access control. You must transition this bucket to enforce Uniform Bucket-Level Access (UBLA) without causing access disruptions for authorized applications and service accounts. Arrange the operational steps in the correct chronological sequence to safely complete this security migration.
Öğeleri doğru sıraya koymak için sürükleyin
A security engineer is tasked with migrating a legacy production Cloud Storage bucket containing financial records from fine-grained Access Control Lists (ACLs) to Uniform Bucket-Level Access (UBLA) in accordance with company security posture mandates. Arrange the migration and enforcement steps in the correct sequential order to prevent service disruption while ensuring strict security policy enforcement.
Öğeleri doğru sıraya koymak için sürükleyin
A DevOps team manages a web application hosted on a Google Kubernetes Engine (GKE) Standard cluster. The team has configured a Horizontal Pod Autoscaler (HPA) to dynamically scale pod replicas based on CPU utilization. However, during a high-traffic test event, the HPA fails to scale the workload, and running `kubectl describe hpa web-app-hpa` outputs the warning: `unable to get metrics for resource cpu: no metrics returned from resource metrics API`. What action should the Cloud Engineer take to resolve this issue and allow the Horizontal Pod Autoscaler to collect resource metrics?