Question 291 · 357 in bank
You are running an application on App Engine that you inherited. You want to find out whether the application is using insecure binaries or is vulnerable to XSS attacks. Which service should you use?
Show answer
Answer: C
Google Professional Cloud Developer357 questions across 36 pages are complete and free, with no account or card.
357 questions in this bank
Free access · progress saved on this device
You are running an application on App Engine that you inherited. You want to find out whether the application is using insecure binaries or is vulnerable to XSS attacks. Which service should you use?
Answer: C
You are working on a social media application. You plan to add a feature that allows users to upload images. These images will be 2 MB `" 1 GB in size. You want to minimize their infrastructure operations overhead for this feature. What should you do?
Answer: B
"upload images" so use Cloud Storage; leaving B and D "minimize their infrastructure operations" so B is the answer Also, signed URLs provide additional security
Source: Adapted from community discussion — syu31svc
You need to copy directory local-scripts and all of its contents from your local workstation to a Compute Engine virtual machine instance. Which command should you use?
Answer: C
Your application is built as a custom machine image. You have multiple unique deployments of the machine image. Each deployment is a separate managed instance group with its own template. Each deployment requires a unique set of configuration values. You want to provide these unique values to each deployment but use the same custom machine image in all deployments. You want to use out-of-the-box features of Compute Engine. What should you do?
Answer: D
A and B are wrong for sure https://cloud.google.com/compute/docs/instances/startup-scripts: "A startup script is a file that contains commands that run when a virtual machine (VM) instance boots: Answer is D
Source: Adapted from community discussion — syu31svc
Your application performs well when tested locally, but it runs significantly slower after you deploy it to a Compute Engine instance. You need to diagnose the problem. What should you do? What should you do?
Answer: C
A is incorrect because the argument “it worked on my machine” but doesn’t work on Google Cloud is never valid. B is incorrect because Debugger snapshots only lets us review the application at a single point in time. C is correct because it provides latency per function and historical latency information. D is incorrect because while it works it requires a lot of work and is not the clear, optimal choice.
Source: Adapted from community discussion — telp
You have an application running in App Engine. Your application is instrumented with Stackdriver Trace. The /product-details request reports details about four known unique products at /sku-details as shown below. You want to reduce the time it takes for the request to complete. What should you do?
Answer: C
Pardon my fickle-mindedness Back to C as options A & B are wrong as they do not have a direct correlation with the issue and there is nothing to suggest they need to be increased.
Source: Adapted from community discussion — syu31svc
Your company has a data warehouse that keeps your application information in BigQuery. The BigQuery data warehouse keeps 2 PBs of user data. Recently, your company expanded your user base to include EU users and needs to comply with these requirements: ✑ Your company must be able to delete all user account information upon user request. ✑ All EU user data must be stored in a single region specifically for EU users. Which two actions should you take? (Choose two.)
Answer: BE
https://cloud.google.com/bigquery/docs/reference/standard-sql/data-manipulation-language The link above supports E since "delete all user account information upon user request" as per qn https://cloud.google.com/architecture/bigquery-data-warehouse: "A dataset is bound to a location. The dataset locations are as follows: Multi-regional: A large geographic area, such as the United States, that contains two or more geographic places." B is the other answer
Source: Adapted from community discussion — syu31svc
Your App Engine standard configuration is as follows: service: production instance_class: B1 You want to limit the application to 5 instances. Which code snippet should you include in your configuration?
Answer: D
https://cloud.google.com/appengine/docs/standard/python/how-instances-are-managed: "A service with basic scaling is configured by setting the maximum number of instances in the max_instances parameter of the basic_scaling setting. The number of live instances scales with the processing volume." Answer is D
Source: Adapted from community discussion — syu31svc
Your analytics system executes queries against a BigQuery dataset. The SQL query is executed in batch and passes the contents of a SQL file to the BigQuery CLI. Then it redirects the BigQuery CLI output to another process. However, you are getting a permission error from the BigQuery CLI when the queries are executed. You want to resolve the issue. What should you do?
Answer: A
The correct answer is Option A. In order to allow the analytics system to execute queries against the BigQuery dataset, the service account must be granted the BigQuery Data Viewer and BigQuery Job User roles. The BigQuery Data Viewer role allows the service account to read data from tables, and the BigQuery Job User role allows the service account to run jobs, which includes executing queries. Option B is not a good solution because the BigQuery Data Editor role allows the service account to modify data in tables, which is not necessary to execute queries. Option C is not a good solution because creating a view in BigQuery and selecting from the view in the CLI will not resolve the permission issue. Option D is not a good solution because creating a new dataset and copying the source table to the new dataset will not resolve the permission issue.
Source: Adapted from community discussion — omermahgoub
Your application is running on Compute Engine and is showing sustained failures for a small number of requests. You have narrowed the cause down to a single Compute Engine instance, but the instance is unresponsive to SSH. What should you do next?
Answer: B
Using the first link you provided: https://cloud.google.com/compute/docs/troubleshooting/troubleshooting-ssh#debug_with_serial_console We recommend that you review the logs from the serial console for connection errors. You can access the serial console from your local workstation by using a browser. Enable read/write access to an instance's serial console, so you can log into the console and troubleshoot problems with the instance. This approach is useful when you cannot log in with SSH, or if the instance has no connection to the network. The serial console remains accessible in both of these situations
Source: Adapted from community discussion — mastodilu
Keyboard:J Kmove between questionsA–Dselect an answerRshow or hide the answer← →change page
PCD practice, question 291. 357 questions available.
Version 1.0.0. How we source questions