πŸ”

PCD β€” questions

Page 9 of 18 Β· 359 total questions.

Topic 1 Β· Question 161

You are building a mobile application that will store hierarchical data structures in a database. The application will enable users working offline to sync changes when they are back online. A backend service will enrich the data in the database using a service account. The application is expected to be very popular and needs to scale seamlessly and securely. Which database and IAM role should you use?

  • AUse Cloud SQL, and assign the roles/cloudsql.editor role to the service account.
  • BUse Bigtable, and assign the roles/bigtable.viewer role to the service account.
  • CUse Firestore in Native mode and assign the roles/datastore.user role to the service account. (correct answer)
  • DUse Firestore in Datastore mode and assign the roles/datastore.viewer role to the service account.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Use Firestore in Native mode and assign the roles/datastore.user role to the service account.

Explanation

Firestore is a serverless, autoscaling NoSQL document database ideal for app and user data. Datastore (Firestore in Datastore mode) is a serverless NoSQL database for user profiles and app state. A service account provides an identity for workloads to access Google Cloud APIs securely.

Topic 1 Β· Question 162

Your application is deployed on hundreds of Compute Engine instances in a managed instance group (MIG) in multiple zones. You need to deploy a new instance template to fix a critical vulnerability immediately but must avoid impact to your service. What setting should be made to the MIG after updating the instance template?

  • ASet the Max Surge to 100%.
  • BSet the Update mode to Opportunistic.
  • CSet the Maximum Unavailable to 100%.
  • DSet the Minimum Wait time to 0 seconds. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Set the Minimum Wait time to 0 seconds.

Topic 1 Β· Question 163

You made a typo in a low-level Linux configuration file that prevents your Compute Engine instance from booting to a normal run level. You just created the Compute Engine instance today and have done no other maintenance on it, other than tweaking files. How should you correct this error?

  • ADownload the file using scp, change the file, and then upload the modified version
  • BConfigure and log in to the Compute Engine instance through SSH, and change the file
  • CConfigure and log in to the Compute Engine instance through the serial port, and change the file (correct answer)
  • DConfigure and log in to the Compute Engine instance using a remote desktop client, and change the file
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Configure and log in to the Compute Engine instance through the serial port, and change the file

Explanation

Compute Engine provides configurable virtual machines when you need full control of the OS.

Topic 1 Β· Question 164

You are developing an application that needs to store files belonging to users in Cloud Storage. You want each user to have their own subdirectory in Cloud Storage. When a new user is created, the corresponding empty subdirectory should also be created. What should you do?

  • ACreate an object with the name of the subdirectory ending with a trailing slash ('/') that is zero bytes in length. (correct answer)
  • BCreate an object with the name of the subdirectory, and then immediately delete the object within that subdirectory.
  • CCreate an object with the name of the subdirectory that is zero bytes in length and has WRITER access control list permission.
  • DCreate an object with the name of the subdirectory that is zero bytes in length. Set the Content-Type metadata to CLOUDSTORAGE_FOLDER.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Create an object with the name of the subdirectory ending with a trailing slash ('/') that is zero bytes in length.

Topic 1 Β· Question 165

Your company’s corporate policy states that there must be a copyright comment at the very beginning of all source files. You want to write a custom step in Cloud Build that is triggered by each source commit. You need the trigger to validate that the source contains a copyright and add one for subsequent steps if not there. What should you do?

  • ABuild a new Docker container that examines the files in /workspace and then checks and adds a copyright for each source file. Changed files are explicitly committed back to the source repository. (correct answer)
  • BBuild a new Docker container that examines the files in /workspace and then checks and adds a copyright for each source file. Changed files do not need to be committed back to the source repository.
  • CBuild a new Docker container that examines the files in a Cloud Storage bucket and then checks and adds a copyright for each source file. Changed files are written back to the Cloud Storage bucket.
  • DBuild a new Docker container that examines the files in a Cloud Storage bucket and then checks and adds a copyright for each source file. Changed files are explicitly committed back to the source repository.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Build a new Docker container that examines the files in /workspace and then checks and adds a copyright for each source file. Changed files are explicitly committed back to the source repository.

