exam questions

Exam Associate Cloud Engineer All Questions

View all questions & answers for the Associate Cloud Engineer exam

Exam Associate Cloud Engineer topic 1 question 68 discussion

Actual exam question from Google's Associate Cloud Engineer
Question #: 68
Topic #: 1
[All Associate Cloud Engineer Questions]

For analysis purposes, you need to send all the logs from all of your Compute Engine instances to a BigQuery dataset called platform-logs. You have already installed the Cloud Logging agent on all the instances. You want to minimize cost. What should you do?

  • A. 1. Give the BigQuery Data Editor role on the platform-logs dataset to the service accounts used by your instances. 2. Update your instances' metadata to add the following value: logs-destination: bq://platform-logs.
  • B. 1. In Cloud Logging, create a logs export with a Cloud Pub/Sub topic called logs as a sink. 2. Create a Cloud Function that is triggered by messages in the logs topic. 3. Configure that Cloud Function to drop logs that are not from Compute Engine and to insert Compute Engine logs in the platform-logs dataset.
  • C. 1. In Cloud Logging, create a filter to view only Compute Engine logs. 2. Click Create Export. 3. Choose BigQuery as Sink Service, and the platform-logs dataset as Sink Destination.
  • D. 1. Create a Cloud Function that has the BigQuery User role on the platform-logs dataset. 2. Configure this Cloud Function to create a BigQuery Job that executes this query: INSERT INTO dataset.platform-logs (timestamp, log) SELECT timestamp, log FROM compute.logs WHERE timestamp > DATE_SUB(CURRENT_DATE(), INTERVAL 1 DAY) 3. Use Cloud Scheduler to trigger this Cloud Function once a day.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
sumanshu
Highly Voted 3 years, 5 months ago
vote for ''C" https://cloud.google.com/logging/docs/export/configure_export_v2
upvoted 23 times
...
vmart
Highly Voted 3 years, 2 months ago
I vote for C
upvoted 8 times
...
Nitesh2000
Most Recent 7 months, 1 week ago
Option C
upvoted 2 times
...
BAofBK
10 months ago
The correct answer is C
upvoted 1 times
...
axantroff
11 months, 1 week ago
C, it's simple enough
upvoted 2 times
...
Captain1212
1 year ago
Selected Answer: C
C , it minimizes the cost
upvoted 1 times
...
jayjani66
1 year, 1 month ago
Answer: C. Option C allows you to create a log export from Cloud Logging to BigQuery with minimal setup and cost. By creating a filter to view only Compute Engine logs, you ensure that only the relevant logs are exported to BigQuery, reducing unnecessary data transfer and storage costs.
upvoted 3 times
...
Kyle1776
1 year, 3 months ago
Selected Answer: B
B looks like the most cost effective option since filtering out only the logs you need will reduce storage and data transfer costs.
upvoted 1 times
Kyle1776
1 year, 2 months ago
Correction - C
upvoted 1 times
...
...
Buruguduystunstugudunstuy
1 year, 6 months ago
Selected Answer: C
The most cost-effective and recommended solution to send logs from Compute Engine instances to BigQuery is to use the Cloud Logging agent with a sink that streams the logs to BigQuery. Answer C is the most appropriate solution. In Cloud Logging, create a filter to view only Compute Engine logs. Click Create Export. Choose BigQuery as Sink Service, and the platform-logs dataset as Sink Destination. This will allow all Compute Engine instance logs to be exported to BigQuery with minimal complexity and cost.
upvoted 3 times
...
David_Esteban
1 year, 8 months ago
Selected Answer: C
Mi vote is for "c"
upvoted 1 times
...
cslince
1 year, 9 months ago
Selected Answer: C
vote for ''C"
upvoted 1 times
...
Charumathi
1 year, 11 months ago
C. is correct, Sinks control how Cloud Logging routes logs. Using sinks, you can route some or all of your logs to supported destinations.
upvoted 3 times
...
AzureDP900
2 years, 2 months ago
I will go with C..
upvoted 1 times
...
haroldbenites
2 years, 3 months ago
Go for C
upvoted 1 times
...
somenick
2 years, 5 months ago
Selected Answer: C
Outdated question. It's now about Cloud Sink, but C is the closest option
upvoted 5 times
...
NoniGeorge
2 years, 7 months ago
I think it's C as all the other ones seem to get logs from everywhere not just Compute Engine!
upvoted 4 times
...
jaykumarjkd99
2 years, 9 months ago
Selected Answer: C
I vote for C
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago