Tüm alıştırma soruları
1591 soru
A DevOps engineer needs to update an existing firewall rule named allow-internal-web in a custom Virtual Private Cloud (VPC) network. The rule currently filters traffic using the network tag legacy-web-backend. The team is migrating to identity-based security controls and requires the firewall rule to target instances using the service account [email protected] instead, while removing the existing network tag filter. Which gcloud command should the engineer execute to complete this operational change?
You need to configure Cloud Pub/Sub to trigger a Cloud Run microservice named `event-processor` using a secure push subscription. The Cloud Run service must reject any direct unauthenticated HTTP traffic from the public internet. Arrange the operational steps in the correct order to set up this secure integration.
Öğeleri doğru sıraya koymak için sürükleyin
A security team enforces a strict policy at the root Organization node using the boolean constraint `constraints/iam.disableServiceAccountKeyCreation` set to `enforce: true`. An engineering team managing resources inside a specific child folder named `Legacy-Migration` requires temporary permission to create service account JSON keys for legacy workloads. The security team wants to allow service account key creation exclusively for resources within the `Legacy-Migration` folder hierarchy, while preserving the restriction across all other folders and without modifying user IAM permissions. Which configuration procedure should the security team perform?
An internal microservice hosted on Cloud Run named `payment-gateway` in the `us-central1` region must be configured so that it only accepts traffic originating from resources within the same Virtual Private Cloud (VPC) network or through a Google Cloud Cloud Load Balancing instance, while blocking direct public internet requests. Which command should a Cloud Engineer execute to apply this networking restriction to the existing service?
A cloud engineer needs to deploy a mission-critical database virtual machine named `prod-db-01` in zone `us-east4-a` using the `gcloud` CLI. To protect the workload against accidental deletion through the Google Cloud Console or CLI, deletion protection must be enabled on the instance. Furthermore, the boot disk must be retained if the VM is ever deleted in the future. Which `gcloud compute instances create` command should the engineer execute?
An infrastructure administrator needs to collect detailed system memory metrics from running Compute Engine virtual machines and inspect early stage kernel boot messages for instances that fail to start. Which TWO configuration actions should the administrator take to accomplish these operational tasks?
Geçerli olan tümünü seçin
A security engineer needs to configure short-lived credential access for a developer working from a local terminal. The developer must deploy Cloud Storage resources by impersonating a dedicated service account named `[email protected]` without exporting service account JSON keys. Arrange the steps in the correct order to configure and enable service account impersonation using the gcloud CLI.
Öğeleri doğru sıraya koymak için sürükleyin
A network operations team is deploying firewall rules in a custom-mode Virtual Private Cloud (VPC) network. A target compute tier tagged `db-node` must receive PostgreSQL traffic on TCP port 5432 exclusively from an application tier tagged `app-node`. An existing firewall rule named `block-db-ingress` explicitly denies all ingress traffic on port 5432 with a priority of 500. Which TWO configuration settings must be applied to the new firewall rule to successfully allow this ingress traffic?
Geçerli olan tümünü seçin
A cloud network administrator is establishing high-availability hybrid connectivity between an on-premises data center and a GCP Virtual Private Cloud (VPC) network. An HA VPN gateway named `ha-vpn-gateway` and a Cloud Router named `bgp-router` have already been provisioned in region `us-central1`. Which TWO steps must the administrator perform next to complete the operational deployment of the VPN tunnels and dynamic routing sessions?
Geçerli olan tümünü seçin
A database administrator needs to allow an automated data extraction script, executing on a Compute Engine virtual machine instance in project `analytics-prod`, to read raw dataset files stored in a Cloud Storage bucket located inside a separate project `data-lake-central`. The Compute Engine instance is already configured to run with a custom user-managed service account named `[email protected]`. Following Google Cloud security best practices for cross-project resource access and the principle of least privilege, which configuration should the administrator apply?
A cloud operations team needs to grant a newly assigned developer permissions to deploy, update, and manage Cloud Functions within a target project named `backend-api-884`. The developer must not be granted permissions to modify other infrastructure components in the project, nor should their permissions extend to any other projects within the resource hierarchy. Which IAM role assignment adheres strictly to the principle of least privilege?
An enterprise security policy mandates that an automated CI/CD pipeline executing on an external server must deploy Cloud Functions without using long-lived downloadable service account keys. The deployment script runs under an identity service account named [email protected]. A dedicated deployment service account named [email protected] has already been provisioned with the necessary Cloud Developer permissions. Which IAM configuration should the cloud engineer implement on func-deployer to allow cicd-runner to mint short-lived credential tokens under the principle of least privilege?
An enterprise operations team is implementing system telemetry collection and log archiving across a fleet of Compute Engine virtual machines. They require detailed operating system metrics (including memory and swap utilization) and must forward critical audit logs to a centralized BigQuery dataset in a security management project. Which two actions should the Cloud Engineer perform to satisfy these operational requirements following Google Cloud recommended practices? (Select TWO answers.)
Geçerli olan tümünü seçin
A cloud administrator is tasked with setting up system memory and disk utilization telemetry for a newly deployed fleet of Linux Compute Engine virtual machines. Upon viewing the Cloud Monitoring dashboard, the administrator notices that memory utilization metrics are absent. The administrator must collect these operating system level metrics and send them to Cloud Monitoring while strictly adhering to Google-recommended practices and the principle of least privilege. Which approach should the administrator take?
A Google Cloud administrator manages a multi-tier resource hierarchy. At the root Organization node, the list constraint `constraints/gcp.resourceLocations` is configured to allow resources only in `in:us-locations`. The operations team creates a dedicated Folder named `/Europe-Operations` to host European workloads. Developers working inside this folder report that they are unable to create Cloud Storage buckets in `europe-west1`. The administrator must allow resource deployment in `europe-west1` for all projects within `/Europe-Operations` while maintaining existing restrictions across the rest of the organization, without granting developers administrative rights over security policies. Which TWO actions should the administrator perform? (Select TWO.)
Geçerli olan tümünü seçin
An application deployed on Cloud Run in Project-A needs to publish messages securely to a Cloud Pub/Sub topic located in Project-B. Enterprise security policy strictly forbids generating or downloading service account keys. A dedicated target service account with Pub/Sub Publisher privileges has already been created in Project-B. Which IAM configuration correctly enables the Cloud Run service account in Project-A to generate short-lived credentials for the target service account following Google Cloud best practices?
A cloud operations team manages a stateful database cluster hosted on Compute Engine virtual machines in the region `us-central1`. During a planned scale-out operation, attempting to create additional VM instances fails with an error indicating that the regional `N2_CPUS` quota limit has been exceeded. The database workload requires continuous availability and cannot tolerate unexpected instance terminations. Which action should the team take to resolve this deployment failure in accordance with Google-recommended best practices?
A cloud solution architect is configuring ingress firewall rules for a Google Cloud Virtual Private Cloud (VPC) network. An existing firewall rule allows SSH traffic (TCP port 22) from any source IP range (0.0.0.0/0) with a rule priority of 1000. The security team issues a new requirement to restrict SSH access so that only connections from the administrative CIDR range 192.168.10.0/24 are permitted, while all other SSH traffic from 0.0.0.0/0 must be blocked. Which firewall rule configuration correctly meets this requirement?
An analytics team needs to execute BigQuery SQL queries within project `proj-analytics-881` and read raw data files stored in a specific Cloud Storage bucket named `gs://raw-telemetry-2026`. The security administrator must configure access adhering strictly to the principle of least privilege. Which TWO IAM role bindings should be granted?
Geçerli olan tümünü seçin
An operations engineer needs to update a regional internal HTTP(S) load balancer in Google Cloud. The team has deployed a new managed instance group named `ig-prod-backend` in region `us-central1` and wants to attach it as an additional backend to an existing regional backend service named `be-prod-service` in the same region. Which `gcloud` command should the engineer execute to achieve this configuration?