Marc Hall
Quiz von , erstellt am more than 1 year ago

Foundation Cloud Quiz am GCP Associate Cloud Engineer, erstellt von Marc Hall am 17/04/2021.

94
1
0
Marc Hall
Erstellt von Marc Hall vor mehr als 3 Jahre
Schließen

GCP Associate Cloud Engineer

Frage 1 von 60

1

What is true about a project?

Wähle eine der folgenden:

  • Projects are a way of organizing and grouping resources in some logical way.

  • You can control access to resources within a project using IAM members and roles.

  • Resources within a project are billed together, so projects can be used to organize billing data.

  • All of the above.

Erklärung

Frage 2 von 60

1

App Engine Admin is an example of what type of role?

Wähle eine der folgenden:

  • Predefined

  • Primitive

  • Custom

  • Service

Erklärung

Frage 3 von 60

1

Which API function would be used to see all the virtual machines in a project?

Wähle eine der folgenden:

  • get.compute.instances

  • list.compute.instances

  • instances.list.compute

  • compute.instances.list

Erklärung

Frage 4 von 60

1

What is true about project names versus project IDs?

Wähle eine der folgenden:

  • Project IDs must be unique in all the world.

  • Project names must be unique in all the world.

  • Project names and IDs must be the same.

  • Project names are specified when making service requests.

Erklärung

Frage 5 von 60

1

You want to add a colleague to a Google Cloud project so they can help you program it. When adding that person as a member of your project, what could you use to identify them?

Wähle eine der folgenden:

  • Their Gmail account

  • A Google group

  • Their G Suite domain account

  • A service account

  • All of the above

Erklärung

Frage 6 von 60

1

What is not true about an API?

Wähle eine der folgenden:

  • APIs have to be enabled within a project to be used.

  • API requests must be authenticated and the caller must be assigned a role that authorizes the API request.

  • Only IAM members working in the role of Project Owner, Project Editor or Project Developer can use an API. Other users must use the console.

  • You assign callers IAM roles to allow access to APIs.

Erklärung

Frage 7 von 60

1

Project Editor is considered what type of role?

Wähle eine der folgenden:

  • Predefined

  • Custom

  • Primitive

  • Root

Erklärung

Frage 8 von 60

1

What best describe the relationship between Services and Service APIs?

Wähle eine der folgenden:

  • Services represent the products available within Google Cloud, and each service has an API that consists of a collection of functions that can be invoked when using the service.

  • Services are things provided by humans, like a help desk of tech support. Service APIs are things that are automated in code.

  • Services are those things aimed at end users, like Google Maps or Gmail. Service APIs are those things used by programmers, like Kubernetes or App Engine.

  • All of the above are true.

Erklärung

Frage 9 von 60

1

Let's say you wanted to control what APIs could be used by an application you are developing. What would you do?

Wähle eine der folgenden:

  • Create a login using a G Suite account and programmatically impersonate that account in your code.

  • Create a Service Account with only roles required by your program and download the Service Account key. Configure your software to use that key.

  • Add an SSH key to a Compute Engine instance metadata. Then add that SSH key as an IAM member within your project. Assign the required roles to that member.

  • All of the above would work.

Erklärung

Frage 10 von 60

1

If someone is granted the Editor role within a Project, but you want them to have read-only access to a particular bucket in Storage, what could you do?

Wähle eine der folgenden:

  • Assign the Storage Object Viewer role at the Organization level. This will override the Project level permission.

  • Assign the Storage Object Viewer role at the Bucket level. This will override the Project level permission.

  • Put the bucket in a different project and assign them the Storage Object Viewer role at the bucket level.

  • You cannot remove access to the bucket, once you make them a Project Editor.

Erklärung

Frage 11 von 60

1

Which command below could be used to create a Cloud Storage bucket named "pet_photos"?

Wähle eine der folgenden:

  • gcloud storage buckets create pet-photos

  • gcloud storage buckets create gs://pet-photos

  • gcloud storage create-bucket --name=pet-photos

  • gsutil mb gs://pet-photos

Erklärung

Frage 12 von 60

1

You want to create a virtual machine using code. Which way below would not work?

