Google Cloud Professional DevOps Engineer Q42

question-and-answer
Share
  1. Google Cloud Professional DevOps Engineer Q1
  2. Google Cloud Professional DevOps Engineer Q2
  3. Google Cloud Professional DevOps Engineer Q3
  4. Google Cloud Professional DevOps Engineer Q4
  5. Google Cloud Professional DevOps Engineer Q5
  6. Google Cloud Professional DevOps Engineer Q6
  7. Google Cloud Professional DevOps Engineer Q7
  8. Google Cloud Professional DevOps Engineer Q8
  9. Google Cloud Professional DevOps Engineer Q9
  10. Google Cloud Professional DevOps Engineer Q10
  11. Google Cloud Professional DevOps Engineer Q11
  12. Google Cloud Professional DevOps Engineer Q12
  13. Google Cloud Professional DevOps Engineer Q13
  14. Google Cloud Professional DevOps Engineer Q14
  15. Google Cloud Professional DevOps Engineer Q15
  16. Google Cloud Professional DevOps Engineer Q16
  17. Google Cloud Professional DevOps Engineer Q17
  18. Google Cloud Professional DevOps Engineer Q18
  19. Google Cloud Professional DevOps Engineer Q19
  20. Google Cloud Professional DevOps Engineer Q20
  21. Google Cloud Professional DevOps Engineer Q21
  22. Google Cloud Professional DevOps Engineer Q22
  23. Google Cloud Professional DevOps Engineer Q23
  24. Google Cloud Professional DevOps Engineer Q24
  25. Google Cloud Professional DevOps Engineer Q25
  26. Google Cloud Professional DevOps Engineer Q26
  27. Google Cloud Professional DevOps Engineer Q27
  28. Google Cloud Professional DevOps Engineer Q28
  29. Google Cloud Professional DevOps Engineer Q29
  30. Google Cloud Professional DevOps Engineer Q30
  31. Google Cloud Professional DevOps Engineer Q31
  32. Google Cloud Professional DevOps Engineer Q32
  33. Google Cloud Professional DevOps Engineer Q33
  34. Google Cloud Professional DevOps Engineer Q34
  35. Google Cloud Professional DevOps Engineer Q35
  36. Google Cloud Professional DevOps Engineer Q36
  37. Google Cloud Professional DevOps Engineer Q37
  38. Google Cloud Professional DevOps Engineer Q38
  39. Google Cloud Professional DevOps Engineer Q39
  40. Google Cloud Professional DevOps Engineer Q40
  41. Google Cloud Professional DevOps Engineer Q41
  42. Google Cloud Professional DevOps Engineer Q42
  43. Google Cloud Professional DevOps Engineer Q43
  44. Google Cloud Professional DevOps Engineer Q44
  45. Google Cloud Professional DevOps Engineer Q45
  46. Google Cloud Professional DevOps Engineer Q46
  47. Google Cloud Professional DevOps Engineer Q47
  48. Google Cloud Professional DevOps Engineer Q48
  49. Google Cloud Professional DevOps Engineer Q49
  50. Google Cloud Professional DevOps Engineer Q50
  51. Google Cloud Professional DevOps Engineer Q51
  52. Google Cloud Professional DevOps Engineer Q52
  53. Google Cloud Professional DevOps Engineer Q53
  54. Google Cloud Professional DevOps Engineer Q54
  55. Google Cloud Professional DevOps Engineer Q55
  56. Google Cloud Professional DevOps Engineer Q56
  57. Google Cloud Professional DevOps Engineer Q57
  58. Google Cloud Professional DevOps Engineer Q58
  59. Google Cloud Professional DevOps Engineer Q59
  60. Google Cloud Professional DevOps Engineer Q60
  61. Google Cloud Professional DevOps Engineer Q61
  62. Google Cloud Professional DevOps Engineer Q62
  63. Google Cloud Professional DevOps Engineer Q63
  64. Google Cloud Professional DevOps Engineer Q64
  65. Google Cloud Professional DevOps Engineer Q65
  66. Google Cloud Professional DevOps Engineer Q66
  67. Google Cloud Professional DevOps Engineer Q67
  68. Google Cloud Professional DevOps Engineer Q68
  69. Google Cloud Professional DevOps Engineer Q69
  70. Google Cloud Professional DevOps Engineer Q70
  71. Google Cloud Professional DevOps Engineer Q71
  72. Google Cloud Professional DevOps Engineer Q72
  73. Google Cloud Professional DevOps Engineer Q73
  74. Google Cloud Professional DevOps Engineer Q74
  75. Google Cloud Professional DevOps Engineer Q75
  76. Google Cloud Professional DevOps Engineer Q76
  77. Google Cloud Professional DevOps Engineer Q77
  78. Google Cloud Professional DevOps Engineer Q78
  79. Google Cloud Professional DevOps Engineer Q79
  80. Google Cloud Professional DevOps Engineer Q80
  81. Google Cloud Professional DevOps Engineer Q81
  82. Google Cloud Professional DevOps Engineer Q82
  83. Google Cloud Professional DevOps Engineer Q83
  84. Google Cloud Professional DevOps Engineer Q84
  85. Google Cloud Professional DevOps Engineer Q85
  86. Google Cloud Professional DevOps Engineer Q86
  87. Google Cloud Professional DevOps Engineer Q87
  88. Google Cloud Professional DevOps Engineer Q88
  89. Google Cloud Professional DevOps Engineer Q89
  90. Google Cloud Professional DevOps Engineer Q90
  91. Google Cloud Professional DevOps Engineer Q91
  92. Google Cloud Professional DevOps Engineer Q92
  93. Google Cloud Professional DevOps Engineer Q93
  94. Google Cloud Professional DevOps Engineer Q94
  95. Google Cloud Professional DevOps Engineer Q95
  96. Google Cloud Professional DevOps Engineer Q96
  97. Google Cloud Professional DevOps Engineer Q97
  98. Google Cloud Professional DevOps Engineer Q98
  99. Google Cloud Professional DevOps Engineer Q99
  100. Google Cloud Professional DevOps Engineer Q100
  101. Google Cloud Professional DevOps Engineer Q101
  102. Google Cloud Professional DevOps Engineer Q102
  103. Google Cloud Professional DevOps Engineer Q103
  104. Google Cloud Professional DevOps Engineer Q104
  105. Google Cloud Professional DevOps Engineer Q105
  106. Google Cloud Professional DevOps Engineer Q106
  107. Google Cloud Professional DevOps Engineer Q107
  108. Google Cloud Professional DevOps Engineer Q108
  109. Google Cloud Professional DevOps Engineer Q109
  110. Google Cloud Professional DevOps Engineer Q110
  111. Google Cloud Professional DevOps Engineer Q111
  112. Google Cloud Professional DevOps Engineer Q112
  113. Google Cloud Professional DevOps Engineer Q113
  114. Google Cloud Professional DevOps Engineer Q114
  115. Google Cloud Professional DevOps Engineer Q115
  116. Google Cloud Professional DevOps Engineer Q116
  117. Google Cloud Professional DevOps Engineer Q117
  118. Google Cloud Professional DevOps Engineer Q118
  119. Google Cloud Professional DevOps Engineer Q119
  120. Google Cloud Professional DevOps Engineer Q120

