Google Cloud Services Quiz
48 Questions
0 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

Which step should you take to revert an App Engine application to a previous version?

  • Route 100% of the traffic to the previous version. (correct)
  • Deploy the original version as a separate application.
  • Delete the existing application and deploy again.
  • Clear the traffic routing settings and restart the application.

What is the best way to determine the project where your App Engine application was deployed using gcloud app deploy?

  • Go to Cloud Shell and run gcloud config list. (correct)
  • Run gcloud app describe to get details of the app.
  • Check the deployment logs for any errors.
  • Check the app.yaml file for your application.

In configuring Compute Engine instances for availability, what setting should be applied for automatic restarts?

  • Enable auto-scaling on the instance group.
  • Set 'Automatic Restart' to on. (correct)
  • Set 'Automatic Restart' to off.
  • Apply manual restart only if instances fail.

Which of the following settings should be used for 'On-host maintenance' to ensure high availability during maintenance?

<p>Migrate VM instance. (A)</p> Signup and view all the answers

What should you do to ensure that your instances are highly available during system maintenance and crashes?

<p>Create an instance template and add it to an instance group. (D)</p> Signup and view all the answers

To achieve autohealing for your Compute Engine instances, what should be done?

<p>Create an instance group and set the 'Autohealing' health check to healthy. (C)</p> Signup and view all the answers

When deploying an application using gcloud, what is the impact of incorrectly defined settings in the app.yaml file?

<p>The application may deploy under an unintended project. (D)</p> Signup and view all the answers

What is NOT a recommended step after deploying an App Engine application?

<p>Modify the app.yaml file without displaying any errors. (B)</p> Signup and view all the answers

What change is needed to ensure PDF files open in the browser without downloading?

<p>Set Content-Type metadata to application/pdf on the PDF file objects. (A)</p> Signup and view all the answers

What is the first step required to upgrade a virtual machine to have 8 GB of memory?

<p>Stop the VM, increase the memory to 8 GB, and start the VM. (D)</p> Signup and view all the answers

Which VPC configuration allows production and test workloads to reach each other over Internal IP?

<p>Create a single custom VPC with 2 subnets in different regions. (D)</p> Signup and view all the answers

What may happen if the PDF file objects do not have the correct Content-Type metadata?

<p>Browsers may download the files instead of opening them. (B)</p> Signup and view all the answers

What is necessary to change the memory allocation for a virtual machine?

<p>Stop the VM before changing the memory allocation. (A)</p> Signup and view all the answers

In setting up a VPC with production and test workloads, what configuration is NOT appropriate?

<p>Both subnets having the same CIDR range in different regions. (D)</p> Signup and view all the answers

What would be the outcome of increasing the memory on a VM without stopping it first?

<p>There will be no change until the VM is stopped and restarted. (B), The VM may crash or become unstable. (D)</p> Signup and view all the answers

Which aspect of cloud architecture directly affects the ability of VMs to communicate internally?

<p>VPC and subnet configurations. (A)</p> Signup and view all the answers

How can you verify the users and roles assigned within a GCP project named my-project?

<p>Navigate to the project and then to the IAM section in the GCP Console to review the members and roles. (D)</p> Signup and view all the answers

What initial step should you take to create a new billing account and link it to an existing GCP project?

<p>Verify that you are Project Billing Manager for the GCP project. (B)</p> Signup and view all the answers

If you want to use a service account from proj-sa to take snapshots of VMs in proj-vm, what should you do first?

<p>Grant the service account necessary permissions in proj-vm. (C)</p> Signup and view all the answers

What role provides the necessary permission to link a new billing account to an existing project?

<p>Project Billing Manager. (A)</p> Signup and view all the answers

What command is used to retrieve login credentials for a VM after its creation?

<p>gcloud compute reset-windows-password (C)</p> Signup and view all the answers

To ensure proper functionality when using a service account across projects in GCP, what must be configured?

<p>Cross project IAM policy bindings. (A)</p> Signup and view all the answers

