Professional Cloud Architect Practice Test

Professional Cloud Architect Practice Test practice questions, page 5 of 15, with answer review and explanations.

Question 21

Your company's user-feedback portal comprises a standard LAMP stack replicated across two zones. It is deployed in the us-central1 region and uses autoscaled managed instance groups on all layers, except the database. Currently, only a small group of select customers have access to the portal. The portal meets a 99,99% availability SLA under these conditions. However next quarter, your company will be making the portal available to all users, including unauthenticated users. You need to develop a resiliency testing strategy to ensure the system maintains the SLA once they introduce additional user load. What should you do?

  1. Capture existing users input, and replay captured user load until autoscale is triggered on all layers. At the same time, terminate all resources in one of the zones
  2. Create synthetic random user input, replay synthetic load until autoscale logic is triggered on at least one layer, and introduce ג€chaosג€ to the system by terminating random resources on both zones
  3. Expose the new system to a larger group of users, and increase group size each day until autoscale logic is triggered on all layers. At the same time, terminate random resources on both zones
  4. Capture existing users input, and replay captured user load until resource utilization crosses 80%. Also, derive estimated number of users based on existing user's usage of the app, and deploy enough resources to handle 200% of expected load

Question 22

One of the developers on your team deployed their application in Google Container Engine with the Dockerfile below. They report that their application deployments are taking too long. You want to optimize this Dockerfile for faster deployment times without adversely affecting the app's functionality. Which two actions should you take? (Choose two.)

  1. Remove Python after running pip
  2. Remove dependencies from requirements.txt
  3. Use a slimmed-down base image like Alpine Linux
  4. Use larger machine types for your Google Container Engine node pools
  5. Copy the source after he package dependencies (Python and pip) are installed

Question 23

Your solution is producing performance bugs in production that you did not see in staging and test environments. You want to adjust your test and deployment procedures to avoid this problem in the future. What should you do?

  1. Deploy fewer changes to production
  2. Deploy smaller changes to production
  3. Increase the load on your test and staging environments
  4. Deploy changes to a small subset of users before rolling out to production

Question 24

A small number of API requests to your microservices-based application take a very long time. You know that each request to the API can traverse many services. You want to know which service takes the longest in those cases. What should you do?

  1. Set timeouts on your application so that you can fail requests faster
  2. Send custom metrics for each of your requests to Stackdriver Monitoring
  3. Use Stackdriver Monitoring to look for insights that show when your API latencies are high
  4. Instrument your application with Stackdriver Trace in order to break down the request latencies at each microservice

Question 25

During a high traffic portion of the day, one of your relational databases crashes, but the replica is never promoted to a master. You want to avoid this in the future. What should you do?

  1. Use a different database
  2. Choose larger instances for your database
  3. Create snapshots of your database more regularly
  4. Implement routinely scheduled failovers of your databases