Tüm alıştırma soruları

1591 soru

Soru 261Soru

A healthcare analytics platform on Google Cloud is planning the serverless compute architecture for two microservices:

1. Service A: A lightweight Python script triggered by incoming HTTP webhooks from patient monitoring devices, requiring minimal deployment overhead and execution under 5 seconds.
2. Service B: A custom microservice compiled from C++ source code packaged as a Docker container image that must process up to 80 concurrent HTTP requests per instance to optimize compute costs.

Which of the following serverless compute recommendations should the cloud engineer implement? (Select TWO.)

Geçerli olan tümünü seçin

Cevabı ve açıklamayı göster

Cevap: Deploy Service A to Cloud Functions because it provides an event-driven serverless environment optimized for lightweight code snippets without requiring container management.; Deploy Service B to Cloud Run because it supports custom container images and allows configuring request concurrency up to 80 requests per instance.

Cevap

Deploy Service A using Cloud Functions to leverage a lightweight event-driven model, and deploy Service B using Cloud Run to support custom C++ container images with high request concurrency.
Cloud Functions is designed for lightweight, event-driven webhooks without requiring custom container management. Cloud Run is designed for deploying arbitrary container images, accommodating custom language binaries like C++, and supporting high concurrency settings per container instance.

Adım Adım Çözüm

1
Evaluate requirements for Service A.
Service A requires executing a simple Python webhook script quickly with minimal operational management.
Cloud Functions is designed specifically for event-driven functions and webhooks without needing container build pipelines.
2
Evaluate requirements for Service B.
Service B relies on a custom compiled C++ binary in a Docker image and high instance concurrency (80 requests per instance).
Cloud Run supports custom container runtimes and multi-concurrency per container instance, making it the appropriate choice for Service B.

Anahtar Kavram

Selecting between Cloud Functions for simple event-driven scripts and Cloud Run for containerized services requiring custom runtimes and multi-request concurrency.
Soru 262Soru

A cloud engineer is setting up cost oversight for a newly created workload. The engineer needs to receive automated email notifications when project spending reaches defined limits and must also analyze daily itemized spend trends using SQL. Which TWO actions should the engineer take to meet these requirements? (Select TWO answers.)

Geçerli olan tümünü seçin

Cevabı ve açıklamayı göster

Cevap: Create a Cloud Billing budget for the target project and configure threshold rules to trigger email alerts.; Configure Cloud Billing export to send detailed cost data directly into a BigQuery dataset.

Cevap

The engineer should create a Cloud Billing budget with threshold rules to send email alerts and configure Cloud Billing export to stream detailed cost data to a BigQuery dataset.
To receive spending alerts, a Cloud Billing budget must be created with alert threshold rules that send email notifications. To analyze itemized billing data using SQL queries, Cloud Billing export must be enabled and directed to a BigQuery dataset.

Adım Adım Çözüm

1
Configure budget email notifications
Budgets monitor project costs and trigger emails to administrators upon reaching percentage thresholds.
Meets the requirement for receiving automated email alerts when spending limits are approached.
2
Enable BigQuery billing export
Daily itemized billing metrics are continuously loaded into tables within a designated BigQuery dataset.
Meets the requirement for querying raw cost trends and usage data using SQL.

Anahtar Kavram

Billing Budgets, Alerts, and BigQuery Export Configuration
Soru 263Soru

Match each Google Cloud database or persistent storage option to the enterprise workload requirement that best aligns with its architectural characteristics and performance capabilities.

Soldaki öğeye tıklayın, sonra eşleşen sağdaki öğeye tıklayın

Öğeler

Cloud Spanner
Cloud Bigtable
Local SSD
Cloud SQL

Eşleşmeler

Cevabı ve açıklamayı göster

Cevap

Cloud Spanner matches globally distributed relational ACID workloads; Cloud Bigtable matches low-latency high-throughput NoSQL analytics; Local SSD matches host-attached ephemeral scratch storage; Cloud SQL matches managed regional relational DB engines.
Each GCP storage and database service addresses distinct architectural requirements across scalability, relational model support, access latency, and data persistence guarantees.

Adım Adım Çözüm

1
Analyze global multi-region relational requirements.
Identify Cloud Spanner as the sole option supporting horizontal scaling with multi-region relational ACID transactions.
Standard regional engines cannot scale horizontally across regions while preserving synchronous relational transactions.
2
Evaluate high-throughput NoSQL time-series requirements.
Identify Cloud Bigtable for key-value wide-column workloads needing single-digit millisecond latency.
Cloud Bigtable provides seamless scaling for heavy streaming reads and writes.
3
Assess host-attached block storage performance and persistence.
Identify Local SSD as ephemeral block storage physically linked to the hypervisor host.
Local SSDs deliver highest IOPS and lowest latency but lose data if the instance stops.
4
Identify regional managed relational database solutions.
Match Cloud SQL to regional transactional workloads running MySQL, PostgreSQL, or SQL Server engines.
Cloud SQL simplifies operational overhead for standard relational database engines within a region.

