Deploying and implementing a cloud solution

docx

School

Arizona State University *

*We aren’t endorsed by this school

Course

546

Subject

Computer Science

Date

Dec 6, 2023

Type

docx

Pages

3

Uploaded by BrigadierCrocodileMaster638

Report
Deploying and implementing a cloud solution 1. You need to set up Lifecycle Management on a new Cloud Storage bucket. Which of the following options should you consider? a. Identify an existing bucket with the configuration you want, download that bucket’s configuration JSON using the JSON API, apply the configuration file for the new bucket via gsutil i. There are some details here that you just need to remember: 1. The GCS console does not deal with Lifecycle configuration files 2. Gsutil deals with JSON files 3. The JSON and XML APIs each deal with JSON and XML, respectively ii. https://cloud.google.com/storage/docs/managing-lifecycles 2. Which of the following command line options can be used to create a bucket in Cloud Storage? a. Gsutil i. The gsutil CLI tool allows the management of Cloud Storage buckets from the command line ii. https://cloud.google.com/storage/docs/gsutil/commands/mb 3. You are thinking through all the things that happen when a Compute Engine instance starts up with a startup script that installs the Stackdriver agent and runs gsutil to retrieve a large amount of data from Cloud Storage. Of the following steps, which is the first one to happen? a. The metadata service returns information about this instance to the first requester i. Immediately when the VM is powered on, resources are allocated and acquired, the OS starts booting up, and the instance is considered to be running. That’s when gcloud completes, if it was run without –async. Then the metadata service will provide the startup script to the OS boot process. The gsutil command will also need to get metadata—like the service account token—but since it is synchronous by default and will take some time to transfer the volume of data to the instance, the Stackdriver agent should have a chance to push logs and show the startup script progress. When the transfer is done, the startup script will complete and more logs will eventually be pushed to Stackdriver Logging. ii. https://cloud.google.com/compute/docs/startupscript
4. Which of the following statements is true? a. None i. If you don’t do (or specify) anything, the default service account will be attached by default to each new GCE instance. However, you can stop that from happening by either deleting the default service account or opting out of attaching it when you are creating a new GCE instance. ii. https://cloud.google.com/iam/docs/understanding-service- accounts 5. What will happen if a running GKE pod encounters a fatal error? a. If it is a part of a deployment, GKE will restart that pod on an available node. i. GKE tries to ensure that the number of pods you’ve specified in your deployment are always running, so it will restart one if it fails. All the other options are using terms in ways that don’t make sense. ii. https://cloud.google.com/kubernetes-engine/docs/concepts/pod 6. You run the command kubectl deploy-pod mypodname in Cloud Shell. What should you expect to see? a. An “unknown command” error i. This is not a valid command and kubectl will complain that it is unknown ii. https://kubernetes.io/docs/reference/kubectl/cheatsheet/ 7. You are thinking through all the things that happen when a Compute Engine instance starts up with a startup script that installs the Stackdriver agent and runs gsutil to retrieve a large amount of data from Cloud Storage. Of the following steps, which is the last one to happen. a. Data retrieval from GCS completes i. Immediately when the VM is powered on, resources are allocated and acquired, the OS starts booting up, and the instance is considered to be running. That’s when gcloud completes, if it was run with out –async Then the metadata service will provide the startup script to the OS boot process. The gsutil command will also need to get metadata--like the service account token--but since it is synchronous by default and will take some time to transfer the volume of data to the instance, the Stackdriver agent should have a chance to push logs and show the startup script progress. When the transfer is
done, the startup script will complete and more logs will eventually be pushed to Stackdriver Logging. ii. https://cloud.google.com/compute/docs/instances/checking- instance-status 8. You want to create a new regional bucket in IOWA. How can you go about doing this? a. Begin creating the bucket, set the bucket name, set the location type to region, and select the us-central1(IOWA) location, and choose CREATE. i. The steps to create a bucket in iowa would be the above 9. What will happen if a running GKE node encounters a fatal error? a. GKE will automatically restart that node on an available GCE host. i. Nodes are GCE instances managed by the GKE system. If one node dies, GKE will bring up another node to replace it and will ensure that any affected pods are restarted. ii. https://cloud.google.com/kubernetes- engine/docs/concepts/cluster-architecture 10. You need to very quickly set up Nginx Plus on GCP. Which of the following is the fastest option to get up and running? a. GCP Marketplace i. https://www.nginx.com/partners/google-cloud-platform/
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help