GCP1 Flashcards

1
Q
  1. You are currently designing a cloud application that your user base will
    connect to without a gateway VPN. The company is wanting to ensure that
    the application maintains user identity and context to guard access to the
    applications and VMs. What would you recommend? (Select One)

A. Cloud VPN
B. Identity Aware Proxy (IAP)
C. Cloud NAT
D. Cloud Endpoints

A

Correct Answer(s): B: Identity Aware Proxy (IAP)
Explanation: IAP protects SSH and RDP access to your VMs hosted on
GCP. This is an effective whitelisting approach. Your VM instances don’t
even need public IP addresses. https://cloud.google.com/iap/

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q
  1. The _______________________________resource represents the Access
    Control Lists (ACLs) for buckets within Google Cloud Storage. ACLs let you
    specify who has access to your data and to what extent. (Select One)

A. SetIAMPolicy
B. TestIAMPermissions
C. DefaultAccessControls
D. BucketAccessControls

A

Correct Answer(s): D: BucketAccessControls
Explanation: Buckets contain objects which can be accessed by their own
methods. In addition to the ACL property, buckets contain
bucketAccessControls, for use in fine-grained manipulation of an existing
bucket’s access controls.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
  1. You have created several preemptible Linux virtual machine instances
    using Google Compute Engine. You want to properly shut down your
    application before the virtual machines are pre-empted (Shut off). (Select
    One)

A. Create a shutdown script and use it as the value for a new metadata entry with the key shutdown-script in Deployment Manager
B. Create a shutdown script and use it as the value for a new metadata entry with the key shutdown script in the Cloud Platform Console when you create the new virtual machine instance
C. Create a shutdown script and use it as the value for a new log point entry with the key shutdown-script in the Cloud Platform Console when you create the new virtual machine instance
D. Create a shutdown script and use it as the value for a new metadata entry with the key shutdown-script and then use the Google Cloud Github for resources to complete.

A

Correct Answer(s): B: Create a shutdown script and use it as the value for a
new metadata entry with the key shutdown-script in the Cloud Platform
Console when you create the new virtual machine instance
Explanation: Create a shutdown script and use it as the value for a new
metadata entry with the key shutdown-script in the Cloud Platform Console
when you create the new virtual machine instance
https://cloud.google.com/compute/docs/shutdownscript

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
  1. The first step in Cloud Deployment manager is to create
    what____________? (Select One)
    A. Template
    B. Configuration
    C. Resources
    D. Pipeline
A

Correct Answer(s): B: Configuration
Explanation: The first step in creating your deployment is to create a
configuration. A configuration is a list of resources, and their respective
properties, that will be part of your deployment.
https://cloud.google.com/deployment-manager/docs/step-by-stepguide/
create-a-configuration
5.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
  1. When using the SDK, you want to ensure you set the current project for
    your development environment. What would be the proper syntax in
    gcloud? (Select One)
    A. gcloud config set project projectname
    B. gcloud config init project projectname
    C. gcloud config set project –projectname
    D. gcloud config init project –projectname
A

Correct Answer(s): D: gcloud config init project –projectname
Explanation: For the exam please ensure you reference the gcloud
commands for projects consistently. You can expect several questions on
these commands and syntaxes on the exam.
gcloud config set project projectname
https://cloud.google.com/sdk/gcloud/reference/config/set

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
  1. The Versioning Configuration feature in gsutil enables you to configure a
    Google Cloud Storage bucket to keep old versions of objects.
    The gsutil versioning command has two sub-commands. What are the two
    subcommands? (Select Two)
    A. Get
    B. Set
    C. List
    D. Show
    E. Put
A

Correct Answer(s): A, B: Get and Set
Explanation: Set The “set” sub-command requires an additional subcommand,
either “on” or “off”, which, respectively, will enable or disable
versioning for the specified bucket(s). Get The “get” sub-command gets the
versioning configuration for a bucket and displays whether or not it is
enabled.
https://cloud.google.com/storage/docs/gsutil/commands/versioning

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q
  1. You would like to create a new Compute Engine instance called gcelab2 in
    the zone us-central-c.
    What is the proper command? (Select One)
    A. gcloud compute instances create gcelab2 –zone uscentral1-c
    B. gcloud compute instances make gcelab2 –zone us-central1-c
    C. gcloud compute instances init gcelab2 –zone us-central1-c
    D. gcloud compute instances init gcelab2 –region us-central1-c
A

Correct Answer(s): A gcloud compute instances create gcelab2 –zone uscentral1-c
Explanation: Creating a GCE instance is basic knowledge required for the
exam.
gcloud compute instances create gcelab2 –zone us-central1-c
https://cloud.google.com/sdk/gcloud/reference/version

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q
  1. Logs are associated primarily with GCP ____________, although
    _______________ can also have logs. (Select One)
    A. Projects and Regions
    B. Projects and Organizations
    C. Zones and Regions
    D. Projects and Zones
A

Correct Answer(s): B: Project, Organizations
Explanation: Logs are associated primarily with GCP projects, although
organizations can also have logs

https://cloud.google.com/logging/docs/basic-concepts

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q
  1. Cloud Endpoints can be implemented in which languages?
    (Select Two)
    A. PHP
    B. Rust
    C. Go
    D. Python
    E. Java
A

Correct Answer(s): D, E: Python, Java
Explanation: Cloud Endpoints for the App Engine standard generation 1
environment historically used Endpoints Frameworks, which only supports
the Java 8 and Python 2.7 runtime environments.
https://cloud.google.com/endpoints/docs/choose-endpoints-option

How well did you know this?
1
Not at all
2
3
4
5
Perfectly