Google Associate Cloud Engineer - Practice Test 3
You are designing an archival solution for your data warehouse on Google Cloud. Your team needs to access this archived data approximately once per quarter for regulatory compliance. You need to select the most cost-efficient Cloud Storage class that meets this access frequency. Which Cloud Storage class should you choose?
The question specifies accessing data 'once a quarter'. Google Cloud's Nearline Storage is designed for data accessed on average once a month or less, making it suitable for quarterly access. While 'Cold Storage' is listed as an option, the correct Google Cloud storage class for very infrequent access (less than once a year) is Coldline Storage, and Nearline better fits the 'once a quarter' requirement.
You have a single binary application that needs to run on Google Cloud Platform. You want to automatically scale this application based on the underlying virtual machine's CPU utilization. Your organization's policies mandate the direct use of virtual machines. To ensure efficient and rapid scaling, what is the most appropriate solution?
The question explicitly states the need to use virtual machines directly and scale based on CPU usage. A managed instance group (MIG) with an instance template allows for the creation and management of a group of identical VMs, and it natively supports autoscaling based on CPU utilization, fulfilling both requirements efficiently. Options involving Kubernetes or third-party tools do not directly meet the 'use virtual machines directly' or 'operationally efficient' criteria as well as a MIG.
You are designing a custom Virtual Private Cloud (VPC) in Google Cloud Platform (GCP) and need to create a single subnet within it. To maximize the available IP addresses for this subnet, which CIDR block should you choose?
To achieve the largest possible subnet range, you need to select the CIDR block with the smallest prefix (the number after the slash). Among the valid private IP ranges, 10.0.0.0/8 offers the most IP addresses. While 0.0.0.0/0 represents all IP addresses, it is not a valid CIDR for a subnet within a VPC.
You are developing a video encoding application on Google Cloud Compute Engine. The application needs to handle a rapidly growing user base, ensuring continuous operation and sufficient processing power without manual intervention. You need to design a highly available and automated solution following Google's recommended practices. What is the most effective approach?
To achieve high availability and automate operations for a rapidly growing workload, deploying to a Managed Instance Group (MIG) with autoscaling based on CPU utilization is the recommended Google Cloud practice. This approach automatically adjusts the number of instances to meet demand, ensuring continuous operation and optimal resource usage without manual intervention.
You have a Google Compute Engine instance running a critical application that operates during business hours (9 AM to 6 PM, weekdays). You need to implement a daily backup strategy for disaster recovery, retaining backups for 30 days. Which Google-recommended solution offers the lowest management overhead and utilizes the fewest services to achieve this?
Google Cloud's Persistent Disk Snapshot Schedules are the recommended and most efficient way to automate daily backups with retention policies for Compute Engine disks. This built-in feature requires minimal configuration directly within the Cloud Console, reducing management overhead and the need for additional services like Cloud Functions or custom scripts.