200 to 283 Flashcards
Jordan's Beast
Your company completed the acquisition of a startup and is now merging the IT systems of both companies. The startup had a production Google Cloud project in their organization. You need to move this project into your organization and ensure that the project is built to your organization’s standards. You want to accomplish this task with minimal effort. What should you do?
Use the projects.move method to move the project to your organization. Update the billing account of the project to that of your organization. Ensure that you have an organization administrator identity and access management (IAM) role assigned to you in both organizations.
All development (Dev) teams in your organization are located in the United States. Each Dev team has its own Google Cloud project. You want to restrict access so that each Dev team can only create Cloud resources in the United States (US). What should you do?
Create a folder to contain all the Dev projects. Create an organization policy to limit resources in US locations.
You are configuring Cloud DNS. You want to create DNS records to point home.mydomain.com and www.mydomain.com to the IP address of your Google Cloud load balancer. What should you do?
Create one A record to point mydomain.com to the load balancer and create two CNAME records to point www and home to mydomain.com, respectively.
You have two subnets, Subnet A and Subnet B, in the default VPC. Your database servers are running in Subnet A, and your application servers and web servers are running in Subnet B. You want to configure a firewall rule that only allows database traffic from the application servers to the database servers. What should you do?
Create service accounts ‘sa_app’ and ‘sa_db’. Associate service account ‘sa_app’ with the application servers and the service account ‘sa_db’ with the database servers. Create an Ingress firewall rule to allow network traffic from Source service account ‘sa_app’ to Target service account ‘sa_db’.
Your team wants to deploy a specific content management system (CMS) solution to Google Cloud. You need a quick and easy way to deploy and install the solution. What should you do?
Search for the CMS solution in Google Cloud Marketplace, then deploy the solution directly from Cloud Marketplace.
You are working for a startup that was officially registered as a business 6 months ago. As your customer base grows, your use of Google Cloud increases. You want to allow all engineers to create new projects without asking them for their credit card information. What should you do?
Create a billing account, associate a payment method with it, and provide all project creators with permission to associate that billing account with their projects.
Your continuous integration and delivery (CI/CD) server can’t execute Google Cloud actions in a specific project because of permission issues. You need to validate whether the used service account has the appropriate roles in the specific project. What should you do?
Open the Google Cloud console and check the identity and access management (IAM) roles assigned to the service account at the project or inherited from the folder or organization levels.
Your team is using Linux instances on Google Cloud. You need to ensure that your team logs into these instances in the most secure and cost-efficient way. What should you do?
Use the Cloud Compute SSH command with the tunnel through a proxy flag, allowing SSH traffic from the IP range 352.352.40.20/20 on Port 22.
An external member of your team needs list access to compute images and disks in one of your projects. You want to follow Google recommended practices when you grant the required permissions to this user. What should you do?
Create a custom role and add all the required compute.disks.list and compute.images.list permissions as included permissions. Grant the custom role to the user at the project level.
You are running a web application on Cloud Run for a few hundred users. Some of your users complain that the initial web page of the application takes much longer to load than the following pages. You want to follow Google’s recommendations to mitigate the issue. What should you do?
Set the minimum number of instances for your Cloud Run service to three.
You are building a data lake on Google Cloud for your Internet of Things (IoT) application. The IoT application has millions of sensors that are constantly streaming structured and unstructured data to your backend in the cloud. You want to build a highly available and resilient architecture based on Google recommended practices. What should you do?
Stream data to Pub/Sub and use Dataflow to send data to Cloud Storage.
You are running out of primary internal IP addresses in a subnet for a custom mode VPC. The subnet has the IP range 10.0.0.0/20, and the IP addresses are primarily used by virtual machines in the project. You need to provide more IP addresses for the virtual machines. What should you do?
Change the subnet IP range from 10.0.0.0/20 to 10.0.0.0/18.
Your company requires all developers to have the same permissions regardless of the Google Cloud project they are working on. Your company’s security policy also restricts developer permissions to Compute Engine, Cloud Functions, and Cloud SQL. You want to implement the security policy with minimal effort. What should you do?
Add all developers to a Google Group in Cloud Identity. Create a custom role with Compute Engine, Cloud Functions, and Cloud SQL permissions at the Google Cloud organization level. Assign the custom role to the Google Group.
You are working for a hospital that stores its medical images in an on-premises data room. The hospital wants to use cloud storage for archival storage of these images. The hospital wants an automated process to upload any new medical images to cloud storage. You need to design and implement a solution. What should you do?
Create a script that uses the Cloud Storage command to synchronize the on-premises storage with cloud storage. Schedule the script as a cron job.
Your company has an internal application for managing transactional orders. The application is used exclusively by employees in a single physical location. The application requires strong consistency, fast queries, and guaranteed availability for multiple transactional updates. The first version of the application is implemented in PostgreSQL, and you want to deploy it to the cloud with minimal code changes. Which database is most appropriate for this application?
Cloud SQL
Your company runs one batch process on an on-premises server that takes around 30 hours to complete. The task runs monthly, can be performed offline, and must be restarted if interrupted. You want to migrate this workload to the cloud while minimizing cost. What should you do?
Migrate the workload to a Compute Engine VM, starting and stopping the instance as needed.
You are planning to migrate the following on-premises data management solutions to Google Cloud: one MySQL cluster for your main database, Apache Kafka for your event streaming platform, and one Cloud SQL for PostgreSQL database for your analytical and reporting needs. You want to implement Google recommended solutions for the migration. You need to ensure that the new solutions provide global scalability and require minimal operational and infrastructure management. What should you do?
Migrate from MySQL to Cloud Spanner, from Kafka to Pub/Sub, and from Cloud SQL for PostgreSQL to BigQuery.
During a recent audit of your existing Google Cloud resources, you discovered several users with email addresses outside of your Google Workspace domain. You want to ensure that your resources are only shared with users whose email addresses match your domain. You need to remove any mismatched users and want to avoid having to audit your resources to identify mismatched users. What should you do?
Set an organizational policy constraint to limit identities by domain and then retroactively remove the existing mismatched users.
Your application is running on Google Cloud in a Managed Instance Group (MIG). You notice errors in Cloud Logging indicating that one of the processes is not responsive. You want to replace this VM in the MIG quickly. What should you do?
Use the gcloud compute instance-groups managed recreate-instances command to recreate the VM.
You want to permanently delete a pub/sub topic managed by Config Connector in your Google Cloud project. What should you do?
Use kubectl to delete the topic resource.
Your company is using Google Workspace to manage employee accounts. Anticipated growth will increase the number of personnel from 100 employees to 1,000 employees within 2 years. Most employees will need access to your company’s Google Cloud account. The systems processes will need to support 10x growth without performance degradation, unnecessary complexity, or security issues. What should you do?
Turn on identity federation between Cloud Identity and Google Workspace, enforce multi-factor authentication for domain-wide delegation.
You want to host your video encoding software on Compute Engine. Your user base is growing rapidly, and users need to be able to encode their videos at any time without interruption or CPU limitations. You must ensure that your encoding solution is highly available and you want to follow Google recommended practice to automate operations. What should you do?
Deploy your solution to an instance group and set the autoscaling based on CPU utilization.
Your managed instance group raised an alert stating that new instance creation has failed to create new instances. You need to solve the instance creation problem. What should you do?
Create an instance template that contains valid syntax which will be used by the instance group. Delete any persistent disks with the same name as instance names.
You have created an application that is packaged into a Docker image. You want to deploy the Docker image as a workload on Google Kubernetes Engine. What should you do?
Upload the image to Artifact Registry and create a Kubernetes deployment referencing the image.
You are using Looker Studio to visualize a table from your data warehouse that is built on top of BigQuery. Data is appended to the data warehouse during the day. At night, the daily summary is recalculated by overwriting the table. You just noticed that the charts in Looker Studio are broken and you want to analyze the problem. What should you do?
Use the BigQuery interface to review the nightly job and look for any errors.
You have a batch workload that runs every night and uses a large number of virtual machines (VMs). It is fault-tolerant and can tolerate some of the VMs being terminated. The current cost of VMs is too high. What should you do?
Run a test using simulated maintenance events. If the test is successful, you spot in two standard VMs when running future jobs.
You created several resources in multiple Google Cloud projects. All projects are linked to different billing accounts. To better estimate future charges, you want to have a single visual representation of all costs incurred. You want to include new cost data as soon as possible. What should you do?
Configure billing data export to BigQuery and visualize the data in Looker Studio.
Your company has a large quantity of unstructured data in different file formats. You want to perform ETL transformations on the data. You need to make the data accessible on Google Cloud so it can be processed by a Dataflow job. What should you do?
Upload the data to Cloud Storage using the Cloud Storage command.
You have deployed an application on a single Compute Engine instance. The application writes logs to disk. Users start reporting errors with the application. You want to diagnose the problem. What should you do?
Install and configure the Ops Agent and view the logs from Cloud Logging.
You recently received a new Google Cloud project with an attached billing account where you will work. You need to create instances, set firewalls, and store data in Cloud Storage. You want to follow Google recommended practices. What should you do?
Use the Cloud services enable Compute.googleapis.com command to enable Compute Engine and the Cloud services enable Storage-api.googleapis.com command to enable the Cloud Storage APIs.
Your application development team has created Docker images for an application that will be deployed on Google Cloud. Your team does not want to manage the infrastructure associated with this application. You need to ensure that the application can scale automatically as it gains popularity.
Upload Docker images to Artifact Registry and deploy the application on Cloud Run.
You are migrating a business-critical application from your local data center into Google Cloud as part of your high availability strategy. You want to ensure that any data used by the application will be immediately available if a zonal failure occurs. What should you do?
Store the application data on a regional persistent disk. If an outage occurs, create an instance in another Zone with this disk attached.