Anahtar Kavram

Planning Database Options and Persistent Disk Types based on scale, transaction model, latency, and data persistence.
Soru 264Soru

Your organization needs to grant an external audit team read-only access to inspect IAM policy bindings across all Google Cloud projects contained within a specific Folder named 'Finance-Workloads'. To strictly enforce the principle of least privilege, you must avoid primitive roles or overly permissive predefined roles by defining a custom IAM role with only the `resourcemanager.projects.getIamPolicy` permission at the folder level and assigning it to the auditors' Google Group via the `gcloud` CLI. In what exact order should you execute the configuration and command-line steps to implement this security control?

Öğeleri doğru sıraya koymak için sürükleyin

Cevabı ve açıklamayı göster

Cevap

The correct order of operations is: first, author the custom IAM role YAML configuration file locally; second, execute the gcloud role creation command targeting the folder scope; third, attach the newly created folder-scoped role to the auditors' Google Group at the folder level; fourth, validate the effective policy inheritance down to all child projects.
The sequence follows Google Cloud IAM best practices: first defining the custom role manifest locally, instantiating the role at the folder scope via gcloud, binding the instantiated role to the group principal at the folder scope to leverage resource hierarchy inheritance, and finally analyzing effective policy inheritance.

Adım Adım Çözüm

1
Define the custom role specification file locally
A valid YAML configuration file containing the `resourcemanager.projects.getIamPolicy` permission is generated.
The gcloud CLI requires a structured definition file when creating custom IAM roles containing discrete permission arrays.
2
Create the custom IAM role at the folder hierarchy node
The custom IAM role resource `folders/FOLDER_ID/roles/customIamPolicyAuditor` is created.
Roles must exist at a specific parent scope (Organization or Folder) before they can be referenced in policy bindings.
3
Add an IAM policy binding on the target folder
The auditor group is granted the folder-scoped custom IAM role.
Binding the role at the folder node allows permissions to automatically inherit down to all contained Cloud projects.
4
Analyze and verify inherited policy permissions
Confirmed effective permissions for auditors across all child project resources without over-granting access.
Verification ensures that least-privilege compliance is achieved and that policy inheritance functions as intended.

Anahtar Kavram

Custom IAM Role Creation and Folder-Level Resource Hierarchy Inheritance
Tahmini Süre:2m 30s
Soru 265Soru

A cloud engineer is configuring a cost estimate in the Google Cloud Pricing Calculator for a high-availability database cluster operating continuously in `us-central1` for a 730730-hour month.

The target architecture consists of the following components:
1. Compute Engine: 1010 `custom-2-8` VM instances (each with 22 vCPUs and 8 GB8\text{ GB} of RAM).
- Base rate per vCPU: $0.033174\$0.033174 per hour.
- Base rate per GB RAM: $0.004446\$0.004446 per hour.
- Sustained Use Discount (SUD): Instances run 100%100\% of the month, qualifying for an effective 30%30\% discount on total compute costs (0.700.70 multiplier).
2. Storage: Each of the 1010 instances uses a 200 GB200\text{ GB} Extreme Persistent Disk (`pd-extreme`) provisioned with 2,500 IOPS2,500\text{ IOPS} per disk.
- Capacity rate: $0.125\$0.125 per GB per month.
- Provisioned IOPS rate: $0.025\$0.025 per provisioned IOPS per month.
3. Network Egress: Total internet data egress from `us-central1` to North America is 500 GB500\text{ GB} per month.
- First 100 GB100\text{ GB} per month: $0.00\$0.00 per GB (free tier).
- Next 400 GB400\text{ GB} (101 GB101\text{ GB} to 500 GB500\text{ GB}): $0.12\$0.12 per GB.

What is the net total monthly cost in USD for this workload? (Round your final answer to two decimal places.)

Cevabı ve açıklamayı göster

Cevap: 1443.79

Cevap

