Quiz
GCP Associate Cloud Engineer
Crie uma conta grátis para terminar este quiz
Salve seu progresso e veja sua nota final.
Já tem uma conta? Inicie sessão
Perguntas do quiz (60)
1What is true about a project?
- AProjects are a way of organizing and grouping resources in some logical way.
- BYou can control access to resources within a project using IAM members and roles.
- CResources within a project are billed together, so projects can be used to organize billing data.
- DAll of the above.
2App Engine Admin is an example of what type of role?
- APredefined
- BPrimitive
- CCustom
- DService
3Which API function would be used to see all the virtual machines in a project?
- Aget.compute.instances
- Blist.compute.instances
- Cinstances.list.compute
- Dcompute.instances.list
4What is true about project names versus project IDs?
- AProject IDs must be unique in all the world.
- BProject names must be unique in all the world.
- CProject names and IDs must be the same.
- DProject names are specified when making service requests.
5You 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?
- ATheir Gmail account
- BA Google group
- CTheir G Suite domain account
- DA service account
- EAll of the above
6What is not true about an API?
- AAPIs have to be enabled within a project to be used.
- BAPI requests must be authenticated and the caller must be assigned a role that authorizes the API request.
- COnly IAM members working in the role of Project Owner, Project Editor or Project Developer can use an API. Other users must use the console.
- DYou assign callers IAM roles to allow access to APIs.
7Project Editor is considered what type of role?
- APredefined
- BCustom
- CPrimitive
- DRoot
8What best describe the relationship between Services and Service APIs?
- AServices 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.
- BServices are things provided by humans, like a help desk of tech support. Service APIs are things that are automated in code.
- CServices 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.
- DAll of the above are true.
9Let's say you wanted to control what APIs could be used by an application you are developing. What would you do?
- ACreate a login using a G Suite account and programmatically impersonate that account in your code.
- BCreate a Service Account with only roles required by your program and download the Service Account key. Configure your software to use that key.
- CAdd 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.
- DAll of the above would work.
10If 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?
- AAssign the Storage Object Viewer role at the Organization level. This will override the Project level permission.
- BAssign the Storage Object Viewer role at the Bucket level. This will override the Project level permission.
- CPut the bucket in a different project and assign them the Storage Object Viewer role at the bucket level.
- DYou cannot remove access to the bucket, once you make them a Project Editor.
11Which command below could be used to create a Cloud Storage bucket named "pet_photos"?
- Agcloud storage buckets create pet-photos
- Bgcloud storage buckets create gs://pet-photos
- Cgcloud storage create-bucket --name=pet-photos
- Dgsutil mb gs://pet-photos
12You want to create a virtual machine using code. Which way below would not work?
- AUse a Deployment Manager template.
- BUsing Google Cloud Shell, run the gcloud compute instances create command.
- CInstall the Google Cloud SDK on your computer and use the gcloud compute instances create command.
- DUse the Python SDK
- EAll of the above would work.
13You want to copy a file named "noir.jpg" to a Cloud Storage bucket named "pet-photos". What command below would most likely work?
- Agsutil cp noir.jpg gs://pet-photos
- Bgcloud storage buckets copy --source=noir.jpg --target=gs://pet-photos
- Cgcloud storage copy-file noir.jpg gs://pet-photos
- Dgsutil copy noir.jpg gs://pet-photos
14What framework is used to create dynamic deployment manager templates?
- ANode.js Express
- BPython Flask
- CPython Jinja
- DAll of the above
- ENone of the above, you cannot create dynamic deployment manager templates.
15You've created a deployment manager template. Which command would most likely work to deploy the infrastructure specified in the template?
- Agcloud deployment-manager deployments create deployment-name --config template-file-name
- Bgcloud deployment-manager create-deployment deployment-name --config template-file-name
- Cdeployment-manager create deployment-name --config template-file-name
- Ddmutils cd deployment-name --config template-file-name
16Which programming language is supported when writing applications that run on Google Cloud.
- AGo
- BPython
- CJava
- DC#
- EAll of the above
- FAll of the above except C#
17Which command below could be used to create a virtual machine with the name "web-server" in Zone A of the US Central 1 region?
- Agcloud compute instances create web-server --zone=us-central1-a
- Bgcloud compute instances create web-server --zone=a --region=us-central1
- Cgcloud compute create-instance web-server --zone=us-central1-a
- Dgcloud compute us-central1 instances create --name=web-server --zone=a
18You have a BigQuery table named "pets". Which command below would most likely work if you want to get all the Dogs?
- Agcloud bigquery queries select --sql="select * from animals_dataset.pets where type='Dog'"
- Bgcloud bigquery jobs execute --query="select * from animals_dataset.pets where type='Dog'"
- Cbq query "select * from animals_dataset.pets where type='Dog'"
- Dbq.pets.select(pet => pet.type == "Dog")
19Deployment Manager templates can be written in which format below?
- AXML
- BSQL
- CYAML
- DCSV
20If you install the Google Cloud SDK on your computer, and you want to set up gcloud, which command do you run?
- Agcloud install
- Bgcloud configure
- Cgcloud init
- Dgcloud config install
21How do you enable the Google Cloud CDN?
- AYou add a CDN Distribution when configuring the service and use the distribution's URL when configuring a domain CNAME record.
- BIt is enabled when you configure the backend service of an HTTP load balancer.
- CIt is part of the Instance Group configuration.
- DIt is enabled on a Cloud Storage bucket using the command: gsutil enable-cdn gs://bucket-name --true
22Where do you set up an autoscaler when deploying applications to Compute Engine?
- AIn the Instance Template
- BIn the Instance Group
- CIn the Load Balancer Back End Service
- DIn the Startup Script of the Virtual Machine Image
23Before connecting to a Windows server to administer it, what must you do.
- ADownload the RDP key used when creating the machine.
- BDownload the SSH key used when creating the machine.
- CGenerate a password for the account you want use to log into the machine.
- DUse PowerShell to enable Windows Virtual Desktop on the instance you want to connect to.
24What best describes a Shared VPC?
- AA single VPC network that can be used by 2 or more projects.
- BA VPC network that supports external IP addresses so machines outside the network can access them.
- CA network that uses a VPN and a Cloud Router to provide access from your on-premises network.
- DA network within your on-premises data center that GCP Compute Engine Virtual Machines can be added to.
25What is true about Firewall Rules in Google Cloud networks.
- ABoth ingress and egress rules are supported.
- BTags or Service Accounts can be used to determine which machines in your VPC network Firewall Rules apply to.
- CCIDR addressing can be used to determine which machines outside your network can access the machines in your network.
- DAll of the above are true.
26What protocol is used to connect to Linux machines for administration?
- ARDP
- BSSH
- CTCP
- DAll of the above could be used.
27If you want to deploy a Web application that is highly available, what would you need to do.
- ACreate at least two machines in the same zone and put a load balancer in front of them.
- BCreate at least two machines in different zones and put a load balancer in front of them.
- CCreate 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.
- DCreate a health check that monitors a machine and trigger a Cloud Function to create a new machine if the health check fails.
28What is an advantage of the CDN?
- AReduced network egress cost when delivering content all over the world.
- BReduced latency and better performance when delivering content all over the world.
- CProtection against distributed denial of service attacks.
- DAll of the above
29What protocol is used to connect to a Windows machine running in Google Cloud?
- ARDP
- BSSH
- CTCP
- DAll of the above could be used.
30Which would be a valid internal IP address range when creating a subnet within a Google Cloud VPC network.
- A10.128.0.0/20
- B172.16.0.0/16
- C192.168.1.0/24
- DAll of the above
31You're trying to SSH into a machine to administrate it, but it doesn't work. What might be the cause?
- AThe machine does not have a public IP.
- BThere is no firewall rule that opens port 22.
- CYour SSH key is invalid.
- DAll of the above could be the problem.
32You 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?
- ACreate 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.
- BSet up a VPN and connect through it.
- CBoth of the above would work.
- DNone of the above would work. You need to have an external IP address to connect to a machine from an external network.
33Google Cloud SQL supports which databases?
- AMySQL
- BPostgreSQL
- CSQL Server
- DAll of the above
34Which is an example of a NoSQL database solution in GCP?
- ASpanner
- BBigtable
- CBigQuery
- DCloud SQL
35True 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.
- AVerdadeiro
- BFalso
36You 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?
- AFirestore
- BBigtable
- CSpanner
- DCloud Storage
37What is true about Firestore?
- AIt supports ACID transactions.
- BYou can create primary and secondary indexes.
- CThere is a 1 GB free tier.
- DAll of the above are true.
38You 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?
- AMulti-regional
- BRegional
- CNearline
- DColdline
39What is true about Google Cloud Storage?
- ABucket names must be unique within your project.
- BYou pay for the amount of space reserved for a bucket when it is created.
- CVersioning can be enabled on a bucket.
- DAll of the above are true.
40What is NOT true about a Spanner database?
- ACan be configured to run in a single region or multiple regions.
- BScales by adding additional nodes.
- CSupports strong consistency and ACID transactions.
- DIt is designed for very high availability.
- EAll of the above are true.
41Currently, 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?
- AFirestore
- BSpanner
- CBigtable
- DBigQuery
42The 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?
- AMulti-regional
- BRegional
- CNearline
- DColdline
43Your 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?
- ACreate 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.
- BCreate Kubernetes configuration files to deploy the application on a Kubernetes cluster. Use a script to create the Kubernetes cluster on the customers' preferred environment.
- CCreate 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.
- DCreate a VMWare virtual machine that runs the application. Then, import that VM Image into the customers' preferred Cloud Environment when deploying the application.
44Which is a trigger supported in Cloud Functions?
- ACloud Storage bucket changes
- BPub/Sub Messages
- CHTTP requests
- DAll of the above
45You 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?
- AA Deployment
- BA Horizontal Pod Autoscaler
- CA Load Balancer
- DAll of the above
46You 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?
- ACompute Engine
- BKubernetes
- CApp Engine
- DCloud Functions
47What feature of App Engine allows you to easily create Canary deployments and do A/B testing?
- ADNS Serving
- BMulti-Cast Provisioning
- CVersion Selectors
- DTraffic Splitting
48You 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?
- ACompute Engine
- BKubernetes Engine
- CApp Engine
- DCloud Functions
49You 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?
- Agcloud app deploy --version=two --no-promote
- Bgcloud app update --version=two --no-promote
- Cgcloud app-engine deployments create my-app --version=two --traffic=0
- Dgcloud app-engine deployments update my-app --version=two
50You'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?
- Akubectl apply -f app-config.yaml
- Bgcloud kubernetes deployments create my-app --config=app-config.yaml
- Cgcloud container deployments create my-app --config=app-config.yaml
- Dgcloud deploy my-app--cluster=my-cluster --config=app-config.yaml
51You 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?
- ACompute Engine VMs
- BKubernetes
- CApp Engine
- DCloud Functions
52The smallest unit of deployment in a Kubernetes cluster is called what?
- ANode
- BPod
- CInstance
- DContainer
53You'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?
- ATracing
- BAlerting
- CResource monitoring
- DUptime checks
54You 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?
- AYou have to install the Stackdriver monitoring agent.
- BYou have to install the Stackdriver logging agent.
- CYour machine needs full access to all Cloud APIs
- DAll of the above.
55If you wanted to monitor memory utilization of a virtual machine running in Compute Engine, what would you have to do first?
- AInstall the Stackdriver monitoring agent
- BInstall the Stackdriver logging agent
- CStart the Linux resource monitoring daemon
- DYou don't have to do anything, Stackdriver monitoring is enabled by default for Compute Engine VMs.
56Which service cannot be monitored using Stackdriver monitoring?
- ACompute Engine VM resources
- BAWS EC2 Instances
- CApp Engine Usage
- DKubernetes Clusters
- EAll of these can be monitored
57If you were setting up an Instance Group and wanted to enable autohealing, what Stackdriver feature would you need to create?
- AAn uptime check
- BA health check
- CAn alerting policy
- DA log export
58You'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?
- ADebugging
- BTracing
- CError Reporting
- DAll of the above
59You want to be notified if application usage exceeds some value. What would you create?
- AA health check
- BAn alerting policy
- CA logging pipeline
- DA resource monitor
60You want to analyze your application logs in realtime to detect anomalies. How might you do that?
- AExport the logs to Cloud Storage and create a Cloud Function to monitor changes.
- BExport the logs to Pub/Sub and create and a Dataflow job to monitor the stream for anomalies.
- CExport the logs to BigQuery and create an App Engine application to query the BigQuery data.
- DExport the logs to Datastore and monitor it with a Spark Cluster running in Dataproc.
Informações
- Descrição
- Foundation Cloud Quiz sobre GCP Associate Cloud Engineer, criado por Marc Hall em 17-04-2021.
- Autor
- Marc Hall
- Idioma
- English
- Visualizações
- 136
- Etiquetas
- Avaliação
- 4,5 de 5 · 2 avaliações Avalie este quiz