πŸ”

PCD β€” questions

Page 5 of 18 Β· 359 total questions.

Topic 1 Β· Question 81

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. 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. * Data is exported to an on-premises Teradata/Vertica data warehouse. * Data analytics is performed in an on-premises Hadoop environment. * The application has no logging. * 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. * Increase the number of concurrent users that can be supported. * 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. Technical Requirements - * The application and backend must provide usage metrics and monitoring. * APIs require strong authentication and authorization. * Logging must be increased, and data should be stored in a cloud analytics platform. * Move to serverless architecture to facilitate elastic scaling. * Provide authorized access to internal apps in a secure manner. HipLocal is configuring their access controls. Which firewall configuration should they implement?

  • ABlock all traffic on port 443.
  • BAllow all traffic into the network.
  • CAllow traffic on port 443 for a specific tag. (correct answer)
  • DAllow all traffic on port 443 into the network.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Allow traffic on port 443 for a specific tag.

Topic 1 Β· Question 82

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. 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. * Data is exported to an on-premises Teradata/Vertica data warehouse. * Data analytics is performed in an on-premises Hadoop environment. * The application has no logging. * 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. * Increase the number of concurrent users that can be supported. * 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. Technical Requirements - * The application and backend must provide usage metrics and monitoring. * APIs require strong authentication and authorization. * Logging must be increased, and data should be stored in a cloud analytics platform. * Move to serverless architecture to facilitate elastic scaling. * Provide authorized access to internal apps in a secure manner. HipLocal's data science team wants to analyze user reviews. How should they prepare the data?

  • AUse the Cloud Data Loss Prevention API for redaction of the review dataset.
  • BUse the Cloud Data Loss Prevention API for de-identification of the review dataset. (correct answer)
  • CUse the Cloud Natural Language Processing API for redaction of the review dataset.
  • DUse the Cloud Natural Language Processing API for de-identification of the review dataset.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Use the Cloud Data Loss Prevention API for de-identification of the review dataset.

Topic 1 Β· Question 83

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. 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. * Data is exported to an on-premises Teradata/Vertica data warehouse. * Data analytics is performed in an on-premises Hadoop environment. * The application has no logging. * 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. * Increase the number of concurrent users that can be supported. * 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. Technical Requirements - * The application and backend must provide usage metrics and monitoring. * APIs require strong authentication and authorization. * Logging must be increased, and data should be stored in a cloud analytics platform. * Move to serverless architecture to facilitate elastic scaling. * Provide authorized access to internal apps in a secure manner. In order for HipLocal to store application state and meet their stated business requirements, which database service should they migrate to?

  • ACloud Spanner (correct answer)
  • BCloud Datastore
  • CCloud Memorystore as a cache
  • DSeparate Cloud SQL clusters for each region
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Cloud Spanner

Explanation

Cloud Spanner is a horizontally scalable, strongly consistent relational database with global reach.

Topic 1 Β· Question 84

You have an application deployed in production. When a new version is deployed, you want to ensure that all production traffic is routed to the new version of your application. You also want to keep the previous version deployed so that you can revert to it if there is an issue with the new version. Which deployment strategy should you use?

  • ABlue/green deployment (correct answer)
  • BCanary deployment
  • CRolling deployment
  • DRecreate deployment
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Blue/green deployment.

Topic 1 Β· Question 85

You are porting an existing Apache/MySQL/PHP application stack from a single machine to Google Kubernetes Engine. You need to determine how to containerize the application. Your approach should follow Google-recommended best practices for availability. What should you do?

  • APackage each component in a separate container. Implement readiness and liveness probes. (correct answer)
  • BPackage the application in a single container. Use a process management tool to manage each component.
  • CPackage each component in a separate container. Use a script to orchestrate the launch of the components.
  • DPackage the application in a single container. Use a bash script as an entrypoint to the container, and then spawn each component as a background job.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Package each component in a separate container. Implement readiness and liveness probes.

Topic 1 Β· Question 86