Topic 1 Β· Question 166

One of your deployed applications in Google Kubernetes Engine (GKE) is having intermittent performance issues. Your team uses a third-party logging solution. You want to install this solution on each node in your GKE cluster so you can view the logs. What should you do?

  • ADeploy the third-party solution as a DaemonSet (correct answer)
  • BModify your container image to include the monitoring software
  • CUse SSH to connect to the GKE node, and install the software manually
  • DDeploy the third-party solution using Terraform and deploy the logging Pod as a Kubernetes Deployment
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Deploy the third-party solution as a DaemonSet.

Topic 1 Β· Question 167

Case study - This is a case study. Case studies are not timed separately. You can use as much exam time as you would like to complete each case. However, there may be additional case studies and sections on this exam. You must manage your time to ensure that you are able to complete all questions included on this exam in the time provided. To answer the questions included in a case study, you will need to reference information that is provided in the case study. Case studies might contain exhibits and other resources that provide more information about the scenario that is described in the case study. Each question is independent of the other questions in this case study. At the end of this case study, a review screen will appear. This screen allows you to review your answers and to make changes before you move to the next section of the exam. After you begin a new section, you cannot return to this section. To start the case study - To display the first question in this case study, click the Next button. Use the buttons in the left pane to explore the content of the case study before you answer the questions. Clicking these buttons displays information such as business requirements, existing environment, and problem statements. If the case study has an All Information tab, note that the information displayed is identical to the information displayed on the subsequent tabs. When you are ready to answer a question, click the Question button to return to the question. Company Overview - HipLocal is a community application designed to facilitate communication between people in close proximity. It is used for event planning and organizing sporting events, and for businesses to connect with their local communities. HipLocal launched recently in a few neighborhoods in Dallas and is rapidly growing into a global phenomenon. Its unique style of hyper-local community communication and business outreach is in demand around the world. Executive Statement - We are the number one local community app; it's time to take our local community services global. Our venture capital investors want to see rapid growth and the same great experience for new local and virtual communities that come online, whether their members are 10 or 10000 miles away from each other. Solution Concept - HipLocal wants to expand their existing service, with updated functionality, in new regions to better serve their global customers. They want to hire and train a new team to support these regions in their time zones. They will need to ensure that the application scales smoothly and provides clear uptime data, and that they analyze and respond to any issues that occur. Existing Technical Environment - HipLocal's environment is a mix of on-premises hardware and infrastructure running in Google Cloud Platform. The HipLocal team understands their application well, but has limited experience in global scale applications. Their existing technical environment is as follows: β€’ Existing APIs run on Compute Engine virtual machine instances hosted in GCP. β€’ State is stored in a single instance MySQL database in GCP. β€’ Release cycles include development freezes to allow for QA testing. β€’ The application has no logging. β€’ Applications are manually deployed by infrastructure engineers during periods of slow traffic on weekday evenings. β€’ There are basic indicators of uptime; alerts are frequently fired when the APIs are unresponsive. Business Requirements - HipLocal's investors want to expand their footprint and support the increase in demand they are seeing. Their requirements are: β€’ Expand availability of the application to new regions. β€’ Support 10x as many concurrent users. β€’ Ensure a consistent experience for users when they travel to different regions. β€’ Obtain user activity metrics to better understand how to monetize their product. β€’ Ensure compliance with regulations in the new regions (for example, GDPR). β€’ Reduce infrastructure management time and cost. β€’ Adopt the Google-recommended practices for cloud computing. β—‹ Develop standardized workflows and processes around application lifecycle management. β—‹ Define service level indicators (SLIs) and service level objectives (SLOs). Technical Requirements - β€’ Provide secure communications between the on-premises data center and cloud-hosted applications and infrastructure. β€’ The application must provide usage metrics and monitoring. β€’ APIs require authentication and authorization. β€’ Implement faster and more accurate validation of new features. β€’ Logging and performance metrics must provide actionable information to be able to provide debugging information and alerts. β€’ Must scale to meet user demand. For this question, refer to the HipLocal case study. How should HipLocal redesign their architecture to ensure that the application scales to support a large increase in users?

  • AUse Google Kubernetes Engine (GKE) to run the application as a microservice. Run the MySQL database on a dedicated GKE node.
  • BUse multiple Compute Engine instances to run MySQL to store state information. Use a Google Cloud-managed load balancer to distribute the load between instances. Use managed instance groups for scaling.
  • CUse Memorystore to store session information and CloudSQL to store state information. Use a Google Cloud-managed load balancer to distribute the load between instances. Use managed instance groups for scaling. (correct answer)
  • DUse a Cloud Storage bucket to serve the application as a static website, and use another Cloud Storage bucket to store user state information.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Use Memorystore to store session information and CloudSQL to store state information. Use a Google Cloud-managed load balancer to distribute the load between instances. Use managed instance groups for scaling.

