Reliable Google Cloud Infrastructure: Design and Process Quiz Answers

Get All Weeks Reliable Google Cloud Infrastructure: Design and Process Quiz Answers

Week 01: Reliable Google Cloud Infrastructure: Design and Process Quiz Answers

Quiz 01 : Defining Services

Q1. Which best describes an SLO?

  • It is a target measure you want your service to achieve.
  • It is a measurable, time bound key performance indicator for your application.
  • It is a contract with end users that guarantees service quality
  • It is a short, measurable description of an application feature.

Q2. Using SMART criteria, which below would be the least effective KPI?

  • Clicks per session
  • User sign ups per month
  • User experience design
  • Page views per hour

Q3. Which best describes a user story?

  • It is a narrative that describes the sequence of steps a typical user would perform to accomplish some task or goal when using the system.
  • It is a short description of a typical person using the system.
  • It is a short description of a feature written from the user’s point of view.
  • It is a requirement of the system you are developing.

Quiz 02 : Microservice Design and Architecture

Q1. You’re building a RESTful microservice. Which would be a valid data format for returning data to the client?

  • JSON
  • XML
  • HTML
  • All of the above.

Q2. You’re writing a service, and you need to handle a client sending you invalid data in the request. What should you return from the service?

  • A 400 error code
  • A 500 error code
  • A 200 error code
  • An XML exception

Q3. Which below would violate 12-factor app best practices?

  • Treat logs as event streams and aggregate logs into a single source.
  • Store configuration information in your source repository for easy versioning.
  • Explicitly declare and isolate dependencies.
  • Keep development, testing, and production as similar as possible.

Q4. You’ve re-architected a monolithic web application so state is not stored in memory on the web servers, but in a database instead. This has caused slow performance when retrieving user sessions though. What might be the best way to fix this?

  • Increase the number of CPUs in the database server.
  • Move session state back onto the web servers and use sticky sessions in the load balancer.
  • Use a caching service like Redis or Memorystore.
  • Make sure all web servers are in the same zone as the database.

Quiz 03 : DevOps Automation

Q1. What Google Cloud feature would be easiest to use to automate a build in response to code being checked into your source code repository?

  • Cloud Functions
  • Build triggers
  • App Engine
  • Cloud Scheduler

Q2. Which Google Cloud tools can be used to build a continuous integration pipeline?

  • Cloud Source Repositories
  • Cloud Build
  • Container Registry
  • All of these

Quiz 04 : Choosing Storage Solutions

Q1. Currently, you are using Firestore to store information about products, reviews, and user sessions. You’d like to speed up data access in a simple, cost-effective way. What would you recommend?

  • Move the data to BigQuery.
  • Cache the data using Memorystore.
  • Move the data to Spanner.
  • Move the data to Cloud Bigtable.

Q2. You want to analyze sales trends. To help achieve this, you want to combine data from your on-premises Oracle database with Google Analytics data and your web server logs. Where might you store the data so it is both easy to query and cost-effective?

  • BigQuery
  • Spanner
  • Firestore
  • Cloud SQL

Q3. You are a global financial services company with users all over the world. You need a database service that can provide low latency worldwide with strong consistency. Which service might you choose?

  • Spanner
  • Cloud SQL
  • BigQuery
  • Firestore

Q4. You need to store user preferences, product information, and reviews for a website you are building. There won’t be a huge amount of data. What would be a simple, cost-effective, managed solution?

  • BigQuery
  • Cloud SQL
  • Firestore
  • Spanner

Quiz 05: Google Cloud and Hybrid Network Architecture

Q1. You want a secure, private connection between your network and a Google Cloud network. There is not a lot of volume, but the connection needs to be extremely reliable. Which configuration below would you choose?

  • VPN
  • VPN with high availability and Cloud Router.
  • Cloud Interconnect
  • VPC peering

Q2. You have a contract with a service provider to manage your Google VPC networks. You want to connect a network they own to your VPC. Both networks are in Google Cloud. Which Connection option should you choose?

  • VPN with high availability and Cloud Router.
  • Cloud Interconnect
  • VPN
  • VPC peering