Wähle eine der folgenden:

  • Use a Deployment Manager template.

  • Using Google Cloud Shell, run the gcloud compute instances create command.

  • Install the Google Cloud SDK on your computer and use the gcloud compute instances create command.

  • Use the Python SDK

  • All of the above would work.

Erklärung

Frage 13 von 60

1

You want to copy a file named "noir.jpg" to a Cloud Storage bucket named "pet-photos". What command below would most likely work?

Wähle eine der folgenden:

  • gsutil cp noir.jpg gs://pet-photos

  • gcloud storage buckets copy --source=noir.jpg --target=gs://pet-photos

  • gcloud storage copy-file noir.jpg gs://pet-photos

  • gsutil copy noir.jpg gs://pet-photos

Erklärung

Frage 14 von 60

1

What framework is used to create dynamic deployment manager templates?

Wähle eine der folgenden:

  • Node.js Express

  • Python Flask

  • Python Jinja

  • All of the above

  • None of the above, you cannot create dynamic deployment manager templates.

Erklärung

Frage 15 von 60

1

You've created a deployment manager template. Which command would most likely work to deploy the infrastructure specified in the template?

Wähle eine der folgenden:

  • gcloud deployment-manager deployments create deployment-name --config template-file-name

  • gcloud deployment-manager create-deployment deployment-name --config template-file-name

  • deployment-manager create deployment-name --config template-file-name

  • dmutils cd deployment-name --config template-file-name

Erklärung

Frage 16 von 60

1

Which programming language is supported when writing applications that run on Google Cloud.

Wähle eine der folgenden:

  • Go

  • Python

  • Java

  • C#

  • All of the above

  • All of the above except C#

Erklärung

Frage 17 von 60

1

Which command below could be used to create a virtual machine with the name "web-server" in Zone A of the US Central 1 region?

Wähle eine der folgenden:

  • gcloud compute instances create web-server --zone=us-central1-a

  • gcloud compute instances create web-server --zone=a --region=us-central1

  • gcloud compute create-instance web-server --zone=us-central1-a

  • gcloud compute us-central1 instances create --name=web-server --zone=a

Erklärung

Frage 18 von 60

1

You have a BigQuery table named "pets". Which command below would most likely work if you want to get all the Dogs?

Wähle eine der folgenden:

  • gcloud bigquery queries select --sql="select * from animals_dataset.pets where type='Dog'"

  • gcloud bigquery jobs execute --query="select * from animals_dataset.pets where type='Dog'"

  • bq query "select * from animals_dataset.pets where type='Dog'"

  • bq.pets.select(pet => pet.type == "Dog")

Erklärung

Frage 19 von 60

1

Deployment Manager templates can be written in which format below?

Wähle eine der folgenden:

  • XML

  • SQL

  • YAML

  • CSV

Erklärung

Frage 20 von 60

1

If you install the Google Cloud SDK on your computer, and you want to set up gcloud, which command do you run?

Wähle eine der folgenden:

  • gcloud install

  • gcloud configure

  • gcloud init

  • gcloud config install

Erklärung

Frage 21 von 60

1

How do you enable the Google Cloud CDN?

Wähle eine der folgenden:

  • You add a CDN Distribution when configuring the service and use the distribution's URL when configuring a domain CNAME record.

  • It is enabled when you configure the backend service of an HTTP load balancer.

  • It is part of the Instance Group configuration.

  • It is enabled on a Cloud Storage bucket using the command: gsutil enable-cdn gs://bucket-name --true

Erklärung

Frage 22 von 60

1

Where do you set up an autoscaler when deploying applications to Compute Engine?

Wähle eine der folgenden:

  • In the Instance Template

  • In the Instance Group

  • In the Load Balancer Back End Service

  • In the Startup Script of the Virtual Machine Image

Erklärung

Frage 23 von 60

1

Before connecting to a Windows server to administer it, what must you do.

Wähle eine der folgenden:

  • Download the RDP key used when creating the machine.

  • Download the SSH key used when creating the machine.

  • Generate a password for the account you want use to log into the machine.

  • Use PowerShell to enable Windows Virtual Desktop on the instance you want to connect to.

Erklärung

Frage 24 von 60

1

What best describes a Shared VPC?