Explanation

A managed instance group provides autoscaling, autohealing, and rolling updates for VMs. Memorystore provides managed in-memory Redis/Memcached caching to reduce latency and offload databases. A load balancer distributes traffic across healthy backends in multiple zones for availability and scale.

Topic 1 Β· Question 168

Case study - This is a case study. Case studies are not timed separately. You can use as much exam time as you would like to complete each case. However, there may be additional case studies and sections on this exam. You must manage your time to ensure that you are able to complete all questions included on this exam in the time provided. To answer the questions included in a case study, you will need to reference information that is provided in the case study. Case studies might contain exhibits and other resources that provide more information about the scenario that is described in the case study. Each question is independent of the other questions in this case study. At the end of this case study, a review screen will appear. This screen allows you to review your answers and to make changes before you move to the next section of the exam. After you begin a new section, you cannot return to this section. To start the case study - To display the first question in this case study, click the Next button. Use the buttons in the left pane to explore the content of the case study before you answer the questions. Clicking these buttons displays information such as business requirements, existing environment, and problem statements. If the case study has an All Information tab, note that the information displayed is identical to the information displayed on the subsequent tabs. When you are ready to answer a question, click the Question button to return to the question. Company Overview - HipLocal is a community application designed to facilitate communication between people in close proximity. It is used for event planning and organizing sporting events, and for businesses to connect with their local communities. HipLocal launched recently in a few neighborhoods in Dallas and is rapidly growing into a global phenomenon. Its unique style of hyper-local community communication and business outreach is in demand around the world. Executive Statement - We are the number one local community app; it's time to take our local community services global. Our venture capital investors want to see rapid growth and the same great experience for new local and virtual communities that come online, whether their members are 10 or 10000 miles away from each other. Solution Concept - HipLocal wants to expand their existing service, with updated functionality, in new regions to better serve their global customers. They want to hire and train a new team to support these regions in their time zones. They will need to ensure that the application scales smoothly and provides clear uptime data, and that they analyze and respond to any issues that occur. Existing Technical Environment - HipLocal's environment is a mix of on-premises hardware and infrastructure running in Google Cloud Platform. The HipLocal team understands their application well, but has limited experience in global scale applications. Their existing technical environment is as follows: β€’ Existing APIs run on Compute Engine virtual machine instances hosted in GCP. β€’ State is stored in a single instance MySQL database in GCP. β€’ Release cycles include development freezes to allow for QA testing. β€’ The application has no logging. β€’ Applications are manually deployed by infrastructure engineers during periods of slow traffic on weekday evenings. β€’ There are basic indicators of uptime; alerts are frequently fired when the APIs are unresponsive. Business Requirements - HipLocal's investors want to expand their footprint and support the increase in demand they are seeing. Their requirements are: β€’ Expand availability of the application to new regions. β€’ Support 10x as many concurrent users. β€’ Ensure a consistent experience for users when they travel to different regions. β€’ Obtain user activity metrics to better understand how to monetize their product. β€’ Ensure compliance with regulations in the new regions (for example, GDPR). β€’ Reduce infrastructure management time and cost. β€’ Adopt the Google-recommended practices for cloud computing. β—‹ Develop standardized workflows and processes around application lifecycle management. β—‹ Define service level indicators (SLIs) and service level objectives (SLOs). Technical Requirements - β€’ Provide secure communications between the on-premises data center and cloud-hosted applications and infrastructure. β€’ The application must provide usage metrics and monitoring. β€’ APIs require authentication and authorization. β€’ Implement faster and more accurate validation of new features. β€’ Logging and performance metrics must provide actionable information to be able to provide debugging information and alerts. β€’ Must scale to meet user demand. For this question, refer to the HipLocal case study. How should HipLocal increase their API development speed while continuing to provide the QA team with a stable testing environment that meets feature requirements?

  • AInclude unit tests in their code, and prevent deployments to QA until all tests have a passing status. (correct answer)
  • BInclude performance tests in their code, and prevent deployments to QA until all tests have a passing status.
  • CCreate health checks for the QA environment, and redeploy the APIs at a later time if the environment is unhealthy.
  • DRedeploy the APIs to App Engine using Traffic Splitting. Do not move QA traffic to the new versions if errors are found.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Include unit tests in their code, and prevent deployments to QA until all tests have a passing status.

