Ultimate access to all questions.
Imagine you're the on-call Site Reliability Engineer (SRE) for a betting company, managing an application deployed on App Engine flexible environment within a custom VPC. This application accepts user traffic globally via HTTPS. Your task is to log all successful incoming SSH traffic to the Google Compute Engine (GCE) instances originating from the company network. How would you accomplish this?
Explanation:
The correct approach involves creating a firewall rule that permits ingress (incoming) traffic on port 22 (SSH) from the company network to the VPC network and activating logging to ensure these logs are captured in Cloud Logging. The other options are incorrect because: they either focus on egress (outgoing) traffic instead of ingress, or they suggest denying traffic which would not log successful connections. For more details, refer to the documentation on firewall rules logging.