You are developing an application that will be launched on Compute Engine instances into multiple distinct projects, each corresponding to the environments in your software development process (development, QA, staging, and production). The instances in each project have the same application code but a different configuration. During deployment, each instance should receive the application's configuration based on the environment it serves. You want to minimize the number of steps to configure this flow. What should you do?

  • AWhen creating your instances, configure a startup script using the gcloud command to determine the project name that indicates the correct environment.
  • BIn each project, configure a metadata key "environment" whose value is the environment it serves. Use your deployment tool to query the instance metadata and configure the application based on the "environment" value. (correct answer)
  • CDeploy your chosen deployment tool on an instance in each project. Use a deployment job to retrieve the appropriate configuration file from your version control system, and apply the configuration when deploying the application on each instance.
  • DDuring each instance launch, configure an instance custom-metadata key named "environment" whose value is the environment the instance serves. Use your deployment tool to query the instance metadata, and configure the application based on the "environment" value.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: In each project, configure a metadata key "environment" whose value is the environment it serves. Use your deployment tool to query the instance metadata and configure the application based on the "environment" va...

Topic 1 Β· Question 87

You are developing an ecommerce application that stores customer, order, and inventory data as relational tables inside Cloud Spanner. During a recent load test, you discover that Spanner performance is not scaling linearly as expected. Which of the following is the cause?

  • AThe use of 64-bit numeric types for 32-bit numbers.
  • BThe use of the STRING data type for arbitrary-precision values.
  • CThe use of Version 1 UUIDs as primary keys that increase monotonically. (correct answer)
  • DThe use of LIKE instead of STARTS_WITH keyword for parameterized SQL queries.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: The use of Version 1 UUIDs as primary keys that increase monotonically.

Topic 1 Β· Question 88

You are developing an application that reads credit card data from a Pub/Sub subscription. You have written code and completed unit testing. You need to test the Pub/Sub integration before deploying to Google Cloud. What should you do?

  • ACreate a service to publish messages, and deploy the Pub/Sub emulator. Generate random content in the publishing service, and publish to the emulator.
  • BCreate a service to publish messages to your application. Collect the messages from Pub/Sub in production, and replay them through the publishing service.
  • CCreate a service to publish messages, and deploy the Pub/Sub emulator. Collect the messages from Pub/Sub in production, and publish them to the emulator.
  • DCreate a service to publish messages, and deploy the Pub/Sub emulator. Publish a standard set of testing messages from the publishing service to the emulator. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Create a service to publish messages, and deploy the Pub/Sub emulator. Publish a standard set of testing messages from the publishing service to the emulator.

Explanation

Pub/Sub is a serverless, global messaging service that decouples services and ingests high-volume event streams.

Topic 1 Β· Question 89

You are designing an application that will subscribe to and receive messages from a single Pub/Sub topic and insert corresponding rows into a database. Your application runs on Linux and leverages preemptible virtual machines to reduce costs. You need to create a shutdown script that will initiate a graceful shutdown. What should you do?

  • AWrite a shutdown script that uses inter-process signals to notify the application process to disconnect from the database. (correct answer)
  • BWrite a shutdown script that broadcasts a message to all signed-in users that the Compute Engine instance is going down and instructs them to save current work and sign out.
  • CWrite a shutdown script that writes a file in a location that is being polled by the application once every five minutes. After the file is read, the application disconnects from the database.
  • DWrite a shutdown script that publishes a message to the Pub/Sub topic announcing that a shutdown is in progress. After the application reads the message, it disconnects from the database.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Write a shutdown script that uses inter-process signals to notify the application process to disconnect from the database. This option delivers the requirement at the lowest cost.

Topic 1 Β· Question 90

You work for a web development team at a small startup. Your team is developing a Node.js application using Google Cloud services, including Cloud Storage and Cloud Build. The team uses a Git repository for version control. Your manager calls you over the weekend and instructs you to make an emergency update to one of the company's websites, and you're the only developer available. You need to access Google Cloud to make the update, but you don't have your work laptop. You are not allowed to store source code locally on a non-corporate computer. How should you set up your developer environment?

  • AUse a text editor and the Git command line to send your source code updates as pull requests from a public computer.
  • BUse a text editor and the Git command line to send your source code updates as pull requests from a virtual machine running on a public computer.
  • CUse Cloud Shell and the built-in code editor for development. Send your source code updates as pull requests. (correct answer)
  • DUse a Cloud Storage bucket to store the source code that you need to edit. Mount the bucket to a public computer as a drive, and use a code editor to update the code. Turn on versioning for the bucket, and point it to the team's Git repository.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Use Cloud Shell and the built-in code editor for development. Send your source code updates as pull requests.

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