When creating a VM, what key should be used to add metadata for a password?

<p>windows-password (A)</p> Signup and view all the answers

Which command would you run to list the IAM roles available in your GCP project?

<p>gcloud iam roles list (A)</p> Signup and view all the answers

What is the significance of the Project Billing Manager role in GCP?

<p>Allows linking billing accounts to projects. (B)</p> Signup and view all the answers

Which role should the dev1 group be granted to enable SSH access to a specific Compute Engine instance?

<p>compute.osLogin (D)</p> Signup and view all the answers

What should be set to block project-wide SSH keys for the instance?

<p>enable-oslogin=true (A)</p> Signup and view all the answers

When trying to manage service accounts across multiple GCP projects, what is an important aspect to consider?

<p>Permissions assigned to the service account in each project. (D)</p> Signup and view all the answers

What is the correct command to produce a list of enabled Google Cloud Platform APIs?

<p>gcloud services list --enabled (C)</p> Signup and view all the answers

What is the first step to list the enabled APIs for a project named 'my-project'?

<p>Set the project ID using gcloud init (D)</p> Signup and view all the answers

To generate an SSH key for users in the dev1 group, which of the following actions should be taken?

<p>Generate individual keys for each user (D)</p> Signup and view all the answers

What is the purpose of the JSON private key for the default Compute Engine service account?

<p>To log in to the VM (B)</p> Signup and view all the answers

What is the first step in creating a VPC with an internal load balancer in europe-west1?

<p>Create a VPC and a subnetwork in europe-west1. (C)</p> Signup and view all the answers

Which option correctly describes the action taken to connect two subnetworks?

<p>Use a Cloud VPN to connect the two subnetworks. (C)</p> Signup and view all the answers

When wanting to limit GKE container logging to reduce costs, which action requires the least effort?

<p>Disable the log source for the GKE container resource. (B)</p> Signup and view all the answers

If you want to test a new version of a website with 1% of the users on App Engine, what should you do?

<p>Use the --splits option to assign traffic weights. (B)</p> Signup and view all the answers

What is the purpose of the --migrate option when deploying a new version in App Engine?

<p>To transfer users from the old version to the new one. (B)</p> Signup and view all the answers

Which step must be taken after creating a subnetwork to use its instance as the endpoint?

<p>Expose the application through a load balancer. (B)</p> Signup and view all the answers

What is the recommended approach to handle a significant amount of logs generated by a GKE container?

<p>Adjust the logging level or configuration. (D)</p> Signup and view all the answers

Which method will not successfully minimize complexity when testing a version of a website on App Engine?

<p>Creating a new App Engine application. (B)</p> Signup and view all the answers

To provide your ML team with access to Nvidia Tesla P100 GPUs for their workloads, which action should you take to minimize effort and cost?

<p>Add a new, GPU-enabled, node pool to the GKE cluster. (D)</p> Signup and view all the answers

If your subnet has a mask of 255.255.255.240 and you require 10 additional IP addresses without changing routing, what should you do?

<p>Use gcloud to expand the IP range of the current subnet. (B)</p> Signup and view all the answers

What is the best way to grant G Suite users access to your Cloud Platform project?

<p>Grant them the required IAM roles using their G Suite email address. (D)</p> Signup and view all the answers

Which option allows for the quickest access to GPUs for your ML team without causing disruption in the existing GKE cluster?

<p>Add a GPU-enabled node pool and specify the required nodeSelector in the pod specification. (C)</p> Signup and view all the answers

When needing more than 10 IP addresses on a subnet with a mask of 255.255.255.240, which option ensures all VMs communicate effectively?

<p>Extend the existing subnet's IP range without deleting it. (A)</p> Signup and view all the answers

If the GKE cluster does not support GPUs initially and you want to bring them in, which is the least labor-intensive method?

<p>Add a dedicated GPU node pool to the existing GKE cluster. (B)</p> Signup and view all the answers

If you are creating a new subnet for additional IP addresses, which step should be taken to avoid affecting existing addresses?