Wähle eine der folgenden:

  • A single VPC network that can be used by 2 or more projects.

  • A VPC network that supports external IP addresses so machines outside the network can access them.

  • A network that uses a VPN and a Cloud Router to provide access from your on-premises network.

  • A network within your on-premises data center that GCP Compute Engine Virtual Machines can be added to.

Erklärung

Frage 25 von 60

1

What is true about Firewall Rules in Google Cloud networks.

Wähle eine der folgenden:

  • Both ingress and egress rules are supported.

  • Tags or Service Accounts can be used to determine which machines in your VPC network Firewall Rules apply to.

  • CIDR addressing can be used to determine which machines outside your network can access the machines in your network.

  • All of the above are true.

Erklärung

Frage 26 von 60

1

What protocol is used to connect to Linux machines for administration?

Wähle eine der folgenden:

  • RDP

  • SSH

  • TCP

  • All of the above could be used.

Erklärung

Frage 27 von 60

1

If you want to deploy a Web application that is highly available, what would you need to do.

Wähle eine der folgenden:

  • Create at least two machines in the same zone and put a load balancer in front of them.

  • Create at least two machines in different zones and put a load balancer in front of them.

  • Create one machine in GCP and a backup in AWS. Then use a DNS health check and forwarding rule to route to the backup in the event of a failure.

  • Create a health check that monitors a machine and trigger a Cloud Function to create a new machine if the health check fails.

Erklärung

Frage 28 von 60

1

What is an advantage of the CDN?

Wähle eine der folgenden:

  • Reduced network egress cost when delivering content all over the world.

  • Reduced latency and better performance when delivering content all over the world.

  • Protection against distributed denial of service attacks.

  • All of the above

Erklärung

Frage 29 von 60

1

What protocol is used to connect to a Windows machine running in Google Cloud?

Wähle eine der folgenden:

  • RDP

  • SSH

  • TCP

  • All of the above could be used.

Erklärung

Frage 30 von 60

1

Which would be a valid internal IP address range when creating a subnet within a Google Cloud VPC network.

Wähle eine der folgenden:

  • 10.128.0.0/20

  • 172.16.0.0/16

  • 192.168.1.0/24

  • All of the above

Erklärung

Frage 31 von 60

1

You're trying to SSH into a machine to administrate it, but it doesn't work. What might be the cause?

Wähle eine der folgenden:

  • The machine does not have a public IP.

  • There is no firewall rule that opens port 22.

  • Your SSH key is invalid.

  • All of the above could be the problem.

Erklärung

Frage 32 von 60

1

You have a machine in a Google Cloud network, but you don't want to give it an external IP address. How could you connect to that machine to administer it?

Wähle eine der folgenden:

  • Create another machine in the same network that has an external IP and connect to it first, then connect from it to the machine that has no external IP.

  • Set up a VPN and connect through it.

  • Both of the above would work.

  • None of the above would work. You need to have an external IP address to connect to a machine from an external network.

Erklärung

Frage 33 von 60

1

Google Cloud SQL supports which databases?

Wähle eine der folgenden:

  • MySQL

  • PostgreSQL

  • SQL Server 

  • All of the above

Erklärung

Frage 34 von 60

1

Which is an example of a NoSQL database solution in GCP?

Wähle eine der folgenden:

  • Spanner 

  • Bigtable 

  • BigQuery

  • Cloud SQL

Erklärung

Frage 35 von 60

1

True or False. You enable encryption in a Cloud Storage bucket by creating an encryption key using the Key Management Service and specifying that key when creating the bucket.

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung

Frage 36 von 60

1

You are looking for a managed database solution for storing things like user profiles, product information, product reviews and session data. What GCP solution would be most appropriate?

Wähle eine der folgenden:

  • Firestore

  • Bigtable 

  • Spanner 

  • Cloud Storage

Erklärung

Frage 37 von 60

1

What is true about Firestore?

Wähle eine der folgenden:

  • It supports ACID transactions. 

  • You can create primary and secondary indexes.

  • There is a 1 GB free tier. 

  • All of the above are true.

Erklärung

Frage 38 von 60

1

You want to deliver static web content like CSS files, JavaScript files, PDFs, and photos from a Cloud Storage bucket. What would most likely be the best Storage Class to use assuming high availability was a key requirement?

