What happens when a firewall rule is created from scratch without specifying direction?
ABlocked inbound traffic only
BAllowed inbound traffic only
CBlocked both inbound and outbound
DNot applied at all
Explanation
A firewall rule must specify direction to be applicable; otherwise, it's not active.
Q52
Which service allows for stateful firewall rules?
AGoogle Cloud VPC Firewall
BCloud CDN
CCloud Functions
DCloud Pub/Sub
Explanation
Google Cloud VPC Firewall allows stateful rules; others don't.
Q53
A company needs to connect its on-premises network to Google Cloud with a dedicated line. Which service should they use?
ACloud VPN
BCloud Interconnect
CVPC Peering
DCloud Router
Explanation
Cloud Interconnect provides dedicated connections; others are not dedicated.
Q54
You are configuring routes in a VPC network. What happens if two routes have the same priority?
ABroadest prefix wins
BLast created wins
CBoth are ignored
DRouting fails
Explanation
In Google Cloud, the last created route with same priority wins; others don't apply.
Q55
Which Google Cloud service allows managing peering connections?
ACloud Router
BCloud VPN
CVPC Network
DCloud Load Balancer
Explanation
Cloud Router is specifically designed for managing dynamic IP peering between VPC networks, while others serve different network purposes.
Q56
A company needs an on-premises application to connect to a Google Cloud service securely. What is the best solution?
ACloud Interconnect
BCloud Functions
CCloud Storage
DCloud Pub/Sub
Explanation
Cloud Interconnect provides secure direct connectivity between on-premises infrastructure and Google Cloud, unlike the others which serve different roles.
Q57
You are configuring firewall rules in Google Cloud. If you allow traffic on port 80, what happens?
ABoth inbound and outbound traffic allowed
BOnly inbound traffic allowed
COnly outbound traffic allowed
DNo traffic allowed
Explanation
Allowing traffic on port 80 permits inbound HTTP traffic while outbound traffic must be configured separately; the other options incorrectly describe traffic permissions.
Q58
Which service allows for interconnecting virtual networks globally?
ACloud VPN
BCloud Interconnect
CVPC Peering
DCloud Load Balancing
Explanation
Cloud Interconnect provides global interconnections between virtual networks, whereas others focus on different network management tasks.
Q59
A company needs to secure access to its VMs. What should it use?
AFirewall Rules
BIAM Permissions
COS Login
DCloud Functions
Explanation
OS Login allows SSH access management and is a more secure method compared to traditional keys.
Q60
What happens when you delete a Cloud Pub/Sub subscription?
AMessages are lost immediately
BMessages are retained for 30 days
CSubscription can be restored later
DAssociated topics are deleted too
Explanation
When a subscription is deleted, any pending messages are lost and cannot be recovered.