exam questions

Exam Professional Cloud Developer All Questions

View all questions & answers for the Professional Cloud Developer exam

Exam Professional Cloud Developer topic 1 question 34 discussion

Actual exam question from Google's Professional Cloud Developer
Question #: 34
Topic #: 1
[All Professional Cloud Developer Questions]

You are developing an HTTP API hosted on a Compute Engine virtual machine instance that needs to be invoked by multiple clients within the same Virtual
Private Cloud (VPC). You want clients to be able to get the IP address of the service.
What should you do?

  • A. Reserve a static external IP address and assign it to an HTTP(S) load balancing service's forwarding rule. Clients should use this IP address to connect to the service.
  • B. Reserve a static external IP address and assign it to an HTTP(S) load balancing service's forwarding rule. Then, define an A record in Cloud DNS. Clients should use the name of the A record to connect to the service.
  • C. Ensure that clients use Compute Engine internal DNS by connecting to the instance name with the url https://[INSTANCE_NAME].[ZONE].c. [PROJECT_ID].internal/.
  • D. Ensure that clients use Compute Engine internal DNS by connecting to the instance name with the url https://[API_NAME]/[API_VERSION]/.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
emmet
Highly Voted 4 years, 5 months ago
My vote is answer C) "Virtual Private Cloud networks on Google Cloud have an internal DNS service that lets instances in the same network access each other by using internal DNS names" This name can be used for access: [INSTANCE_NAME].[ZONE].c.[PROJECT_ID].internal https://cloud.google.com/compute/docs/internal-dns#access_by_internal_DNS
upvoted 20 times
syu31svc
3 years, 4 months ago
Good find; C is supported by this
upvoted 5 times
...
...
santoshchauhan
Most Recent 7 months, 3 weeks ago
Selected Answer: C
C. Ensure that clients use Compute Engine internal DNS by connecting to the instance name with the URL https://[INSTANCE_NAME].[ZONE].c.[PROJECT_ID].internal/. This option allows clients within the same Virtual Private Cloud (VPC) to resolve the Compute Engine instance's internal IP address using internal DNS, which is a feature provided by Compute Engine. The internal DNS name is constructed using the instance name, zone, and project ID, and this DNS entry is automatically created and managed by Google Cloud. This method ensures that traffic between clients and the API does not leave the Google Cloud network, providing lower latency and enhanced security.
upvoted 1 times
...
__rajan__
1 year, 1 month ago
Selected Answer: C
This is a simple and effective way to enable communication between services within the same VPC without the need for external IP addresses or load balancing services.
upvoted 1 times
...
omermahgoub
1 year, 9 months ago
D, connecting to the instance name with the url https://[API_NAME]/[API_VERSION]/, may not work as it is not specified how clients would know the correct API name and version. C is the correct answer: By connecting to the instance name with the url https://[INSTANCE_NAME].[ZONE].c. [PROJECT_ID].internal/, clients can use Compute Engine's internal DNS to access the API hosted on the virtual machine instance within the same VPC. This will allow clients to access the API with low latency and without the need for a static external IP address.
upvoted 1 times
...
jcataluna
1 year, 10 months ago
Selected Answer: C
C is correct
upvoted 1 times
...
brunoguzzo18
2 years, 2 months ago
Selected Answer: C
https://cloud.google.com/compute/docs/internal-dns The answer ic C.
upvoted 1 times
...
tomato123
2 years, 2 months ago
Selected Answer: C
C is correct
upvoted 3 times
...
nhadi82
2 years, 3 months ago
Selected Answer: C
vote for C
upvoted 1 times
...
herocc
2 years, 9 months ago
Vote for C
upvoted 1 times
...
ParagSanyashiv
2 years, 9 months ago
Selected Answer: C
With no doubt, it is C
upvoted 1 times
...
Flavio80
2 years, 10 months ago
right answer is C
upvoted 1 times
...
kernel1973
3 years, 4 months ago
For me the right answer is C.
upvoted 2 times
...
AtulYadav
3 years, 9 months ago
I vote for C.
upvoted 4 times
...
saurabh1805
3 years, 11 months ago
my vote for C as well.
upvoted 3 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