Google Associate Cloud Engineer - Practice Test 1
You are planning to execute a complex query in Google BigQuery and anticipate a large result set. Your project uses on-demand pricing, and you need to estimate the cost of running this query before execution. What is the most effective way to achieve this?
BigQuery's on-demand pricing is primarily based on the amount of data processed (bytes read), not the data returned. A dry run query provides an estimate of the bytes that will be processed without actually executing the query, making it the most accurate method for cost estimation. This estimate can then be fed into the Google Cloud Pricing Calculator to determine the approximate cost.
Your organization's DevOps team requires comprehensive control over Compute Engine resources within a specific development project. However, they must be restricted from creating or modifying any other resource types in that project. Following Google's recommended practices for permission management, what is the most appropriate action to take?
The `roles/viewer` role provides read-only access to the project, preventing the creation or modification of other resources. The `roles/compute.admin` role grants full control over Compute Engine resources, satisfying the requirement for the DevOps group. This combination effectively scopes permissions to Compute Engine while restricting access to other services.
Your development team is preparing to deploy a new feature to an existing Cloud Run service in production. To minimize the impact of potential issues and adhere to Google's recommended practices for managing service revisions, you want to reduce the number of users affected by any outage without incurring additional development or operational costs for your customers. What is the most appropriate strategy?
Option 2 describes a gradual rollout or canary deployment strategy, which is a Google-recommended practice for minimizing risk when deploying new revisions. By splitting traffic, only a subset of users are affected if an issue occurs, allowing for quick rollback without impacting all customers. This approach avoids introducing additional costs or complexities for customers.
You have made significant modifications to a complex Google Cloud Deployment Manager template and need to quickly verify that all defined resources have their dependencies correctly satisfied before committing the changes. Which action provides the most rapid feedback on your modifications?
The '--preview' option in Deployment Manager allows you to simulate the deployment without actually creating or modifying any resources. This provides immediate feedback on how the template would behave and if dependencies are met, without incurring costs or making irreversible changes. It is the fastest way to validate template changes and resource interdependencies.
Your company operates in a hybrid cloud environment, with some applications deployed on Google Cloud and others on-premises. A VPN tunnel connects your Google Cloud VPC to your on-premises network. Several applications in Google Cloud need to access an on-premises database server. To ensure that applications can find the database even if its IP address changes, without requiring code modifications in each application, what is the most appropriate solution?
Using a private zone in Cloud DNS allows you to map a stable DNS name to the database's IP address. If the database's IP changes, you only need to update the DNS record, and applications configured to use the DNS name will automatically resolve to the new IP without requiring code changes. This is a standard and robust solution for service discovery in hybrid environments.