You are building and running client applications in Cloud Run and Cloud Functions. Your client requires that all logs must be available for one year so that the client can import the logs into their logging service. You must minimize required code changes. What should you do?

A. Update all images in Cloud Run and all functions in Cloud Functions to send logs to both Cloud Logging and the client’s logging service. Ensure that all the ports required to send logs are open in the VPC firewall.

B. Create a Pub/Sub topic, subscription, and logging sink. Configure the logging sink to send all logs into the topic. Give your client access to the topic to retrieve the logs.

C. Create a storage bucket and appropriate VPC firewall rules. Update all images in Cloud Run and all functions in Cloud Functions to send logs to a file within the storage bucket.

D. Create a logs bucket and logging sink. Set the retention on the logs bucket to 365 days. Configure the logging sink to send logs to the bucket. Give your client access to the bucket to retrieve the logs.

Disclaimer

This is a practice question. There is no guarantee of coming this question in the certification exam.

Answer

D

Explanation

A. Update all images in Cloud Run and all functions in Cloud Functions to send logs to both Cloud Logging and the client’s logging service. Ensure that all the ports required to send logs are open in the VPC firewall.
(Requires lots of code change, and not giving solution of retaining logs for one year.)

B. Create a Pub/Sub topic, subscription, and logging sink. Configure the logging sink to send all logs into the topic. Give your client access to the topic to retrieve the logs.
(Again, lots of work required in this approach. And not giving solution of retaining logs for one year.)

C. Create a storage bucket and appropriate VPC firewall rules. Update all images in Cloud Run and all functions in Cloud Functions to send logs to a file within the storage bucket.
(Unnecessary, as logs are already collected in Cloud Logging.)

D. Create a logs bucket and logging sink. Set the retention on the logs bucket to 365 days. Configure the logging sink to send logs to the bucket. Give your client access to the bucket to retrieve the logs.
(This approach abstracts the log storage from your applications running in Cloud Run and Cloud Functions, ensuring that logs are retained for the specified duration without requiring modifications to individual codebases. Additionally, providing your client access to the designated bucket allows them to retrieve the logs seamlessly. It’s a centralized and efficient solution that aligns with best practices for log management in Google Cloud.)



  • March 30, 2024