<p>Initiate a new subnet with a different starting IP range. (B)</p> Signup and view all the answers

What is a necessary step when setting up your ML team's access to the Cloud Platform project via G Suite?

<p>Assign the necessary IAM roles specifically to their G Suite emails. (B)</p> Signup and view all the answers

Flashcards

Verifying GCP project AM users and roles

To check the assigned users and roles within a specific GCP project, navigate to the project in the GCP Console, then to the IAM section, and review the specified members and roles.

Linking billing account to GCP project

To connect a new billing account with an existing Google Cloud Platform project, verify project billing manager role and create the new billing account, then link it to the existing project.

Service account for snapshotting VMs

To use a service account from one project (e.g., proj-sa) to take snapshots of VMs in another project (e.g., proj-vm), you need to grant appropriate permissions or use shared projects instead of managing the private keys.

GCP Project IAM

The section within a GCP project that manages user and role-based access control.

Signup and view all the flashcards

Project Billing Manager

A role in GCP that allows an individual to manage billing for a given project.

Signup and view all the flashcards

Service Account

A special account in GCP used to grant access to specific services or projects. It can act on behalf of specific users.

Signup and view all the flashcards

VM Snapshots

A copy of the entire state of a Virtual Machine (VM) in GCP used for backup purposes or for migrating the VM.

Signup and view all the flashcards

Google Cloud Platform (GCP) Projects

Independent organizational units used to structure and manage resources in Google Cloud, such as virtual machines (VMs) and storage.

Signup and view all the flashcards

Displaying PDF in Browser

Viewing PDF files directly in a web browser instead of prompting the user to save them locally.

Signup and view all the flashcards

Content-Type Metadata

A header used to specify the type of a file (e.g., application/pdf).

Signup and view all the flashcards

VM Memory Upgrade

Increasing the RAM of a Virtual Machine (VM) to accommodate a workload.

Signup and view all the flashcards

Live Migration

Moving a VM's running processes to another machine without stopping the operation.

Signup and view all the flashcards

gcloud Metadata

Setting configuration options for a VM via Google Cloud CLI commands (gcloud).

Signup and view all the flashcards

VM Machine Type Change

Altering the specifications of a Virtual Machine by changing its type.

Signup and view all the flashcards

Production Subnet

A network segment used to hold production Virtual Machines.

Signup and view all the flashcards

Test Subnet

A network segment holding development or testing Virtual Machines.

Signup and view all the flashcards

App Engine application deployment to wrong project

An App Engine application deployed using gcloud app deploy was not deployed to the intended Google Cloud project.

Signup and view all the flashcards

Troubleshooting deployment issues

Steps to find out where an application deployed and why it didn't deploy to the intended project using the Google Cloud Console and command-line tools.

Signup and view all the flashcards

Highly available Compute Engine instances

Creating 10 Compute Engine instances with automatic restarting and high availability during maintenance.

Signup and view all the flashcards

Configure Automatic Restart

Setting up automatic restarting in case of crashing in Compute Engine instances using instance templates.

Signup and view all the flashcards

On-host maintenance for instances

Configure instances' behavior during system maintenance.

Signup and view all the flashcards

Instance template

A blueprint that defines the configuration of Compute Engine instances.

Signup and view all the flashcards

Instance group

A collection of Compute Engine instances managed as a group.

Signup and view all the flashcards

Reverted Application

The process of reverting an App Engine application to a previous version.

Signup and view all the flashcards

Retrieve VM login credentials

Use 'gcloud compute reset-windows-password' to get login credentials for a Windows VM after creation. You need to set 'windows-password' metadata with the password during VM creation.

Signup and view all the flashcards

SSH to a single instance for a group

Set 'enable-oslogin=true' metadata for the VM. Assign the 'compute.osLogin' role to the 'dev1' group. Users in the group can then SSH to the instance using Cloud Shell.

Signup and view all the flashcards

List enabled GCP APIs

Use the command 'gcloud services list -project' after setting the current project with 'gcloud init'.

