Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
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 50 discussion

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

You have production and test workloads that you want to deploy on Compute Engine. Production VMs need to be in a different subnet than the test VMs. All the
VMs must be able to reach each other over Internal IP without creating additional routes. You need to set up VPC and the 2 subnets. Which configuration meets these requirements?

  • A. Create a single custom VPC with 2 subnets. Create each subnet in a different region and with a different CIDR range.
  • B. Create a single custom VPC with 2 subnets. Create each subnet in the same region and with the same CIDR range.
  • C. Create 2 custom VPCs, each with a single subnet. Create each subnet in a different region and with a different CIDR range.
  • D. Create 2 custom VPCs, each with a single subnet. Create each subnet in the same region and with the same CIDR range.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
JamesBond
Highly Voted 4 years, 8 months ago
A is correct
upvoted 35 times
...
nwk
Highly Voted 4 years ago
Vote A https://cloud.google.com/vpc/docs/using-vpc#subnet-rules Primary and secondary ranges for subnets cannot overlap with any allocated range, any primary or secondary range of another subnet in the same network, or any IP ranges of subnets in peered networks.
upvoted 22 times
...
Ciupaz
Most Recent 2 weeks, 3 days ago
Selected Answer: A
B is wrong because is not possible to have two subnets with the same CIDR range within a VPC, as it would cause an IP conflict.
upvoted 2 times
...
jayflesher
4 weeks ago
This question and answer doesn't add up to me. Why would you need to have a different CIDR range and a different region? For example, if I had 10.0.1.0/24 in us-central1 region, why can't i just use 10.0.2.0/24? in the same region and "/24" is the same CIDR range. The correct answer does not make logical sense to me.
upvoted 1 times
...
fighter001
6 months, 2 weeks ago
Wrong question with wrong answer
upvoted 3 times
...
ranjitsinhgutte
1 year, 1 month ago
A is correct If you create more than one subnet in a VPC, the CIDR blocks of the subnets cannot overlap. For example, if you create a VPC with CIDR block 10.0. 0.0/24 , it supports 256 IP addresses. You can break this CIDR block into two subnets, each supporting 128 IP addresses.
upvoted 4 times
...
certboss
1 year, 2 months ago
For anyone new to the business, prod and test networks should never talk to each other.... The requirement in this question (that both envs can reach each other) is completely against best practice and common sense... There should always be complete network isolation between prod and non-prod environments.
upvoted 8 times
iooj
2 months, 2 weeks ago
in reality, business leads will push you to make such a connection, for example, because the test environment doesn't have enough data for testing...
upvoted 1 times
...
...
fraiacca
1 year, 2 months ago
Selected Answer: A
I tried to create a VPC with 2 subnets in same regione and same CIDR I got the following error Operation type [insert] failed with message "Invalid IPCidrRange: 10.0.0.0/28 conflicts with existing subnetwork 'subnet-1' in region 'asia-east1'."
upvoted 3 times
Seleth
3 months, 3 weeks ago
"same CIDR" means the same range of addresses. You cannot have two networks overlapping anywhere because the IPs will conflict.
upvoted 1 times
...
...
Captain1212
1 year, 2 months ago
A is correct as it help to make sure they have a diffenret subnets
upvoted 1 times
...
raselsys
1 year, 8 months ago
Selected Answer: A
A is the correct Answer. People voting for B need to improve their networking knowledge.
upvoted 5 times
...
Buruguduystunstugudunstuy
1 year, 9 months ago
Selected Answer: A
ANSWER A meets the requirement because it creates a single custom VPC with 2 subnets, with each subnet in a different region and with a different CIDR range. This ensures that the production and test VMs are in separate subnets and that they can communicate with each other over Internal IP without creating additional routes. Since the subnets are in different regions, they will also have different internal routing tables, which can help isolate the traffic between the two subnets. This configuration provides the necessary network isolation and connectivity required by the production and test workloads. ANSWER B suggests creating a single custom VPC with two subnets in the same region and with the same CIDR range. However, the requirement is that production VMs need to be in a different subnet than the test VMs. With the subnets in the same region and with the same CIDR range, it would not be possible to separate the production and test VMs into different subnets. Therefore, ANSWER B does not meet the requirement.
upvoted 17 times
...
NosFerazi
1 year, 9 months ago
Selected Answer: A
https://www.youtube.com/watch?v=XLaFU1t9pM8 8:15
upvoted 2 times
...
sidharthwader
1 year, 10 months ago
I feel the Answer is A it has to be in the same VPC to talk to each other but on 2 different subnet but is there any sense to have it different region? It should be fine with different CIDR for same region i feel
upvoted 2 times
...
leogor
2 years, 1 month ago
Selected Answer: A
A, same VPC network with different CIDR range
upvoted 1 times
...
PKookNN
2 years, 1 month ago
A is correct
upvoted 1 times
...
Robertolo
2 years, 1 month ago
Selected Answer: A
It has to be A: one VPC, two subnets in different regions and different CIDR range. (It would also be valid to have both subnets in the same region.) What about option B? We know that "each primary or secondary IPv4 range for all subnets in a VPC network must be a unique valid CIDR block" (read here https://cloud.google.com/vpc/docs/subnets#ipv4-ranges ). Thus, prod and test subnets cannot overlap -> option B is not valid. Options C and D are not valid neither, because "all the VMs must be able to reach each other" - this will not happen if we distribute the VMs across two VPC.
upvoted 4 times
...
manukoli1986
2 years, 1 month ago
Leutenant_Ololo, I test and checked. It is B answer
upvoted 1 times
FeaRoX
1 year, 9 months ago
how do you want to have 2 subnets with same CIDR? Not only in GCP but anywhere...
upvoted 1 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 ...