Q3. You are a large bank deploying an online banking service to Google Cloud. The service needs high volume access to mainframe data on-premises. Which connectivity option would likely be best?

  • Peering
  • Cloud Interconnect
  • VPN

Q4. You are deploying a large-scale web application with users all over the world and a lot of static content. Which load balancer configuration would likely be the best?

  • TCP load balancer with SSL configured.
  • UDP load balancer with SSL configured and the CDN enabled.
  • HTTP load balancer with SSL configured.
  • HTTP load balancer with SSL configured and the CDN enabled.

Week 02: Reliable Google Cloud Infrastructure: Design and Process Quiz Answers

Quiz 01 : Deploying Applications to Google Cloud

Q1. You’ve been asked to write a program that uses Vision API to check for inappropriate content in photos that are uploaded to a Cloud Storage bucket. Any photos that are inappropriate should be deleted. What might be the simplest, cheapest way to deploy in this program?

  • Compute Engine
  • GKE
  • Cloud Functions
  • App Engine

Q2. You have containerized multiple applications using Docker and have deployed them using Compute Engine VMs. You want to save on costs and simplify container management. What might you do?

  • Migrate the containers to GKE.
  • Write Terraform scripts for all deployment.
  • Rewrite the applications to run in Cloud Functions.
  • Rewrite the applications to run in App Engine.

Q3. You need to deploy an existing application that was written in .NET version 4. The application requires Windows servers, and you don’t want to change it. Which should you use?

  • GKE
  • Compute Engine
  • Cloud Functions
  • App Engine

Quiz 02 : Designing Reliable Systems

Q1. You’re creating a service and you want to protect it from being overloaded by too many client retries in the event of a partial outage. Which design pattern would you implement?

  • Truncated exponential backoff
  • Lazy caching
  • Circuit breaker
  • Overload feedback repudiation

Q2. You need a relational database for a system that requires extremely high availability (99.999%). The system must run uninterrupted even in the event of a regional outage. Which database would you choose?

  • Cloud SQL
  • Spanner
  • BigQuery
  • Firestore

Quiz 03 : Security

Q1. What do you have to do to enable encryption when using Cloud Storage?

  • Nothing as encryption is enabled by default.
  • Enable encryption and upload a key.
  • Simply enable encryption when configuring a bucket.
  • Create an encryption key using Cloud Key Management Service, and select it when creating a Cloud Storage bucket.

Q2. Which Google Cloud features could help reduce the risk of DDoS attacks?

  • HTTP global load balancer
  • CloudCDN
  • Google Cloud Armor
  • All of these

Q3. You don’t want programmers to have access to production resources. What’s the easiest way to do this in Google Cloud?

  • Use different service accounts for production and development resources with your project.
  • Create development and production projects, and don’t give developers access to production.
  • Set up private access and Identity-Aware Proxy.
  • Create a firewall rule that blocks developer access to production servers and databases.

Quiz 04 : Maintenance and Monitoring

Q1. Your service has an availability SLO of 99%. What could you use to monitor whether you are meeting it?

  • Health check
  • Uptime check
  • Readiness probe
  • Liveness probe

Q2. You’re deploying test environments using Compute Engine VMs. Some downtime is acceptable, and it is very important to deploy them as inexpensively as possible. What single thing below could save you the most money?

  • Committed use discount
  • Sole tenant nodes
  • Preemptible machines
  • Sustained use discount

Q3. You made a minor update to a service and would like to test it in production by sending a small portion of requests to the new version. Which would you choose?

  • Canary deployment
  • Rolling update
  • A/B testing
  • Blue/green deployment

Q4. You’ve made a minor fix to one of your services. You want to deploy the new version with no downtime. Which would you choose?

  • Blue/green deployment
  • Rolling update
  • Canary deployment
  • A/B test

Leave a Reply

Your email address will not be published. Required fields are marked *

error: Content is protected !!