Wähle eine der folgenden:

  • Multi-regional 

  • Regional 

  • Nearline 

  • Coldline

Erklärung

Frage 39 von 60

1

What is true about Google Cloud Storage?

Wähle eine der folgenden:

  • Bucket names must be unique within your project. 

  • You pay for the amount of space reserved for a bucket when it is created. 

  • Versioning can be enabled on a bucket. 

  • All of the above are true.

Erklärung

Frage 40 von 60

1

What is NOT true about a Spanner database?

Wähle eine der folgenden:

  • Can be configured to run in a single region or multiple regions. 

  • Scales by adding additional nodes.

  • Supports strong consistency and ACID transactions. 

  • It is designed for very high availability.

  • All of the above are true.

Erklärung

Frage 41 von 60

1

Currently, you have an HBase database on-premises that you want to move to GCP. There is a lot of data and very fast writes are required. Which service on GCP would be likely most appropriate?

Wähle eine der folgenden:

  • Firestore

  • Spanner

  • Bigtable

  • BigQuery

Erklärung

Frage 42 von 60

1

The company has mandated that you store all company documents and copies of all emails and text messages for seven years just in case you ever need them for an audit. Most of the data will never be accessed, but it is important that you do not lose it. What is the best storage solution?

Wähle eine der folgenden:

  • Multi-regional 

  • Regional 

  • Nearline

  • Coldline

Erklärung

Frage 43 von 60

1

Your company is working on a new version of an enterprise inventory management system that you have sold for many years. In an effort to modernize the application you have rearchitected it using micro-services running in Docker containers. You want to simplify the deployment of the application. You also want to be able to deploy the application to any public cloud or deploy the application to customers' internal data centers, whichever they prefer. Which would you recommend below?

Wähle eine der folgenden:

  • Create Terraform templates to deploy the application infrastructure on any cloud. Then, create shell scripts to deploy the application. Run the scripts from a Jenkins server when code changes are committed.

  • Create Kubernetes configuration files to deploy the application on a Kubernetes cluster. Use a script to create the Kubernetes cluster on the customers' preferred environment.

  • Create scripts to deploy the application to App Engine on GCP, Elastic Beanstalk on AWS or Azure Services. Use the appropriate script depending on the environment chosen.

  • Create a VMWare virtual machine that runs the application. Then, import that VM Image into the customers' preferred Cloud Environment when deploying the application.

Erklärung

Frage 44 von 60

1

Which is a trigger supported in Cloud Functions?

Wähle eine der folgenden:

  • Cloud Storage bucket changes

  • Pub/Sub Messages

  • HTTP requests

  • All of the above

Erklärung

Frage 45 von 60

1

You want to deploy a web service to a Kubernetes cluster. You want to have multiple instances of the service running and you want new instances created and destroyed to meet demand. Which Kubernetes components do you need to create?

Wähle eine der folgenden:

  • A Deployment

  • A Horizontal Pod Autoscaler

  • A Load Balancer

  • All of the above

Erklärung

Frage 46 von 60

1

You have an existing Web application programmed in ASP.NET version 3. It's an internal app with not a lot of users or data. Currently, the data is stored on the same machine using a SQL Server Express database. You need to move the application to the cloud without rewriting it. What would you choose to deploy the application?

Wähle eine der folgenden:

  • Compute Engine

  • Kubernetes

  • App Engine

  • Cloud Functions

Erklärung

Frage 47 von 60

1

What feature of App Engine allows you to easily create Canary deployments and do A/B testing?

Wähle eine der folgenden:

  • DNS Serving

  • Multi-Cast Provisioning

  • Version Selectors

  • Traffic Splitting

Erklärung

Frage 48 von 60

1

You and a couple friends have come up with a great idea for an application. All of you can program, but none of you has a lot of experience managing compute infrastructure and networks. You also don't want to spend a lot to get started and you don't want to purchase infrastructure in case the application doesn't become popular. You have chosen Google Cloud to run your application. What service would you recommend for deploying the application?

Wähle eine der folgenden:

  • Compute Engine

  • Kubernetes Engine

  • App Engine

  • Cloud Functions

Erklärung

Frage 49 von 60

1