The net total monthly cost for the specified infrastructure components is 1443.791443.79 USD.
The correct result of 1443.79USDisderivedbyaccuratelycombining:(1)discountedcomputecosts(1443.79 USD is derived by accurately combining: (1) discounted compute costs ( 743.9868 \times 0.70 = 520.79076 USD),(2)ExtremePersistentDiskstoragecapacity( USD), (2) Extreme Persistent Disk storage capacity ( 250.00 USD)plusprovisionedIOPS( USD) plus provisioned IOPS ( 625.00 USD),and(3)internetegressafterapplyingthe100GBfreetier( USD), and (3) internet egress after applying the 100 GB free tier ( 48.00$ USD).

Adım Adım Çözüm

1
Calculate single instance hourly compute rate for vCPU and RAM
Gross hourly rate = (2×$0.033174)+(8×$0.004446)=$0.066348+$0.035568=$0.101916(2 \times \$0.033174) + (8 \times \$0.004446) = \$0.066348 + \$0.035568 = \$0.101916 per hour.
Custom VM pricing evaluates vCPU and memory allocation independently.
2
Calculate gross compute cost for all 10 instances running 730 hours
Gross monthly compute cost = 10×730×$0.101916=$743.986810 \times 730 \times \$0.101916 = \$743.9868.
Monthly compute allocation measures total instance hours before applying sustained usage discounts.
3
Apply Sustained Use Discount (SUD) to compute cost
Net monthly compute cost = $743.9868×(10.30)=$743.9868×0.70=$520.79076\$743.9868 \times (1 - 0.30) = \$743.9868 \times 0.70 = \$520.79076.
N1 and custom workloads running continuously qualify for a 30% effective discount over a 730-hour month.
4
Calculate storage capacity and provisioned IOPS costs for Extreme Persistent Disks
Storage capacity cost = 10×200 GB×$0.125=$250.0010 \times 200\text{ GB} \times \$0.125 = \$250.00. Provisioned IOPS cost = 10×2,500 IOPS×$0.025=$625.0010 \times 2,500\text{ IOPS} \times \$0.025 = \$625.00. Total disk cost = $250.00+$625.00=$875.00\$250.00 + \$625.00 = \$875.00.
Extreme Persistent Disk pricing separates raw disk storage capacity from provisioned IOPS performance.
5
Calculate tier-based egress charges
Net egress cost = (500 GB100 GB)×$0.12=400 GB×$0.12=$48.00(500\text{ GB} - 100\text{ GB}) \times \$0.12 = 400\text{ GB} \times \$0.12 = \$48.00.
The first 100 GB of internet egress per month is free under standard GCP billing rules.
6
Sum compute, storage, and egress components for the total net cost
Total net cost = $520.79076+$875.00+$48.00=$1443.79076$1443.79\$520.79076 + \$875.00 + \$48.00 = \$1443.79076 \approx \$1443.79.
Adding all discounted subcomponents produces the final total estimate.

Anahtar Kavram

Estimating GCP Costs with the Pricing Calculator
Tahmini Süre:3m 0s
Soru 266Soru

A cloud engineer needs to estimate the monthly cost of storing database backups in Google Cloud Storage using the Google Cloud Pricing Calculator. Which of the following parameters must be configured in the pricing calculator to obtain an accurate monthly cost estimate? (Select TWO answers.)

Geçerli olan tümünü seçin

Cevabı ve açıklamayı göster

Cevap: The chosen storage class (e.g., Standard, Nearline, Coldline) and the total data storage volume; The anticipated network egress volume and destination location for reading or transferring backup data

Cevap

Accurately estimating Google Cloud Storage costs in the pricing calculator requires specifying the storage class along with data volume, as well as accounting for network egress and data retrieval operations.
To calculate accurate Cloud Storage costs, the pricing calculator requires both the at-rest storage inputs (storage class and volume) and data movement inputs (network egress destination and retrieval volume).

Adım Adım Çözüm

1
Identify baseline storage pricing inputs
Determine the amount of stored data (GB/TB) and select the corresponding storage class (Standard, Nearline, Coldline, or Archive).
At-rest storage pricing per GB varies substantially depending on the selected storage tier.
2
Identify network and operational pricing inputs
Account for monthly data egress across regions/internet and operational request volumes (Class A/B operations).
Transferring data out of a Cloud Storage bucket generates network egress charges that contribute to total monthly expenditure.

Anahtar Kavram

Google Cloud Pricing Calculator inputs for Cloud Storage include storage class, data volume, network egress, and operations.
Soru 267Soru

An enterprise operations team is structuring their Google Cloud resource hierarchy. They created a designated Folder named `Staging-Environment` for testing workloads. You need to allow the software engineering group to create new GCP projects within the `Staging-Environment` Folder only, without giving them project creation permissions across the rest of the Organization. Which administration action follows Google Cloud recommended best practices and the principle of least privilege?

Cevabı ve açıklamayı göster

Cevap: Grant the Project Creator role (`roles/resourcemanager.projectCreator`) to the software engineering group bound specifically at the `Staging-Environment` Folder level.

Cevap

Grant the Project Creator role (`roles/resourcemanager.projectCreator`) to the software engineering group bound specifically at the `Staging-Environment` Folder level.
Granting `roles/resourcemanager.projectCreator` at the target Folder level explicitly enables users to provision projects inside that specific container, adhering to the principle of least privilege while utilizing resource hierarchy inheritance appropriately.

Adım Adım Çözüm

1
Identify the required administrative capability.
The requirement calls for creating new GCP projects within a specific container in the resource hierarchy.
The predefined role `roles/resourcemanager.projectCreator` grants the `resourcemanager.projects.create` permission.
2
Determine the optimal resource hierarchy level for binding the IAM policy.
Binding the policy at the `Staging-Environment` Folder node ensures permissions automatically inherit down to projects created inside this folder only.
IAM permissions inherit down the resource hierarchy (Organization > Folder > Project > Resource). Granting permissions at the folder level limits the scope without affecting sibling folders or the Organization root.

Anahtar Kavram

Resource Hierarchy IAM Scoping and Least Privilege Project Provisioning
Tahmini Süre:1m 30s
Soru 268Soru

A cloud administrator needs to request a regional Compute Engine N2 CPU quota increase for project `analytics-prod-942` in the `us-east4` region using the Google Cloud Console. What is the correct sequential order of steps required to locate and submit this quota increase request?

Öğeleri doğru sıraya koymak için sürükleyin

Cevabı ve açıklamayı göster

Cevap

The correct sequence begins with navigating to IAM & Admin > Quotas & System Limits, filtering for the specific service (Compute Engine API), metric (N2 CPUs), and region (us-east4), selecting the matching quota item and clicking Edit Quotas, entering the target limit with a business justification, and finally submitting the request for evaluation.
To submit a quota increase request in Google Cloud, an administrator must follow a precise sequence: navigate to IAM & Admin > Quotas & System Limits to open the quota management dashboard, apply filter criteria (Service, Metric, Location) to target the specific resource, select the item and click Edit Quotas, specify the required new quota limit along with a business justification, and submit the request for review.

Adım Adım Çözüm

1
Open Google Cloud Console navigation and go to IAM & Admin > Quotas & System Limits.
Displays the complete inventory of global and regional service quotas associated with the active project.
Quota management tools are centralized under the IAM & Admin section of the Cloud Console.
2
Filter by Service (Compute Engine API), Metric (N2 CPUs), and Location (us-east4).
Narrows the list specifically to the regional N2 CPU quota line item in us-east4.
Resource quotas are granular by service, metric type, and geographic region.
3
Select the target quota line item and click Edit Quotas.
Opens the quota edit panel on the right side of the screen.
Selecting the item unlocks administrative actions for modifying the limit.
4
Specify the new requested limit and input a business description justification.
Prepares the request parameters for validation.
Google Cloud requires justification details to prevent resource exhaustion and verify valid usage scenarios.
5
Click Submit Request.
Dispatches the quota request ticket to GCP automated systems or support personnel.
Finalizes the submission process so the quota evaluation can proceed.

Anahtar Kavram

Google Cloud Console Resource Quota Increase Procedure
Tahmini Süre:2m 0s
Soru 269Soru

An organization is planning a Google Kubernetes Engine (GKE) cluster architecture to host stateless web microservices. The DevOps team wants to eliminate manual node provisioning and operating system patching overhead while ensuring the application remains available even if an entire availability zone fails. Which TWO architectural options should be selected to fulfill these requirements?

Geçerli olan tümünü seçin

Cevabı ve açıklamayı göster

Cevap: Provision the cluster using GKE Autopilot mode.; Configure the cluster as a regional cluster.

Cevap

The organization should deploy a regional cluster using GKE Autopilot mode.
Deploying in GKE Autopilot mode shifts node management responsibilities (such as OS updates, node provisioning, and security patches) to Google Cloud. Choosing a regional cluster topology replicates the GKE control plane and worker nodes across multiple availability zones, ensuring continuous availability even if one zone fails.

Adım Adım Çözüm

1
Identify cluster management requirements.
GKE Autopilot mode delegates node management, OS patching, and infrastructure scaling to Google Cloud.
GKE Standard mode requires manual management of node pools and infrastructure.
2
Identify availability requirements.
Selecting a regional cluster provisions control plane masters and worker nodes across multiple compute zones within the chosen region.
A single-zone cluster creates a single point of failure if that specific availability zone experiences an outage.

Anahtar Kavram

GKE Cluster Operation Modes and Regional High Availability Planning
Soru 270Soru

A company needs to plan compute resources for a nightly data indexing task on Google Cloud. The task runs once per day for approximately 4 hours, periodically saves checkpoint state to Cloud Storage, and can safely resume without data loss if pre-empted. The primary goal is to minimize compute infrastructure costs. Which compute deployment strategy should the cloud engineer select?

Cevabı ve açıklamayı göster

Cevap: Provision Compute Engine instances utilizing Spot VMs for the batch task execution.

Cevap

Provision Compute Engine instances utilizing Spot VMs for the batch task execution.
Spot VMs provide significant cost savings (60-91% discount) for compute workloads on Compute Engine. Because the workload is a batch process running 4 hours nightly and regularly checkpoints its progress to Cloud Storage, it can withstand VM preemption and resume without data loss.

Adım Adım Çözüm

1
Analyze workload characteristics
Workload runs 4 hours nightly, is fault-tolerant with Cloud Storage checkpointing, and seeks minimum cost.
Identifying fault tolerance and runtime duration dictates the appropriate GCP compute model.
2
Evaluate serverless and commitment trade-offs
Cloud Functions time out before 4 hours, while Committed Use Discounts require 24/7 continuous utilization.
Serverless limits and financial commitments rule out standard serverless snippets and long-term commitments for intermittent tasks.
3
Select the optimal compute option
Spot VMs offer maximum cost savings for fault-tolerant Compute Engine workloads.
Since the task handles interruptions gracefully via checkpointing, Spot VMs satisfy all cost and operational constraints.

Anahtar Kavram

Planning Compute Engine Workloads using Spot VMs for Ephemeral Fault-Tolerant Tasks
Tahmini Süre:1m 30s
Soru 271Soru

A security infrastructure team is designing a Google Compute Engine architecture for a 24/7 continuous log parsing engine. Profiling shows that the workload requires exactly 6 vCPUs6\text{ vCPUs} and 45 GB45\text{ GB} of RAM during steady-state operations. Standard machine types either under-allocate RAM or over-allocate vCPUs, leading to unnecessary operational expenses. The application cannot tolerate preemption or unexpected instance termination. Which configuration and purchasing strategy should the cloud engineer recommend to minimize cost while meeting all technical requirements?

Cevabı ve açıklamayı göster

Cevap: Provision a Compute Engine instance using a custom machine type with 6 vCPUs and 45 GB of RAM, and purchase Committed Use Discounts (CUDs) for the required vCPU and memory capacity.

Cevap

Provision a Compute Engine instance using a custom machine type with 6 vCPUs and 45 GB of RAM, combined with Committed Use Discounts for the baseline vCPU and RAM capacity.
The combination of custom machine types and Committed Use Discounts (CUDs) directly addresses both requirements: custom sizing eliminates waste from unused vCPUs by configuring exactly 6 vCPUs and 45 GB RAM, while CUDs offer the highest price reduction for steady 24/7 non-interruptible workloads.

Adım Adım Çözüm

1
Analyze resource sizing requirements.
The workload needs a specific ratio of 6 vCPUs6\text{ vCPUs} to 45 GB45\text{ GB} of RAM (7.5 GB per vCPU7.5\text{ GB per vCPU}), which does not fit standard predefined machine types without over-provisioning.
Custom machine types in Compute Engine allow tailoring vCPU and RAM counts precisely, preventing wasteful spending on unused vCPUs.
2
Evaluate workload availability requirements.
The application runs continuous 24/7 workloads and cannot tolerate unexpected termination.
Spot VMs are fault-tolerant/batch target instances that can be reclaimed at any time, making them unsuitable for continuous uninterrupted processing.
3
Determine the optimal discount strategy.
For predictable 24/7 baseline capacity, Committed Use Discounts (1-year or 3-year) offer significantly higher savings than automatic Sustained Use Discounts.
CUDs provide up to 57% to 70% savings on committed vCPU and memory resources for continuous workloads.

Anahtar Kavram

Compute Engine Custom Machine Types and Committed Use Discount Planning
Tahmini Süre:2m 0s
Soru 272Soru

A financial technology enterprise is planning the serverless compute architecture for a financial statement rendering microservice on Google Cloud. The microservice must execute a proprietary, custom-compiled Linux binary packaged inside a container, and it must process up to 80 concurrent HTTP requests per instance to optimize compute costs and minimize cold starts. Which serverless compute option should the cloud engineering team select to meet these requirements?

Cevabı ve açıklamayı göster

Cevap: Cloud Run, because it supports running custom container images with arbitrary compiled binaries and allows configuring request concurrency per instance.

Cevap

Cloud Run, because it supports running custom container images with arbitrary compiled binaries and allows configuring request concurrency per instance.
Cloud Run allows developers to deploy any container image, making it the ideal choice for workloads requiring custom-compiled Linux binaries. Furthermore, Cloud Run natively supports multi-concurrency, enabling a single container instance to serve multiple concurrent HTTP requests up to user-defined limits, satisfying both operational requirements efficiently.

Adım Adım Çözüm

1
Identify architectural requirements from the scenario
The application requires executing a custom-compiled Linux binary packaged in a container and handling high per-instance concurrency (80 simultaneous requests).
Analyzing runtime requirements and concurrency needs narrows down the suitable serverless execution environment.
2
Compare Cloud Run against other serverless offerings
Cloud Run is a fully managed serverless platform that executes stateless OCI-compliant containers, allowing custom binaries and configurable per-instance concurrency settings.
Cloud Functions is designed for lightweight, event-driven functions and standard language runtimes, whereas Cloud Run provides complete container flexibility and explicit multi-concurrency control.

Anahtar Kavram

Choosing Cloud Run for serverless container workloads requiring custom binaries and multi-request concurrency.
Soru 273Soru

A cloud engineer needs to enable the Google Kubernetes Engine API (`container.googleapis.com`) for a target project named `app-cluster-prod` using the `gcloud` CLI tool. Which of the following requirements and commands are necessary to successfully enable this API? (Select TWO.)

Geçerli olan tümünü seçin

Cevabı ve açıklamayı göster

Cevap: Execute the command `gcloud services enable container.googleapis.com --project=app-cluster-prod`.; Grant the executing service account or identity the Service Usage Admin role (`roles/serviceusage.serviceUsageAdmin`) on the project.

Cevap

To enable the Google Kubernetes Engine API for a target project, you must execute `gcloud services enable container.googleapis.com --project=app-cluster-prod` using an identity that holds the Service Usage Admin role (`roles/serviceusage.serviceUsageAdmin`) on the target project.
Enabling a Google Cloud API requires using the `gcloud services enable` command for the target project and holding an IAM role with `serviceusage.services.enable` permissions, such as Service Usage Admin.

Adım Adım Çözüm

1
Identify the required IAM permissions for API administration.
Determine that the identity requires the Service Usage Admin role (`roles/serviceusage.serviceUsageAdmin`), which provides the `serviceusage.services.enable` permission.
Enabling project APIs is an administrative action requiring specific Service Usage management privileges.
2
Identify the correct gcloud CLI command syntax for enabling service APIs.
Construct the command `gcloud services enable container.googleapis.com --project=app-cluster-prod`.
The `gcloud services enable` command targets specific service endpoints on specified project identifiers.

Anahtar Kavram

Enabling GCP Service APIs using gcloud services enable and Service Usage IAM Roles
Tahmini Süre:1m 30s
Soru 274Soru

A software developer requires permission to view and read objects within Cloud Storage buckets in a specific Google Cloud project, but must not be able to create, modify, or delete objects. Which IAM role should be assigned to the developer to enforce the principle of least privilege?

Cevabı ve açıklamayı göster

Cevap: Storage Object Viewer (roles/storage.objectViewer)

Cevap

Assign the predefined Storage Object Viewer (roles/storage.objectViewer) role.
The Storage Object Viewer role (roles/storage.objectViewer) provides read access to Cloud Storage objects without granting rights to create, edit, delete objects, or manage bucket policies. This satisfies the requirement while following the principle of least privilege.

Adım Adım Çözüm

1
Identify the precise access requirements
The developer only needs to view and read objects within Cloud Storage.
The requirement explicitly restricts creating, modifying, or deleting objects.
2
Select the predefined role matching least privilege
The Storage Object Viewer (roles/storage.objectViewer) role provides exact read-only access to objects.
Google Cloud best practice dictates using specific predefined roles over broad primitive roles or administrative permissions.

Anahtar Kavram

Granting minimal necessary access using predefined Cloud Storage IAM roles.
Tahmini Süre:45s
Soru 275Soru

A cloud engineer needs to expand the primary IPv4 range of an existing subnet in a Google Cloud custom-mode Virtual Private Cloud (VPC) network without causing downtime to running Virtual Machines. Arrange the operational steps in the correct order from first to last.

Öğeleri doğru sıraya koymak için sürükleyin

Cevabı ve açıklamayı göster

Cevap

The correct order begins with identifying an available contiguous CIDR block that contains the current subnet range without overlapping existing subnets, followed by executing the subnet IP expansion command via gcloud, and concluding with verification of the updated subnet CIDR block.
The proper sequence for expanding a VPC subnet's IP range requires evaluating netmask boundaries to select a non-overlapping contiguous block first, applying the subnet modification command second, and verifying the updated allocation space last.

Adım Adım Çözüm

1
Select a valid expanded CIDR block (such as expanding a /24 to a /23 block).
A target prefix size is defined that fully includes the current IP addresses.
Google Cloud VPC subnets can only be expanded to a larger range that encompasses the existing range without overlapping other subnets in the network.
2
Execute the IP expansion command using `gcloud compute networks subnets expand-ip-range` or the GCP Console.
The subnet primary range is modified in-place online without workload disruption.
Subnet expansion is a zero-downtime operation managed dynamically by the GCP control plane.
3
Inspect the subnet properties using `gcloud compute networks subnets describe` or the GCP Console.
Subnet configuration reflects the new netmask and expanded IP pool.
Validation confirms that the operation completed successfully and additional IP addresses are ready for allocation.

Anahtar Kavram

VPC Subnet CIDR Range Expansion Workflow
Soru 276Soru

An organization is designing a Google Cloud Storage solution for storing IoT device diagnostic logs. The data access profile indicates that newly created log objects are read frequently during the first 30 days for operational troubleshooting. Between 30 and 90 days, logs are read infrequently (approximately once per month) for performance analysis. After 90 days, logs are retained for compliance purposes and accessed less than once a year. The primary objective is to minimize total cost of ownership (TCO) without incurring premature data access or retrieval cost penalties. Which Cloud Storage class configuration and Object Lifecycle Management policy should be implemented?

Cevabı ve açıklamayı göster

Cevap: Create the bucket with the Standard storage class. Configure a lifecycle rule to transition objects to Nearline storage after 30 days, and another rule to transition objects to Coldline or Archive storage after 90 days.

Cevap

Create the bucket with the Standard storage class, transition objects to Nearline storage after 30 days, and transition objects to Coldline or Archive storage after 90 days.
Starting with Standard storage ensures no retrieval fees are charged during the high-frequency initial 30 days. Transitioning to Nearline at day 30 optimizes costs for data read once a month while meeting Nearline's 30-day minimum storage commitment. Moving to Coldline or Archive at day 90 provides the lowest possible storage rate for archival data accessed less than once per year.

Adım Adım Çözüm

1
Analyze the access pattern for the initial 30 days.
Newly created logs are read frequently during the first 30 days. Standard storage class has higher storage costs per GB but zero retrieval fees per GB, making it optimal for active data.
Using colder storage classes (Nearline/Coldline/Archive) for frequently accessed data leads to high retrieval fee penalties.
2
Analyze the access pattern between day 30 and day 90.
Logs are accessed roughly once a month. Nearline storage is designed for data accessed less than once a month and has a 30-day minimum storage duration requirement.
Transitioning at 30 days satisfies the active usage period and aligns with Nearline storage pricing and minimum retention constraints.
3
Analyze the access pattern after day 90.
Logs are accessed less than once a year. Coldline (accessed < once a quarter, 90-day minimum duration) or Archive storage (accessed < once a year, 365-day minimum duration) minimizes long-term storage costs.
Transitioning objects to Coldline or Archive after 90 days respects minimum duration policies while significantly reducing long-term storage expenditures.

Anahtar Kavram

Selecting Cloud Storage Classes and Object Lifecycle Rules based on data access frequency and minimum retention durations.
Soru 277Soru

An enterprise is migrating an online transaction processing system to Google Cloud. The architecture consists of two primary components with distinct storage requirements:

1. A transactional relational database requiring full ANSI SQL support, multi-region global strong consistency, and automatic horizontal write scaling without manual database sharding.
2. A real-time telemetry processing pipeline running on Compute Engine instances that requires a local block storage volume for temporary scratch files, capable of delivering over 100,000 IOPS at sub-millisecond latency.

Which combination of Google Cloud database and block storage services satisfies all operational and performance requirements with minimal administrative overhead?

Cevabı ve açıklamayı göster

Cevap: Cloud Spanner for the transactional relational database, and Local SSD for the telemetry scratch storage.

Cevap

Cloud Spanner for the transactional relational database, and Local SSD for the telemetry scratch storage.
The correct answer combines Cloud Spanner and Local SSD. Cloud Spanner is Google Cloud's fully managed relational database designed specifically for workloads requiring enterprise ANSI SQL compliance, global multi-region ACID transactions, and horizontal write scaling without sharding. Local SSDs provide high-performance ephemeral block storage physically attached to the VM host instance, delivering high throughput and sub-millisecond latency for temporary processing scratch space.

Adım Adım Çözüm

1
Analyze the relational database requirement for global strong consistency, ANSI SQL compliance, and horizontal write scaling.
Identify Cloud Spanner as the unique managed GCP relational service offering global ACID transactions and seamless horizontal scaling.
Cloud SQL provides managed relational databases but is limited to vertical scaling for writes per instance, while Cloud Bigtable is a NoSQL store lacking SQL/ACID multi-row transaction capabilities.
2
Analyze the block storage requirements for high IOPS (>100,000 IOPS) and ultra-low sub-millisecond latency for temporary scratch data on Compute Engine.
Select Local SSD as the appropriate storage option.
Local SSDs are physically attached to the host machine hosting the VM, providing microsecond-level latency and extreme IOPS performance suited specifically for non-persistent scratch space.
3
Synthesize the service choices against operational overhead constraints.
Combine Cloud Spanner and Local SSD.
Both selected solutions are fully managed or native performance features that minimize management overhead while satisfying high-scale throughput and relational integrity constraints.

Anahtar Kavram

Choosing Cloud Spanner for globally scalable relational SQL workloads and Local SSD for ultra-low latency VM scratch space.
Tahmini Süre:2m 0s
Soru 278Soru

A system administrator is creating an initial cost estimate using the Google Cloud Pricing Calculator for a set of standard Compute Engine virtual machines that will run continuously 24 hours a day, 7 days a week. Which pricing discount is automatically factored into the estimated monthly compute cost by the calculator without requiring a long-term contractual commitment?

Cevabı ve açıklamayı göster

Cevap: Sustained Use Discounts (SUDs), which automatically reduce the hourly rate as the virtual machines run for a significant portion of the billing month.

Cevap

Sustained Use Discounts (SUDs), which automatically reduce the hourly rate as the virtual machines run for a significant portion of the billing month.
Sustained Use Discounts (SUDs) are automatic discounts provided by Google Cloud for running supported Compute Engine resources for a significant portion of the billing month. The Google Cloud Pricing Calculator automatically includes SUDs in net monthly cost estimates when instances are configured for continuous 24/7 usage.

Adım Adım Çözüm

1
Identify the workload characteristics
The workloads consist of standard Compute Engine virtual machines running continuously (24/7) across the entire month.
Understanding usage duration determines eligibility for automatic vs. commitment-based discounts.
2
Evaluate Google Cloud discount mechanisms in the Pricing Calculator
Sustained Use Discounts (SUDs) automatically apply to N1, N2, and other supported machine types when instances run for more than 25% of the month, requiring no upfront user commitment.
SUDs are built-in automatic discounts calculated based on incremental monthly usage.
3
Select the option describing automatic non-committal discounting
The option specifying Sustained Use Discounts (SUDs) correctly identifies the behavior of the pricing calculator.
Committed Use Discounts require explicit 1-year or 3-year contractual selection, whereas Spot pricing is a distinct provision model.

Anahtar Kavram

Sustained Use Discounts in GCP Pricing Estimations
Tahmini Süre:50s
Soru 279Soru

A finance specialist in your organization must be given the capability to link newly provisioned Google Cloud projects to the organization's central Billing Account and monitor project cost metrics. Following Google recommended security practices of least privilege, the specialist must not have administrative authority to alter billing account policies or permissions to modify cloud infrastructure resources within the projects. Which pair of IAM role assignments correctly fulfills these requirements?

Cevabı ve açıklamayı göster

Cevap: Grant the user the Billing Account User role (roles/billing.user) on the Billing Account, and the Project Billing Manager role (roles/resourcemanager.projectBillingManager) on the target projects.

Cevap

To associate a project with a billing account under least privilege principles, assign the Billing Account User role (roles/billing.user) on the Billing Account resource and the Project Billing Manager role (roles/resourcemanager.projectBillingManager) on the target projects.
Linking a Google Cloud project to a Billing Account requires explicit IAM permissions on both distinct resources. On the Billing Account, the user needs the 'roles/billing.user' role to use the billing account. On the target project, the user needs the 'roles/resourcemanager.projectBillingManager' role to modify the project's billing configuration. This combination satisfies least privilege without granting compute modification or billing administration capabilities.

Adım Adım Çözüm

1
Identify the required permissions on the Billing Account resource.
Determined that associating projects with a billing account requires resourcemanager.projects.createBillingAssignment, contained within roles/billing.user assigned on the billing account.
Users must be authorized users of the billing account to attach financial liability to it.
2
Identify the required permissions on the Project resource.
Determined that updating a project's billing link requires resourcemanager.projects.updateBillingInfo, provided by roles/resourcemanager.projectBillingManager on the project.
Users must have authorization to modify configuration properties of the project.
3
Evaluate candidate role pairings against the principle of least privilege.
Selected roles/billing.user on the billing account and roles/resourcemanager.projectBillingManager on the projects, as they grant exactly the necessary scope without over-granting administrative or compute editing rights.
Avoids using primitive roles like Editor or administrative roles like Billing Account Admin.

Anahtar Kavram

Dual-Resource Authorization for GCP Billing Account Project Linking
Soru 280Soru

A media streaming company is designing a new containerized platform on Google Cloud. The engineering team wants to minimize cluster management overhead by eliminating the need to manually provision, configure, scale, or maintain worker nodes and node pools. Which GKE operational mode should the team select?

Cevabı ve açıklamayı göster

Cevap: GKE Autopilot mode

Cevap

GKE Autopilot mode
GKE Autopilot mode provides a fully managed environment where Google Cloud provisions, configures, and manages all cluster infrastructure, including nodes and node pools. Users pay only for requested Pod resources rather than unallocated node capacity.

Adım Adım Çözüm

1
Analyze the workload operational requirements
The requirement is to completely eliminate node and node pool management overhead.
The engineering team explicitly wants to avoid managing worker nodes.
2
Compare GKE cluster operational modes
GKE Autopilot manages the entire node infrastructure automatically, allowing teams to focus solely on workload Pods.
GKE Standard mode requires users to plan, provision, and maintain node pools regardless of add-on features like autoscaling or auto-repair.

Anahtar Kavram

GKE Autopilot vs. Standard Operational Boundaries
ÖncekiSayfa 14 / 80Sonraki
Tüm alıştırma soruları — Google Cloud Associate Cloud Engineer | Examkin