Your team develops services that run on Google Kubernetes Engine. You need to standardize their log data using Google-recommended practices and make the data more useful in the fewest number of steps. What should you do? (Choose two.)

  • ACreate aggregated exports on application logs to BigQuery to facilitate log analytics. (correct answer)
  • BCreate aggregated exports on application logs to Cloud Storage to facilitate log analytics.
  • CWrite log output to standard output (stdout) as single-line JSON to be ingested into Cloud Logging as structured logs. (correct answer)
  • DMandate the use of the Logging API in the application code to write structured logs to Cloud Logging.
  • EMandate the use of the Pub/Sub API to write structured data to Pub/Sub and create a Dataflow streaming pipeline to normalize logs and write them to BigQuery for analytics.
Reveal answer & explanation
Correct answer: A, C

The correct answer is A, C. Option A: Create aggregated exports on application logs to BigQuery to facilitate log analytics. Option C: Write log output to standard output (stdout) as single-line JSON to be ingested into Cloud Logging as structured logs.

Explanation

BigQuery is a serverless, petabyte-scale data warehouse for fast SQL analytics with no infrastructure to manage. Cloud Logging centralizes, stores, and analyzes logs across services.

Topic 1 Β· Question 92

You are designing a deployment technique for your new applications on Google Cloud. As part of your deployment planning, you want to use live traffic to gather performance metrics for both new and existing applications. You need to test against the full production load prior to launch. What should you do?

  • AUse canary deployment
  • BUse blue/green deployment
  • CUse rolling updates deployment
  • DUse A/B testing with traffic mirroring during deployment (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Use A/B testing with traffic mirroring during deployment.

Topic 1 Β· Question 93

You support an application that uses the Cloud Storage API. You review the logs and discover multiple HTTP 503 Service Unavailable error responses from the API. Your application logs the error and does not take any further action. You want to implement Google-recommended retry logic to improve success rates. Which approach should you take?

  • ARetry the failures in batch after a set number of failures is logged.
  • BRetry each failure at a set time interval up to a maximum number of times.
  • CRetry each failure at increasing time intervals up to a maximum number of tries. (correct answer)
  • DRetry each failure at decreasing time intervals up to a maximum number of tries.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Retry each failure at increasing time intervals up to a maximum number of tries.

Topic 1 Β· Question 94

You need to redesign the ingestion of audit events from your authentication service to allow it to handle a large increase in traffic. Currently, the audit service and the authentication system run in the same Compute Engine virtual machine. You plan to use the following Google Cloud tools in the new architecture: β€’ Multiple Compute Engine machines, each running an instance of the authentication service β€’ Multiple Compute Engine machines, each running an instance of the audit service β€’ Pub/Sub to send the events from the authentication services. How should you set up the topics and subscriptions to ensure that the system can handle a large volume of messages and can scale efficiently?

  • ACreate one Pub/Sub topic. Create one pull subscription to allow the audit services to share the messages. (correct answer)
  • BCreate one Pub/Sub topic. Create one pull subscription per audit service instance to allow the services to share the messages.
  • CCreate one Pub/Sub topic. Create one push subscription with the endpoint pointing to a load balancer in front of the audit services.
  • DCreate one Pub/Sub topic per authentication service. Create one pull subscription per topic to be used by one audit service.
  • ECreate one Pub/Sub topic per authentication service. Create one push subscription per topic, with the endpoint pointing to one audit service.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Create one Pub/Sub topic. Create one pull subscription to allow the audit services to share the messages.

Explanation

Pub/Sub is a serverless, global messaging service that decouples services and ingests high-volume event streams.

Topic 1 Β· Question 95

You are developing a marquee stateless web application that will run on Google Cloud. The rate of the incoming user traffic is expected to be unpredictable, with no traffic on some days and large spikes on other days. You need the application to automatically scale up and down, and you need to minimize the cost associated with running the application. What should you do?

  • ABuild the application in Python with Firestore as the database. Deploy the application to Cloud Run. (correct answer)
  • BBuild the application in C# with Firestore as the database. Deploy the application to App Engine flexible environment.
  • CBuild the application in Python with CloudSQL as the database. Deploy the application to App Engine standard environment.
  • DBuild the application in Python with Firestore as the database. Deploy the application to a Compute Engine managed instance group with autoscaling.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Build the application in Python with Firestore as the database. Deploy the application to Cloud Run.

Explanation

Cloud Run runs stateless containers serverlessly and scales to zero, minimizing operational overhead. Firestore is a serverless, autoscaling NoSQL document database ideal for app and user data. This option decouples the components so they scale independently and absorb load spikes.

Topic 1 Β· Question 96

You have written a Cloud Function that accesses other Google Cloud resources. You want to secure the environment using the principle of least privilege. What should you do?

  • ACreate a new service account that has Editor authority to access the resources. The deployer is given permission to get the access token.
  • BCreate a new service account that has a custom IAM role to access the resources. The deployer is given permission to get the access token.
  • CCreate a new service account that has Editor authority to access the resources. The deployer is given permission to act as the new service account.
  • DCreate a new service account that has a custom IAM role to access the resources. The deployer is given permission to act as the new service account. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Create a new service account that has a custom IAM role to access the resources. The deployer is given permission to act as the new service account.

Explanation

A service account provides an identity for workloads to access Google Cloud APIs securely. Cloud IAM grants fine-grained, least-privilege access to Google Cloud resources.

Topic 1 Β· Question 97

You are a SaaS provider deploying dedicated blogging software to customers in your Google Kubernetes Engine (GKE) cluster. You want to configure a secure multi-tenant platform to ensure that each customer has access to only their own blog and can't affect the workloads of other customers. What should you do?

  • AEnable Application-layer Secrets on the GKE cluster to protect the cluster.
  • BDeploy a namespace per tenant and use Network Policies in each blog deployment. (correct answer)
  • CUse GKE Audit Logging to identify malicious containers and delete them on discovery.
  • DBuild a custom image of the blogging software and use Binary Authorization to prevent untrusted image deployments.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Deploy a namespace per tenant and use Network Policies in each blog deployment.

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

You have decided to migrate your Compute Engine application to Google Kubernetes Engine. You need to build a container image and push it to Artifact Registry using Cloud Build. What should you do? (Choose two.)

  • ARun gcloud builds submit in the directory that contains the application source code. (correct answer)
  • BRun gcloud run deploy app-name --image gcr.io/$PROJECT_ID/app-name in the directory that contains the application source code.
  • CRun gcloud container images add-tag gcr.io/$PROJECT_ID/app-name gcr.io/$PROJECT_ID/app-name:latest in the directory that contains the application source code.
  • DIn the application source directory, create a file named cloudbuild.yaml that contains the following contents: (correct answer)
  • EIn the application source directory, create a file named cloudbuild.yaml that contains the following contents:
Reveal answer & explanation
Correct answer: A, D

The correct answer is A, D. Option A: Run gcloud builds submit in the directory that contains the application source code. Option D: In the application source directory, create a file named cloudbuild.yaml that contains the following contents:

Explanation

Cloud Build runs managed CI pipelines to build, test, and package code.

Topic 1 Β· Question 99

You are developing an internal application that will allow employees to organize community events within your company. You deployed your application on a single Compute Engine instance. Your company uses Google Workspace (formerly G Suite), and you need to ensure that the company employees can authenticate to the application from anywhere. What should you do?

  • AAdd a public IP address to your instance, and restrict access to the instance using firewall rules. Allow your company's proxy as the only source IP address.
  • BAdd an HTTP(S) load balancer in front of the instance, and set up Identity-Aware Proxy (IAP). Configure the IAP settings to allow your company domain to access the website. (correct answer)
  • CSet up a VPN tunnel between your company network and your instance's VPC location on Google Cloud. Configure the required firewall rules and routing information to both the on-premises and Google Cloud networks.
  • DAdd a public IP address to your instance, and allow traffic from the internet. Generate a random hash, and create a subdomain that includes this hash and points to your instance. Distribute this DNS address to your company's employees.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Add an HTTP(S) load balancer in front of the instance, and set up Identity-Aware Proxy (IAP). Configure the IAP settings to allow your company domain to access the website.

Explanation

A load balancer distributes traffic across healthy backends in multiple zones for availability and scale. Identity-Aware Proxy enforces per-request access control to apps without a VPN.

Topic 1 Β· Question 100

Your development team is using Cloud Build to promote a Node.js application built on App Engine from your staging environment to production. The application relies on several directories of photos stored in a Cloud Storage bucket named webphotos-staging in the staging environment. After the promotion, these photos must be available in a Cloud Storage bucket named webphotos-prod in the production environment. You want to automate the process where possible. What should you do?

  • AManually copy the photos to webphotos-prod.
  • BAdd a startup script in the application's app.yami file to move the photos from webphotos-staging to webphotos-prod.
  • CAdd a build step in the cloudbuild.yaml file before the promotion step with the arguments: (correct answer)
  • DAdd a build step in the cloudbuild.yaml file before the promotion step with the arguments:
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Add a build step in the cloudbuild.yaml file before the promotion step with the arguments:.

Showing questions 81–100 of 359 Β· Page 5 of 18