Topic 1 Β· Question 169

Case study - This is a case study. Case studies are not timed separately. You can use as much exam time as you would like to complete each case. However, there may be additional case studies and sections on this exam. You must manage your time to ensure that you are able to complete all questions included on this exam in the time provided. To answer the questions included in a case study, you will need to reference information that is provided in the case study. Case studies might contain exhibits and other resources that provide more information about the scenario that is described in the case study. Each question is independent of the other questions in this case study. At the end of this case study, a review screen will appear. This screen allows you to review your answers and to make changes before you move to the next section of the exam. After you begin a new section, you cannot return to this section. To start the case study - To display the first question in this case study, click the Next button. Use the buttons in the left pane to explore the content of the case study before you answer the questions. Clicking these buttons displays information such as business requirements, existing environment, and problem statements. If the case study has an All Information tab, note that the information displayed is identical to the information displayed on the subsequent tabs. When you are ready to answer a question, click the Question button to return to the question. Company Overview - HipLocal is a community application designed to facilitate communication between people in close proximity. It is used for event planning and organizing sporting events, and for businesses to connect with their local communities. HipLocal launched recently in a few neighborhoods in Dallas and is rapidly growing into a global phenomenon. Its unique style of hyper-local community communication and business outreach is in demand around the world. Executive Statement - We are the number one local community app; it's time to take our local community services global. Our venture capital investors want to see rapid growth and the same great experience for new local and virtual communities that come online, whether their members are 10 or 10000 miles away from each other. Solution Concept - HipLocal wants to expand their existing service, with updated functionality, in new regions to better serve their global customers. They want to hire and train a new team to support these regions in their time zones. They will need to ensure that the application scales smoothly and provides clear uptime data, and that they analyze and respond to any issues that occur. Existing Technical Environment - HipLocal's environment is a mix of on-premises hardware and infrastructure running in Google Cloud Platform. The HipLocal team understands their application well, but has limited experience in global scale applications. Their existing technical environment is as follows: β€’ Existing APIs run on Compute Engine virtual machine instances hosted in GCP. β€’ State is stored in a single instance MySQL database in GCP. β€’ Release cycles include development freezes to allow for QA testing. β€’ The application has no logging. β€’ Applications are manually deployed by infrastructure engineers during periods of slow traffic on weekday evenings. β€’ There are basic indicators of uptime; alerts are frequently fired when the APIs are unresponsive. Business Requirements - HipLocal's investors want to expand their footprint and support the increase in demand they are seeing. Their requirements are: β€’ Expand availability of the application to new regions. β€’ Support 10x as many concurrent users. β€’ Ensure a consistent experience for users when they travel to different regions. β€’ Obtain user activity metrics to better understand how to monetize their product. β€’ Ensure compliance with regulations in the new regions (for example, GDPR). β€’ Reduce infrastructure management time and cost. β€’ Adopt the Google-recommended practices for cloud computing. β—‹ Develop standardized workflows and processes around application lifecycle management. β—‹ Define service level indicators (SLIs) and service level objectives (SLOs). Technical Requirements - β€’ Provide secure communications between the on-premises data center and cloud-hosted applications and infrastructure. β€’ The application must provide usage metrics and monitoring. β€’ APIs require authentication and authorization. β€’ Implement faster and more accurate validation of new features. β€’ Logging and performance metrics must provide actionable information to be able to provide debugging information and alerts. β€’ Must scale to meet user demand. For this question, refer to the HipLocal case study. HipLocal's application uses Cloud Client Libraries to interact with Google Cloud. HipLocal needs to configure authentication and authorization in the Cloud Client Libraries to implement least privileged access for the application. What should they do?

  • ACreate an API key. Use the API key to interact with Google Cloud.
  • BUse the default compute service account to interact with Google Cloud.
  • CCreate a service account for the application. Export and deploy the private key for the application. Use the service account to interact with Google Cloud. (correct answer)
  • DCreate a service account for the application and for each Google Cloud API used by the application. Export and deploy the private keys used by the application. Use the service account with one Google Cloud API to interact with Google Cloud.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Create a service account for the application. Export and deploy the private key for the application. Use the service account to interact with Google Cloud.

