ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 214 - Professional Cloud Developer discussion

Report
Export

You have recently instrumented a new application with OpenTelemetry, and you want to check the latency of your application requests in Trace. You want to ensure that a specific request is always traced. What should you do?

A.
Wait 10 minutes, then verify that Trace captures those types of requests automatically.
Answers
A.
Wait 10 minutes, then verify that Trace captures those types of requests automatically.
B.
Write a custom script that sends this type of request repeatedly from your dev project.
Answers
B.
Write a custom script that sends this type of request repeatedly from your dev project.
C.
Use the Trace API to apply custom attributes to the trace.
Answers
C.
Use the Trace API to apply custom attributes to the trace.
D.
Add the X-Cloud-Trace-Context header to the request with the appropriate parameters.
Answers
D.
Add the X-Cloud-Trace-Context header to the request with the appropriate parameters.
Suggested answer: D

Explanation:

https://cloud.google.com/trace/docs/setup#force-trace

Cloud Trace doesn't sample every request. To force a specific request to be traced, add an X-Cloud-Trace-Context header to the request.

asked 18/09/2024
Nivenl Surnder
33 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first