For IndividualsFor Educators
ExpertMinds LogoExpertMinds
ExpertMinds

Ace your certifications with Practice Exams and AI assistance.

  • Browse Exams
  • For Educators
  • Blog
  • Privacy Policy
  • Terms of Service
  • Cookie Policy
  • Support
  • AWS SAA Exam Prep
  • PMI PMP Exam Prep
  • CPA Exam Prep
  • GCP PCA Exam Prep

© 2026 TinyHive Labs. Company number 16262776.

    PracticeGCP Associate Cloud Engineer (ACE)GCP Associate Cloud Engineer Practice Exam 7Question 30
    Hard1 markMultiple Choice
    Domain 3.5: Deploying and implementing networking resourcesFirewall RulesNetworkingSecurityNetwork Tags

    GCP ACE · Question 30 · Domain 3.5: Deploying and implementing networking resources

    You have a three-tier application running on Compute Engine: web servers, application servers, and database servers. You want to create firewall rules to ensure that ONLY the application servers can communicate with the database servers on port 3306.

    Which TWO actions should you take to configure this securely using network tags? (Select TWO)

    Answer options:

    A.

    Add the tag 'app-server' to the application instances and 'db-server' to the database instances.

    B.

    Create an ingress firewall rule targeting 'db-server' that allows port 3306 from source tags 'app-server'.

    C.

    Create an egress firewall rule on the database servers to block all outbound traffic.

    D.

    Create an ingress firewall rule targeting 'app-server' that allows port 3306 from source tags 'db-server'.

    E.

    Assign a public IP to the database servers so the firewall rules can route the traffic.

    How to approach this question

    Understand how source tags and target tags work in GCP firewall rules.

    Full Answer

    Add the tag 'app-server' to the application instances and 'db-server' to the database instances., Create an ingress firewall rule targeting 'db-server' that allows port 3306 from source tags 'app-server'.
    In Google Cloud, firewall rules can use network tags to identify instances. To restrict traffic, you tag your instances appropriately (e.g., 'app-server' and 'db-server'). Then, you create an ingress firewall rule. The 'target tag' is 'db-server' (meaning the rule applies to the databases), and the 'source tag' is 'app-server' (meaning only traffic originating from VMs with that tag is allowed).

    Common mistakes

    Confusing source tags and target tags, or creating egress rules instead of ingress rules.
    Question 29All questionsQuestion 31

    Practice the full GCP Associate Cloud Engineer Practice Exam 7

    50 questions · hints · full answers · grading

    Sign up freeTake the exam

    More questions from this exam

    Q01You are starting a new initiative and need to create a new Google Cloud project using the Cloud S...EasyQ02Your company is migrating to Google Cloud and wants to manage user identities centrally. They cur...MediumQ03You have just created a new Google Cloud project and want to deploy a containerized application u...MediumQ04Your finance team wants to perform complex SQL queries on your Google Cloud billing data to analy...MediumQ05You are managing a development project in Google Cloud. You want to ensure that you are notified ...Easy
    View all 50 questions →