Explanation

A service account provides an identity for workloads to access Google Cloud APIs securely.

Topic 1 Β· Question 170

You are in the final stage of migrating an on-premises data center to Google Cloud. You are quickly approaching your deadline, and discover that a web API is running on a server slated for decommissioning. You need to recommend a solution to modernize this API while migrating to Google Cloud. The modernized web API must meet the following requirements: β€’ Autoscales during high traffic periods at the end of each month β€’ Written in Python 3.x β€’ Developers must be able to rapidly deploy new versions in response to frequent code changes You want to minimize cost, effort, and operational overhead of this migration. What should you do?

  • AModernize and deploy the code on App Engine flexible environment.
  • BModernize and deploy the code on App Engine standard environment. (correct answer)
  • CDeploy the modernized application to an n1-standard-1 Compute Engine instance.
  • DAsk the development team to re-write the application to run as a Docker container on Google Kubernetes Engine.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Modernize and deploy the code on App Engine standard environment.

Explanation

App Engine Standard runs code in a fully managed, autoscaling sandbox with minimal operations. App Engine is a fully managed platform that runs and autoscales web apps with little operational effort. This option delivers the requirement at the lowest cost.

Topic 1 Β· Question 171

You are developing an application that consists of several microservices running in a Google Kubernetes Engine cluster. One microservice needs to connect to a third-party database running on-premises. You need to store credentials to the database and ensure that these credentials can be rotated while following security best practices. What should you do?

  • AStore the credentials in a sidecar container proxy, and use it to connect to the third-party database.
  • BConfigure a service mesh to allow or restrict traffic from the Pods in your microservice to the database.
  • CStore the credentials in an encrypted volume mount, and associate a Persistent Volume Claim with the client Pod.
  • DStore the credentials as a Kubernetes Secret, and use the Cloud Key Management Service plugin to handle encryption and decryption. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Store the credentials as a Kubernetes Secret, and use the Cloud Key Management Service plugin to handle encryption and decryption.

Topic 1 Β· Question 172