Signup and view all the flashcards

Access VM using a service account

Download the JSON private key for the default Compute Engine service account after VM creation. Use this key to log in to the VM.

Signup and view all the flashcards

What is 'enable-oslogin=true' ?

Metadata that enables users to connect to a Virtual Machine (VM) using the OS Login feature in Google Cloud Platform.

Signup and view all the flashcards

What is 'compute.osLogin' role?

A role that allows users to connect to Virtual Machines (VMs) using the OS Login feature in Google Cloud Platform.

Signup and view all the flashcards

What is a service account?

A special account in Google Cloud Platform that can be used to access Google Cloud services and resources.

Signup and view all the flashcards

What is Cloud Shell?

A browser-based shell environment provided by Google Cloud Platform that allows you to interact with GCP resources and services.

Signup and view all the flashcards

Disable GKE Container Logs

To quickly disable the logs emitted by a GKE container in order to reduce costs, you can go to the Logs ingestion window in Stackdriver Logging and disable the log source for the GKE container resource.

Signup and view all the flashcards

App Engine Test Version Deployment

To deploy a new test version of a website hosted on App Engine standard environment and make it visible to 1% of users, you can use the --splits option during deployment. Assign a weight of 99 to the current version and 1 to the new version.

Signup and view all the flashcards

Connecting Two Subnetworks (within the same VPC)

To connect two subnetworks within the same VPC use Cloud VPN. This allows communication between instances in different subnetworks.

Signup and view all the flashcards

Accessing an Instance via Private Address

When accessing an instance in a different subnetwork, you can often use its private IP address for communication.

Signup and view all the flashcards

Connecting Instances in Different VPCs

To create an instance in a new VPC and connect it to an existing instance in a different VPC, you can use VPC peering. This enables communication between instances across VPCs.

Signup and view all the flashcards

Internal Load Balancer for Application Access

To expose an application within a VPC to external users, use an internal load balancer. This allows secure communication between the application and external clients.

Signup and view all the flashcards

Create a new instance in a subnetwork

To create a new instance in a specific subnetwork within a VPC, follow the steps in the GCP console. Select the relevant subnetwork to ensure the instance is placed in the desired location.

Signup and view all the flashcards

Exposing an Application with a Load Balancer

To make an application within a VPC accessible, use a load balancer. It distributes traffic across multiple instances, increasing availability and performance.

Signup and view all the flashcards

GKE Node Pools

Groups of nodes in a Google Kubernetes Engine (GKE) cluster, which can be configured with different hardware and software configurations.

Signup and view all the flashcards

GPU-enabled Node Pool

A type of node pool in GKE specifically designed for tasks requiring graphical processing units (GPUs), such as machine learning.

Signup and view all the flashcards

Node Selector

A way to specify the desired resources (e.g., GPUs, memory, CPU cores) for a pod in a Kubernetes cluster.

Signup and view all the flashcards

Subnet Mask

A network address bitmask that defines the size of a subnet and the number of usable IP addresses.

Signup and view all the flashcards

IP Address Expansion

Adding more IP addresses to an existing subnet without changing its subnet mask.

Signup and view all the flashcards

Shared VPC

A Google Cloud feature that allows a service project to share the network resources of a host project.

Signup and view all the flashcards

G Suite User Access

Granting G Suite users access to specific resources within a Cloud Platform project.

Signup and view all the flashcards

Study Notes

No specific text provided. Please provide the text or questions you would like me to summarize.

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

Description

Test your knowledge of Google Cloud services including App Engine and Compute Engine configurations. This quiz covers best practices for deployment, maintenance, and service availability to ensure optimal performance. Perfect for anyone looking to validate their expertise in cloud computing!

More Like This

Google Cloud Services and Infrastructure Quiz
6 questions
Google Cloud Services and Infrastructure Quiz
19 questions
Platform as a Service (PaaS) Overview
40 questions
Google Cloud Services Overview
13 questions
Use Quizgecko on...
Browser
Browser