You have version one of an existing App Engine application running. You have created version two. You want to deploy version two to App Engine, but you want to test it before it starts handling the user requests. Which command would you use?

Wähle eine der folgenden:

  • gcloud app deploy --version=two --no-promote

  • gcloud app update --version=two --no-promote

  • gcloud app-engine deployments create my-app --version=two --traffic=0

  • gcloud app-engine deployments update my-app --version=two

Erklärung

Frage 50 von 60

1

You've creates a Kubernetes configuration file called app-config.yaml. Which statement below would you most likely use to deploy your application to a Kubernetes Cluster running in Kubernetes Engine?

Wähle eine der folgenden:

  • kubectl apply -f app-config.yaml

  • gcloud kubernetes deployments create my-app --config=app-config.yaml

  • gcloud container deployments create my-app --config=app-config.yaml

  • gcloud deploy my-app--cluster=my-cluster --config=app-config.yaml

Erklärung

Frage 51 von 60

1

You want to write a program that responds to photos being uploaded to a Cloud Storage bucket. When a photo appears, you want to first detect if it is inappropriate content. If it is, you want to delete it. If the content is OK, then you want to label the photos with keywords and add it to a Bigtable table that you are using for a searchable index. Which would you use to deploy your program?

Wähle eine der folgenden:

  • Compute Engine VMs

  • Kubernetes

  • App Engine

  • Cloud Functions

Erklärung

Frage 52 von 60

1

The smallest unit of deployment in a Kubernetes cluster is called what?

Wähle eine der folgenden:

  • Node

  • Pod

  • Instance

  • Container

Erklärung

Frage 53 von 60

1

You've deployed an application to App Engine. There is an occasional performance problem that you are trying to diagnose. What Stackdriver feature might help you with this?

Wähle eine der folgenden:

  • Tracing

  • Alerting

  • Resource monitoring

  • Uptime checks

Erklärung

Frage 54 von 60

1

You have an application that you want to write to the Stackdriver logs from a Compute Engine virtual machine. It is not working, what might be the cause?

Wähle eine der folgenden:

  • You have to install the Stackdriver monitoring agent.

  • You have to install the Stackdriver logging agent.

  • Your machine needs full access to all Cloud APIs

  • All of the above.

Erklärung

Frage 55 von 60

1

If you wanted to monitor memory utilization of a virtual machine running in Compute Engine, what would you have to do first?

Wähle eine der folgenden:

  • Install the Stackdriver monitoring agent

  • Install the Stackdriver logging agent

  • Start the Linux resource monitoring daemon

  • You don't have to do anything, Stackdriver monitoring is enabled by default for Compute Engine VMs.

Erklärung

Frage 56 von 60

1

Which service cannot be monitored using Stackdriver monitoring?

Wähle eine der folgenden:

  • Compute Engine VM resources

  • AWS EC2 Instances

  • App Engine Usage

  • Kubernetes Clusters

  • All of these can be monitored

Erklärung

Frage 57 von 60

1

If you were setting up an Instance Group and wanted to enable autohealing, what Stackdriver feature would you need to create?

Wähle eine der folgenden:

  • An uptime check

  • A health check

  • An alerting policy

  • A log export

Erklärung

Frage 58 von 60

1

You've deployed a new version of an App Engine application. The application worked on your developer machine and passed all of its unit testing. However, it is failing in the Cloud. What Stackdriver feature might help you track down the problem?

Wähle eine der folgenden:

  • Debugging

  • Tracing

  • Error Reporting

  • All of the above

Erklärung

Frage 59 von 60

1

You want to be notified if application usage exceeds some value. What would you create?

Wähle eine der folgenden:

  • A health check

  • An alerting policy

  • A logging pipeline

  • A resource monitor

Erklärung

Frage 60 von 60

1

You want to analyze your application logs in realtime to detect anomalies. How might you do that?

Wähle eine der folgenden:

  • Export the logs to Cloud Storage and create a Cloud Function to monitor changes.

  • Export the logs to Pub/Sub and create and a Dataflow job to monitor the stream for anomalies.

  • Export the logs to BigQuery and create an App Engine application to query the BigQuery data.

  • Export the logs to Datastore and monitor it with a Spark Cluster running in Dataproc.

Erklärung