You manage your company's ecommerce platform's payment system, which runs on Google Cloud. Your company must retain user logs for 1 year for internal auditing purposes and for 3 years to meet compliance requirements. You need to store new user logs on Google Cloud to minimize on-premises storage usage and ensure that they are easily searchable. You want to minimize effort while ensuring that the logs are stored correctly. What should you do?

  • AStore the logs in a Cloud Storage bucket with bucket lock turned on.
  • BStore the logs in a Cloud Storage bucket with a 3-year retention period.
  • CStore the logs in Cloud Logging as custom logs with a custom retention period. (correct answer)
  • DStore the logs in a Cloud Storage bucket with a 1-year retention period. After 1 year, move the logs to another bucket with a 2-year retention period.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Store the logs in Cloud Logging as custom logs with a custom retention period.

Explanation

Cloud Logging centralizes, stores, and analyzes logs across services.

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

Your company has a new security initiative that requires all data stored in Google Cloud to be encrypted by customer-managed encryption keys. You plan to use Cloud Key Management Service (KMS) to configure access to the keys. You need to follow the "separation of duties" principle and Google-recommended best practices. What should you do? (Choose two.)

  • AProvision Cloud KMS in its own project. (correct answer)
  • BDo not assign an owner to the Cloud KMS project. (correct answer)
  • CProvision Cloud KMS in the project where the keys are being used.
  • DGrant the roles/cloudkms.admin role to the owner of the project where the keys from Cloud KMS are being used.
  • EGrant an owner role for the Cloud KMS project to a different user than the owner of the project where the keys from Cloud KMS are being used.
Reveal answer & explanation
Correct answer: A, B

The correct answer is A, B. Option A: Provision Cloud KMS in its own project. Option B: Do not assign an owner to the Cloud KMS project.

Explanation

Cloud KMS manages encryption keys and integrates with Google Cloud services for encryption.

Topic 1 Β· Question 174

You need to migrate a standalone Java application running in an on-premises Linux virtual machine (VM) to Google Cloud in a cost-effective manner. You decide not to take the lift-and-shift approach, and instead you plan to modernize the application by converting it to a container. How should you accomplish this task?

  • AUse Migrate for Anthos to migrate the VM to your Google Kubernetes Engine (GKE) cluster as a container.
  • BExport the VM as a raw disk and import it as an image. Create a Compute Engine instance from the Imported image.
  • CUse Migrate for Compute Engine to migrate the VM to a Compute Engine instance, and use Cloud Build to convert it to a container.
  • DUse Jib to build a Docker image from your source code, and upload it to Artifact Registry. Deploy the application in a GKE cluster, and test the application. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Use Jib to build a Docker image from your source code, and upload it to Artifact Registry. Deploy the application in a GKE cluster, and test the application.

Explanation

Google Kubernetes Engine runs managed Kubernetes for containerized, portable workloads. Artifact Registry stores and manages container images and language packages. This option delivers the requirement at the lowest cost.

Topic 1 Β· Question 175

Your organization has recently begun an initiative to replatform their legacy applications onto Google Kubernetes Engine. You need to decompose a monolithic application into microservices. Multiple instances have read and write access to a configuration file, which is stored on a shared file system. You want to minimize the effort required to manage this transition, and you want to avoid rewriting the application code. What should you do?

  • ACreate a new Cloud Storage bucket, and mount it via FUSE in the container.
  • BCreate a new persistent disk, and mount the volume as a shared PersistentVolume.
  • CCreate a new Filestore instance, and mount the volume as an NFS PersistentVolume. (correct answer)
  • DCreate a new ConfigMap and volumeMount to store the contents of the configuration file.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Create a new Filestore instance, and mount the volume as an NFS PersistentVolume.

Explanation

Filestore provides fully managed NFS file storage that multiple VMs can mount concurrently.

Topic 1 Β· Question 176

