πŸ”

PCA β€” questions

Page 2 of 17 Β· 337 total questions.

Topic 1 Β· 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?

  • ACapture 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
  • BCreate 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 (correct answer)
  • CExpose 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
  • DCapture 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
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: 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 By spanning multiple Availability Zones / adding redundancy, this option provides the high availability and resilience required.

Topic 1 Β· Question 22 Β· Select all that apply

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.)

  • ARemove Python after running pip
  • BRemove dependencies from requirements.txt
  • CUse a slimmed-down base image like Alpine Linux (correct answer)
  • DUse larger machine types for your Google Container Engine node pools
  • ECopy the source after he package dependencies (Python and pip) are installed (correct answer)
Reveal answer & explanation
Correct answer: C, E

The correct answer is C, E. Option C: Use a slimmed-down base image like Alpine Linux Option E: Copy the source after he package dependencies (Python and pip) are installed.

Topic 1 Β· 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?

  • ADeploy fewer changes to production
  • BDeploy smaller changes to production
  • CIncrease the load on your test and staging environments
  • DDeploy changes to a small subset of users before rolling out to production (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Deploy changes to a small subset of users before rolling out to production.

Topic 1 Β· 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?

  • ASet timeouts on your application so that you can fail requests faster
  • BSend custom metrics for each of your requests to Stackdriver Monitoring
  • CUse Stackdriver Monitoring to look for insights that show when your API latencies are high
  • DInstrument your application with Stackdriver Trace in order to break down the request latencies at each microservice (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Instrument your application with Stackdriver Trace in order to break down the request latencies at each microservice

Explanation

Cloud Operations (formerly Stackdriver) provides monitoring, logging, and tracing for reliability.

Topic 1 Β· 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?

  • AUse a different database
  • BChoose larger instances for your database
  • CCreate snapshots of your database more regularly
  • DImplement routinely scheduled failovers of your databases (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Implement routinely scheduled failovers of your databases.

Topic 1 Β· Question 26

Your organization requires that metrics from all applications be retained for 5 years for future analysis in possible legal proceedings. Which approach should you use?

  • AGrant the security team access to the logs in each Project
  • BConfigure Stackdriver Monitoring for all Projects, and export to BigQuery (correct answer)
  • CConfigure Stackdriver Monitoring for all Projects with the default retention policies
  • DConfigure Stackdriver Monitoring for all Projects, and export to Google Cloud Storage
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Configure Stackdriver Monitoring for all Projects, and export to BigQuery

Explanation

BigQuery is a serverless, petabyte-scale data warehouse for fast SQL analytics with no infrastructure to manage. Cloud Operations (formerly Stackdriver) provides monitoring, logging, and tracing for reliability.

Topic 1 Β· Question 27

Your company has decided to build a backup replica of their on-premises user authentication PostgreSQL database on Google Cloud Platform. The database is 4 TB, and large updates are frequent. Replication requires private address space communication. Which networking approach should you use?

  • AGoogle Cloud Dedicated Interconnect (correct answer)
  • BGoogle Cloud VPN connected to the data center network
  • CA NAT and TLS translation gateway installed on-premises
  • DA Google Compute Engine instance with a VPN server installed connected to the data center network
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Google Cloud Dedicated Interconnect

Explanation

Dedicated Interconnect provides a private physical connection into Google's network.

Topic 1 Β· Question 28

Auditors visit your teams every 12 months and ask to review all the Google Cloud Identity and Access Management (Cloud IAM) policy changes in the previous 12 months. You want to streamline and expedite the analysis and audit process. What should you do?

  • ACreate custom Google Stackdriver alerts and send them to the auditor
  • BEnable Logging export to Google BigQuery and use ACLs and views to scope the data shared with the auditor (correct answer)
  • CUse cloud functions to transfer log entries to Google Cloud SQL and use ACLs and views to limit an auditor's view
  • DEnable Google Cloud Storage (GCS) log export to audit logs into a GCS bucket and delegate access to the bucket
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Enable Logging export to Google BigQuery and use ACLs and views to scope the data shared with the auditor

Explanation

BigQuery is a serverless, petabyte-scale data warehouse for fast SQL analytics with no infrastructure to manage.

Topic 1 Β· Question 29

You are designing a large distributed application with 30 microservices. Each of your distributed microservices needs to connect to a database back-end. You want to store the credentials securely. Where should you store the credentials?

  • AIn the source code
  • BIn an environment variable
  • CIn a secret management system (correct answer)
  • DIn a config file that has restricted access through ACLs
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: In a secret management system.

Topic 1 Β· Question 30 Β· Select all that apply

A lead engineer wrote a custom tool that deploys virtual machines in the legacy data center. He wants to migrate the custom tool to the new cloud environment. You want to advocate for the adoption of Google Cloud Deployment Manager. What are two business risks of migrating to Cloud Deployment Manager? (Choose two.)

  • ACloud Deployment Manager uses Python
  • BCloud Deployment Manager APIs could be deprecated in the future
  • CCloud Deployment Manager is unfamiliar to the company's engineers (correct answer)
  • DCloud Deployment Manager requires a Google APIs service account to run
  • ECloud Deployment Manager can be used to permanently delete cloud resources
  • FCloud Deployment Manager only supports automation of Google Cloud resources (correct answer)
Reveal answer & explanation
Correct answer: C, F

The correct answer is C, F. Option C: Cloud Deployment Manager is unfamiliar to the company's engineers Option F: Cloud Deployment Manager only supports automation of Google Cloud resources

Explanation

Cloud Deploy manages continuous delivery to GKE and other runtimes with promotion and rollback. Deployment Manager provisions Google Cloud infrastructure as code.

Topic 1 Β· Question 31

A development manager is building a new application. He asks you to review his requirements and identify what cloud technologies he can use to meet them. The application must: 1. Be based on open-source technology for cloud portability 2. Dynamically scale compute capacity based on demand 3. Support continuous software delivery 4. Run multiple segregated copies of the same application stack 5. Deploy application bundles using dynamic templates 6. Route network traffic to specific services based on URL Which combination of technologies will meet all of his requirements?

  • AGoogle Kubernetes Engine, Jenkins, and Helm (correct answer)
  • BGoogle Kubernetes Engine and Cloud Load Balancing
  • CGoogle Kubernetes Engine and Cloud Deployment Manager
  • DGoogle Kubernetes Engine, Jenkins, and Cloud Load Balancing
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Google Kubernetes Engine, Jenkins, and Helm

Explanation

Google Kubernetes Engine runs managed Kubernetes for containerized workloads.

Topic 1 Β· Question 32

You have created several pre-emptible Linux virtual machine instances using Google Compute Engine. You want to properly shut down your application before the virtual machines are preempted. What should you do?

  • ACreate a shutdown script named k99.shutdown in the /etc/rc.6.d/ directory
  • BCreate a shutdown script registered as a xinetd service in Linux and configure a Stackdriver endpoint check to call the service
  • CCreate 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 (correct answer)
  • DCreate a shutdown script, registered as a xinetd service in Linux, and use the gcloud compute instances add-metadata command to specify the service URL as the value for a new metadata entry with the key shutdown-script-url
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: 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.

Topic 1 Β· Question 33

Your organization has a 3-tier web application deployed in the same network on Google Cloud Platform. Each tier (web, API, and database) scales independently of the others. Network traffic should flow through the web to the API tier and then on to the database tier. Traffic should not flow between the web and the database tier. How should you configure the network?

  • AAdd each tier to a different subnetwork
  • BSet up software based firewalls on individual VMs
  • CAdd tags to each tier and set up routes to allow the desired traffic flow
  • DAdd tags to each tier and set up firewall rules to allow the desired traffic flow (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Add tags to each tier and set up firewall rules to allow the desired traffic flow.

Topic 1 Β· Question 34 Β· Select all that apply

Your development team has installed a new Linux kernel module on the batch servers in Google Compute Engine (GCE) virtual machines (VMs) to speed up the nightly batch process. Two days after the installation, 50% of the batch servers failed the nightly batch run. You want to collect details on the failure to pass back to the development team. Which three actions should you take? (Choose three.)

  • AUse Stackdriver Logging to search for the module log entries (correct answer)
  • BRead the debug GCE Activity log using the API or Cloud Console (correct answer)
  • CUse gcloud or Cloud Console to connect to the serial console and observe the logs
  • DIdentify whether a live migration event of the failed server occurred, using in the activity log
  • EAdjust the Google Stackdriver timeline to match the failure time, and observe the batch server metrics (correct answer)
  • FExport a debug VM into an image, and run the image on a local server where kernel log messages will be displayed on the native screen
Reveal answer & explanation
Correct answer: A, B, E

The correct answer is A, B, E. Option A: Use Stackdriver Logging to search for the module log entries Option B: Read the debug GCE Activity log using the API or Cloud Console Option E: Adjust the Google Stackdriver timeline to match the failure time, and observe the batch server metrics

Explanation

Google Cloud Batch schedules and runs batch jobs at scale without managing infrastructure. Cloud Operations (formerly Stackdriver) provides monitoring, logging, and tracing for reliability.

Topic 1 Β· Question 35 Β· Select all that apply

Your company wants to try out the cloud with low risk. They want to archive approximately 100 TB of their log data to the cloud and test the analytics features available to them there, while also retaining that data as a long-term disaster recovery backup. Which two steps should you take? (Choose two.)

  • ALoad logs into Google BigQuery (correct answer)
  • BLoad logs into Google Cloud SQL
  • CImport logs into Google Stackdriver
  • DInsert logs into Google Cloud Bigtable
  • EUpload log files into Google Cloud Storage (correct answer)
Reveal answer & explanation
Correct answer: A, E

The correct answer is A, E. Option A: Load logs into Google BigQuery Option E: Upload log files into Google Cloud Storage

Explanation

Cloud Storage provides durable, scalable object storage that is fully managed. BigQuery is a serverless, petabyte-scale data warehouse for fast SQL analytics with no infrastructure to manage. By spanning multiple Availability Zones / adding redundancy, this option provides the high availability and resilience required.

Topic 1 Β· Question 36

You created a pipeline that can deploy your source code changes to your infrastructure in instance groups for self-healing. One of the changes negatively affects your key performance indicator. You are not sure how to fix it, and investigation could take up to a week. What should you do?

  • ALog in to a server, and iterate on the fox locally
  • BRevert the source code change, and rerun the deployment pipeline
  • CLog into the servers with the bad code change, and swap in the previous code
  • DChange the instance group template to the previous one, and delete all instances (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Change the instance group template to the previous one, and delete all instances.

Topic 1 Β· Question 37

Your organization wants to control IAM policies for different departments independently, but centrally. Which approach should you take?

  • AMultiple Organizations with multiple Folders
  • BMultiple Organizations, one for each department
  • CA single Organization with Folders for each department (correct answer)
  • DA single Organization with multiple projects, each with a central owner
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: A single Organization with Folders for each department.

Topic 1 Β· Question 38

You deploy your custom Java application to Google App Engine. It fails to deploy and gives you the following stack trace. What should you do?

  • AUpload missing JAR files and redeploy your application.
  • BDigitally sign all of your JAR files and redeploy your application (correct answer)
  • CRecompile the CLoakedServlet class using and MD5 hash instead of SHA1
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Digitally sign all of your JAR files and redeploy your application.

Topic 1 Β· Question 39

You are designing a mobile chat application. You want to ensure people cannot spoof chat messages, by providing a message were sent by a specific user. What should you do?

  • ATag messages client side with the originating user identifier and the destination user.
  • BEncrypt the message client side using block-based encryption with a shared key.
  • CUse public key infrastructure (PKI) to encrypt the message client side using the originating user's private key. (correct answer)
  • DUse a trusted certificate authority to enable SSL connectivity between the client application and the server.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Use public key infrastructure (PKI) to encrypt the message client side using the originating user's private key.

Topic 1 Β· Question 40

As part of implementing their disaster recovery plan, your company is trying to replicate their production MySQL database from their private data center to their GCP project using a Google Cloud VPN connection. They are experiencing latency issues and a small amount of packet loss that is disrupting the replication. What should they do?

  • AConfigure their replication to use UDP.
  • BConfigure a Google Cloud Dedicated Interconnect. (correct answer)
  • CRestore their database daily using Google Cloud SQL.
  • DAdd additional VPN connections and load balance them.
  • ESend the replicated transaction to Google Cloud Pub/Sub.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Configure a Google Cloud Dedicated Interconnect.

Explanation

Dedicated Interconnect provides a private physical connection into Google's network. By spanning multiple Availability Zones / adding redundancy, this option provides the high availability and resilience required.

Showing questions 21–40 of 337 Β· Page 2 of 17