exam questions

Exam Professional Cloud DevOps Engineer All Questions

View all questions & answers for the Professional Cloud DevOps Engineer exam

Exam Professional Cloud DevOps Engineer topic 1 question 101 discussion

Actual exam question from Google's Professional Cloud DevOps Engineer
Question #: 101
Topic #: 1
[All Professional Cloud DevOps Engineer Questions]

You are managing an application that runs in Compute Engine. The application uses a custom HTTP server to expose an API that is accessed by other applications through an internal TCP/UDP load balancer. A firewall rule allows access to the API port from 0.0.0.0/0. You need to configure Cloud Logging to log each IP address that accesses the API by using the fewest number of steps. What should you do first?

  • A. Enable Packet Mirroring on the VPC.
  • B. Install the Ops Agent on the Compute Engine instances.
  • C. Enable logging on the firewall rule.
  • D. Enable VPC Flow Logs on the subnet.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
PrayasMohanty
Highly Voted 1 year, 6 months ago
Selected Answer: D
Option D uses fewest number of steps.
upvoted 6 times
...
soady
Most Recent 1 month ago
Selected Answer: C
IP's can be missed using flow logs. Right answer is C: VPC Flow Logs samples packets using a primary sampling rate. The primary sampling rate is dynamic and varies depending on the load of the physical host running the VM or gateway at the time of sampling. The probability of sampling any single IP connection increases with the volume of packets. You can't control the primary flow log sampling process or adjust the primary samplSource: https://cloud.google.com/vpc/docs/flow-logs#log-sampling
upvoted 1 times
...
cachopo
1 month, 3 weeks ago
Selected Answer: C
Since there is already a firewall rule allowing access from 0.0.0.0/0, enabling firewall rule logging will capture details of every incoming connection, including the source IP address. This is the simplest approach and requires only one step (enabling logging on the existing firewall rule).
upvoted 1 times
cachopo
1 month, 3 weeks ago
A (Enable Packet Mirroring on the VPC): - Packet Mirroring captures entire network packets, which is useful for deep packet inspection but is complex to configure and requires additional analysis tools. - Overhead is high, and it is not needed just to log source IPs. B (Install the Ops Agent on Compute Engine instances): - Ops Agent collects system and application logs, but it won’t automatically log incoming requests unless the custom HTTP server itself logs them. - This would require additional configuration and modifying the application’s logging behavior. D (Enable VPC Flow Logs on the subnet): - VPC Flow Logs capture network-level traffic metadata, including source and destination IPs. - However, this requires additional processing in Cloud Logging to extract IPs accessing the API. - Firewall logging is more straightforward for tracking incoming connections.
upvoted 1 times
...
...
abildikar
4 months, 3 weeks ago
Selected Answer: C
VPC logs is sample log collected at intervals
upvoted 1 times
...
JohnJamesB1212
6 months, 2 weeks ago
Selected Answer: C
The correct option is C: Enable logging on the firewall rule. Explanation: Firewall rule logging allows you to capture the traffic that matches a specific firewall rule, including details such as the source IP address. Since your firewall rule allows access to the API port from 0.0.0.0/0, enabling logging on this rule will log the IP addresses of incoming connections to the API. This is the most straightforward way to log the IP addresses accessing the API using the fewest steps, as it leverages existing firewall configurations and integrates with Cloud Logging. D: VPC Flow Logs provide network-level logging for traffic flowing within the VPC but would log all traffic in the subnet. While it could work, it's a more complex solution compared to enabling firewall rule logging directly. Therefore, C provides the quickest and simplest method to log IP addresses accessing the API.
upvoted 1 times
...
PhilipKoku
9 months, 3 weeks ago
Selected Answer: C
C) Enabling Logging of firewall rules
upvoted 1 times
...
winston9
11 months ago
Selected Answer: C
C is correct. VPC Flows logs can show source IP addresses, but they sample packets, do not provide the level of detail about individual API calls compared to firewall rule logging.
upvoted 2 times
...
N_A
1 year, 1 month ago
Selected Answer: C
Be careful. The question states "each IP address that accesses the API". VPC Flow Logs is sampling records: "VPC Flow Logs records a sample of network flows sent from and received by VM instances, including instances used as GKE nodes. These logs can be used for network monitoring, forensics, real-time security analysis, and expense optimization." Source: https://cloud.google.com/vpc/docs/using-flow-logs C. Is the correct answer.
upvoted 1 times
...
xhilmi
1 year, 4 months ago
Selected Answer: D
Choose option D. To configure Cloud Logging to log each IP address accessing the API with the fewest steps in a Compute Engine environment using an internal TCP/UDP load balancer, the first step would be to enable VPC Flow Logs on the subnet. That will allows you to capture network flow information, including source and destination IP addresses, as traffic passes through the load balancer. VPC Flow Logs provide detailed visibility into network activity without requiring modifications to individual instances or the installation of additional agents. Enabling VPC Flow Logs is a straightforward and efficient way to capture the necessary information for logging IP addresses accessing the API in a Compute Engine environment.
upvoted 3 times
...
ManishKS
1 year, 7 months ago
D. Enable VPC Flow Logs on the subnet. This will capture the network traffic details you need for logging in Cloud Logging without requiring additional configurations on the instances or firewall rules.
upvoted 2 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