Your development team has built several Cloud Functions using Java along with corresponding integration and service tests. You are building and deploying the functions and launching the tests using Cloud Build. Your Cloud Build job is reporting deployment failures immediately after successfully validating the code. What should you do?

  • ACheck the maximum number of Cloud Function instances.
  • BVerify that your Cloud Build trigger has the correct build parameters.
  • CRetry the tests using the truncated exponential backoff polling strategy.
  • DVerify that the Cloud Build service account is assigned the Cloud Functions Developer role. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Verify that the Cloud Build service account is assigned the Cloud Functions Developer role.

Explanation

Cloud Functions runs event-driven code without managing servers and scales automatically. A service account provides an identity for workloads to access Google Cloud APIs securely. Cloud Build runs managed CI pipelines to build, test, and package code.

Topic 1 Β· Question 177

You manage a microservices application on Google Kubernetes Engine (GKE) using Istio. You secure the communication channels between your microservices by implementing an Istio AuthorizationPolicy, a Kubernetes NetworkPolicy, and mTLS on your GKE cluster. You discover that HTTP requests between two Pods to specific URLs fail, while other requests to other URLs succeed. What is the cause of the connection issue?

  • AA Kubernetes NetworkPolicy resource is blocking HTTP traffic between the Pods.
  • BThe Pod initiating the HTTP requests is attempting to connect to the target Pod via an incorrect TCP port.
  • CThe Authorization Policy of your cluster is blocking HTTP requests for specific paths within your application. (correct answer)
  • DThe cluster has mTLS configured in permissive mode, but the Pod's sidecar proxy is sending unencrypted traffic in plain text.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: The Authorization Policy of your cluster is blocking HTTP requests for specific paths within your application.

Topic 1 Β· Question 178

You recently migrated an on-premises monolithic application to a microservices application on Google Kubernetes Engine (GKE). The application has dependencies on backend services on-premises, including a CRM system and a MySQL database that contains personally identifiable information (PII). The backend services must remain on-premises to meet regulatory requirements. You established a Cloud VPN connection between your on-premises data center and Google Cloud. You notice that some requests from your microservices application on GKE to the backend services are failing due to latency issues caused by fluctuating bandwidth, which is causing the application to crash. How should you address the latency issues?

  • AUse Memorystore to cache frequently accessed PII data from the on-premises MySQL database
  • BUse Istio to create a service mesh that includes the microservices on GKE and the on-premises services (correct answer)
  • CIncrease the number of Cloud VPN tunnels for the connection between Google Cloud and the on-premises services
  • DDecrease the network layer packet size by decreasing the Maximum Transmission Unit (MTU) value from its default value on Cloud VPN
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Use Istio to create a service mesh that includes the microservices on GKE and the on-premises services

Explanation

Google Kubernetes Engine runs managed Kubernetes for containerized, portable workloads.

Topic 1 Β· Question 179

Your company has deployed a new API to a Compute Engine instance. During testing, the API is not behaving as expected. You want to monitor the application over 12 hours to diagnose the problem within the application code without redeploying the application. Which tool should you use?

  • ACloud Trace
  • BCloud Monitoring
  • CCloud Debugger logpoints (correct answer)
  • DCloud Debugger snapshots
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Cloud Debugger logpoints.

Topic 1 Β· Question 180

You are designing an application that consists of several microservices. Each microservice has its own RESTful API and will be deployed as a separate Kubernetes Service. You want to ensure that the consumers of these APIs aren't impacted when there is a change to your API, and also ensure that third-party systems aren't interrupted when new versions of the API are released. How should you configure the connection to the application following Google-recommended best practices?

  • AUse an Ingress that uses the API's URL to route requests to the appropriate backend. (correct answer)
  • BLeverage a Service Discovery system, and connect to the backend specified by the request.
  • CUse multiple clusters, and use DNS entries to route requests to separate versioned backends.
  • DCombine multiple versions in the same service, and then specify the API version in the POST request.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Use an Ingress that uses the API's URL to route requests to the appropriate backend.

Showing questions 161–180 of 359 Β· Page 9 of 18